diff --git a/Assets/Plugin/thirdweb.jslib b/Assets/Plugin/thirdweb.jslib index e5640233..eaa29e22 100644 --- a/Assets/Plugin/thirdweb.jslib +++ b/Assets/Plugin/thirdweb.jslib @@ -51,7 +51,7 @@ var plugin = { ThirdwebInitialize: function (chain, options) { window.bridge.initialize(UTF8ToString(chain), UTF8ToString(options)); }, - ThirdwebConnect: function (taskId, wallet, chainId, cb) { + ThirdwebConnect: function (taskId, wallet, chainId, password, cb) { // convert taskId from pointer to str and allocate it to keep in memory var id = UTF8ToString(taskId); var idSize = lengthBytesUTF8(id) + 1; @@ -59,7 +59,7 @@ var plugin = { stringToUTF8(id, idPtr, idSize); // execute bridge call window.bridge - .connect(UTF8ToString(wallet), chainId) + .connect(UTF8ToString(wallet), chainId, UTF8ToString(password)) .then((address) => { if (address) { var bufferSize = lengthBytesUTF8(address) + 1; diff --git a/Assets/Thirdweb/Core/Scripts/Bridge.cs b/Assets/Thirdweb/Core/Scripts/Bridge.cs index 49f7c72e..ba44e30d 100644 --- a/Assets/Thirdweb/Core/Scripts/Bridge.cs +++ b/Assets/Thirdweb/Core/Scripts/Bridge.cs @@ -91,7 +91,7 @@ public static async Task Connect(WalletConnection walletConnection) string taskId = Guid.NewGuid().ToString(); taskMap[taskId] = task; #if UNITY_WEBGL - ThirdwebConnect(taskId, walletConnection.provider.ToString(), walletConnection.chainId, jsCallback); + ThirdwebConnect(taskId, walletConnection.provider.ToString(), walletConnection.chainId, walletConnection.password ?? Utils.GetDeviceIdentifier(), jsCallback); #endif string result = await task.Task; return result; @@ -190,7 +190,7 @@ public static async Task FundWallet(FundWalletOptions payload) [DllImport("__Internal")] private static extern string ThirdwebInitialize(string chainOrRPC, string options); [DllImport("__Internal")] - private static extern string ThirdwebConnect(string taskId, string wallet, int chainId, Action cb); + private static extern string ThirdwebConnect(string taskId, string wallet, int chainId, string password, Action cb); [DllImport("__Internal")] private static extern string ThirdwebDisconnect(string taskId, Action cb); [DllImport("__Internal")] diff --git a/Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs b/Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs index a3d16b28..b77ef68f 100644 --- a/Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs +++ b/Assets/Thirdweb/Core/Scripts/ThirdwebSDK.cs @@ -29,6 +29,9 @@ public struct Options public struct WalletOptions { public string appName; // the app name that will show in different wallet providers + public string appDescription; + public string appUrl; + public string[] appIcons; public Dictionary extras; // extra data to pass to the wallet provider } @@ -92,8 +95,18 @@ public class NativeSession public string lastRPC = null; public Account account = null; public Web3 web3 = null; - public Options options; - public SiweMessageService siweSession; + public Options options = new Options(); + public SiweMessageService siweSession = new SiweMessageService(); + + public NativeSession(int lastChainId, string lastRPC, Account account, Web3 web3, Options options, SiweMessageService siweSession) + { + this.lastChainId = lastChainId; + this.lastRPC = lastRPC; + this.account = account; + this.web3 = web3; + this.options = options; + this.siweSession = siweSession; + } } public NativeSession nativeSession; @@ -116,13 +129,15 @@ public class NativeSession throw new UnityException("Chain ID override required for native platforms!"); string rpc = !chainOrRPC.StartsWith("https://") ? $"https://{chainOrRPC}.rpc.thirdweb.com/339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3" : chainOrRPC; - - nativeSession = new NativeSession(); - nativeSession.lastRPC = rpc; - nativeSession.lastChainId = chainId; - nativeSession.web3 = new Web3(nativeSession.lastRPC); - nativeSession.options = options; - nativeSession.siweSession = new Nethereum.Siwe.SiweMessageService(); + nativeSession = new NativeSession(chainId, rpc, null, new Web3(rpc), options, new SiweMessageService()); + // Set default WalletOptions + nativeSession.options.wallet = new WalletOptions() + { + appName = options.wallet?.appName ?? "Thirdweb Game", + appDescription = options.wallet?.appDescription ?? "Thirdweb Game Demo", + appIcons = options.wallet?.appIcons ?? new string[] { "https://thirdweb.com/favicon.ico" }, + appUrl = options.wallet?.appUrl ?? "https://thirdweb.com" + }; } else { diff --git a/Assets/Thirdweb/Core/Scripts/Wallet.cs b/Assets/Thirdweb/Core/Scripts/Wallet.cs index 464b533d..61763b68 100644 --- a/Assets/Thirdweb/Core/Scripts/Wallet.cs +++ b/Assets/Thirdweb/Core/Scripts/Wallet.cs @@ -4,12 +4,11 @@ using Nethereum.Web3; using UnityEngine; using System; -using WalletConnectSharp.Core.Models; using WalletConnectSharp.Unity; using WalletConnectSharp.NEthereum; using Nethereum.Siwe.Core; -using Nethereum.Siwe; using System.Collections.Generic; +using Nethereum.Web3.Accounts; //using WalletConnectSharp.NEthereum; @@ -20,43 +19,82 @@ namespace Thirdweb /// public class Wallet : Routable { - public Wallet() - : base($"sdk{subSeparator}wallet") { } + public Wallet() : base($"sdk{subSeparator}wallet") { } /// /// Connect a user's wallet via a given wallet provider /// /// The wallet provider and chainId to connect to. Defaults to the injected browser extension. - public async Task Connect(WalletConnection? walletConnection = null, string password = null, WCSessionData wcSessionData = null) + public async Task Connect(WalletConnection? walletConnection = null) { if (Utils.IsWebGLBuild()) { var connection = walletConnection ?? new WalletConnection() { provider = WalletProvider.Injected, }; - ; return await Bridge.Connect(connection); } else { - ThirdwebSDK.NativeSession newNativeSession = new ThirdwebSDK.NativeSession(); - if (wcSessionData != null) + ThirdwebSDK.NativeSession oldSession = ThirdwebManager.Instance.SDK.nativeSession; + + if (walletConnection == null) { - newNativeSession.lastRPC = ThirdwebManager.Instance.SDK.nativeSession.lastRPC; - newNativeSession.lastChainId = ThirdwebManager.Instance.SDK.nativeSession.lastChainId; - newNativeSession.account = null; - newNativeSession.web3 = WalletConnect.Instance.Session.BuildWeb3(new Uri(newNativeSession.lastRPC)).AsWalletAccount(true); - newNativeSession.siweSession = new SiweMessageService(); - ThirdwebManager.Instance.SDK.nativeSession = newNativeSession; - return WalletConnect.Instance.Session.Accounts[0]; + Account noPassAcc = Utils.UnlockOrGenerateAccount(oldSession.lastChainId, null, null); + ThirdwebManager.Instance.SDK.nativeSession = new ThirdwebSDK.NativeSession( + oldSession.lastChainId, + oldSession.lastRPC, + noPassAcc, + new Web3(noPassAcc, oldSession.lastRPC), + oldSession.options, + oldSession.siweSession + ); + return noPassAcc.Address; } else { - newNativeSession.lastRPC = ThirdwebManager.Instance.SDK.nativeSession.lastRPC; - newNativeSession.lastChainId = ThirdwebManager.Instance.SDK.nativeSession.lastChainId; - newNativeSession.account = Utils.UnlockOrGenerateAccount(newNativeSession.lastChainId, password, null); // TODO: Allow custom private keys/passwords - newNativeSession.web3 = new Web3(newNativeSession.account, newNativeSession.lastRPC); - newNativeSession.siweSession = new SiweMessageService(); - ThirdwebManager.Instance.SDK.nativeSession = newNativeSession; - return ThirdwebManager.Instance.SDK.nativeSession.account.Address; + if (walletConnection?.provider?.ToString() == "walletConnect") + { + await WalletConnect.Instance.EnableWalletConnect(); + + ThirdwebManager.Instance.SDK.nativeSession = new ThirdwebSDK.NativeSession( + oldSession.lastChainId, + oldSession.lastRPC, + null, + WalletConnect.Instance.Session.BuildWeb3(new Uri(oldSession.lastRPC)).AsWalletAccount(true), + oldSession.options, + oldSession.siweSession + ); + return Nethereum.Util.AddressUtil.Current.ConvertToChecksumAddress(WalletConnect.Instance.Session.Accounts[0]); + } + else if (walletConnection?.password != null) + { + Account acc = Utils.UnlockOrGenerateAccount(oldSession.lastChainId, walletConnection?.password, null); + ThirdwebManager.Instance.SDK.nativeSession = new ThirdwebSDK.NativeSession( + oldSession.lastChainId, + oldSession.lastRPC, + acc, + new Web3(acc, oldSession.lastRPC), + oldSession.options, + oldSession.siweSession + ); + return acc.Address; + } + else if (walletConnection?.privateKey != null) + { + Account acc = Utils.UnlockOrGenerateAccount(oldSession.lastChainId, null, walletConnection?.privateKey); + ThirdwebManager.Instance.SDK.nativeSession = new ThirdwebSDK.NativeSession( + oldSession.lastChainId, + oldSession.lastRPC, + acc, + new Web3(acc, oldSession.lastRPC), + oldSession.options, + oldSession.siweSession + ); + return acc.Address; + } + else + { + throw new UnityException("This wallet connection method is not supported on this platform!"); + } } } } @@ -72,17 +110,21 @@ public async Task Disconnect() } else { + ThirdwebSDK.NativeSession oldSession = ThirdwebManager.Instance.SDK.nativeSession; + if (Utils.ActiveWalletConnectSession()) { WalletConnect.Instance.DisableWalletConnect(); } - ThirdwebSDK.NativeSession newNativeSession = new ThirdwebSDK.NativeSession(); - newNativeSession.lastRPC = ThirdwebManager.Instance.SDK.nativeSession.lastRPC; - newNativeSession.lastChainId = ThirdwebManager.Instance.SDK.nativeSession.lastChainId; - newNativeSession.account = null; - newNativeSession.web3 = new Web3(newNativeSession.lastRPC); // fallback - newNativeSession.siweSession = new SiweMessageService(); - ThirdwebManager.Instance.SDK.nativeSession = newNativeSession; + + ThirdwebManager.Instance.SDK.nativeSession = new ThirdwebSDK.NativeSession( + oldSession.lastChainId, + oldSession.lastRPC, + null, + new Web3(oldSession.lastRPC), + oldSession.options, + oldSession.siweSession + ); } } @@ -146,7 +188,7 @@ public async Task Verify(LoginPayload payload) { if (Utils.IsWebGLBuild()) { - throw new UnityException("This functionality is not available on your current platform."); + return await Bridge.InvokeRoute($"auth{subSeparator}verify", Utils.ToJsonStringArray(payload)); } else { @@ -414,6 +456,8 @@ public struct WalletConnection { public WalletProvider provider; public int chainId; + public string password; + public string privateKey; } public class WalletProvider @@ -445,6 +489,10 @@ public static WalletProvider MagicAuth { get { return new WalletProvider("magicAuth"); } } + public static WalletProvider DeviceWallet + { + get { return new WalletProvider("deviceWallet"); } + } public override string ToString() { diff --git a/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab b/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab index 19df6df3..921be4eb 100644 --- a/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab +++ b/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWallet.prefab @@ -2272,7 +2272,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 56e0ba15cb38b4345825030a6c81d2dd, type: 3} m_Name: m_EditorClassIdentifier: - supportedWallets: 010000000200000003000000 + supportedWallets: 01000000020000000300000005000000 supportSwitchingNetwork: 1 supportedNetworks: 00000000010000000200000003000000 OnConnectedCallback: @@ -2308,6 +2308,9 @@ MonoBehaviour: - wallet: 4 walletButton: {fileID: 679192013} icon: {fileID: 21300000, guid: 59f310e18bee0db49a8061c8ff8b9743, type: 3} + - wallet: 5 + walletButton: {fileID: 4853978764931019044} + icon: {fileID: 21300000, guid: db8ba9cab203b1e459eceb66e03f1106, type: 3} connectedButton: {fileID: 1620813798} connectedDropdown: {fileID: 472489313} balanceText: {fileID: 1457839850} @@ -2901,6 +2904,7 @@ RectTransform: - {fileID: 1045367076} - {fileID: 351517270} - {fileID: 679192014} + - {fileID: 6243171688188928066} m_Father: {fileID: 1335404547334051785} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -3325,6 +3329,129 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &4853978764931019044 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6243171688188928066} + - component: {fileID: 4602955866666427568} + - component: {fileID: 5961775450661705162} + - component: {fileID: 5139406429550996692} + m_Layer: 5 + m_Name: Button_DeviceWallet + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &6243171688188928066 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853978764931019044} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 5545217886754578255} + - {fileID: 7792240736004772696} + m_Father: {fileID: 1335404547797609897} + m_RootOrder: 4 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 0} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 40} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &4602955866666427568 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853978764931019044} + m_CullTransparentMesh: 1 +--- !u!114 &5961775450661705162 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853978764931019044} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 0.05882353, g: 0.07450981, b: 0.09411765, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!114 &5139406429550996692 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 4853978764931019044} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 5961775450661705162} + m_OnClick: + m_PersistentCalls: + m_Calls: [] --- !u!1 &5144971401633981691 GameObject: m_ObjectHideFlags: 0 @@ -3536,6 +3663,82 @@ MonoBehaviour: m_FillOrigin: 0 m_UseSpriteMesh: 0 m_PixelsPerUnitMultiplier: 1 +--- !u!1 &5542406458466955933 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5545217886754578255} + - component: {fileID: 6845095577872559985} + - component: {fileID: 3224114940685379019} + m_Layer: 5 + m_Name: Image_DeviceWallet + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &5545217886754578255 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542406458466955933} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 6243171688188928066} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 0, y: 1} + m_AnchoredPosition: {x: 30, y: 0} + m_SizeDelta: {x: 50, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &6845095577872559985 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542406458466955933} + m_CullTransparentMesh: 1 +--- !u!114 &3224114940685379019 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542406458466955933} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_Sprite: {fileID: 21300000, guid: db8ba9cab203b1e459eceb66e03f1106, type: 3} + m_Type: 0 + m_PreserveAspect: 1 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 --- !u!1 &8064088946564898694 GameObject: m_ObjectHideFlags: 0 @@ -3671,6 +3874,141 @@ MonoBehaviour: m_StringArgument: m_BoolArgument: 0 m_CallState: 2 +--- !u!1 &8183237690697191798 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 7792240736004772696} + - component: {fileID: 7285337750100448865} + - component: {fileID: 7486429459922162202} + m_Layer: 5 + m_Name: Text_DeviceWallet + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &7792240736004772696 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8183237690697191798} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 6243171688188928066} + m_RootOrder: 1 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 35, y: 0} + m_SizeDelta: {x: -80, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!222 &7285337750100448865 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8183237690697191798} + m_CullTransparentMesh: 1 +--- !u!114 &7486429459922162202 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8183237690697191798} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Material: {fileID: 0} + m_Color: {r: 1, g: 1, b: 1, a: 1} + m_RaycastTarget: 1 + m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0} + m_Maskable: 1 + m_OnCullStateChanged: + m_PersistentCalls: + m_Calls: [] + m_text: Device Wallet + m_isRightToLeft: 0 + m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} + m_fontSharedMaterials: [] + m_fontMaterial: {fileID: 0} + m_fontMaterials: [] + m_fontColor32: + serializedVersion: 2 + rgba: 4293585384 + m_fontColor: {r: 0.9098039, g: 0.9137255, b: 0.91764706, a: 1} + m_enableVertexGradient: 0 + m_colorMode: 3 + m_fontColorGradient: + topLeft: {r: 1, g: 1, b: 1, a: 1} + topRight: {r: 1, g: 1, b: 1, a: 1} + bottomLeft: {r: 1, g: 1, b: 1, a: 1} + bottomRight: {r: 1, g: 1, b: 1, a: 1} + m_fontColorGradientPreset: {fileID: 0} + m_spriteAsset: {fileID: 0} + m_tintAllSprites: 0 + m_StyleSheet: {fileID: 0} + m_TextStyleHashCode: -1183493901 + m_overrideHtmlColors: 0 + m_faceColor: + serializedVersion: 2 + rgba: 4294967295 + m_fontSize: 25 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 1 + m_fontSizeMin: 18 + m_fontSizeMax: 25 + m_fontStyle: 1 + m_HorizontalAlignment: 1 + m_VerticalAlignment: 512 + m_textAlignment: 65535 + m_characterSpacing: 0 + m_wordSpacing: 0 + m_lineSpacing: 0 + m_lineSpacingMax: 0 + m_paragraphSpacing: 0 + m_charWidthMaxAdj: 0 + m_enableWordWrapping: 1 + m_wordWrappingRatios: 0.4 + m_overflowMode: 0 + m_linkedTextComponent: {fileID: 0} + parentLinkedComponent: {fileID: 0} + m_enableKerning: 1 + m_enableExtraPadding: 0 + checkPaddingRequired: 0 + m_isRichText: 1 + m_parseCtrlCharacters: 1 + m_isOrthographic: 1 + m_isCullingEnabled: 0 + m_horizontalMapping: 0 + m_verticalMapping: 0 + m_uvLineOffset: 0 + m_geometrySortingOrder: 0 + m_IsTextObjectScaleStatic: 0 + m_VertexBufferAutoSizeReduction: 0 + m_useMaxVisibleDescender: 1 + m_pageToDisplay: 1 + m_margin: {x: 0, y: 0, z: 0, w: 0} + m_isUsingLegacyAnimationComponent: 0 + m_isVolumetricText: 0 + m_hasFontAssetChanged: 0 + m_baseMaterial: {fileID: 0} + m_maskOffset: {x: 0, y: 0, z: 0, w: 0} --- !u!1 &8325283099334609011 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWalletNative.prefab b/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWalletNative.prefab index 72c52148..f372d16e 100644 --- a/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWalletNative.prefab +++ b/Assets/Thirdweb/Examples/Prefabs/Prefab_ConnectWalletNative.prefab @@ -1243,7 +1243,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &5630356542929988404 RectTransform: m_ObjectHideFlags: 0 @@ -2232,7 +2232,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &7276129280455848231 RectTransform: m_ObjectHideFlags: 0 @@ -3640,33 +3640,33 @@ MonoBehaviour: chainImage: {fileID: 6455197925238504093} exportButton: {fileID: 1372153983861407458} networkSprites: - - chain: 1 + - chain: 0 sprite: {fileID: 21300000, guid: bf76ffa047029554199b8d79b2306f6d, type: 3} - - chain: 5 + - chain: 1 sprite: {fileID: 21300000, guid: bf76ffa047029554199b8d79b2306f6d, type: 3} - - chain: 137 + - chain: 2 sprite: {fileID: 21300000, guid: a4ac9bda74166b740bf880e481d41f55, type: 3} - - chain: 80001 + - chain: 3 sprite: {fileID: 21300000, guid: a4ac9bda74166b740bf880e481d41f55, type: 3} - - chain: 250 + - chain: 4 sprite: {fileID: 21300000, guid: 54be2d2440a31164f8679e1bd550abf9, type: 3} - - chain: 4002 + - chain: 5 sprite: {fileID: 21300000, guid: 54be2d2440a31164f8679e1bd550abf9, type: 3} - - chain: 43114 + - chain: 6 sprite: {fileID: 21300000, guid: 3fe24f7fb0232e844988758a3ba03773, type: 3} - - chain: 43113 + - chain: 7 sprite: {fileID: 21300000, guid: 3fe24f7fb0232e844988758a3ba03773, type: 3} - - chain: 10 + - chain: 8 sprite: {fileID: 21300000, guid: b5be42ae0f66ca441beff78a90fe1680, type: 3} - - chain: 420 + - chain: 9 sprite: {fileID: 21300000, guid: b5be42ae0f66ca441beff78a90fe1680, type: 3} - - chain: 42161 + - chain: 10 sprite: {fileID: 21300000, guid: 44b9a8a5b27749046b8fe998a084c7cc, type: 3} - - chain: 421613 + - chain: 11 sprite: {fileID: 21300000, guid: 44b9a8a5b27749046b8fe998a084c7cc, type: 3} - - chain: 56 + - chain: 12 sprite: {fileID: 21300000, guid: 427f73b440444d3428c9d1101f7c0646, type: 3} - - chain: 97 + - chain: 13 sprite: {fileID: 21300000, guid: 427f73b440444d3428c9d1101f7c0646, type: 3} --- !u!1 &8337050866396104413 GameObject: @@ -4427,7 +4427,7 @@ GameObject: m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 1 + m_IsActive: 0 --- !u!224 &8534970400187138540 RectTransform: m_ObjectHideFlags: 0 diff --git a/Assets/Thirdweb/Examples/Scenes/Scene_Prefabs.unity b/Assets/Thirdweb/Examples/Scenes/Scene_Prefabs.unity index 47738eda..9c616776 100644 --- a/Assets/Thirdweb/Examples/Scenes/Scene_Prefabs.unity +++ b/Assets/Thirdweb/Examples/Scenes/Scene_Prefabs.unity @@ -38,7 +38,7 @@ RenderSettings: m_ReflectionIntensity: 1 m_CustomReflection: {fileID: 0} m_Sun: {fileID: 0} - m_IndirectSpecularColor: {r: 0.37311953, g: 0.38074014, b: 0.3587274, a: 1} + m_IndirectSpecularColor: {r: 0.37311915, g: 0.3807396, b: 0.35872662, a: 1} m_UseRadianceAmbientProbe: 0 --- !u!157 &3 LightmapSettings: @@ -383,7 +383,7 @@ RectTransform: - {fileID: 1324182571102397454} - {fileID: 4701600027365654829} - {fileID: 2063946298} - - {fileID: 1335404546467394143} + - {fileID: 1009488853} - {fileID: 2414829411545535877} - {fileID: 1919283922} m_Father: {fileID: 0} @@ -455,7 +455,7 @@ MonoBehaviour: _keys: 0000000001000000 _values: - gameObjects: - - {fileID: 1348513457} + - {fileID: 0} - {fileID: 2106121673} - {fileID: 601047465} - gameObjects: @@ -940,7 +940,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 7702873693426126306, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} propertyPath: m_AnchoredPosition.x - value: -49.999878 + value: -50 objectReference: {fileID: 0} - target: {fileID: 7702873693426126306, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} propertyPath: m_AnchoredPosition.y @@ -966,6 +966,18 @@ PrefabInstance: propertyPath: m_SizeDelta.y value: 0 objectReference: {fileID: 0} + - target: {fileID: 7702873693758646612, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} + propertyPath: m_AnchorMax.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7702873693758646612, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7702873693758646612, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 487e6840fccf4594ca24581d2b3e9d25, type: 3} --- !u!224 &866517574 stripped @@ -1041,10 +1053,211 @@ Transform: m_Father: {fileID: 0} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} ---- !u!1 &1348513457 stripped -GameObject: - m_CorrespondingSourceObject: {fileID: 696252699284340127, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - m_PrefabInstance: {fileID: 1335404546467394142} +--- !u!1001 &1009488852 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + m_TransformParent: {fileID: 574059470} + m_Modifications: + - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 696252699284340127, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_Name + value: 'Prefab_ConnectWallet ' + objectReference: {fileID: 0} + - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1335404547797609897, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6243171688188928066, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6243171688188928066, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6243171688188928066, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6243171688188928066, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6243171688188928066, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_Pivot.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_Pivot.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_RootOrder + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMax.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchorMin.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.x + value: 250 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_SizeDelta.y + value: 60 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalPosition.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalPosition.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.x + value: -50 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_AnchoredPosition.y + value: -20 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} +--- !u!224 &1009488853 stripped +RectTransform: + m_CorrespondingSourceObject: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} + m_PrefabInstance: {fileID: 1009488852} m_PrefabAsset: {fileID: 0} --- !u!1 &1550381721 GameObject: @@ -1663,192 +1876,6 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 5516585226494414210, guid: 62e49a61f3b8faa488f48c2ac4becc7f, type: 3} m_PrefabInstance: {fileID: 6840589607714449804} m_PrefabAsset: {fileID: 0} ---- !u!1001 &1335404546467394142 -PrefabInstance: - m_ObjectHideFlags: 0 - serializedVersion: 2 - m_Modification: - m_TransformParent: {fileID: 574059470} - m_Modifications: - - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 351517270, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 679192014, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1045367076, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 696252699284340127, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_Name - value: Prefab_ConnectWallet - objectReference: {fileID: 0} - - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1335404546759128317, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 1335404547797609897, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_Pivot.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_Pivot.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_RootOrder - value: 8 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMax.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.x - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchorMin.y - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.x - value: 250 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_SizeDelta.y - value: 60 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalPosition.z - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalRotation.w - value: 1 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalRotation.x - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalRotation.y - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalRotation.z - value: -0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.x - value: -50 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_AnchoredPosition.y - value: -20 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalEulerAnglesHint.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalEulerAnglesHint.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - propertyPath: m_LocalEulerAnglesHint.z - value: 0 - objectReference: {fileID: 0} - m_RemovedComponents: [] - m_SourcePrefab: {fileID: 100100000, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} ---- !u!224 &1335404546467394143 stripped -RectTransform: - m_CorrespondingSourceObject: {fileID: 6539300962087038060, guid: a6218c0a90161f349bc6bc87fbc624da, type: 3} - m_PrefabInstance: {fileID: 1335404546467394142} - m_PrefabAsset: {fileID: 0} --- !u!1001 &2285981558031324588 PrefabInstance: m_ObjectHideFlags: 0 @@ -1856,26 +1883,6 @@ PrefabInstance: m_Modification: m_TransformParent: {fileID: 574059470} m_Modifications: - - target: {fileID: 492210582766907308, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 492210582766907308, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 492210582766907308, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 492210582766907308, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 492210582766907308, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - target: {fileID: 4483969581313638441, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} propertyPath: m_Pivot.x value: 0.5 @@ -1886,7 +1893,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4483969581313638441, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} propertyPath: m_RootOrder - value: 9 + value: 10 objectReference: {fileID: 0} - target: {fileID: 4483969581313638441, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} propertyPath: m_AnchorMax.x @@ -1960,54 +1967,10 @@ PrefabInstance: propertyPath: m_LocalEulerAnglesHint.z value: 0 objectReference: {fileID: 0} - - target: {fileID: 7276129279946335585, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7276129279946335585, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7276129279946335585, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7276129279946335585, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 7276129279946335585, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - target: {fileID: 7877806352732901850, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} propertyPath: m_Name value: Prefab_ConnectWalletNative objectReference: {fileID: 0} - - target: {fileID: 8534970399124805816, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMax.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8534970399124805816, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchorMin.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8534970399124805816, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_SizeDelta.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8534970399124805816, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.x - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8534970399124805816, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_AnchoredPosition.y - value: 0 - objectReference: {fileID: 0} - - target: {fileID: 8534970400187138540, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} - propertyPath: m_SizeDelta.y - value: 0 - objectReference: {fileID: 0} m_RemovedComponents: [] m_SourcePrefab: {fileID: 100100000, guid: 5970370bfc0e0d5468d98e62e7ad038d, type: 3} --- !u!224 &2414829411545535877 stripped @@ -2353,7 +2316,7 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 6187535723501583949, guid: c1ebffa97f49c3d40b9927ff37c9c4f3, type: 3} propertyPath: m_RootOrder - value: 10 + value: 11 objectReference: {fileID: 0} - target: {fileID: 6187535723501583949, guid: c1ebffa97f49c3d40b9927ff37c9c4f3, type: 3} propertyPath: m_AnchorMax.x diff --git a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs index 84d39787..af6cbf65 100644 --- a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs +++ b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWallet.cs @@ -13,6 +13,7 @@ public enum Wallet CoinbaseWallet, WalletConnect, MagicAuth, + DeviceWallet } [Serializable] @@ -250,6 +251,8 @@ WalletProvider GetWalletProvider(Wallet _wallet) return WalletProvider.WalletConnect; case Wallet.MagicAuth: return WalletProvider.MagicAuth; + case Wallet.DeviceWallet: + return WalletProvider.DeviceWallet; default: throw new UnityException($"Wallet Provider for wallet {_wallet} unimplemented!"); } diff --git a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWalletNative.cs b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWalletNative.cs index 785e7118..d8f4425c 100644 --- a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWalletNative.cs +++ b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_ConnectWalletNative.cs @@ -140,14 +140,13 @@ public async void OnConnect(WalletNative _wallet, string password = null) switch (_wallet) { case WalletNative.DeviceWallet: - address = await ThirdwebManager.Instance.SDK.wallet.Connect(null, password, null); + address = await ThirdwebManager.Instance.SDK.wallet.Connect(new WalletConnection() { password = password }); break; case WalletNative.DeviceWalletNoPassword: address = await ThirdwebManager.Instance.SDK.wallet.Connect(); break; case WalletNative.WalletConnect: - wcSessionData = await WalletConnect.Instance.EnableWalletConnect(); - address = await ThirdwebManager.Instance.SDK.wallet.Connect(null, null, wcSessionData); + address = await ThirdwebManager.Instance.SDK.wallet.Connect(new WalletConnection() { provider = WalletProvider.WalletConnect }); break; default: throw new UnityException("Unimplemented Method Of Native Wallet Connection"); @@ -230,11 +229,19 @@ public void OnClickDropdown() public void OnCopyAddress() { GUIUtility.systemCopyBuffer = address; - Debugger.Instance.Log("Copied your address to your clipboard!", $"Address: {address}"); + print($"Copied your address to your clipboard! Address: {address}"); } public void OnExportWallet() { - Application.OpenURL(Application.persistentDataPath + "/account.json"); + Application.OpenURL(Utils.GetAccountPath()); // Doesn't work on iOS or > Android 6 + + // Fallback + string text = System.IO.File.ReadAllText(Utils.GetAccountPath()); + GUIUtility.systemCopyBuffer = text; + print( + "Copied your encrypted keystore to your clipboard! You may import it into an external wallet with your password.\n" + + "If no password was provided upon the creation of this account, the password is your device unique ID." + ); } } diff --git a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Miscellaneous.cs b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Miscellaneous.cs index 15999f4f..39492a07 100644 --- a/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Miscellaneous.cs +++ b/Assets/Thirdweb/Examples/Scripts/Prefabs/Prefab_Miscellaneous.cs @@ -44,32 +44,17 @@ public async void Authenticate() { try { - if (Utils.IsWebGLBuild()) + // Generate and sign + LoginPayload data = await ThirdwebManager.Instance.SDK.wallet.Authenticate("example.com"); + // Verify + string resultAddressOrError = await ThirdwebManager.Instance.SDK.wallet.Verify(data); + if (await ThirdwebManager.Instance.SDK.wallet.GetAddress() == resultAddressOrError) { - LoginPayload data = await ThirdwebManager.Instance.SDK.wallet.Authenticate("example.com"); - Debugger.Instance.Log("[Authenticate] Successful", data.ToString()); + Debugger.Instance.Log("[Authenticate] Successful", resultAddressOrError); } else { - // Generate and sign - LoginPayload data = await ThirdwebManager.Instance.SDK.wallet.Authenticate("example.com"); - // Verify - if (!Utils.IsWebGLBuild()) - { - string resultAddressOrError = await ThirdwebManager.Instance.SDK.wallet.Verify(data); - if (await ThirdwebManager.Instance.SDK.wallet.GetAddress() == resultAddressOrError) - { - Debugger.Instance.Log("[Authenticate] Successful", resultAddressOrError); - } - else - { - Debugger.Instance.Log("[Authenticate] Invalid", resultAddressOrError); - } - } - else - { - Debugger.Instance.Log("[Authenticate] Successful", data.payload.ToString()); - } + Debugger.Instance.Log("[Authenticate] Invalid", resultAddressOrError); } } catch (System.Exception e) diff --git a/Assets/Thirdweb/Plugins/WalletConnectSharp.Core/WalletConnectSharp.Core.csproj.meta b/Assets/Thirdweb/Plugins/WalletConnectSharp.Core/WalletConnectSharp.Core.csproj.meta deleted file mode 100644 index 1e8bc885..00000000 --- a/Assets/Thirdweb/Plugins/WalletConnectSharp.Core/WalletConnectSharp.Core.csproj.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 14277e1a10845be48aee8d1f50db57d6 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Thirdweb/Plugins/WalletConnectSharp.NEthereum/WalletConnectSharp.NEthereum.csproj.meta b/Assets/Thirdweb/Plugins/WalletConnectSharp.NEthereum/WalletConnectSharp.NEthereum.csproj.meta deleted file mode 100644 index 95fefb88..00000000 --- a/Assets/Thirdweb/Plugins/WalletConnectSharp.NEthereum/WalletConnectSharp.NEthereum.csproj.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: e9d1f62e328fb2846b5c60d956b8b5b1 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Assets/Thirdweb/Plugins/WalletConnectSharp.Unity/WalletConnect.cs b/Assets/Thirdweb/Plugins/WalletConnectSharp.Unity/WalletConnect.cs index 81df237c..0ab3549b 100644 --- a/Assets/Thirdweb/Plugins/WalletConnectSharp.Unity/WalletConnect.cs +++ b/Assets/Thirdweb/Plugins/WalletConnectSharp.Unity/WalletConnect.cs @@ -78,9 +78,6 @@ public bool Connected get { return Session.Connected; } } - [SerializeField] - public ClientMeta AppData; - public static WalletConnect Instance; protected override void Awake() @@ -191,7 +188,20 @@ public async Task Connect(int chainId) } else { - Session = new WalletConnectUnitySession(AppData, this, null, _transport, ciper, chainId); + Session = new WalletConnectUnitySession( + new ClientMeta() + { + Name = ThirdwebManager.Instance.SDK.nativeSession.options.wallet?.appName, + Description = ThirdwebManager.Instance.SDK.nativeSession.options.wallet?.appDescription, + URL = ThirdwebManager.Instance.SDK.nativeSession.options.wallet?.appUrl, + Icons = ThirdwebManager.Instance.SDK.nativeSession.options.wallet?.appIcons, + }, + this, + null, + _transport, + ciper, + chainId + ); if (NewSessionStarted != null) NewSessionStarted(this, EventArgs.Empty); diff --git a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js index efe847c6..1c1038f3 100644 --- a/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js +++ b/Assets/WebGLTemplates/Thirdweb/lib/thirdweb-unity-bridge.js @@ -1,34 +1,34 @@ -"use strict";(()=>{var eSt=Object.create;var NP=Object.defineProperty;var tSt=Object.getOwnPropertyDescriptor;var rSt=Object.getOwnPropertyNames;var nSt=Object.getPrototypeOf,aSt=Object.prototype.hasOwnProperty;var yye=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var ce=(r,e)=>()=>(r&&(e=r(r=0)),e);var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cr=(r,e)=>{for(var t in e)NP(r,t,{get:e[t],enumerable:!0})},MP=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of rSt(e))!aSt.call(r,a)&&a!==t&&NP(r,a,{get:()=>e[a],enumerable:!(n=tSt(e,a))||n.enumerable});return r},gr=(r,e,t)=>(MP(r,e,"default"),t&&MP(t,e,"default")),mn=(r,e,t)=>(t=r!=null?eSt(nSt(r)):{},MP(e||!r||!r.__esModule?NP(t,"default",{value:r,enumerable:!0}):t,r)),rt=r=>MP(NP({},"__esModule",{value:!0}),r);var g,d=ce(()=>{g={env:"production"}});var vye=_(BP=>{"use strict";d();p();BP.byteLength=oSt;BP.toByteArray=uSt;BP.fromByteArray=pSt;var uf=[],Cd=[],sSt=typeof Uint8Array<"u"?Uint8Array:Array,Fz="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(qg=0,gye=Fz.length;qg0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function oSt(r){var e=bye(r),t=e[0],n=e[1];return(t+n)*3/4-n}function cSt(r,e,t){return(e+t)*3/4-t}function uSt(r){var e,t=bye(r),n=t[0],a=t[1],i=new sSt(cSt(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=Cd[r.charCodeAt(c)]<<2|Cd[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=Cd[r.charCodeAt(c)]<<10|Cd[r.charCodeAt(c+1)]<<4|Cd[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function lSt(r){return uf[r>>18&63]+uf[r>>12&63]+uf[r>>6&63]+uf[r&63]}function dSt(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(uf[e>>2]+uf[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(uf[e>>10]+uf[e>>4&63]+uf[e<<2&63]+"=")),a.join("")}});var wye=_(Wz=>{d();p();Wz.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,h=t?a-1:0,f=t?-1:1,m=r[e+h];for(h+=f,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+h],h+=f,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+h],h+=f,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};Wz.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(e*c-1)*Math.pow(2,a),s=s+h):(o=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=E*128}});var ac=_(jw=>{"use strict";d();p();var Uz=vye(),Hw=wye(),xye=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;jw.Buffer=_e;jw.SlowBuffer=bSt;jw.INSPECT_MAX_BYTES=50;var DP=2147483647;jw.kMaxLength=DP;_e.TYPED_ARRAY_SUPPORT=hSt();!_e.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 hSt(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(_e.prototype,"parent",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.buffer}});Object.defineProperty(_e.prototype,"offset",{enumerable:!0,get:function(){if(!!_e.isBuffer(this))return this.byteOffset}});function qm(r){if(r>DP)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,_e.prototype),e}function _e(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return Kz(r)}return Eye(r,e,t)}_e.poolSize=8192;function Eye(r,e,t){if(typeof r=="string")return mSt(r,e);if(ArrayBuffer.isView(r))return ySt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(lf(r,ArrayBuffer)||r&&lf(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(lf(r,SharedArrayBuffer)||r&&lf(r.buffer,SharedArrayBuffer)))return jz(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return _e.from(n,e,t);var a=gSt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return _e.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}_e.from=function(r,e,t){return Eye(r,e,t)};Object.setPrototypeOf(_e.prototype,Uint8Array.prototype);Object.setPrototypeOf(_e,Uint8Array);function Cye(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function fSt(r,e,t){return Cye(r),r<=0?qm(r):e!==void 0?typeof t=="string"?qm(r).fill(e,t):qm(r).fill(e):qm(r)}_e.alloc=function(r,e,t){return fSt(r,e,t)};function Kz(r){return Cye(r),qm(r<0?0:Vz(r)|0)}_e.allocUnsafe=function(r){return Kz(r)};_e.allocUnsafeSlow=function(r){return Kz(r)};function mSt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!_e.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=Iye(r,e)|0,n=qm(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function Hz(r){for(var e=r.length<0?0:Vz(r.length)|0,t=qm(e),n=0;n=DP)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+DP.toString(16)+" bytes");return r|0}function bSt(r){return+r!=r&&(r=0),_e.alloc(+r)}_e.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==_e.prototype};_e.compare=function(e,t){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),lf(t,Uint8Array)&&(t=_e.from(t,t.offset,t.byteLength)),!_e.isBuffer(e)||!_e.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?_e.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(_e.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function Iye(r,e){if(_e.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||lf(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return zz(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return Mye(r).length;default:if(a)return n?-1:zz(r).length;e=(""+e).toLowerCase(),a=!0}}_e.byteLength=Iye;function vSt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return SSt(this,e,t);case"utf8":case"utf-8":return Aye(this,e,t);case"ascii":return kSt(this,e,t);case"latin1":case"binary":return ASt(this,e,t);case"base64":return CSt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return PSt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}_e.prototype._isBuffer=!0;function Fg(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}_e.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};xye&&(_e.prototype[xye]=_e.prototype.inspect);_e.prototype.compare=function(e,t,n,a,i){if(lf(e,Uint8Array)&&(e=_e.from(e,e.offset,e.byteLength)),!_e.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),h=0;h2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,Gz(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=_e.from(e,n)),_e.isBuffer(e))return e.length===0?-1:_ye(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):_ye(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function _ye(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var h=!0,f=0;fa&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return wSt(this,e,t,n);case"utf8":case"utf-8":return xSt(this,e,t,n);case"ascii":case"latin1":case"binary":return _St(this,e,t,n);case"base64":return TSt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ESt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};_e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function CSt(r,e,t){return e===0&&t===r.length?Uz.fromByteArray(r):Uz.fromByteArray(r.slice(e,t))}function Aye(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,h;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(h=(i&31)<<6|c&63,h>127&&(s=h));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(h=(i&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(h=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return ISt(n)}var Tye=4096;function ISt(r){var e=r.length;if(e<=Tye)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}_e.prototype.readUintLE=_e.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Io(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Io(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};_e.prototype.readUint8=_e.prototype.readUInt8=function(e,t){return e=e>>>0,t||Io(e,1,this.length),this[e]};_e.prototype.readUint16LE=_e.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Io(e,2,this.length),this[e]|this[e+1]<<8};_e.prototype.readUint16BE=_e.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Io(e,2,this.length),this[e]<<8|this[e+1]};_e.prototype.readUint32LE=_e.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};_e.prototype.readUint32BE=_e.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};_e.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Io(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};_e.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Io(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};_e.prototype.readInt8=function(e,t){return e=e>>>0,t||Io(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};_e.prototype.readInt16LE=function(e,t){e=e>>>0,t||Io(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt16BE=function(e,t){e=e>>>0,t||Io(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};_e.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};_e.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};_e.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),Hw.read(this,e,!0,23,4)};_e.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Io(e,4,this.length),Hw.read(this,e,!1,23,4)};_e.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Io(e,8,this.length),Hw.read(this,e,!0,52,8)};_e.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Io(e,8,this.length),Hw.read(this,e,!1,52,8)};function il(r,e,t,n,a,i){if(!_e.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}_e.prototype.writeUintLE=_e.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;il(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;il(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};_e.prototype.writeUint8=_e.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,1,255,0),this[t]=e&255,t+1};_e.prototype.writeUint16LE=_e.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeUint16BE=_e.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeUint32LE=_e.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};_e.prototype.writeUint32BE=_e.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};_e.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);il(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};_e.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);il(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};_e.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};_e.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};_e.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};_e.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};_e.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||il(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Sye(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Pye(r,e,t,n,a){return e=+e,t=t>>>0,a||Sye(r,e,t,4,34028234663852886e22,-34028234663852886e22),Hw.write(r,e,t,n,23,4),t+4}_e.prototype.writeFloatLE=function(e,t,n){return Pye(this,e,t,!0,n)};_e.prototype.writeFloatBE=function(e,t,n){return Pye(this,e,t,!1,n)};function Rye(r,e,t,n,a){return e=+e,t=t>>>0,a||Sye(r,e,t,8,17976931348623157e292,-17976931348623157e292),Hw.write(r,e,t,n,52,8),t+8}_e.prototype.writeDoubleLE=function(e,t,n){return Rye(this,e,t,!0,n)};_e.prototype.writeDoubleBE=function(e,t,n){return Rye(this,e,t,!1,n)};_e.prototype.copy=function(e,t,n,a){if(!_e.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function NSt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function Mye(r){return Uz.toByteArray(MSt(r))}function OP(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function lf(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function Gz(r){return r!==r}var DSt=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var Lye=_((mwn,Oye)=>{d();p();var gs=Oye.exports={},df,pf;function $z(){throw new Error("setTimeout has not been defined")}function Yz(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?df=setTimeout:df=$z}catch{df=$z}try{typeof clearTimeout=="function"?pf=clearTimeout:pf=Yz}catch{pf=Yz}})();function Nye(r){if(df===setTimeout)return setTimeout(r,0);if((df===$z||!df)&&setTimeout)return df=setTimeout,setTimeout(r,0);try{return df(r,0)}catch{try{return df.call(null,r,0)}catch{return df.call(this,r,0)}}}function OSt(r){if(pf===clearTimeout)return clearTimeout(r);if((pf===Yz||!pf)&&clearTimeout)return pf=clearTimeout,clearTimeout(r);try{return pf(r)}catch{try{return pf.call(null,r)}catch{return pf.call(this,r)}}}var Fm=[],zw=!1,Wg,LP=-1;function LSt(){!zw||!Wg||(zw=!1,Wg.length?Fm=Wg.concat(Fm):LP=-1,Fm.length&&Bye())}function Bye(){if(!zw){var r=Nye(LSt);zw=!0;for(var e=Fm.length;e;){for(Wg=Fm,Fm=[];++LP1)for(var t=1;t{b=mn(ac()),w=mn(Lye()),qSt=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=qSt});var Ir=_((qye,Jz)=>{d();p();(function(r,e){"use strict";function t(A,v){if(!A)throw new Error(v||"Assertion failed")}function n(A,v){A.super_=v;var k=function(){};k.prototype=v.prototype,A.prototype=new k,A.prototype.constructor=A}function a(A,v,k){if(a.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((v==="le"||v==="be")&&(k=v,v=10),this._init(A||0,v||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=ac().Buffer}catch{}a.isBN=function(v){return v instanceof a?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===a.wordSize&&Array.isArray(v.words)},a.max=function(v,k){return v.cmp(k)>0?v:k},a.min=function(v,k){return v.cmp(k)<0?v:k},a.prototype._init=function(v,k,O){if(typeof v=="number")return this._initNumber(v,k,O);if(typeof v=="object")return this._initArray(v,k,O);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),v=v.toString().replace(/\s+/g,"");var D=0;v[0]==="-"&&(D++,this.negative=1),D=0;D-=3)x=v[D]|v[D-1]<<8|v[D-2]<<16,this.words[B]|=x<>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);else if(O==="le")for(D=0,B=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);return this._strip()};function s(A,v){var k=A.charCodeAt(v);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;t(!1,"Invalid character in "+A)}function o(A,v,k){var O=s(A,k);return k-1>=v&&(O|=s(A,k-1)<<4),O}a.prototype._parseHex=function(v,k,O){this.length=Math.ceil((v.length-k)/6),this.words=new Array(this.length);for(var D=0;D=k;D-=2)N=o(v,k,D)<=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8;else{var U=v.length-k;for(D=U%2===0?k+1:k;D=18?(B-=18,x+=1,this.words[x]|=N>>>26):B+=8}this._strip()};function c(A,v,k,O){for(var D=0,B=0,x=Math.min(A.length,k),N=v;N=49?B=U-49+10:U>=17?B=U-17+10:B=U,t(U>=0&&B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var h=["","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"],f=[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],m=[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];a.prototype.toString=function(v,k){v=v||10,k=k|0||1;var O;if(v===16||v==="hex"){O="";for(var D=0,B=0,x=0;x>>24-D&16777215,D+=2,D>=26&&(D-=26,x--),B!==0||x!==this.length-1?O=h[6-U.length]+U+O:O=U+O}for(B!==0&&(O=B.toString(16)+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(v===(v|0)&&v>=2&&v<=36){var C=f[v],z=m[v];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var j=ee.modrn(z).toString(v);ee=ee.idivn(z),ee.isZero()?O=j+O:O=h[C-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(v,k){return this.toArrayLike(i,v,k)}),a.prototype.toArray=function(v,k){return this.toArrayLike(Array,v,k)};var y=function(v,k){return v.allocUnsafe?v.allocUnsafe(k):new v(k)};a.prototype.toArrayLike=function(v,k,O){this._strip();var D=this.byteLength(),B=O||Math.max(1,D);t(D<=B,"byte array longer than desired length"),t(B>0,"Requested array length <= 0");var x=y(v,B),N=k==="le"?"LE":"BE";return this["_toArrayLike"+N](x,D),x},a.prototype._toArrayLikeLE=function(v,k){for(var O=0,D=0,B=0,x=0;B>8&255),O>16&255),x===6?(O>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O=0&&(v[O--]=N>>8&255),O>=0&&(v[O--]=N>>16&255),x===6?(O>=0&&(v[O--]=N>>24&255),D=0,x=0):(D=N>>>24,x+=2)}if(O>=0)for(v[O--]=D;O>=0;)v[O--]=0},Math.clz32?a.prototype._countBits=function(v){return 32-Math.clz32(v)}:a.prototype._countBits=function(v){var k=v,O=0;return k>=4096&&(O+=13,k>>>=13),k>=64&&(O+=7,k>>>=7),k>=8&&(O+=4,k>>>=4),k>=2&&(O+=2,k>>>=2),O+k},a.prototype._zeroBits=function(v){if(v===0)return 26;var k=v,O=0;return(k&8191)===0&&(O+=13,k>>>=13),(k&127)===0&&(O+=7,k>>>=7),(k&15)===0&&(O+=4,k>>>=4),(k&3)===0&&(O+=2,k>>>=2),(k&1)===0&&O++,O},a.prototype.bitLength=function(){var v=this.words[this.length-1],k=this._countBits(v);return(this.length-1)*26+k};function E(A){for(var v=new Array(A.bitLength()),k=0;k>>D&1}return v}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,k=0;kv.length?this.clone().ior(v):v.clone().ior(this)},a.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},a.prototype.iuand=function(v){var k;this.length>v.length?k=v:k=this;for(var O=0;Ov.length?this.clone().iand(v):v.clone().iand(this)},a.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},a.prototype.iuxor=function(v){var k,O;this.length>v.length?(k=this,O=v):(k=v,O=this);for(var D=0;Dv.length?this.clone().ixor(v):v.clone().ixor(this)},a.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},a.prototype.inotn=function(v){t(typeof v=="number"&&v>=0);var k=Math.ceil(v/26)|0,O=v%26;this._expand(k),O>0&&k--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(v){return this.clone().inotn(v)},a.prototype.setn=function(v,k){t(typeof v=="number"&&v>=0);var O=v/26|0,D=v%26;return this._expand(O+1),k?this.words[O]=this.words[O]|1<v.length?(O=this,D=v):(O=v,D=this);for(var B=0,x=0;x>>26;for(;B!==0&&x>>26;if(this.length=O.length,B!==0)this.words[this.length]=B,this.length++;else if(O!==this)for(;xv.length?this.clone().iadd(v):v.clone().iadd(this)},a.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var k=this.iadd(v);return v.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var O=this.cmp(v);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;O>0?(D=this,B=v):(D=v,B=this);for(var x=0,N=0;N>26,this.words[N]=k&67108863;for(;x!==0&&N>26,this.words[N]=k&67108863;if(x===0&&N>>26,ee=U&67108863,j=Math.min(C,v.length-1),X=Math.max(0,C-A.length+1);X<=j;X++){var ie=C-X|0;D=A.words[ie]|0,B=v.words[X]|0,x=D*B+ee,z+=x/67108864|0,ee=x&67108863}k.words[C]=ee|0,U=z|0}return U!==0?k.words[C]=U|0:k.length--,k._strip()}var S=function(v,k,O){var D=v.words,B=k.words,x=O.words,N=0,U,C,z,ee=D[0]|0,j=ee&8191,X=ee>>>13,ie=D[1]|0,ue=ie&8191,he=ie>>>13,ke=D[2]|0,ge=ke&8191,me=ke>>>13,ze=D[3]|0,ve=ze&8191,Ae=ze>>>13,ao=D[4]|0,Tt=ao&8191,bt=ao>>>13,ci=D[5]|0,wt=ci&8191,st=ci>>>13,ui=D[6]|0,Nt=ui&8191,dt=ui>>>13,io=D[7]|0,jt=io&8191,Bt=io>>>13,ec=D[8]|0,ot=ec&8191,pt=ec>>>13,Sc=D[9]|0,Et=Sc&8191,Ct=Sc>>>13,Pc=B[0]|0,Dt=Pc&8191,It=Pc>>>13,Rc=B[1]|0,kt=Rc&8191,Ot=Rc>>>13,tc=B[2]|0,Lt=tc&8191,qt=tc>>>13,Mc=B[3]|0,At=Mc&8191,Ft=Mc>>>13,Nc=B[4]|0,St=Nc&8191,Wt=Nc>>>13,rc=B[5]|0,Je=rc&8191,at=rc>>>13,nc=B[6]|0,Ut=nc&8191,Kt=nc>>>13,nl=B[7]|0,Vt=nl&8191,Gt=nl>>>13,al=B[8]|0,$t=al&8191,Yt=al>>>13,Pu=B[9]|0,an=Pu&8191,sn=Pu>>>13;O.negative=v.negative^k.negative,O.length=19,U=Math.imul(j,Dt),C=Math.imul(j,It),C=C+Math.imul(X,Dt)|0,z=Math.imul(X,It);var Bc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Bc>>>26)|0,Bc&=67108863,U=Math.imul(ue,Dt),C=Math.imul(ue,It),C=C+Math.imul(he,Dt)|0,z=Math.imul(he,It),U=U+Math.imul(j,kt)|0,C=C+Math.imul(j,Ot)|0,C=C+Math.imul(X,kt)|0,z=z+Math.imul(X,Ot)|0;var Dc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Dc>>>26)|0,Dc&=67108863,U=Math.imul(ge,Dt),C=Math.imul(ge,It),C=C+Math.imul(me,Dt)|0,z=Math.imul(me,It),U=U+Math.imul(ue,kt)|0,C=C+Math.imul(ue,Ot)|0,C=C+Math.imul(he,kt)|0,z=z+Math.imul(he,Ot)|0,U=U+Math.imul(j,Lt)|0,C=C+Math.imul(j,qt)|0,C=C+Math.imul(X,Lt)|0,z=z+Math.imul(X,qt)|0;var Oc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Oc>>>26)|0,Oc&=67108863,U=Math.imul(ve,Dt),C=Math.imul(ve,It),C=C+Math.imul(Ae,Dt)|0,z=Math.imul(Ae,It),U=U+Math.imul(ge,kt)|0,C=C+Math.imul(ge,Ot)|0,C=C+Math.imul(me,kt)|0,z=z+Math.imul(me,Ot)|0,U=U+Math.imul(ue,Lt)|0,C=C+Math.imul(ue,qt)|0,C=C+Math.imul(he,Lt)|0,z=z+Math.imul(he,qt)|0,U=U+Math.imul(j,At)|0,C=C+Math.imul(j,Ft)|0,C=C+Math.imul(X,At)|0,z=z+Math.imul(X,Ft)|0;var Lc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Lc>>>26)|0,Lc&=67108863,U=Math.imul(Tt,Dt),C=Math.imul(Tt,It),C=C+Math.imul(bt,Dt)|0,z=Math.imul(bt,It),U=U+Math.imul(ve,kt)|0,C=C+Math.imul(ve,Ot)|0,C=C+Math.imul(Ae,kt)|0,z=z+Math.imul(Ae,Ot)|0,U=U+Math.imul(ge,Lt)|0,C=C+Math.imul(ge,qt)|0,C=C+Math.imul(me,Lt)|0,z=z+Math.imul(me,qt)|0,U=U+Math.imul(ue,At)|0,C=C+Math.imul(ue,Ft)|0,C=C+Math.imul(he,At)|0,z=z+Math.imul(he,Ft)|0,U=U+Math.imul(j,St)|0,C=C+Math.imul(j,Wt)|0,C=C+Math.imul(X,St)|0,z=z+Math.imul(X,Wt)|0;var qc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(qc>>>26)|0,qc&=67108863,U=Math.imul(wt,Dt),C=Math.imul(wt,It),C=C+Math.imul(st,Dt)|0,z=Math.imul(st,It),U=U+Math.imul(Tt,kt)|0,C=C+Math.imul(Tt,Ot)|0,C=C+Math.imul(bt,kt)|0,z=z+Math.imul(bt,Ot)|0,U=U+Math.imul(ve,Lt)|0,C=C+Math.imul(ve,qt)|0,C=C+Math.imul(Ae,Lt)|0,z=z+Math.imul(Ae,qt)|0,U=U+Math.imul(ge,At)|0,C=C+Math.imul(ge,Ft)|0,C=C+Math.imul(me,At)|0,z=z+Math.imul(me,Ft)|0,U=U+Math.imul(ue,St)|0,C=C+Math.imul(ue,Wt)|0,C=C+Math.imul(he,St)|0,z=z+Math.imul(he,Wt)|0,U=U+Math.imul(j,Je)|0,C=C+Math.imul(j,at)|0,C=C+Math.imul(X,Je)|0,z=z+Math.imul(X,at)|0;var Hp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Hp>>>26)|0,Hp&=67108863,U=Math.imul(Nt,Dt),C=Math.imul(Nt,It),C=C+Math.imul(dt,Dt)|0,z=Math.imul(dt,It),U=U+Math.imul(wt,kt)|0,C=C+Math.imul(wt,Ot)|0,C=C+Math.imul(st,kt)|0,z=z+Math.imul(st,Ot)|0,U=U+Math.imul(Tt,Lt)|0,C=C+Math.imul(Tt,qt)|0,C=C+Math.imul(bt,Lt)|0,z=z+Math.imul(bt,qt)|0,U=U+Math.imul(ve,At)|0,C=C+Math.imul(ve,Ft)|0,C=C+Math.imul(Ae,At)|0,z=z+Math.imul(Ae,Ft)|0,U=U+Math.imul(ge,St)|0,C=C+Math.imul(ge,Wt)|0,C=C+Math.imul(me,St)|0,z=z+Math.imul(me,Wt)|0,U=U+Math.imul(ue,Je)|0,C=C+Math.imul(ue,at)|0,C=C+Math.imul(he,Je)|0,z=z+Math.imul(he,at)|0,U=U+Math.imul(j,Ut)|0,C=C+Math.imul(j,Kt)|0,C=C+Math.imul(X,Ut)|0,z=z+Math.imul(X,Kt)|0;var jp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(jp>>>26)|0,jp&=67108863,U=Math.imul(jt,Dt),C=Math.imul(jt,It),C=C+Math.imul(Bt,Dt)|0,z=Math.imul(Bt,It),U=U+Math.imul(Nt,kt)|0,C=C+Math.imul(Nt,Ot)|0,C=C+Math.imul(dt,kt)|0,z=z+Math.imul(dt,Ot)|0,U=U+Math.imul(wt,Lt)|0,C=C+Math.imul(wt,qt)|0,C=C+Math.imul(st,Lt)|0,z=z+Math.imul(st,qt)|0,U=U+Math.imul(Tt,At)|0,C=C+Math.imul(Tt,Ft)|0,C=C+Math.imul(bt,At)|0,z=z+Math.imul(bt,Ft)|0,U=U+Math.imul(ve,St)|0,C=C+Math.imul(ve,Wt)|0,C=C+Math.imul(Ae,St)|0,z=z+Math.imul(Ae,Wt)|0,U=U+Math.imul(ge,Je)|0,C=C+Math.imul(ge,at)|0,C=C+Math.imul(me,Je)|0,z=z+Math.imul(me,at)|0,U=U+Math.imul(ue,Ut)|0,C=C+Math.imul(ue,Kt)|0,C=C+Math.imul(he,Ut)|0,z=z+Math.imul(he,Kt)|0,U=U+Math.imul(j,Vt)|0,C=C+Math.imul(j,Gt)|0,C=C+Math.imul(X,Vt)|0,z=z+Math.imul(X,Gt)|0;var zp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(zp>>>26)|0,zp&=67108863,U=Math.imul(ot,Dt),C=Math.imul(ot,It),C=C+Math.imul(pt,Dt)|0,z=Math.imul(pt,It),U=U+Math.imul(jt,kt)|0,C=C+Math.imul(jt,Ot)|0,C=C+Math.imul(Bt,kt)|0,z=z+Math.imul(Bt,Ot)|0,U=U+Math.imul(Nt,Lt)|0,C=C+Math.imul(Nt,qt)|0,C=C+Math.imul(dt,Lt)|0,z=z+Math.imul(dt,qt)|0,U=U+Math.imul(wt,At)|0,C=C+Math.imul(wt,Ft)|0,C=C+Math.imul(st,At)|0,z=z+Math.imul(st,Ft)|0,U=U+Math.imul(Tt,St)|0,C=C+Math.imul(Tt,Wt)|0,C=C+Math.imul(bt,St)|0,z=z+Math.imul(bt,Wt)|0,U=U+Math.imul(ve,Je)|0,C=C+Math.imul(ve,at)|0,C=C+Math.imul(Ae,Je)|0,z=z+Math.imul(Ae,at)|0,U=U+Math.imul(ge,Ut)|0,C=C+Math.imul(ge,Kt)|0,C=C+Math.imul(me,Ut)|0,z=z+Math.imul(me,Kt)|0,U=U+Math.imul(ue,Vt)|0,C=C+Math.imul(ue,Gt)|0,C=C+Math.imul(he,Vt)|0,z=z+Math.imul(he,Gt)|0,U=U+Math.imul(j,$t)|0,C=C+Math.imul(j,Yt)|0,C=C+Math.imul(X,$t)|0,z=z+Math.imul(X,Yt)|0;var Kp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,U=Math.imul(Et,Dt),C=Math.imul(Et,It),C=C+Math.imul(Ct,Dt)|0,z=Math.imul(Ct,It),U=U+Math.imul(ot,kt)|0,C=C+Math.imul(ot,Ot)|0,C=C+Math.imul(pt,kt)|0,z=z+Math.imul(pt,Ot)|0,U=U+Math.imul(jt,Lt)|0,C=C+Math.imul(jt,qt)|0,C=C+Math.imul(Bt,Lt)|0,z=z+Math.imul(Bt,qt)|0,U=U+Math.imul(Nt,At)|0,C=C+Math.imul(Nt,Ft)|0,C=C+Math.imul(dt,At)|0,z=z+Math.imul(dt,Ft)|0,U=U+Math.imul(wt,St)|0,C=C+Math.imul(wt,Wt)|0,C=C+Math.imul(st,St)|0,z=z+Math.imul(st,Wt)|0,U=U+Math.imul(Tt,Je)|0,C=C+Math.imul(Tt,at)|0,C=C+Math.imul(bt,Je)|0,z=z+Math.imul(bt,at)|0,U=U+Math.imul(ve,Ut)|0,C=C+Math.imul(ve,Kt)|0,C=C+Math.imul(Ae,Ut)|0,z=z+Math.imul(Ae,Kt)|0,U=U+Math.imul(ge,Vt)|0,C=C+Math.imul(ge,Gt)|0,C=C+Math.imul(me,Vt)|0,z=z+Math.imul(me,Gt)|0,U=U+Math.imul(ue,$t)|0,C=C+Math.imul(ue,Yt)|0,C=C+Math.imul(he,$t)|0,z=z+Math.imul(he,Yt)|0,U=U+Math.imul(j,an)|0,C=C+Math.imul(j,sn)|0,C=C+Math.imul(X,an)|0,z=z+Math.imul(X,sn)|0;var Vp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,U=Math.imul(Et,kt),C=Math.imul(Et,Ot),C=C+Math.imul(Ct,kt)|0,z=Math.imul(Ct,Ot),U=U+Math.imul(ot,Lt)|0,C=C+Math.imul(ot,qt)|0,C=C+Math.imul(pt,Lt)|0,z=z+Math.imul(pt,qt)|0,U=U+Math.imul(jt,At)|0,C=C+Math.imul(jt,Ft)|0,C=C+Math.imul(Bt,At)|0,z=z+Math.imul(Bt,Ft)|0,U=U+Math.imul(Nt,St)|0,C=C+Math.imul(Nt,Wt)|0,C=C+Math.imul(dt,St)|0,z=z+Math.imul(dt,Wt)|0,U=U+Math.imul(wt,Je)|0,C=C+Math.imul(wt,at)|0,C=C+Math.imul(st,Je)|0,z=z+Math.imul(st,at)|0,U=U+Math.imul(Tt,Ut)|0,C=C+Math.imul(Tt,Kt)|0,C=C+Math.imul(bt,Ut)|0,z=z+Math.imul(bt,Kt)|0,U=U+Math.imul(ve,Vt)|0,C=C+Math.imul(ve,Gt)|0,C=C+Math.imul(Ae,Vt)|0,z=z+Math.imul(Ae,Gt)|0,U=U+Math.imul(ge,$t)|0,C=C+Math.imul(ge,Yt)|0,C=C+Math.imul(me,$t)|0,z=z+Math.imul(me,Yt)|0,U=U+Math.imul(ue,an)|0,C=C+Math.imul(ue,sn)|0,C=C+Math.imul(he,an)|0,z=z+Math.imul(he,sn)|0;var Gp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,U=Math.imul(Et,Lt),C=Math.imul(Et,qt),C=C+Math.imul(Ct,Lt)|0,z=Math.imul(Ct,qt),U=U+Math.imul(ot,At)|0,C=C+Math.imul(ot,Ft)|0,C=C+Math.imul(pt,At)|0,z=z+Math.imul(pt,Ft)|0,U=U+Math.imul(jt,St)|0,C=C+Math.imul(jt,Wt)|0,C=C+Math.imul(Bt,St)|0,z=z+Math.imul(Bt,Wt)|0,U=U+Math.imul(Nt,Je)|0,C=C+Math.imul(Nt,at)|0,C=C+Math.imul(dt,Je)|0,z=z+Math.imul(dt,at)|0,U=U+Math.imul(wt,Ut)|0,C=C+Math.imul(wt,Kt)|0,C=C+Math.imul(st,Ut)|0,z=z+Math.imul(st,Kt)|0,U=U+Math.imul(Tt,Vt)|0,C=C+Math.imul(Tt,Gt)|0,C=C+Math.imul(bt,Vt)|0,z=z+Math.imul(bt,Gt)|0,U=U+Math.imul(ve,$t)|0,C=C+Math.imul(ve,Yt)|0,C=C+Math.imul(Ae,$t)|0,z=z+Math.imul(Ae,Yt)|0,U=U+Math.imul(ge,an)|0,C=C+Math.imul(ge,sn)|0,C=C+Math.imul(me,an)|0,z=z+Math.imul(me,sn)|0;var $p=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+($p>>>26)|0,$p&=67108863,U=Math.imul(Et,At),C=Math.imul(Et,Ft),C=C+Math.imul(Ct,At)|0,z=Math.imul(Ct,Ft),U=U+Math.imul(ot,St)|0,C=C+Math.imul(ot,Wt)|0,C=C+Math.imul(pt,St)|0,z=z+Math.imul(pt,Wt)|0,U=U+Math.imul(jt,Je)|0,C=C+Math.imul(jt,at)|0,C=C+Math.imul(Bt,Je)|0,z=z+Math.imul(Bt,at)|0,U=U+Math.imul(Nt,Ut)|0,C=C+Math.imul(Nt,Kt)|0,C=C+Math.imul(dt,Ut)|0,z=z+Math.imul(dt,Kt)|0,U=U+Math.imul(wt,Vt)|0,C=C+Math.imul(wt,Gt)|0,C=C+Math.imul(st,Vt)|0,z=z+Math.imul(st,Gt)|0,U=U+Math.imul(Tt,$t)|0,C=C+Math.imul(Tt,Yt)|0,C=C+Math.imul(bt,$t)|0,z=z+Math.imul(bt,Yt)|0,U=U+Math.imul(ve,an)|0,C=C+Math.imul(ve,sn)|0,C=C+Math.imul(Ae,an)|0,z=z+Math.imul(Ae,sn)|0;var Yp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,U=Math.imul(Et,St),C=Math.imul(Et,Wt),C=C+Math.imul(Ct,St)|0,z=Math.imul(Ct,Wt),U=U+Math.imul(ot,Je)|0,C=C+Math.imul(ot,at)|0,C=C+Math.imul(pt,Je)|0,z=z+Math.imul(pt,at)|0,U=U+Math.imul(jt,Ut)|0,C=C+Math.imul(jt,Kt)|0,C=C+Math.imul(Bt,Ut)|0,z=z+Math.imul(Bt,Kt)|0,U=U+Math.imul(Nt,Vt)|0,C=C+Math.imul(Nt,Gt)|0,C=C+Math.imul(dt,Vt)|0,z=z+Math.imul(dt,Gt)|0,U=U+Math.imul(wt,$t)|0,C=C+Math.imul(wt,Yt)|0,C=C+Math.imul(st,$t)|0,z=z+Math.imul(st,Yt)|0,U=U+Math.imul(Tt,an)|0,C=C+Math.imul(Tt,sn)|0,C=C+Math.imul(bt,an)|0,z=z+Math.imul(bt,sn)|0;var Jp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,U=Math.imul(Et,Je),C=Math.imul(Et,at),C=C+Math.imul(Ct,Je)|0,z=Math.imul(Ct,at),U=U+Math.imul(ot,Ut)|0,C=C+Math.imul(ot,Kt)|0,C=C+Math.imul(pt,Ut)|0,z=z+Math.imul(pt,Kt)|0,U=U+Math.imul(jt,Vt)|0,C=C+Math.imul(jt,Gt)|0,C=C+Math.imul(Bt,Vt)|0,z=z+Math.imul(Bt,Gt)|0,U=U+Math.imul(Nt,$t)|0,C=C+Math.imul(Nt,Yt)|0,C=C+Math.imul(dt,$t)|0,z=z+Math.imul(dt,Yt)|0,U=U+Math.imul(wt,an)|0,C=C+Math.imul(wt,sn)|0,C=C+Math.imul(st,an)|0,z=z+Math.imul(st,sn)|0;var Og=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Og>>>26)|0,Og&=67108863,U=Math.imul(Et,Ut),C=Math.imul(Et,Kt),C=C+Math.imul(Ct,Ut)|0,z=Math.imul(Ct,Kt),U=U+Math.imul(ot,Vt)|0,C=C+Math.imul(ot,Gt)|0,C=C+Math.imul(pt,Vt)|0,z=z+Math.imul(pt,Gt)|0,U=U+Math.imul(jt,$t)|0,C=C+Math.imul(jt,Yt)|0,C=C+Math.imul(Bt,$t)|0,z=z+Math.imul(Bt,Yt)|0,U=U+Math.imul(Nt,an)|0,C=C+Math.imul(Nt,sn)|0,C=C+Math.imul(dt,an)|0,z=z+Math.imul(dt,sn)|0;var Lg=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Lg>>>26)|0,Lg&=67108863,U=Math.imul(Et,Vt),C=Math.imul(Et,Gt),C=C+Math.imul(Ct,Vt)|0,z=Math.imul(Ct,Gt),U=U+Math.imul(ot,$t)|0,C=C+Math.imul(ot,Yt)|0,C=C+Math.imul(pt,$t)|0,z=z+Math.imul(pt,Yt)|0,U=U+Math.imul(jt,an)|0,C=C+Math.imul(jt,sn)|0,C=C+Math.imul(Bt,an)|0,z=z+Math.imul(Bt,sn)|0;var Oz=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Oz>>>26)|0,Oz&=67108863,U=Math.imul(Et,$t),C=Math.imul(Et,Yt),C=C+Math.imul(Ct,$t)|0,z=Math.imul(Ct,Yt),U=U+Math.imul(ot,an)|0,C=C+Math.imul(ot,sn)|0,C=C+Math.imul(pt,an)|0,z=z+Math.imul(pt,sn)|0;var Lz=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Lz>>>26)|0,Lz&=67108863,U=Math.imul(Et,an),C=Math.imul(Et,sn),C=C+Math.imul(Ct,an)|0,z=Math.imul(Ct,sn);var qz=(N+U|0)+((C&8191)<<13)|0;return N=(z+(C>>>13)|0)+(qz>>>26)|0,qz&=67108863,x[0]=Bc,x[1]=Dc,x[2]=Oc,x[3]=Lc,x[4]=qc,x[5]=Hp,x[6]=jp,x[7]=zp,x[8]=Kp,x[9]=Vp,x[10]=Gp,x[11]=$p,x[12]=Yp,x[13]=Jp,x[14]=Og,x[15]=Lg,x[16]=Oz,x[17]=Lz,x[18]=qz,N!==0&&(x[19]=N,O.length++),O};Math.imul||(S=I);function L(A,v,k){k.negative=v.negative^A.negative,k.length=A.length+v.length;for(var O=0,D=0,B=0;B>>26)|0,D+=x>>>26,x&=67108863}k.words[B]=N,O=x,x=D}return O!==0?k.words[B]=O:k.length--,k._strip()}function F(A,v,k){return L(A,v,k)}a.prototype.mulTo=function(v,k){var O,D=this.length+v.length;return this.length===10&&v.length===10?O=S(this,v,k):D<63?O=I(this,v,k):D<1024?O=L(this,v,k):O=F(this,v,k),O};function W(A,v){this.x=A,this.y=v}W.prototype.makeRBT=function(v){for(var k=new Array(v),O=a.prototype._countBits(v)-1,D=0;D>=1;return D},W.prototype.permute=function(v,k,O,D,B,x){for(var N=0;N>>1)B++;return 1<>>13,O[2*x+1]=B&8191,B=B>>>13;for(x=2*k;x>=26,O+=B/67108864|0,O+=x>>>26,this.words[D]=x&67108863}return O!==0&&(this.words[D]=O,this.length++),k?this.ineg():this},a.prototype.muln=function(v){return this.clone().imuln(v)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(v){var k=E(v);if(k.length===0)return new a(1);for(var O=this,D=0;D=0);var k=v%26,O=(v-k)/26,D=67108863>>>26-k<<26-k,B;if(k!==0){var x=0;for(B=0;B>>26-k}x&&(this.words[B]=x,this.length++)}if(O!==0){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0);var D;k?D=(k-k%26)/26:D=0;var B=v%26,x=Math.min((v-B)/26,this.length),N=67108863^67108863>>>B<x)for(this.length-=x,C=0;C=0&&(z!==0||C>=D);C--){var ee=this.words[C]|0;this.words[C]=z<<26-B|ee>>>B,z=ee&N}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(v,k,O){return t(this.negative===0),this.iushrn(v,k,O)},a.prototype.shln=function(v){return this.clone().ishln(v)},a.prototype.ushln=function(v){return this.clone().iushln(v)},a.prototype.shrn=function(v){return this.clone().ishrn(v)},a.prototype.ushrn=function(v){return this.clone().iushrn(v)},a.prototype.testn=function(v){t(typeof v=="number"&&v>=0);var k=v%26,O=(v-k)/26,D=1<=0);var k=v%26,O=(v-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(k!==0&&O++,this.length=Math.min(O,this.length),k!==0){var D=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(v){if(t(typeof v=="number"),t(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(U/67108864|0),this.words[B+O]=x&67108863}for(;B>26,this.words[B+O]=x&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,B=0;B>26,this.words[B]=x&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(v,k){var O=this.length-v.length,D=this.clone(),B=v,x=B.words[B.length-1]|0,N=this._countBits(x);O=26-N,O!==0&&(B=B.ushln(O),D.iushln(O),x=B.words[B.length-1]|0);var U=D.length-B.length,C;if(k!=="mod"){C=new a(null),C.length=U+1,C.words=new Array(C.length);for(var z=0;z=0;j--){var X=(D.words[B.length+j]|0)*67108864+(D.words[B.length+j-1]|0);for(X=Math.min(X/x|0,67108863),D._ishlnsubmul(B,X,j);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(B,1,j),D.isZero()||(D.negative^=1);C&&(C.words[j]=X)}return C&&C._strip(),D._strip(),k!=="div"&&O!==0&&D.iushrn(O),{div:C||null,mod:D}},a.prototype.divmod=function(v,k,O){if(t(!v.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,B,x;return this.negative!==0&&v.negative===0?(x=this.neg().divmod(v,k),k!=="mod"&&(D=x.div.neg()),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.iadd(v)),{div:D,mod:B}):this.negative===0&&v.negative!==0?(x=this.divmod(v.neg(),k),k!=="mod"&&(D=x.div.neg()),{div:D,mod:x.mod}):(this.negative&v.negative)!==0?(x=this.neg().divmod(v.neg(),k),k!=="div"&&(B=x.mod.neg(),O&&B.negative!==0&&B.isub(v)),{div:x.div,mod:B}):v.length>this.length||this.cmp(v)<0?{div:new a(0),mod:this}:v.length===1?k==="div"?{div:this.divn(v.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new a(this.modrn(v.words[0]))}:this._wordDiv(v,k)},a.prototype.div=function(v){return this.divmod(v,"div",!1).div},a.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},a.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},a.prototype.divRound=function(v){var k=this.divmod(v);if(k.mod.isZero())return k.div;var O=k.div.negative!==0?k.mod.isub(v):k.mod,D=v.ushrn(1),B=v.andln(1),x=O.cmp(D);return x<0||B===1&&x===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=(1<<26)%v,D=0,B=this.length-1;B>=0;B--)D=(O*D+(this.words[B]|0))%v;return k?-D:D},a.prototype.modn=function(v){return this.modrn(v)},a.prototype.idivn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+O*67108864;this.words[D]=B/v|0,O=B%v}return this._strip(),k?this.ineg():this},a.prototype.divn=function(v){return this.clone().idivn(v)},a.prototype.egcd=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=new a(0),N=new a(1),U=0;k.isEven()&&O.isEven();)k.iushrn(1),O.iushrn(1),++U;for(var C=O.clone(),z=k.clone();!k.isZero();){for(var ee=0,j=1;(k.words[0]&j)===0&&ee<26;++ee,j<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(C),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var X=0,ie=1;(O.words[0]&ie)===0&&X<26;++X,ie<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(x.isOdd()||N.isOdd())&&(x.iadd(C),N.isub(z)),x.iushrn(1),N.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(x),B.isub(N)):(O.isub(k),x.isub(D),N.isub(B))}return{a:x,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),x=O.clone();k.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(k.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(k.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(x),D.iushrn(1);for(var C=0,z=1;(O.words[0]&z)===0&&C<26;++C,z<<=1);if(C>0)for(O.iushrn(C);C-- >0;)B.isOdd()&&B.iadd(x),B.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(B)):(O.isub(k),B.isub(D))}var ee;return k.cmpn(1)===0?ee=D:ee=B,ee.cmpn(0)<0&&ee.iadd(v),ee},a.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var k=this.clone(),O=v.clone();k.negative=0,O.negative=0;for(var D=0;k.isEven()&&O.isEven();D++)k.iushrn(1),O.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=k.cmp(O);if(B<0){var x=k;k=O,O=x}else if(B===0||O.cmpn(1)===0)break;k.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(v){return this.egcd(v).a.umod(v)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(v){return this.words[0]&v},a.prototype.bincn=function(v){t(typeof v=="number");var k=v%26,O=(v-k)/26,D=1<>>26,N&=67108863,this.words[x]=N}return B!==0&&(this.words[x]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(v){var k=v<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var O;if(this.length>1)O=1;else{k&&(v=-v),t(v<=67108863,"Number is too big");var D=this.words[0]|0;O=D===v?0:Dv.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,B=v.words[O]|0;if(D!==B){DB&&(k=1);break}}return k},a.prototype.gtn=function(v){return this.cmpn(v)===1},a.prototype.gt=function(v){return this.cmp(v)===1},a.prototype.gten=function(v){return this.cmpn(v)>=0},a.prototype.gte=function(v){return this.cmp(v)>=0},a.prototype.ltn=function(v){return this.cmpn(v)===-1},a.prototype.lt=function(v){return this.cmp(v)===-1},a.prototype.lten=function(v){return this.cmpn(v)<=0},a.prototype.lte=function(v){return this.cmp(v)<=0},a.prototype.eqn=function(v){return this.cmpn(v)===0},a.prototype.eq=function(v){return this.cmp(v)===0},a.red=function(v){return new T(v)},a.prototype.toRed=function(v){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(v){return this.red=v,this},a.prototype.forceRed=function(v){return t(!this.red,"Already a number in reduction context"),this._forceRed(v)},a.prototype.redAdd=function(v){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},a.prototype.redIAdd=function(v){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},a.prototype.redSub=function(v){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},a.prototype.redISub=function(v){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},a.prototype.redShl=function(v){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},a.prototype.redMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},a.prototype.redIMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(v){return t(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var G={k256:null,p224:null,p192:null,p25519:null};function K(A,v){this.name=A,this.p=new a(v,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var v=new a(null);return v.words=new Array(Math.ceil(this.n/13)),v},K.prototype.ireduce=function(v){var k=v,O;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),O=k.bitLength();while(O>this.n);var D=O0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},K.prototype.split=function(v,k){v.iushrn(this.n,0,k)},K.prototype.imulK=function(v){return v.imul(this.k)};function H(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(H,K),H.prototype.split=function(v,k){for(var O=4194303,D=Math.min(v.length,9),B=0;B>>22,x=N}x>>>=22,v.words[B-10]=x,x===0&&v.length>10?v.length-=10:v.length-=9},H.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var k=0,O=0;O>>=26,v.words[O]=B,k=D}return k!==0&&(v.words[v.length++]=k),v},a._prime=function(v){if(G[v])return G[v];var k;if(v==="k256")k=new H;else if(v==="p224")k=new V;else if(v==="p192")k=new J;else if(v==="p25519")k=new q;else throw new Error("Unknown prime "+v);return G[v]=k,k};function T(A){if(typeof A=="string"){var v=a._prime(A);this.m=v.p,this.prime=v}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}T.prototype._verify1=function(v){t(v.negative===0,"red works only with positives"),t(v.red,"red works only with red numbers")},T.prototype._verify2=function(v,k){t((v.negative|k.negative)===0,"red works only with positives"),t(v.red&&v.red===k.red,"red works only with red numbers")},T.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(u(v,v.umod(this.m)._forceRed(this)),v)},T.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},T.prototype.add=function(v,k){this._verify2(v,k);var O=v.add(k);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},T.prototype.iadd=function(v,k){this._verify2(v,k);var O=v.iadd(k);return O.cmp(this.m)>=0&&O.isub(this.m),O},T.prototype.sub=function(v,k){this._verify2(v,k);var O=v.sub(k);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},T.prototype.isub=function(v,k){this._verify2(v,k);var O=v.isub(k);return O.cmpn(0)<0&&O.iadd(this.m),O},T.prototype.shl=function(v,k){return this._verify1(v),this.imod(v.ushln(k))},T.prototype.imul=function(v,k){return this._verify2(v,k),this.imod(v.imul(k))},T.prototype.mul=function(v,k){return this._verify2(v,k),this.imod(v.mul(k))},T.prototype.isqr=function(v){return this.imul(v,v.clone())},T.prototype.sqr=function(v){return this.mul(v,v)},T.prototype.sqrt=function(v){if(v.isZero())return v.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(v,O)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);t(!D.isZero());var x=new a(1).toRed(this),N=x.redNeg(),U=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,U).cmp(N)!==0;)C.redIAdd(N);for(var z=this.pow(C,D),ee=this.pow(v,D.addn(1).iushrn(1)),j=this.pow(v,D),X=B;j.cmp(x)!==0;){for(var ie=j,ue=0;ie.cmp(x)!==0;ue++)ie=ie.redSqr();t(ue=0;B--){for(var z=k.words[B],ee=C-1;ee>=0;ee--){var j=z>>ee&1;if(x!==D[0]&&(x=this.sqr(x)),j===0&&N===0){U=0;continue}N<<=1,N|=j,U++,!(U!==O&&(B!==0||ee!==0))&&(x=this.mul(x,D[N]),U=0,N=0)}C=26}return x},T.prototype.convertTo=function(v){var k=v.umod(this.m);return k===v?k.clone():k},T.prototype.convertFrom=function(v){var k=v.clone();return k.red=null,k},a.mont=function(v){return new P(v)};function P(A){T.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}n(P,T),P.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},P.prototype.convertFrom=function(v){var k=this.imod(v.mul(this.rinv));return k.red=null,k},P.prototype.imul=function(v,k){if(v.isZero()||k.isZero())return v.words[0]=0,v.length=1,v;var O=v.imul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},P.prototype.mul=function(v,k){if(v.isZero()||k.isZero())return new a(0)._forceRed(this);var O=v.mul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),x=B;return B.cmp(this.m)>=0?x=B.isub(this.m):B.cmpn(0)<0&&(x=B.iadd(this.m)),x._forceRed(this)},P.prototype.invm=function(v){var k=this.imod(v._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Jz>"u"||Jz,qye)});var Fye=_(qP=>{"use strict";d();p();Object.defineProperty(qP,"__esModule",{value:!0});qP.version=void 0;qP.version="logger/5.7.0"});var Zt=_(ff=>{"use strict";d();p();Object.defineProperty(ff,"__esModule",{value:!0});ff.Logger=ff.ErrorCode=ff.LogLevel=void 0;var Wye=!1,Uye=!1,FP={debug:1,default:2,info:2,warning:3,error:4,off:5},Hye=FP.default,FSt=Fye(),Qz=null;function WSt(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var jye=WSt(),Kye;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(Kye=ff.LogLevel||(ff.LogLevel={}));var hf;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(hf=ff.ErrorCode||(ff.ErrorCode={}));var zye="0123456789abcdef",USt=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();FP[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Hye>FP[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],h+=zye[l[f]&15];a.push(u+"=Uint8Array(0x"+h+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case hf.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case hf.CALL_EXCEPTION:case hf.INSUFFICIENT_FUNDS:case hf.MISSING_NEW:case hf.NONCE_EXPIRED:case hf.REPLACEMENT_UNDERPRICED:case hf.TRANSACTION_REPLACED:case hf.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),jye&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:jye})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return Qz||(Qz=new r(FSt.version)),Qz},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Wye){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}Uye=!!e,Wye=!!t},r.setLogLevel=function(e){var t=FP[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}Hye=t},r.from=function(e){return new r(e)},r.errors=hf,r.levels=Kye,r}();ff.Logger=USt});var Vye=_(WP=>{"use strict";d();p();Object.defineProperty(WP,"__esModule",{value:!0});WP.version=void 0;WP.version="bytes/5.7.0"});var wr=_(Xr=>{"use strict";d();p();Object.defineProperty(Xr,"__esModule",{value:!0});Xr.joinSignature=Xr.splitSignature=Xr.hexZeroPad=Xr.hexStripZeros=Xr.hexValue=Xr.hexConcat=Xr.hexDataSlice=Xr.hexDataLength=Xr.hexlify=Xr.isHexString=Xr.zeroPad=Xr.stripZeros=Xr.concat=Xr.arrayify=Xr.isBytes=Xr.isBytesLike=void 0;var HSt=Zt(),jSt=Vye(),ts=new HSt.Logger(jSt.version);function $ye(r){return!!r.toHexString}function Kw(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return Kw(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function Yye(r){return Qp(r)&&!(r.length%2)||HP(r)}Xr.isBytesLike=Yye;function Gye(r){return typeof r=="number"&&r==r&&r%1===0}function HP(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!Gye(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Xr.isBytes=HP;function Ug(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),Kw(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),$ye(r)&&(r=r.toHexString()),Qp(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":ts.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&ts.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),Kw(t)}Xr.zeroPad=Qye;function Qp(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Xr.isHexString=Qp;var Zz="0123456789abcdef";function Fc(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=Zz[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),$ye(r))return r.toHexString();if(Qp(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":ts.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(HP(r)){for(var n="0x",a=0;a>4]+Zz[i&15]}return n}return ts.throwArgumentError("invalid hexlify value","value",r)}Xr.hexlify=Fc;function KSt(r){if(typeof r!="string")r=Fc(r);else if(!Qp(r)||r.length%2)return null;return(r.length-2)/2}Xr.hexDataLength=KSt;function VSt(r,e,t){return typeof r!="string"?r=Fc(r):(!Qp(r)||r.length%2)&&ts.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Xr.hexDataSlice=VSt;function GSt(r){var e="0x";return r.forEach(function(t){e+=Fc(t).substring(2)}),e}Xr.hexConcat=GSt;function $St(r){var e=Zye(Fc(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Xr.hexValue=$St;function Zye(r){typeof r!="string"&&(r=Fc(r)),Qp(r)||ts.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&ts.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Xr.hexZeroPad=UP;function Xye(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Yye(r)){var t=Ug(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=Fc(t.slice(0,32)),e.s=Fc(t.slice(32,64))):t.length===65?(e.r=Fc(t.slice(0,32)),e.s=Fc(t.slice(32,64)),e.v=t[64]):ts.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:ts.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=Fc(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=Qye(Ug(e._vs),32);e._vs=Fc(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&ts.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=Fc(n);e.s==null?e.s=i:e.s!==i&&ts.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?ts.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&ts.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!Qp(e.r)?ts.throwArgumentError("signature missing or invalid r","signature",r):e.r=UP(e.r,32),e.s==null||!Qp(e.s)?ts.throwArgumentError("signature missing or invalid s","signature",r):e.s=UP(e.s,32);var o=Ug(e.s);o[0]>=128&&ts.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=Fc(o);e._vs&&(Qp(e._vs)||ts.throwArgumentError("signature invalid _vs","signature",r),e._vs=UP(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&ts.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Xr.splitSignature=Xye;function YSt(r){return r=Xye(r),Fc(Jye([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Xr.joinSignature=YSt});var Xz=_(jP=>{"use strict";d();p();Object.defineProperty(jP,"__esModule",{value:!0});jP.version=void 0;jP.version="bignumber/5.7.0"});var KP=_(kd=>{"use strict";d();p();var JSt=kd&&kd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(kd,"__esModule",{value:!0});kd._base16To36=kd._base36To16=kd.BigNumber=kd.isBigNumberish=void 0;var QSt=JSt(Ir()),nE=QSt.default.BN,Vw=wr(),Gw=Zt(),ZSt=Xz(),Um=new Gw.Logger(ZSt.version),eK={},e1e=9007199254740991;function XSt(r){return r!=null&&(zP.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,Vw.isHexString)(r)||typeof r=="bigint"||(0,Vw.isBytes)(r))}kd.isBigNumberish=XSt;var t1e=!1,zP=function(){function r(e,t){e!==eK&&Um.throwError("cannot call constructor directly; use BigNumber.from",Gw.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return sl(Wr(this).fromTwos(e))},r.prototype.toTwos=function(e){return sl(Wr(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return sl(Wr(this).add(Wr(e)))},r.prototype.sub=function(e){return sl(Wr(this).sub(Wr(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&Id("division-by-zero","div"),sl(Wr(this).div(Wr(e)))},r.prototype.mul=function(e){return sl(Wr(this).mul(Wr(e)))},r.prototype.mod=function(e){var t=Wr(e);return t.isNeg()&&Id("division-by-zero","mod"),sl(Wr(this).umod(t))},r.prototype.pow=function(e){var t=Wr(e);return t.isNeg()&&Id("negative-power","pow"),sl(Wr(this).pow(t))},r.prototype.and=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Id("unbound-bitwise-result","and"),sl(Wr(this).and(t))},r.prototype.or=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Id("unbound-bitwise-result","or"),sl(Wr(this).or(t))},r.prototype.xor=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Id("unbound-bitwise-result","xor"),sl(Wr(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&Id("negative-width","mask"),sl(Wr(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&Id("negative-width","shl"),sl(Wr(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&Id("negative-width","shr"),sl(Wr(this).shrn(e))},r.prototype.eq=function(e){return Wr(this).eq(Wr(e))},r.prototype.lt=function(e){return Wr(this).lt(Wr(e))},r.prototype.lte=function(e){return Wr(this).lte(Wr(e))},r.prototype.gt=function(e){return Wr(this).gt(Wr(e))},r.prototype.gte=function(e){return Wr(this).gte(Wr(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return Wr(this).isZero()},r.prototype.toNumber=function(){try{return Wr(this).toNumber()}catch{Id("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Um.throwError("this platform does not support BigInt",Gw.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?t1e||(t1e=!0,Um.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Um.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Gw.Logger.errors.UNEXPECTED_ARGUMENT,{}):Um.throwError("BigNumber.toString does not accept parameters",Gw.Logger.errors.UNEXPECTED_ARGUMENT,{})),Wr(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(eK,aE(e)):e.match(/^-?[0-9]+$/)?new r(eK,aE(new nE(e))):Um.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Id("underflow","BigNumber.from",e),(e>=e1e||e<=-e1e)&&Id("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,Vw.isBytes)(t))return r.from((0,Vw.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,Vw.isHexString)(n)||n[0]==="-"&&(0,Vw.isHexString)(n.substring(1))))return r.from(n)}return Um.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();kd.BigNumber=zP;function aE(r){if(typeof r!="string")return aE(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Um.throwArgumentError("invalid hex","value",r),r=aE(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function sl(r){return zP.from(aE(r))}function Wr(r){var e=zP.from(r).toHexString();return e[0]==="-"?new nE("-"+e.substring(3),16):new nE(e.substring(2),16)}function Id(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Um.throwError(r,Gw.Logger.errors.NUMERIC_FAULT,n)}function ePt(r){return new nE(r,36).toString(16)}kd._base36To16=ePt;function tPt(r){return new nE(r,16).toString(36)}kd._base16To36=tPt});var s1e=_(yf=>{"use strict";d();p();Object.defineProperty(yf,"__esModule",{value:!0});yf.FixedNumber=yf.FixedFormat=yf.parseFixed=yf.formatFixed=void 0;var VP=wr(),oE=Zt(),rPt=Xz(),Ru=new oE.Logger(rPt.version),Hm=KP(),iE={},n1e=Hm.BigNumber.from(0),a1e=Hm.BigNumber.from(-1);function i1e(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Ru.throwError(r,oE.Logger.errors.NUMERIC_FAULT,a)}var sE="0";for(;sE.length<256;)sE+=sE;function tK(r){if(typeof r!="number")try{r=Hm.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+sE.substring(0,r):Ru.throwArgumentError("invalid decimal size","decimals",r)}function GP(r,e){e==null&&(e=0);var t=tK(e);r=Hm.BigNumber.from(r);var n=r.lt(n1e);n&&(r=r.mul(a1e));for(var a=r.mod(t).toString();a.length2&&Ru.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&i1e("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Ru.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(iE,t,n,a)},r}();yf.FixedFormat=$P;var rK=function(){function r(e,t,n,a){e!==iE&&Ru.throwError("cannot use FixedNumber constructor; use FixedNumber.from",oE.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Ru.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=mf(this._value,this.format.decimals),n=mf(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(r1e.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(r1e.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Ru.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+sE.substring(0,e),this.format),a=nPt.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Ru.throwArgumentError("invalid byte width","width",e);var t=Hm.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,VP.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,Hm.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(GP(e,t),$P.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=$P.from(t),a=mf(e,n.decimals);!n.signed&&a.lt(n1e)&&i1e("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,VP.hexZeroPad)(i,n.width/8));var s=GP(a,n.decimals);return new r(iE,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=$P.from(t);if((0,VP.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=Hm.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=GP(a,n.decimals);return new r(iE,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,VP.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==oE.Logger.errors.INVALID_ARGUMENT)throw n}return Ru.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();yf.FixedNumber=rK;var r1e=rK.from(1),nPt=rK.from("0.5")});var Os=_(Wc=>{"use strict";d();p();Object.defineProperty(Wc,"__esModule",{value:!0});Wc._base36To16=Wc._base16To36=Wc.parseFixed=Wc.FixedNumber=Wc.FixedFormat=Wc.formatFixed=Wc.BigNumber=void 0;var aPt=KP();Object.defineProperty(Wc,"BigNumber",{enumerable:!0,get:function(){return aPt.BigNumber}});var YP=s1e();Object.defineProperty(Wc,"formatFixed",{enumerable:!0,get:function(){return YP.formatFixed}});Object.defineProperty(Wc,"FixedFormat",{enumerable:!0,get:function(){return YP.FixedFormat}});Object.defineProperty(Wc,"FixedNumber",{enumerable:!0,get:function(){return YP.FixedNumber}});Object.defineProperty(Wc,"parseFixed",{enumerable:!0,get:function(){return YP.parseFixed}});var o1e=KP();Object.defineProperty(Wc,"_base16To36",{enumerable:!0,get:function(){return o1e._base16To36}});Object.defineProperty(Wc,"_base36To16",{enumerable:!0,get:function(){return o1e._base36To16}})});var c1e=_(JP=>{"use strict";d();p();Object.defineProperty(JP,"__esModule",{value:!0});JP.version=void 0;JP.version="properties/5.7.0"});var Aa=_(Ls=>{"use strict";d();p();var iPt=Ls&&Ls.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},sPt=Ls&&Ls.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(XP,"__esModule",{value:!0});XP.version=void 0;XP.version="abi/5.7.0"});var s7=_(nr=>{"use strict";d();p();var n7=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.ErrorFragment=nr.FunctionFragment=nr.ConstructorFragment=nr.EventFragment=nr.Fragment=nr.ParamType=nr.FormatTypes=void 0;var sK=Os(),yPt=Aa(),a7=Zt(),gPt=$w(),Kr=new a7.Logger(gPt.version),Hg={},d1e={calldata:!0,memory:!0,storage:!0},bPt={calldata:!0,memory:!0};function e7(r,e){if(r==="bytes"||r==="string"){if(d1e[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&bPt[e])return!0;return(d1e[e]||e==="payable")&&Kr.throwArgumentError("invalid modifier","name",e),!1}function vPt(r,e){var t=r;function n(h){Kr.throwArgumentError("unexpected character at position "+h,"param",r)}r=r.replace(/\s/g," ");function a(h){var f={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(f.indexed=!1),f}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&Kr.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||Kr.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=sK.BigNumber.from(t[1]),t[0]):r}function f1e(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function m1e(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&Kr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&Kr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&Kr.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&Kr.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&Kr.throwArgumentError("unable to determine stateMutability","value",r),e}var r7=function(r){n7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||Kr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===nr.FormatTypes.sighash&&Kr.throwError("cannot format a constructor for sighash",a7.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&Kr.throwArgumentError("invalid constructor object","value",t);var n=m1e(t);n.constant&&Kr.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(jg.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?sK.BigNumber.from(t.gas):null};return new e(Hg,a)},e.fromString=function(t){var n={type:"constructor"};t=h1e(t,n);var a=t.match(lE);return(!a||a[1].trim()!=="constructor")&&Kr.throwArgumentError("invalid constructor string","value",t),n.inputs=cE(a[2].trim(),!1),f1e(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(i7);nr.ConstructorFragment=r7;var aK=function(r){n7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||Kr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",t!==nr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&Kr.throwArgumentError("invalid function object","value",t);var n=m1e(t),a={type:t.type,name:uE(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(jg.fromObject):[],outputs:t.outputs?t.outputs.map(jg.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?sK.BigNumber.from(t.gas):null};return new e(Hg,a)},e.fromString=function(t){var n={type:"function"};t=h1e(t,n);var a=t.split(" returns ");a.length>2&&Kr.throwArgumentError("invalid function string","value",t);var i=a[0].match(lE);if(i||Kr.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&uE(n.name),n.inputs=cE(i[2],!1),f1e(i[3].trim(),n),a.length>1){var s=a[1].match(lE);(s[1].trim()!=""||s[3].trim()!="")&&Kr.throwArgumentError("unexpected tokens","value",t),n.outputs=cE(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(r7);nr.FunctionFragment=aK;function p1e(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Kr.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var iK=function(r){n7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||Kr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&Kr.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:uE(t.name),inputs:t.inputs?t.inputs.map(jg.fromObject):[]};return p1e(new e(Hg,n))},e.fromString=function(t){var n={type:"error"},a=t.match(lE);return a||Kr.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&uE(n.name),n.inputs=cE(a[2],!1),p1e(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(i7);nr.ErrorFragment=iK;function Yw(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var xPt=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function uE(r){return(!r||!r.match(xPt))&&Kr.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var lE=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function _Pt(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";d();p();Object.defineProperty(gf,"__esModule",{value:!0});gf.Reader=gf.Writer=gf.Coder=gf.checkResultErrors=void 0;var hy=wr(),y1e=Os(),dE=Aa(),oK=Zt(),TPt=$w(),cK=new oK.Logger(TPt.version);function EPt(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}gf.checkResultErrors=EPt;var CPt=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){cK.throwArgumentError(e,this.localName,t)},r}();gf.Coder=CPt;var IPt=function(){function r(e){(0,dE.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,hy.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,hy.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,hy.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,hy.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,hy.arrayify)(y1e.BigNumber.from(e));return t.length>this.wordSize&&cK.throwError("value out-of-bounds",oK.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,hy.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();gf.Writer=IPt;var kPt=function(){function r(e,t,n,a){(0,dE.defineReadOnly)(this,"_data",(0,hy.arrayify)(e)),(0,dE.defineReadOnly)(this,"wordSize",t||32),(0,dE.defineReadOnly)(this,"_coerceFunc",n),(0,dE.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,hy.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:cK.throwError("data out-of-bounds",oK.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return y1e.BigNumber.from(this.readBytes(this.wordSize))},r}();gf.Reader=kPt});var uK=_((s3n,o7)=>{d();p();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof o7=="object"&&o7.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],E=[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],I=[224,256,384,512],S=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],F={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(j){return Object.prototype.toString.call(j)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(j){return typeof j=="object"&&j.buffer&&j.buffer.constructor===ArrayBuffer});for(var W=function(j,X,ie){return function(ue){return new C(j,X,j).update(ue)[ie]()}},G=function(j,X,ie){return function(ue,he){return new C(j,X,he).update(ue)[ie]()}},K=function(j,X,ie){return function(ue,he,ke,ge){return v["cshake"+j].update(ue,he,ke,ge)[ie]()}},H=function(j,X,ie){return function(ue,he,ke,ge){return v["kmac"+j].update(ue,he,ke,ge)[ie]()}},V=function(j,X,ie,ue){for(var he=0;he>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}C.prototype.update=function(j){if(this.finalized)throw new Error(e);var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,he=this.byteCount,ke=j.length,ge=this.blockCount,me=0,ze=this.s,ve,Ae;me>2]|=j[me]<>2]|=Ae<>2]|=(192|Ae>>6)<>2]|=(128|Ae&63)<=57344?(ue[ve>>2]|=(224|Ae>>12)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<>2]|=(240|Ae>>18)<>2]|=(128|Ae>>12&63)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<=he){for(this.start=ve-he,this.block=ue[ge],ve=0;ve>8,ie=j&255;ie>0;)he.unshift(ie),j=j>>8,ie=j&255,++ue;return X?he.push(ue):he.unshift(ue),this.update(he),he.length},C.prototype.encodeString=function(j){var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,he=j.length;if(X)ue=he;else for(var ke=0;ke=57344?ue+=3:(ge=65536+((ge&1023)<<10|j.charCodeAt(++ke)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update(j),ue},C.prototype.bytepad=function(j,X){for(var ie=this.encode(X),ue=0;ue>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(j[0]=j[ie],X=1;X>4&15]+u[me&15]+u[me>>12&15]+u[me>>8&15]+u[me>>20&15]+u[me>>16&15]+u[me>>28&15]+u[me>>24&15];ke%j===0&&(ee(X),he=0)}return ue&&(me=X[he],ge+=u[me>>4&15]+u[me&15],ue>1&&(ge+=u[me>>12&15]+u[me>>8&15]),ue>2&&(ge+=u[me>>20&15]+u[me>>16&15])),ge},C.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,X=this.s,ie=this.outputBlocks,ue=this.extraBytes,he=0,ke=0,ge=this.outputBits>>3,me;ue?me=new ArrayBuffer(ie+1<<2):me=new ArrayBuffer(ge);for(var ze=new Uint32Array(me);ke>8&255,ge[me+2]=ze>>16&255,ge[me+3]=ze>>24&255;ke%j===0&&ee(X)}return ue&&(me=ke<<2,ze=X[he],ge[me]=ze&255,ue>1&&(ge[me+1]=ze>>8&255),ue>2&&(ge[me+2]=ze>>16&255)),ge};function z(j,X,ie){C.call(this,j,X,ie)}z.prototype=new C,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),C.prototype.finalize.call(this)};var ee=function(j){var X,ie,ue,he,ke,ge,me,ze,ve,Ae,ao,Tt,bt,ci,wt,st,ui,Nt,dt,io,jt,Bt,ec,ot,pt,Sc,Et,Ct,Pc,Dt,It,Rc,kt,Ot,tc,Lt,qt,Mc,At,Ft,Nc,St,Wt,rc,Je,at,nc,Ut,Kt,nl,Vt,Gt,al,$t,Yt,Pu,an,sn,Bc,Dc,Oc,Lc,qc;for(ue=0;ue<48;ue+=2)he=j[0]^j[10]^j[20]^j[30]^j[40],ke=j[1]^j[11]^j[21]^j[31]^j[41],ge=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],ze=j[4]^j[14]^j[24]^j[34]^j[44],ve=j[5]^j[15]^j[25]^j[35]^j[45],Ae=j[6]^j[16]^j[26]^j[36]^j[46],ao=j[7]^j[17]^j[27]^j[37]^j[47],Tt=j[8]^j[18]^j[28]^j[38]^j[48],bt=j[9]^j[19]^j[29]^j[39]^j[49],X=Tt^(ge<<1|me>>>31),ie=bt^(me<<1|ge>>>31),j[0]^=X,j[1]^=ie,j[10]^=X,j[11]^=ie,j[20]^=X,j[21]^=ie,j[30]^=X,j[31]^=ie,j[40]^=X,j[41]^=ie,X=he^(ze<<1|ve>>>31),ie=ke^(ve<<1|ze>>>31),j[2]^=X,j[3]^=ie,j[12]^=X,j[13]^=ie,j[22]^=X,j[23]^=ie,j[32]^=X,j[33]^=ie,j[42]^=X,j[43]^=ie,X=ge^(Ae<<1|ao>>>31),ie=me^(ao<<1|Ae>>>31),j[4]^=X,j[5]^=ie,j[14]^=X,j[15]^=ie,j[24]^=X,j[25]^=ie,j[34]^=X,j[35]^=ie,j[44]^=X,j[45]^=ie,X=ze^(Tt<<1|bt>>>31),ie=ve^(bt<<1|Tt>>>31),j[6]^=X,j[7]^=ie,j[16]^=X,j[17]^=ie,j[26]^=X,j[27]^=ie,j[36]^=X,j[37]^=ie,j[46]^=X,j[47]^=ie,X=Ae^(he<<1|ke>>>31),ie=ao^(ke<<1|he>>>31),j[8]^=X,j[9]^=ie,j[18]^=X,j[19]^=ie,j[28]^=X,j[29]^=ie,j[38]^=X,j[39]^=ie,j[48]^=X,j[49]^=ie,ci=j[0],wt=j[1],at=j[11]<<4|j[10]>>>28,nc=j[10]<<4|j[11]>>>28,Ct=j[20]<<3|j[21]>>>29,Pc=j[21]<<3|j[20]>>>29,Dc=j[31]<<9|j[30]>>>23,Oc=j[30]<<9|j[31]>>>23,St=j[40]<<18|j[41]>>>14,Wt=j[41]<<18|j[40]>>>14,Ot=j[2]<<1|j[3]>>>31,tc=j[3]<<1|j[2]>>>31,st=j[13]<<12|j[12]>>>20,ui=j[12]<<12|j[13]>>>20,Ut=j[22]<<10|j[23]>>>22,Kt=j[23]<<10|j[22]>>>22,Dt=j[33]<<13|j[32]>>>19,It=j[32]<<13|j[33]>>>19,Lc=j[42]<<2|j[43]>>>30,qc=j[43]<<2|j[42]>>>30,$t=j[5]<<30|j[4]>>>2,Yt=j[4]<<30|j[5]>>>2,Lt=j[14]<<6|j[15]>>>26,qt=j[15]<<6|j[14]>>>26,Nt=j[25]<<11|j[24]>>>21,dt=j[24]<<11|j[25]>>>21,nl=j[34]<<15|j[35]>>>17,Vt=j[35]<<15|j[34]>>>17,Rc=j[45]<<29|j[44]>>>3,kt=j[44]<<29|j[45]>>>3,ot=j[6]<<28|j[7]>>>4,pt=j[7]<<28|j[6]>>>4,Pu=j[17]<<23|j[16]>>>9,an=j[16]<<23|j[17]>>>9,Mc=j[26]<<25|j[27]>>>7,At=j[27]<<25|j[26]>>>7,io=j[36]<<21|j[37]>>>11,jt=j[37]<<21|j[36]>>>11,Gt=j[47]<<24|j[46]>>>8,al=j[46]<<24|j[47]>>>8,rc=j[8]<<27|j[9]>>>5,Je=j[9]<<27|j[8]>>>5,Sc=j[18]<<20|j[19]>>>12,Et=j[19]<<20|j[18]>>>12,sn=j[29]<<7|j[28]>>>25,Bc=j[28]<<7|j[29]>>>25,Ft=j[38]<<8|j[39]>>>24,Nc=j[39]<<8|j[38]>>>24,Bt=j[48]<<14|j[49]>>>18,ec=j[49]<<14|j[48]>>>18,j[0]=ci^~st&Nt,j[1]=wt^~ui&dt,j[10]=ot^~Sc&Ct,j[11]=pt^~Et&Pc,j[20]=Ot^~Lt&Mc,j[21]=tc^~qt&At,j[30]=rc^~at&Ut,j[31]=Je^~nc&Kt,j[40]=$t^~Pu&sn,j[41]=Yt^~an&Bc,j[2]=st^~Nt&io,j[3]=ui^~dt&jt,j[12]=Sc^~Ct&Dt,j[13]=Et^~Pc&It,j[22]=Lt^~Mc&Ft,j[23]=qt^~At&Nc,j[32]=at^~Ut&nl,j[33]=nc^~Kt&Vt,j[42]=Pu^~sn&Dc,j[43]=an^~Bc&Oc,j[4]=Nt^~io&Bt,j[5]=dt^~jt&ec,j[14]=Ct^~Dt&Rc,j[15]=Pc^~It&kt,j[24]=Mc^~Ft&St,j[25]=At^~Nc&Wt,j[34]=Ut^~nl&Gt,j[35]=Kt^~Vt&al,j[44]=sn^~Dc&Lc,j[45]=Bc^~Oc&qc,j[6]=io^~Bt&ci,j[7]=jt^~ec&wt,j[16]=Dt^~Rc&ot,j[17]=It^~kt&pt,j[26]=Ft^~St&Ot,j[27]=Nc^~Wt&tc,j[36]=nl^~Gt&rc,j[37]=Vt^~al&Je,j[46]=Dc^~Lc&$t,j[47]=Oc^~qc&Yt,j[8]=Bt^~ci&st,j[9]=ec^~wt&ui,j[18]=Rc^~ot&Sc,j[19]=kt^~pt&Et,j[28]=St^~Ot&Lt,j[29]=Wt^~tc&qt,j[38]=Gt^~rc&at,j[39]=al^~Je&nc,j[48]=Lc^~$t&Pu,j[49]=qc^~Yt&an,j[0]^=E[ue],j[1]^=E[ue+1]};if(s)o7.exports=v;else{for(O=0;O{"use strict";d();p();var APt=Jw&&Jw.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jw,"__esModule",{value:!0});Jw.keccak256=void 0;var SPt=APt(uK()),PPt=wr();function RPt(r){return"0x"+SPt.default.keccak_256((0,PPt.arrayify)(r))}Jw.keccak256=RPt});var g1e=_(c7=>{"use strict";d();p();Object.defineProperty(c7,"__esModule",{value:!0});c7.version=void 0;c7.version="rlp/5.7.0"});var u7=_(Qw=>{"use strict";d();p();Object.defineProperty(Qw,"__esModule",{value:!0});Qw.decode=Qw.encode=void 0;var zg=wr(),jm=Zt(),MPt=g1e(),bf=new jm.Logger(MPt.version);function b1e(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function v1e(r,e,t){for(var n=0,a=0;ae+1+n&&bf.throwError("child data too short",jm.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function _1e(r,e){if(r.length===0&&bf.throwError("data too short",jm.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&bf.throwError("data short segment too short",jm.Logger.errors.BUFFER_OVERRUN,{});var n=v1e(r,e+1,t);return e+1+t+n>r.length&&bf.throwError("data long segment too short",jm.Logger.errors.BUFFER_OVERRUN,{}),w1e(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&bf.throwError("data array too short",jm.Logger.errors.BUFFER_OVERRUN,{}),w1e(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&bf.throwError("data array too short",jm.Logger.errors.BUFFER_OVERRUN,{});var i=v1e(r,e+1,t);e+1+t+i>r.length&&bf.throwError("data array too short",jm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,zg.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&bf.throwError("data too short",jm.Logger.errors.BUFFER_OVERRUN,{});var s=(0,zg.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,zg.hexlify)(r[e])}}function BPt(r){var e=(0,zg.arrayify)(r),t=_1e(e,0);return t.consumed!==e.length&&bf.throwArgumentError("invalid rlp data","data",r),t.result}Qw.decode=BPt});var T1e=_(l7=>{"use strict";d();p();Object.defineProperty(l7,"__esModule",{value:!0});l7.version=void 0;l7.version="address/5.7.0"});var Pd=_(Sd=>{"use strict";d();p();Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getCreate2Address=Sd.getContractAddress=Sd.getIcapAddress=Sd.isAddress=Sd.getAddress=void 0;var zm=wr(),lK=Os(),dK=jl(),DPt=u7(),OPt=Zt(),LPt=T1e(),fy=new OPt.Logger(LPt.version);function E1e(r){(0,zm.isHexString)(r,20)||fy.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,zm.arrayify)((0,dK.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var qPt=9007199254740991;function FPt(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var pK={};for(Zp=0;Zp<10;Zp++)pK[String(Zp)]=String(Zp);var Zp;for(Zp=0;Zp<26;Zp++)pK[String.fromCharCode(65+Zp)]=String(10+Zp);var Zp,C1e=Math.floor(FPt(qPt));function I1e(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return pK[a]}).join("");e.length>=C1e;){var t=e.substring(0,C1e);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function Kg(r){var e=null;if(typeof r!="string"&&fy.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=E1e(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&fy.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==I1e(r)&&fy.throwArgumentError("bad icap checksum","address",r),e=(0,lK._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=E1e("0x"+e)}else fy.throwArgumentError("invalid address","address",r);return e}Sd.getAddress=Kg;function WPt(r){try{return Kg(r),!0}catch{}return!1}Sd.isAddress=WPt;function UPt(r){for(var e=(0,lK._base16To36)(Kg(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+I1e("XE00"+e)+e}Sd.getIcapAddress=UPt;function HPt(r){var e=null;try{e=Kg(r.from)}catch{fy.throwArgumentError("missing from address","transaction",r)}var t=(0,zm.stripZeros)((0,zm.arrayify)(lK.BigNumber.from(r.nonce).toHexString()));return Kg((0,zm.hexDataSlice)((0,dK.keccak256)((0,DPt.encode)([e,t])),12))}Sd.getContractAddress=HPt;function jPt(r,e,t){return(0,zm.hexDataLength)(e)!==32&&fy.throwArgumentError("salt must be 32 bytes","salt",e),(0,zm.hexDataLength)(t)!==32&&fy.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),Kg((0,zm.hexDataSlice)((0,dK.keccak256)((0,zm.concat)(["0xff",Kg(r),e,t])),12))}Sd.getCreate2Address=jPt});var A1e=_(Zw=>{"use strict";d();p();var zPt=Zw&&Zw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zw,"__esModule",{value:!0});Zw.AddressCoder=void 0;var k1e=Pd(),KPt=wr(),VPt=Ad(),GPt=function(r){zPt(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,k1e.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,k1e.getAddress)((0,KPt.hexZeroPad)(t.readValue().toHexString(),20))},e}(VPt.Coder);Zw.AddressCoder=GPt});var S1e=_(Xw=>{"use strict";d();p();var $Pt=Xw&&Xw.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xw,"__esModule",{value:!0});Xw.AnonymousCoder=void 0;var YPt=Ad(),JPt=function(r){$Pt(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(YPt.Coder);Xw.AnonymousCoder=JPt});var fK=_(vf=>{"use strict";d();p();var QPt=vf&&vf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vf,"__esModule",{value:!0});vf.ArrayCoder=vf.unpack=vf.pack=void 0;var t3=Zt(),ZPt=$w(),e3=new t3.Logger(ZPt.version),hK=Ad(),XPt=S1e();function P1e(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||e3.throwError("cannot encode object for signature with missing names",t3.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&e3.throwError("cannot encode object for signature with duplicate names",t3.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else e3.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&e3.throwArgumentError("types/value length mismatch","tuple",t);var i=new hK.Writer(r.wordSize),s=new hK.Writer(r.wordSize),o=[];e.forEach(function(u,l){var h=n[l];if(u.dynamic){var f=s.length;u.encode(s,h);var m=i.writeUpdatableValue();o.push(function(y){m(y+f)})}else u.encode(i,h)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}vf.pack=P1e;function R1e(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(h){if(h.code===t3.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(h){if(h.code===t3.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&e3.throwError("insufficient data length",t3.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";d();p();var t7t=r3&&r3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(r3,"__esModule",{value:!0});r3.BooleanCoder=void 0;var r7t=Ad(),n7t=function(r){t7t(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(r7t.Coder);r3.BooleanCoder=n7t});var mK=_(my=>{"use strict";d();p();var N1e=my&&my.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(my,"__esModule",{value:!0});my.BytesCoder=my.DynamicBytesCoder=void 0;var B1e=wr(),a7t=Ad(),D1e=function(r){N1e(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,B1e.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(a7t.Coder);my.DynamicBytesCoder=D1e;var i7t=function(r){N1e(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,B1e.hexlify)(r.prototype.decode.call(this,t)))},e}(D1e);my.BytesCoder=i7t});var L1e=_(n3=>{"use strict";d();p();var s7t=n3&&n3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(n3,"__esModule",{value:!0});n3.FixedBytesCoder=void 0;var O1e=wr(),o7t=Ad(),c7t=function(r){s7t(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,O1e.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,O1e.hexlify)(t.readBytes(this.size)))},e}(o7t.Coder);n3.FixedBytesCoder=c7t});var q1e=_(a3=>{"use strict";d();p();var u7t=a3&&a3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a3,"__esModule",{value:!0});a3.NullCoder=void 0;var l7t=Ad(),d7t=function(r){u7t(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(l7t.Coder);a3.NullCoder=d7t});var F1e=_(d7=>{"use strict";d();p();Object.defineProperty(d7,"__esModule",{value:!0});d7.AddressZero=void 0;d7.AddressZero="0x0000000000000000000000000000000000000000"});var W1e=_(ko=>{"use strict";d();p();Object.defineProperty(ko,"__esModule",{value:!0});ko.MaxInt256=ko.MinInt256=ko.MaxUint256=ko.WeiPerEther=ko.Two=ko.One=ko.Zero=ko.NegativeOne=void 0;var yy=Os(),p7t=yy.BigNumber.from(-1);ko.NegativeOne=p7t;var h7t=yy.BigNumber.from(0);ko.Zero=h7t;var f7t=yy.BigNumber.from(1);ko.One=f7t;var m7t=yy.BigNumber.from(2);ko.Two=m7t;var y7t=yy.BigNumber.from("1000000000000000000");ko.WeiPerEther=y7t;var g7t=yy.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");ko.MaxUint256=g7t;var b7t=yy.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");ko.MinInt256=b7t;var v7t=yy.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");ko.MaxInt256=v7t});var U1e=_(p7=>{"use strict";d();p();Object.defineProperty(p7,"__esModule",{value:!0});p7.HashZero=void 0;p7.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var H1e=_(h7=>{"use strict";d();p();Object.defineProperty(h7,"__esModule",{value:!0});h7.EtherSymbol=void 0;h7.EtherSymbol="\u039E"});var Vg=_(bi=>{"use strict";d();p();Object.defineProperty(bi,"__esModule",{value:!0});bi.EtherSymbol=bi.HashZero=bi.MaxInt256=bi.MinInt256=bi.MaxUint256=bi.WeiPerEther=bi.Two=bi.One=bi.Zero=bi.NegativeOne=bi.AddressZero=void 0;var w7t=F1e();Object.defineProperty(bi,"AddressZero",{enumerable:!0,get:function(){return w7t.AddressZero}});var gy=W1e();Object.defineProperty(bi,"NegativeOne",{enumerable:!0,get:function(){return gy.NegativeOne}});Object.defineProperty(bi,"Zero",{enumerable:!0,get:function(){return gy.Zero}});Object.defineProperty(bi,"One",{enumerable:!0,get:function(){return gy.One}});Object.defineProperty(bi,"Two",{enumerable:!0,get:function(){return gy.Two}});Object.defineProperty(bi,"WeiPerEther",{enumerable:!0,get:function(){return gy.WeiPerEther}});Object.defineProperty(bi,"MaxUint256",{enumerable:!0,get:function(){return gy.MaxUint256}});Object.defineProperty(bi,"MinInt256",{enumerable:!0,get:function(){return gy.MinInt256}});Object.defineProperty(bi,"MaxInt256",{enumerable:!0,get:function(){return gy.MaxInt256}});var x7t=U1e();Object.defineProperty(bi,"HashZero",{enumerable:!0,get:function(){return x7t.HashZero}});var _7t=H1e();Object.defineProperty(bi,"EtherSymbol",{enumerable:!0,get:function(){return _7t.EtherSymbol}})});var j1e=_(i3=>{"use strict";d();p();var T7t=i3&&i3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i3,"__esModule",{value:!0});i3.NumberCoder=void 0;var E7t=Os(),f7=Vg(),C7t=Ad(),I7t=function(r){T7t(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=E7t.BigNumber.from(n),i=f7.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(f7.One).mul(f7.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(f7.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(C7t.Coder);i3.NumberCoder=I7t});var z1e=_(m7=>{"use strict";d();p();Object.defineProperty(m7,"__esModule",{value:!0});m7.version=void 0;m7.version="strings/5.7.0"});var g7=_(bs=>{"use strict";d();p();Object.defineProperty(bs,"__esModule",{value:!0});bs.toUtf8CodePoints=bs.toUtf8String=bs._toUtf8String=bs._toEscapedUtf8String=bs.toUtf8Bytes=bs.Utf8ErrorFuncs=bs.Utf8ErrorReason=bs.UnicodeNormalizationForm=void 0;var K1e=wr(),k7t=Zt(),A7t=z1e(),V1e=new k7t.Logger(A7t.version),y7;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(y7=bs.UnicodeNormalizationForm||(bs.UnicodeNormalizationForm={}));var Rd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Rd=bs.Utf8ErrorReason||(bs.Utf8ErrorReason={}));function S7t(r,e,t,n,a){return V1e.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function G1e(r,e,t,n,a){if(r===Rd.BAD_PREFIX||r===Rd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Rd.OVERRUN?t.length-e-1:0}function P7t(r,e,t,n,a){return r===Rd.OVERLONG?(n.push(a),0):(n.push(65533),G1e(r,e,t,n,a))}bs.Utf8ErrorFuncs=Object.freeze({error:S7t,ignore:G1e,replace:P7t});function gK(r,e){e==null&&(e=bs.Utf8ErrorFuncs.error),r=(0,K1e.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Rd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Rd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Rd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(Rd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(Rd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(Rd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function $1e(r,e){e===void 0&&(e=y7.current),e!=y7.current&&(V1e.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,K1e.arrayify)(t)}bs.toUtf8Bytes=$1e;function yK(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function R7t(r,e){return'"'+gK(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?yK(t):(t-=65536,yK((t>>10&1023)+55296)+yK((t&1023)+56320))}).join("")+'"'}bs._toEscapedUtf8String=R7t;function Y1e(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}bs._toUtf8String=Y1e;function M7t(r,e){return Y1e(gK(r,e))}bs.toUtf8String=M7t;function N7t(r,e){return e===void 0&&(e=y7.current),gK($1e(r,e))}bs.toUtf8CodePoints=N7t});var Q1e=_(s3=>{"use strict";d();p();Object.defineProperty(s3,"__esModule",{value:!0});s3.parseBytes32String=s3.formatBytes32String=void 0;var B7t=Vg(),bK=wr(),J1e=g7();function D7t(r){var e=(0,J1e.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,bK.hexlify)((0,bK.concat)([e,B7t.HashZero]).slice(0,32))}s3.formatBytes32String=D7t;function O7t(r){var e=(0,bK.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,J1e.toUtf8String)(e.slice(0,t))}s3.parseBytes32String=O7t});var rge=_(wf=>{"use strict";d();p();Object.defineProperty(wf,"__esModule",{value:!0});wf.nameprep=wf._nameprepTableC=wf._nameprepTableB2=wf._nameprepTableA1=void 0;var pE=g7();function L7t(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var q7t=Z1e("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),F7t="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),W7t=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],U7t=vK("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),H7t=vK("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),j7t=vK("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",L7t),z7t=Z1e("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function K7t(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function X1e(r){return!!wK(r,q7t)}wf._nameprepTableA1=X1e;function ege(r){var e=wK(r,W7t);if(e)return[r+e.s];var t=U7t[r];if(t)return t;var n=H7t[r];if(n)return[r+n[0]];var a=j7t[r];return a||null}wf._nameprepTableB2=ege;function tge(r){return!!wK(r,z7t)}wf._nameprepTableC=tge;function V7t(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,pE.toUtf8CodePoints)(r);e=K7t(e.map(function(n){if(F7t.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=ege(n);return a||[n]})),e=(0,pE.toUtf8CodePoints)((0,pE._toUtf8String)(e),pE.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(tge(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(X1e(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,pE._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}wf.nameprep=V7t});var qs=_(rs=>{"use strict";d();p();Object.defineProperty(rs,"__esModule",{value:!0});rs.nameprep=rs.parseBytes32String=rs.formatBytes32String=rs.UnicodeNormalizationForm=rs.Utf8ErrorReason=rs.Utf8ErrorFuncs=rs.toUtf8String=rs.toUtf8CodePoints=rs.toUtf8Bytes=rs._toEscapedUtf8String=void 0;var nge=Q1e();Object.defineProperty(rs,"formatBytes32String",{enumerable:!0,get:function(){return nge.formatBytes32String}});Object.defineProperty(rs,"parseBytes32String",{enumerable:!0,get:function(){return nge.parseBytes32String}});var G7t=rge();Object.defineProperty(rs,"nameprep",{enumerable:!0,get:function(){return G7t.nameprep}});var Gg=g7();Object.defineProperty(rs,"_toEscapedUtf8String",{enumerable:!0,get:function(){return Gg._toEscapedUtf8String}});Object.defineProperty(rs,"toUtf8Bytes",{enumerable:!0,get:function(){return Gg.toUtf8Bytes}});Object.defineProperty(rs,"toUtf8CodePoints",{enumerable:!0,get:function(){return Gg.toUtf8CodePoints}});Object.defineProperty(rs,"toUtf8String",{enumerable:!0,get:function(){return Gg.toUtf8String}});Object.defineProperty(rs,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return Gg.UnicodeNormalizationForm}});Object.defineProperty(rs,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return Gg.Utf8ErrorFuncs}});Object.defineProperty(rs,"Utf8ErrorReason",{enumerable:!0,get:function(){return Gg.Utf8ErrorReason}})});var ige=_(o3=>{"use strict";d();p();var $7t=o3&&o3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o3,"__esModule",{value:!0});o3.StringCoder=void 0;var age=qs(),Y7t=mK(),J7t=function(r){$7t(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,age.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,age.toUtf8String)(r.prototype.decode.call(this,t))},e}(Y7t.DynamicBytesCoder);o3.StringCoder=J7t});var oge=_(c3=>{"use strict";d();p();var Q7t=c3&&c3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(c3,"__esModule",{value:!0});c3.TupleCoder=void 0;var Z7t=Ad(),sge=fK(),X7t=function(r){Q7t(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,sge.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,sge.unpack)(t,this.coders))},e}(Z7t.Coder);c3.TupleCoder=X7t});var _K=_(u3=>{"use strict";d();p();Object.defineProperty(u3,"__esModule",{value:!0});u3.defaultAbiCoder=u3.AbiCoder=void 0;var eRt=wr(),tRt=Aa(),uge=Zt(),rRt=$w(),b7=new uge.Logger(rRt.version),cge=Ad(),nRt=A1e(),aRt=fK(),iRt=M1e(),sRt=mK(),oRt=L1e(),cRt=q1e(),uRt=j1e(),lRt=ige(),v7=oge(),xK=s7(),dRt=new RegExp(/^bytes([0-9]*)$/),pRt=new RegExp(/^(u?int)([0-9]*)$/),lge=function(){function r(e){(0,tRt.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new nRt.AddressCoder(e.name);case"bool":return new iRt.BooleanCoder(e.name);case"string":return new lRt.StringCoder(e.name);case"bytes":return new sRt.BytesCoder(e.name);case"array":return new aRt.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new v7.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new cRt.NullCoder(e.name)}var n=e.type.match(pRt);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&b7.throwArgumentError("invalid "+n[1]+" bit length","param",e),new uRt.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(dRt),n){var a=parseInt(n[1]);return(a===0||a>32)&&b7.throwArgumentError("invalid bytes length","param",e),new oRt.FixedBytesCoder(a,e.name)}return b7.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new cge.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new cge.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(xK.ParamType.from(i))}),a=new v7.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&b7.throwError("types/values length mismatch",uge.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(xK.ParamType.from(o))}),i=new v7.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(xK.ParamType.from(o))}),s=new v7.TupleCoder(i,"_");return s.decode(this._getReader((0,eRt.arrayify)(t),n))},r}();u3.AbiCoder=lge;u3.defaultAbiCoder=new lge});var TK=_(w7=>{"use strict";d();p();Object.defineProperty(w7,"__esModule",{value:!0});w7.id=void 0;var hRt=jl(),fRt=qs();function mRt(r){return(0,hRt.keccak256)((0,fRt.toUtf8Bytes)(r))}w7.id=mRt});var EK=_(x7=>{"use strict";d();p();Object.defineProperty(x7,"__esModule",{value:!0});x7.version=void 0;x7.version="hash/5.7.0"});var pge=_(l3=>{"use strict";d();p();Object.defineProperty(l3,"__esModule",{value:!0});l3.encode=l3.decode=void 0;var dge=wr();function yRt(r){r=atob(r);for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(d3,"__esModule",{value:!0});d3.encode=d3.decode=void 0;var hge=pge();Object.defineProperty(d3,"decode",{enumerable:!0,get:function(){return hge.decode}});Object.defineProperty(d3,"encode",{enumerable:!0,get:function(){return hge.encode}})});var IK=_(Ao=>{"use strict";d();p();Object.defineProperty(Ao,"__esModule",{value:!0});Ao.read_emoji_trie=Ao.read_zero_terminated_array=Ao.read_mapped_map=Ao.read_member_array=Ao.signed=Ao.read_compressed_payload=Ao.read_payload=Ao.decode_arithmetic=void 0;function mge(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function bRt(r){for(var e={},t=0;t>--u&1}for(var f=31,m=Math.pow(2,f),y=m>>>1,E=y>>1,I=m-1,S=0,s=0;s1;){var V=K+H>>>1;G>>1|h(),J=J<<1^y,q=(q^y)<<1|y|1;F=J,W=1+q-J}var T=n-4;return L.map(function(P){switch(P-T){case 3:return T+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return T+256+(r[c++]<<8|r[c++]);case 1:return T+r[c++];default:return P-1}})}Ao.decode_arithmetic=yge;function gge(r){var e=0;return function(){return r[e++]}}Ao.read_payload=gge;function vRt(r){return gge(yge(r))}Ao.read_compressed_payload=vRt;function bge(r){return r&1?~r>>1:r>>1}Ao.signed=bge;function wRt(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}Ao.read_emoji_trie=CRt});var xge=_(_7=>{"use strict";d();p();Object.defineProperty(_7,"__esModule",{value:!0});_7.getData=void 0;var IRt=hE(),kRt=IK();function ARt(){return(0,kRt.read_compressed_payload)((0,IRt.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}_7.getData=ARt});var Cge=_(p3=>{"use strict";d();p();Object.defineProperty(p3,"__esModule",{value:!0});p3.ens_normalize=p3.ens_normalize_post_check=void 0;var SRt=qs(),PRt=xge(),T7=(0,PRt.getData)(),E7=IK(),RRt=new Set((0,E7.read_member_array)(T7)),MRt=new Set((0,E7.read_member_array)(T7)),NRt=(0,E7.read_mapped_map)(T7),BRt=(0,E7.read_emoji_trie)(T7),_ge=45,Tge=95;function Ege(r){return(0,SRt.toUtf8CodePoints)(r)}function DRt(r){return r.filter(function(e){return e!=65039})}function kK(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==Tge)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===_ge&&a[3]===_ge)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}p3.ens_normalize_post_check=kK;function ORt(r){return kK(LRt(r,DRt))}p3.ens_normalize=ORt;function LRt(r,e){for(var t=Ege(r).reverse(),n=[];t.length;){var a=FRt(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(RRt.has(i)){n.push(i);continue}if(!MRt.has(i)){var s=NRt[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return kK(qRt(String.fromCodePoint.apply(String,n)))}function qRt(r){return r.normalize("NFC")}function FRt(r,e){var t,n=BRt,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(h){return h.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var AK=_(xf=>{"use strict";d();p();Object.defineProperty(xf,"__esModule",{value:!0});xf.dnsEncode=xf.namehash=xf.isValidName=xf.ensNormalize=void 0;var C7=wr(),Age=qs(),Ige=jl(),WRt=Zt(),URt=EK(),HRt=new WRt.Logger(URt.version),jRt=Cge(),Sge=new Uint8Array(32);Sge.fill(0);function kge(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function I7(r){var e=(0,Age.toUtf8Bytes)((0,jRt.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(kge(e.slice(n))),t}function zRt(r){return I7(r).map(function(e){return(0,Age.toUtf8String)(e)}).join(".")}xf.ensNormalize=zRt;function KRt(r){try{return I7(r).length!==0}catch{}return!1}xf.isValidName=KRt;function VRt(r){typeof r!="string"&&HRt.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=Sge,t=I7(r);t.length;)e=(0,Ige.keccak256)((0,C7.concat)([e,(0,Ige.keccak256)(t.pop())]));return(0,C7.hexlify)(e)}xf.namehash=VRt;function GRt(r){return(0,C7.hexlify)((0,C7.concat)(I7(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}xf.dnsEncode=GRt});var Pge=_($g=>{"use strict";d();p();Object.defineProperty($g,"__esModule",{value:!0});$g.hashMessage=$g.messagePrefix=void 0;var $Rt=wr(),YRt=jl(),SK=qs();$g.messagePrefix=`Ethereum Signed Message: -`;function JRt(r){return typeof r=="string"&&(r=(0,SK.toUtf8Bytes)(r)),(0,YRt.keccak256)((0,$Rt.concat)([(0,SK.toUtf8Bytes)($g.messagePrefix),(0,SK.toUtf8Bytes)(String(r.length)),r]))}$g.hashMessage=JRt});var Fge=_(by=>{"use strict";d();p();var QRt=by&&by.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},ZRt=by&&by.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Li.throwArgumentError("invalid numeric width","type",r);var a=r9t.mask(t?n-1:n),i=t?a.add(qge).mul(t9t):Lge;return function(o){var c=Jg.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Li.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,ic.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Li.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,ic.arrayify)(c);return u.length!==s&&Li.throwArgumentError("invalid length for "+r,"value",c),n9t(c)}}}switch(r){case"address":return function(o){return(0,ic.hexZeroPad)((0,Bge.getAddress)(o),32)};case"bool":return function(o){return o?a9t:i9t};case"bytes":return function(o){return(0,h3.keccak256)(o)};case"string":return function(o){return(0,Dge.id)(o)}}return null}function Nge(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var o9t=function(){function r(e){(0,Yg.defineReadOnly)(this,"types",Object.freeze((0,Yg.deepCopy)(e))),(0,Yg.defineReadOnly)(this,"_encoderCache",{}),(0,Yg.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(h){t[h]={},n[h]=[],a[h]={}});var i=function(h){var f={};e[h].forEach(function(m){f[m.name]&&Li.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(h),"types",e),f[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===h&&Li.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var E=RK(y);E||(n[y]||Li.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(h),t[h][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(h){return n[h].length===0});o.length===0?Li.throwArgumentError("missing primary type","types",e):o.length>1&&Li.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(h){return JSON.stringify(h)}).join(", "),"types",e),(0,Yg.defineReadOnly)(this,"primaryType",o[0]);function c(h,f){f[h]&&Li.throwArgumentError("circular type reference to "+JSON.stringify(h),"types",e),f[h]=!0,Object.keys(t[h]).forEach(function(m){!n[m]||(c(m,f),Object.keys(f).forEach(function(y){a[y][m]=!0}))}),delete f[h]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=Nge(u,e[u])+l.map(function(h){return Nge(h,e[h])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=RK(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Li.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var h=l.map(s);return t._types[i]&&(h=h.map(h3.keccak256)),(0,h3.keccak256)((0,ic.hexConcat)(h))}}var c=this.types[e];if(c){var u=(0,Dge.id)(this._types[e]);return function(l){var h=c.map(function(f){var m=f.name,y=f.type,E=t.getEncoder(y)(l[m]);return t._types[y]?(0,h3.keccak256)(E):E});return h.unshift(u),(0,ic.hexConcat)(h)}}return Li.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Li.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,h3.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=RK(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Li.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,h){var f=h.name,m=h.type;return l[f]=a._visit(m,t[f],n),l},{}):Li.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=Rge[n];a||Li.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return PK.indexOf(i.name)-PK.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,ic.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,h3.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return QRt(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f;return ZRt(this,function(m){switch(m.label){case 0:e=(0,Yg.shallowCopy)(e),i={},e.verifyingContract&&!(0,ic.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,E){return y==="address"&&!(0,ic.isHexString)(E,20)&&(i[E]="0x"),E}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";d();p();Object.defineProperty(So,"__esModule",{value:!0});So._TypedDataEncoder=So.hashMessage=So.messagePrefix=So.ensNormalize=So.isValidName=So.namehash=So.dnsEncode=So.id=void 0;var c9t=TK();Object.defineProperty(So,"id",{enumerable:!0,get:function(){return c9t.id}});var MK=AK();Object.defineProperty(So,"dnsEncode",{enumerable:!0,get:function(){return MK.dnsEncode}});Object.defineProperty(So,"isValidName",{enumerable:!0,get:function(){return MK.isValidName}});Object.defineProperty(So,"namehash",{enumerable:!0,get:function(){return MK.namehash}});var Wge=Pge();Object.defineProperty(So,"hashMessage",{enumerable:!0,get:function(){return Wge.hashMessage}});Object.defineProperty(So,"messagePrefix",{enumerable:!0,get:function(){return Wge.messagePrefix}});var u9t=AK();Object.defineProperty(So,"ensNormalize",{enumerable:!0,get:function(){return u9t.ensNormalize}});var l9t=Fge();Object.defineProperty(So,"_TypedDataEncoder",{enumerable:!0,get:function(){return l9t.TypedDataEncoder}})});var Gge=_(Uc=>{"use strict";d();p();var S7=Uc&&Uc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Interface=Uc.Indexed=Uc.ErrorDescription=Uc.TransactionDescription=Uc.LogDescription=Uc.checkResultErrors=void 0;var d9t=Pd(),Uge=Os(),vi=wr(),k7=Qg(),Hge=jl(),sc=Aa(),p9t=_K(),h9t=Ad();Object.defineProperty(Uc,"checkResultErrors",{enumerable:!0,get:function(){return h9t.checkResultErrors}});var Km=s7(),A7=Zt(),f9t=$w(),qi=new A7.Logger(f9t.version),zge=function(r){S7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(sc.Description);Uc.LogDescription=zge;var Kge=function(r){S7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(sc.Description);Uc.TransactionDescription=Kge;var Vge=function(r){S7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(sc.Description);Uc.ErrorDescription=Vge;var NK=function(r){S7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(sc.Description);Uc.Indexed=NK;var m9t={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function jge(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var y9t=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,sc.defineReadOnly)(this,"fragments",a.map(function(i){return Km.Fragment.from(i)}).filter(function(i){return i!=null})),(0,sc.defineReadOnly)(this,"_abiCoder",(0,sc.getStatic)(t,"getAbiCoder")()),(0,sc.defineReadOnly)(this,"functions",{}),(0,sc.defineReadOnly)(this,"errors",{}),(0,sc.defineReadOnly)(this,"events",{}),(0,sc.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){qi.warn("duplicate definition - constructor");return}(0,sc.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){qi.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,sc.defineReadOnly)(this,"deploy",Km.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,sc.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=Km.FormatTypes.full),e===Km.FormatTypes.sighash&&qi.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===Km.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return p9t.defaultAbiCoder},r.getAddress=function(e){return(0,d9t.getAddress)(e)},r.getSighash=function(e){return(0,vi.hexDataSlice)((0,k7.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,k7.id)(e.format())},r.prototype.getFunction=function(e){if((0,vi.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];qi.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?qi.throwArgumentError("no matching function","name",n):a.length>1&&qi.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[Km.FunctionFragment.fromString(e).format()];return i||qi.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,vi.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];qi.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?qi.throwArgumentError("no matching event","name",a):i.length>1&&qi.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[Km.EventFragment.fromString(e).format()];return s||qi.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,vi.isHexString)(e)){var t=(0,sc.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}qi.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?qi.throwArgumentError("no matching error","name",i):s.length>1&&qi.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[Km.FunctionFragment.fromString(e).format()];return o||qi.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,sc.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,sc.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,vi.arrayify)(t);return(0,vi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&qi.throwArgumentError("data signature does not match error "+e.name+".","data",(0,vi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,vi.hexlify)((0,vi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,vi.arrayify)(t);return(0,vi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&qi.throwArgumentError("data signature does not match function "+e.name+".","data",(0,vi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,vi.hexlify)((0,vi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,vi.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,vi.hexlify)(n.slice(0,4)),l=m9t[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var h=this.getError(u);s=this._abiCoder.decode(h.inputs,n.slice(4)),o=h.name,c=h.format()}catch{}break}}return qi.throwError("call revert exception"+i,A7.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,vi.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,vi.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&qi.throwError("too many arguments for "+e.format(),A7.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,k7.id)(o):s.type==="bytes"?(0,Hge.keccak256)((0,vi.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=Uge.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,vi.hexZeroPad)((0,vi.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&qi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?qi.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&qi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,k7.id)(u));else if(o.type==="bytes")a.push((0,Hge.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,vi.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&qi.throwError("fragment/topic mismatch",A7.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(E,I){E.indexed?E.type==="string"||E.type==="bytes"||E.baseType==="tuple"||E.baseType==="array"?(i.push(Km.ParamType.fromObject({type:"bytes32",name:E.name})),o.push(!0)):(i.push(E),o.push(!1)):(s.push(E),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,vi.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],h=0,f=0;e.inputs.forEach(function(E,I){if(E.indexed)if(c==null)l[I]=new NK({_isIndexed:!0,hash:null});else if(o[I])l[I]=new NK({_isIndexed:!0,hash:c[f++]});else try{l[I]=c[f++]}catch(L){l[I]=L}else try{l[I]=u[h++]}catch(L){l[I]=L}if(E.name&&l[E.name]==null){var S=l[I];S instanceof Error?Object.defineProperty(l,E.name,{enumerable:!0,get:function(){throw jge("property "+JSON.stringify(E.name),S)}}):l[E.name]=S}});for(var m=function(E){var I=l[E];I instanceof Error&&Object.defineProperty(l,E,{enumerable:!0,get:function(){throw jge("index "+E,I)}})},y=0;y{"use strict";d();p();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TransactionDescription=Sa.LogDescription=Sa.checkResultErrors=Sa.Indexed=Sa.Interface=Sa.defaultAbiCoder=Sa.AbiCoder=Sa.FormatTypes=Sa.ParamType=Sa.FunctionFragment=Sa.Fragment=Sa.EventFragment=Sa.ErrorFragment=Sa.ConstructorFragment=void 0;var Zg=s7();Object.defineProperty(Sa,"ConstructorFragment",{enumerable:!0,get:function(){return Zg.ConstructorFragment}});Object.defineProperty(Sa,"ErrorFragment",{enumerable:!0,get:function(){return Zg.ErrorFragment}});Object.defineProperty(Sa,"EventFragment",{enumerable:!0,get:function(){return Zg.EventFragment}});Object.defineProperty(Sa,"FormatTypes",{enumerable:!0,get:function(){return Zg.FormatTypes}});Object.defineProperty(Sa,"Fragment",{enumerable:!0,get:function(){return Zg.Fragment}});Object.defineProperty(Sa,"FunctionFragment",{enumerable:!0,get:function(){return Zg.FunctionFragment}});Object.defineProperty(Sa,"ParamType",{enumerable:!0,get:function(){return Zg.ParamType}});var $ge=_K();Object.defineProperty(Sa,"AbiCoder",{enumerable:!0,get:function(){return $ge.AbiCoder}});Object.defineProperty(Sa,"defaultAbiCoder",{enumerable:!0,get:function(){return $ge.defaultAbiCoder}});var fE=Gge();Object.defineProperty(Sa,"checkResultErrors",{enumerable:!0,get:function(){return fE.checkResultErrors}});Object.defineProperty(Sa,"Indexed",{enumerable:!0,get:function(){return fE.Indexed}});Object.defineProperty(Sa,"Interface",{enumerable:!0,get:function(){return fE.Interface}});Object.defineProperty(Sa,"LogDescription",{enumerable:!0,get:function(){return fE.LogDescription}});Object.defineProperty(Sa,"TransactionDescription",{enumerable:!0,get:function(){return fE.TransactionDescription}})});var Yge=_(P7=>{"use strict";d();p();Object.defineProperty(P7,"__esModule",{value:!0});P7.version=void 0;P7.version="abstract-provider/5.7.0"});var f3=_(Po=>{"use strict";d();p();var M7=Po&&Po.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),g9t=Po&&Po.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},b9t=Po&&Po.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(B7,"__esModule",{value:!0});B7.version=void 0;B7.version="abstract-signer/5.7.0"});var yE=_(Nd=>{"use strict";d();p();var I9t=Nd&&Nd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xp=Nd&&Nd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},eh=Nd&&Nd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return Md.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Vm.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&Md.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,vy.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Md.throwError("missing provider",Vm.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Nd.Signer=Qge;var P9t=function(r){I9t(e,r);function e(t,n){var a=r.call(this)||this;return(0,vy.defineReadOnly)(a,"address",t),(0,vy.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Md.throwError(t,Vm.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(Qge);Nd.VoidSigner=P9t});var Zge=_((Pxn,R9t)=>{R9t.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var so=_((Xge,OK)=>{d();p();(function(r,e){"use strict";function t(q,T){if(!q)throw new Error(T||"Assertion failed")}function n(q,T){q.super_=T;var P=function(){};P.prototype=T.prototype,q.prototype=new P,q.prototype.constructor=q}function a(q,T,P){if(a.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((T==="le"||T==="be")&&(P=T,T=10),this._init(q||0,T||10,P||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=ac().Buffer}catch{}a.isBN=function(T){return T instanceof a?!0:T!==null&&typeof T=="object"&&T.constructor.wordSize===a.wordSize&&Array.isArray(T.words)},a.max=function(T,P){return T.cmp(P)>0?T:P},a.min=function(T,P){return T.cmp(P)<0?T:P},a.prototype._init=function(T,P,A){if(typeof T=="number")return this._initNumber(T,P,A);if(typeof T=="object")return this._initArray(T,P,A);P==="hex"&&(P=16),t(P===(P|0)&&P>=2&&P<=36),T=T.toString().replace(/\s+/g,"");var v=0;T[0]==="-"&&(v++,this.negative=1),v=0;v-=3)O=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[k]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);else if(A==="le")for(v=0,k=0;v>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);return this.strip()};function s(q,T){var P=q.charCodeAt(T);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function o(q,T,P){var A=s(q,P);return P-1>=T&&(A|=s(q,P-1)<<4),A}a.prototype._parseHex=function(T,P,A){this.length=Math.ceil((T.length-P)/6),this.words=new Array(this.length);for(var v=0;v=P;v-=2)D=o(T,P,v)<=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8;else{var B=T.length-P;for(v=B%2===0?P+1:P;v=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8}this.strip()};function c(q,T,P,A){for(var v=0,k=Math.min(q.length,P),O=T;O=49?v+=D-49+10:D>=17?v+=D-17+10:v+=D}return v}a.prototype._parseBase=function(T,P,A){this.words=[0],this.length=1;for(var v=0,k=1;k<=67108863;k*=P)v++;v--,k=k/P|0;for(var O=T.length-A,D=O%v,B=Math.min(O,O-D)+A,x=0,N=A;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","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"],l=[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],h=[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];a.prototype.toString=function(T,P){T=T||10,P=P|0||1;var A;if(T===16||T==="hex"){A="";for(var v=0,k=0,O=0;O>>24-v&16777215,k!==0||O!==this.length-1?A=u[6-B.length]+B+A:A=B+A,v+=2,v>=26&&(v-=26,O--)}for(k!==0&&(A=k.toString(16)+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(T===(T|0)&&T>=2&&T<=36){var x=l[T],N=h[T];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var C=U.modn(N).toString(T);U=U.idivn(N),U.isZero()?A=C+A:A=u[x-C.length]+C+A}for(this.isZero()&&(A="0"+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,P){return t(typeof i<"u"),this.toArrayLike(i,T,P)},a.prototype.toArray=function(T,P){return this.toArrayLike(Array,T,P)},a.prototype.toArrayLike=function(T,P,A){var v=this.byteLength(),k=A||Math.max(1,v);t(v<=k,"byte array longer than desired length"),t(k>0,"Requested array length <= 0"),this.strip();var O=P==="le",D=new T(k),B,x,N=this.clone();if(O){for(x=0;!N.isZero();x++)B=N.andln(255),N.iushrn(8),D[x]=B;for(;x=4096&&(A+=13,P>>>=13),P>=64&&(A+=7,P>>>=7),P>=8&&(A+=4,P>>>=4),P>=2&&(A+=2,P>>>=2),A+P},a.prototype._zeroBits=function(T){if(T===0)return 26;var P=T,A=0;return(P&8191)===0&&(A+=13,P>>>=13),(P&127)===0&&(A+=7,P>>>=7),(P&15)===0&&(A+=4,P>>>=4),(P&3)===0&&(A+=2,P>>>=2),(P&1)===0&&A++,A},a.prototype.bitLength=function(){var T=this.words[this.length-1],P=this._countBits(T);return(this.length-1)*26+P};function f(q){for(var T=new Array(q.bitLength()),P=0;P>>v}return T}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,P=0;PT.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var P;this.length>T.length?P=T:P=this;for(var A=0;AT.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var P,A;this.length>T.length?(P=this,A=T):(P=T,A=this);for(var v=0;vT.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){t(typeof T=="number"&&T>=0);var P=Math.ceil(T/26)|0,A=T%26;this._expand(P),A>0&&P--;for(var v=0;v0&&(this.words[v]=~this.words[v]&67108863>>26-A),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,P){t(typeof T=="number"&&T>=0);var A=T/26|0,v=T%26;return this._expand(A+1),P?this.words[A]=this.words[A]|1<T.length?(A=this,v=T):(A=T,v=this);for(var k=0,O=0;O>>26;for(;k!==0&&O>>26;if(this.length=A.length,k!==0)this.words[this.length]=k,this.length++;else if(A!==this)for(;OT.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var P=this.iadd(T);return T.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var A=this.cmp(T);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,k;A>0?(v=this,k=T):(v=T,k=this);for(var O=0,D=0;D>26,this.words[D]=P&67108863;for(;O!==0&&D>26,this.words[D]=P&67108863;if(O===0&&D>>26,U=B&67108863,C=Math.min(x,T.length-1),z=Math.max(0,x-q.length+1);z<=C;z++){var ee=x-z|0;v=q.words[ee]|0,k=T.words[z]|0,O=v*k+U,N+=O/67108864|0,U=O&67108863}P.words[x]=U|0,B=N|0}return B!==0?P.words[x]=B|0:P.length--,P.strip()}var y=function(T,P,A){var v=T.words,k=P.words,O=A.words,D=0,B,x,N,U=v[0]|0,C=U&8191,z=U>>>13,ee=v[1]|0,j=ee&8191,X=ee>>>13,ie=v[2]|0,ue=ie&8191,he=ie>>>13,ke=v[3]|0,ge=ke&8191,me=ke>>>13,ze=v[4]|0,ve=ze&8191,Ae=ze>>>13,ao=v[5]|0,Tt=ao&8191,bt=ao>>>13,ci=v[6]|0,wt=ci&8191,st=ci>>>13,ui=v[7]|0,Nt=ui&8191,dt=ui>>>13,io=v[8]|0,jt=io&8191,Bt=io>>>13,ec=v[9]|0,ot=ec&8191,pt=ec>>>13,Sc=k[0]|0,Et=Sc&8191,Ct=Sc>>>13,Pc=k[1]|0,Dt=Pc&8191,It=Pc>>>13,Rc=k[2]|0,kt=Rc&8191,Ot=Rc>>>13,tc=k[3]|0,Lt=tc&8191,qt=tc>>>13,Mc=k[4]|0,At=Mc&8191,Ft=Mc>>>13,Nc=k[5]|0,St=Nc&8191,Wt=Nc>>>13,rc=k[6]|0,Je=rc&8191,at=rc>>>13,nc=k[7]|0,Ut=nc&8191,Kt=nc>>>13,nl=k[8]|0,Vt=nl&8191,Gt=nl>>>13,al=k[9]|0,$t=al&8191,Yt=al>>>13;A.negative=T.negative^P.negative,A.length=19,B=Math.imul(C,Et),x=Math.imul(C,Ct),x=x+Math.imul(z,Et)|0,N=Math.imul(z,Ct);var Pu=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Pu>>>26)|0,Pu&=67108863,B=Math.imul(j,Et),x=Math.imul(j,Ct),x=x+Math.imul(X,Et)|0,N=Math.imul(X,Ct),B=B+Math.imul(C,Dt)|0,x=x+Math.imul(C,It)|0,x=x+Math.imul(z,Dt)|0,N=N+Math.imul(z,It)|0;var an=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(an>>>26)|0,an&=67108863,B=Math.imul(ue,Et),x=Math.imul(ue,Ct),x=x+Math.imul(he,Et)|0,N=Math.imul(he,Ct),B=B+Math.imul(j,Dt)|0,x=x+Math.imul(j,It)|0,x=x+Math.imul(X,Dt)|0,N=N+Math.imul(X,It)|0,B=B+Math.imul(C,kt)|0,x=x+Math.imul(C,Ot)|0,x=x+Math.imul(z,kt)|0,N=N+Math.imul(z,Ot)|0;var sn=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(sn>>>26)|0,sn&=67108863,B=Math.imul(ge,Et),x=Math.imul(ge,Ct),x=x+Math.imul(me,Et)|0,N=Math.imul(me,Ct),B=B+Math.imul(ue,Dt)|0,x=x+Math.imul(ue,It)|0,x=x+Math.imul(he,Dt)|0,N=N+Math.imul(he,It)|0,B=B+Math.imul(j,kt)|0,x=x+Math.imul(j,Ot)|0,x=x+Math.imul(X,kt)|0,N=N+Math.imul(X,Ot)|0,B=B+Math.imul(C,Lt)|0,x=x+Math.imul(C,qt)|0,x=x+Math.imul(z,Lt)|0,N=N+Math.imul(z,qt)|0;var Bc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Bc>>>26)|0,Bc&=67108863,B=Math.imul(ve,Et),x=Math.imul(ve,Ct),x=x+Math.imul(Ae,Et)|0,N=Math.imul(Ae,Ct),B=B+Math.imul(ge,Dt)|0,x=x+Math.imul(ge,It)|0,x=x+Math.imul(me,Dt)|0,N=N+Math.imul(me,It)|0,B=B+Math.imul(ue,kt)|0,x=x+Math.imul(ue,Ot)|0,x=x+Math.imul(he,kt)|0,N=N+Math.imul(he,Ot)|0,B=B+Math.imul(j,Lt)|0,x=x+Math.imul(j,qt)|0,x=x+Math.imul(X,Lt)|0,N=N+Math.imul(X,qt)|0,B=B+Math.imul(C,At)|0,x=x+Math.imul(C,Ft)|0,x=x+Math.imul(z,At)|0,N=N+Math.imul(z,Ft)|0;var Dc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Dc>>>26)|0,Dc&=67108863,B=Math.imul(Tt,Et),x=Math.imul(Tt,Ct),x=x+Math.imul(bt,Et)|0,N=Math.imul(bt,Ct),B=B+Math.imul(ve,Dt)|0,x=x+Math.imul(ve,It)|0,x=x+Math.imul(Ae,Dt)|0,N=N+Math.imul(Ae,It)|0,B=B+Math.imul(ge,kt)|0,x=x+Math.imul(ge,Ot)|0,x=x+Math.imul(me,kt)|0,N=N+Math.imul(me,Ot)|0,B=B+Math.imul(ue,Lt)|0,x=x+Math.imul(ue,qt)|0,x=x+Math.imul(he,Lt)|0,N=N+Math.imul(he,qt)|0,B=B+Math.imul(j,At)|0,x=x+Math.imul(j,Ft)|0,x=x+Math.imul(X,At)|0,N=N+Math.imul(X,Ft)|0,B=B+Math.imul(C,St)|0,x=x+Math.imul(C,Wt)|0,x=x+Math.imul(z,St)|0,N=N+Math.imul(z,Wt)|0;var Oc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Oc>>>26)|0,Oc&=67108863,B=Math.imul(wt,Et),x=Math.imul(wt,Ct),x=x+Math.imul(st,Et)|0,N=Math.imul(st,Ct),B=B+Math.imul(Tt,Dt)|0,x=x+Math.imul(Tt,It)|0,x=x+Math.imul(bt,Dt)|0,N=N+Math.imul(bt,It)|0,B=B+Math.imul(ve,kt)|0,x=x+Math.imul(ve,Ot)|0,x=x+Math.imul(Ae,kt)|0,N=N+Math.imul(Ae,Ot)|0,B=B+Math.imul(ge,Lt)|0,x=x+Math.imul(ge,qt)|0,x=x+Math.imul(me,Lt)|0,N=N+Math.imul(me,qt)|0,B=B+Math.imul(ue,At)|0,x=x+Math.imul(ue,Ft)|0,x=x+Math.imul(he,At)|0,N=N+Math.imul(he,Ft)|0,B=B+Math.imul(j,St)|0,x=x+Math.imul(j,Wt)|0,x=x+Math.imul(X,St)|0,N=N+Math.imul(X,Wt)|0,B=B+Math.imul(C,Je)|0,x=x+Math.imul(C,at)|0,x=x+Math.imul(z,Je)|0,N=N+Math.imul(z,at)|0;var Lc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Lc>>>26)|0,Lc&=67108863,B=Math.imul(Nt,Et),x=Math.imul(Nt,Ct),x=x+Math.imul(dt,Et)|0,N=Math.imul(dt,Ct),B=B+Math.imul(wt,Dt)|0,x=x+Math.imul(wt,It)|0,x=x+Math.imul(st,Dt)|0,N=N+Math.imul(st,It)|0,B=B+Math.imul(Tt,kt)|0,x=x+Math.imul(Tt,Ot)|0,x=x+Math.imul(bt,kt)|0,N=N+Math.imul(bt,Ot)|0,B=B+Math.imul(ve,Lt)|0,x=x+Math.imul(ve,qt)|0,x=x+Math.imul(Ae,Lt)|0,N=N+Math.imul(Ae,qt)|0,B=B+Math.imul(ge,At)|0,x=x+Math.imul(ge,Ft)|0,x=x+Math.imul(me,At)|0,N=N+Math.imul(me,Ft)|0,B=B+Math.imul(ue,St)|0,x=x+Math.imul(ue,Wt)|0,x=x+Math.imul(he,St)|0,N=N+Math.imul(he,Wt)|0,B=B+Math.imul(j,Je)|0,x=x+Math.imul(j,at)|0,x=x+Math.imul(X,Je)|0,N=N+Math.imul(X,at)|0,B=B+Math.imul(C,Ut)|0,x=x+Math.imul(C,Kt)|0,x=x+Math.imul(z,Ut)|0,N=N+Math.imul(z,Kt)|0;var qc=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(qc>>>26)|0,qc&=67108863,B=Math.imul(jt,Et),x=Math.imul(jt,Ct),x=x+Math.imul(Bt,Et)|0,N=Math.imul(Bt,Ct),B=B+Math.imul(Nt,Dt)|0,x=x+Math.imul(Nt,It)|0,x=x+Math.imul(dt,Dt)|0,N=N+Math.imul(dt,It)|0,B=B+Math.imul(wt,kt)|0,x=x+Math.imul(wt,Ot)|0,x=x+Math.imul(st,kt)|0,N=N+Math.imul(st,Ot)|0,B=B+Math.imul(Tt,Lt)|0,x=x+Math.imul(Tt,qt)|0,x=x+Math.imul(bt,Lt)|0,N=N+Math.imul(bt,qt)|0,B=B+Math.imul(ve,At)|0,x=x+Math.imul(ve,Ft)|0,x=x+Math.imul(Ae,At)|0,N=N+Math.imul(Ae,Ft)|0,B=B+Math.imul(ge,St)|0,x=x+Math.imul(ge,Wt)|0,x=x+Math.imul(me,St)|0,N=N+Math.imul(me,Wt)|0,B=B+Math.imul(ue,Je)|0,x=x+Math.imul(ue,at)|0,x=x+Math.imul(he,Je)|0,N=N+Math.imul(he,at)|0,B=B+Math.imul(j,Ut)|0,x=x+Math.imul(j,Kt)|0,x=x+Math.imul(X,Ut)|0,N=N+Math.imul(X,Kt)|0,B=B+Math.imul(C,Vt)|0,x=x+Math.imul(C,Gt)|0,x=x+Math.imul(z,Vt)|0,N=N+Math.imul(z,Gt)|0;var Hp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Hp>>>26)|0,Hp&=67108863,B=Math.imul(ot,Et),x=Math.imul(ot,Ct),x=x+Math.imul(pt,Et)|0,N=Math.imul(pt,Ct),B=B+Math.imul(jt,Dt)|0,x=x+Math.imul(jt,It)|0,x=x+Math.imul(Bt,Dt)|0,N=N+Math.imul(Bt,It)|0,B=B+Math.imul(Nt,kt)|0,x=x+Math.imul(Nt,Ot)|0,x=x+Math.imul(dt,kt)|0,N=N+Math.imul(dt,Ot)|0,B=B+Math.imul(wt,Lt)|0,x=x+Math.imul(wt,qt)|0,x=x+Math.imul(st,Lt)|0,N=N+Math.imul(st,qt)|0,B=B+Math.imul(Tt,At)|0,x=x+Math.imul(Tt,Ft)|0,x=x+Math.imul(bt,At)|0,N=N+Math.imul(bt,Ft)|0,B=B+Math.imul(ve,St)|0,x=x+Math.imul(ve,Wt)|0,x=x+Math.imul(Ae,St)|0,N=N+Math.imul(Ae,Wt)|0,B=B+Math.imul(ge,Je)|0,x=x+Math.imul(ge,at)|0,x=x+Math.imul(me,Je)|0,N=N+Math.imul(me,at)|0,B=B+Math.imul(ue,Ut)|0,x=x+Math.imul(ue,Kt)|0,x=x+Math.imul(he,Ut)|0,N=N+Math.imul(he,Kt)|0,B=B+Math.imul(j,Vt)|0,x=x+Math.imul(j,Gt)|0,x=x+Math.imul(X,Vt)|0,N=N+Math.imul(X,Gt)|0,B=B+Math.imul(C,$t)|0,x=x+Math.imul(C,Yt)|0,x=x+Math.imul(z,$t)|0,N=N+Math.imul(z,Yt)|0;var jp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(jp>>>26)|0,jp&=67108863,B=Math.imul(ot,Dt),x=Math.imul(ot,It),x=x+Math.imul(pt,Dt)|0,N=Math.imul(pt,It),B=B+Math.imul(jt,kt)|0,x=x+Math.imul(jt,Ot)|0,x=x+Math.imul(Bt,kt)|0,N=N+Math.imul(Bt,Ot)|0,B=B+Math.imul(Nt,Lt)|0,x=x+Math.imul(Nt,qt)|0,x=x+Math.imul(dt,Lt)|0,N=N+Math.imul(dt,qt)|0,B=B+Math.imul(wt,At)|0,x=x+Math.imul(wt,Ft)|0,x=x+Math.imul(st,At)|0,N=N+Math.imul(st,Ft)|0,B=B+Math.imul(Tt,St)|0,x=x+Math.imul(Tt,Wt)|0,x=x+Math.imul(bt,St)|0,N=N+Math.imul(bt,Wt)|0,B=B+Math.imul(ve,Je)|0,x=x+Math.imul(ve,at)|0,x=x+Math.imul(Ae,Je)|0,N=N+Math.imul(Ae,at)|0,B=B+Math.imul(ge,Ut)|0,x=x+Math.imul(ge,Kt)|0,x=x+Math.imul(me,Ut)|0,N=N+Math.imul(me,Kt)|0,B=B+Math.imul(ue,Vt)|0,x=x+Math.imul(ue,Gt)|0,x=x+Math.imul(he,Vt)|0,N=N+Math.imul(he,Gt)|0,B=B+Math.imul(j,$t)|0,x=x+Math.imul(j,Yt)|0,x=x+Math.imul(X,$t)|0,N=N+Math.imul(X,Yt)|0;var zp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(zp>>>26)|0,zp&=67108863,B=Math.imul(ot,kt),x=Math.imul(ot,Ot),x=x+Math.imul(pt,kt)|0,N=Math.imul(pt,Ot),B=B+Math.imul(jt,Lt)|0,x=x+Math.imul(jt,qt)|0,x=x+Math.imul(Bt,Lt)|0,N=N+Math.imul(Bt,qt)|0,B=B+Math.imul(Nt,At)|0,x=x+Math.imul(Nt,Ft)|0,x=x+Math.imul(dt,At)|0,N=N+Math.imul(dt,Ft)|0,B=B+Math.imul(wt,St)|0,x=x+Math.imul(wt,Wt)|0,x=x+Math.imul(st,St)|0,N=N+Math.imul(st,Wt)|0,B=B+Math.imul(Tt,Je)|0,x=x+Math.imul(Tt,at)|0,x=x+Math.imul(bt,Je)|0,N=N+Math.imul(bt,at)|0,B=B+Math.imul(ve,Ut)|0,x=x+Math.imul(ve,Kt)|0,x=x+Math.imul(Ae,Ut)|0,N=N+Math.imul(Ae,Kt)|0,B=B+Math.imul(ge,Vt)|0,x=x+Math.imul(ge,Gt)|0,x=x+Math.imul(me,Vt)|0,N=N+Math.imul(me,Gt)|0,B=B+Math.imul(ue,$t)|0,x=x+Math.imul(ue,Yt)|0,x=x+Math.imul(he,$t)|0,N=N+Math.imul(he,Yt)|0;var Kp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,B=Math.imul(ot,Lt),x=Math.imul(ot,qt),x=x+Math.imul(pt,Lt)|0,N=Math.imul(pt,qt),B=B+Math.imul(jt,At)|0,x=x+Math.imul(jt,Ft)|0,x=x+Math.imul(Bt,At)|0,N=N+Math.imul(Bt,Ft)|0,B=B+Math.imul(Nt,St)|0,x=x+Math.imul(Nt,Wt)|0,x=x+Math.imul(dt,St)|0,N=N+Math.imul(dt,Wt)|0,B=B+Math.imul(wt,Je)|0,x=x+Math.imul(wt,at)|0,x=x+Math.imul(st,Je)|0,N=N+Math.imul(st,at)|0,B=B+Math.imul(Tt,Ut)|0,x=x+Math.imul(Tt,Kt)|0,x=x+Math.imul(bt,Ut)|0,N=N+Math.imul(bt,Kt)|0,B=B+Math.imul(ve,Vt)|0,x=x+Math.imul(ve,Gt)|0,x=x+Math.imul(Ae,Vt)|0,N=N+Math.imul(Ae,Gt)|0,B=B+Math.imul(ge,$t)|0,x=x+Math.imul(ge,Yt)|0,x=x+Math.imul(me,$t)|0,N=N+Math.imul(me,Yt)|0;var Vp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,B=Math.imul(ot,At),x=Math.imul(ot,Ft),x=x+Math.imul(pt,At)|0,N=Math.imul(pt,Ft),B=B+Math.imul(jt,St)|0,x=x+Math.imul(jt,Wt)|0,x=x+Math.imul(Bt,St)|0,N=N+Math.imul(Bt,Wt)|0,B=B+Math.imul(Nt,Je)|0,x=x+Math.imul(Nt,at)|0,x=x+Math.imul(dt,Je)|0,N=N+Math.imul(dt,at)|0,B=B+Math.imul(wt,Ut)|0,x=x+Math.imul(wt,Kt)|0,x=x+Math.imul(st,Ut)|0,N=N+Math.imul(st,Kt)|0,B=B+Math.imul(Tt,Vt)|0,x=x+Math.imul(Tt,Gt)|0,x=x+Math.imul(bt,Vt)|0,N=N+Math.imul(bt,Gt)|0,B=B+Math.imul(ve,$t)|0,x=x+Math.imul(ve,Yt)|0,x=x+Math.imul(Ae,$t)|0,N=N+Math.imul(Ae,Yt)|0;var Gp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,B=Math.imul(ot,St),x=Math.imul(ot,Wt),x=x+Math.imul(pt,St)|0,N=Math.imul(pt,Wt),B=B+Math.imul(jt,Je)|0,x=x+Math.imul(jt,at)|0,x=x+Math.imul(Bt,Je)|0,N=N+Math.imul(Bt,at)|0,B=B+Math.imul(Nt,Ut)|0,x=x+Math.imul(Nt,Kt)|0,x=x+Math.imul(dt,Ut)|0,N=N+Math.imul(dt,Kt)|0,B=B+Math.imul(wt,Vt)|0,x=x+Math.imul(wt,Gt)|0,x=x+Math.imul(st,Vt)|0,N=N+Math.imul(st,Gt)|0,B=B+Math.imul(Tt,$t)|0,x=x+Math.imul(Tt,Yt)|0,x=x+Math.imul(bt,$t)|0,N=N+Math.imul(bt,Yt)|0;var $p=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+($p>>>26)|0,$p&=67108863,B=Math.imul(ot,Je),x=Math.imul(ot,at),x=x+Math.imul(pt,Je)|0,N=Math.imul(pt,at),B=B+Math.imul(jt,Ut)|0,x=x+Math.imul(jt,Kt)|0,x=x+Math.imul(Bt,Ut)|0,N=N+Math.imul(Bt,Kt)|0,B=B+Math.imul(Nt,Vt)|0,x=x+Math.imul(Nt,Gt)|0,x=x+Math.imul(dt,Vt)|0,N=N+Math.imul(dt,Gt)|0,B=B+Math.imul(wt,$t)|0,x=x+Math.imul(wt,Yt)|0,x=x+Math.imul(st,$t)|0,N=N+Math.imul(st,Yt)|0;var Yp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,B=Math.imul(ot,Ut),x=Math.imul(ot,Kt),x=x+Math.imul(pt,Ut)|0,N=Math.imul(pt,Kt),B=B+Math.imul(jt,Vt)|0,x=x+Math.imul(jt,Gt)|0,x=x+Math.imul(Bt,Vt)|0,N=N+Math.imul(Bt,Gt)|0,B=B+Math.imul(Nt,$t)|0,x=x+Math.imul(Nt,Yt)|0,x=x+Math.imul(dt,$t)|0,N=N+Math.imul(dt,Yt)|0;var Jp=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,B=Math.imul(ot,Vt),x=Math.imul(ot,Gt),x=x+Math.imul(pt,Vt)|0,N=Math.imul(pt,Gt),B=B+Math.imul(jt,$t)|0,x=x+Math.imul(jt,Yt)|0,x=x+Math.imul(Bt,$t)|0,N=N+Math.imul(Bt,Yt)|0;var Og=(D+B|0)+((x&8191)<<13)|0;D=(N+(x>>>13)|0)+(Og>>>26)|0,Og&=67108863,B=Math.imul(ot,$t),x=Math.imul(ot,Yt),x=x+Math.imul(pt,$t)|0,N=Math.imul(pt,Yt);var Lg=(D+B|0)+((x&8191)<<13)|0;return D=(N+(x>>>13)|0)+(Lg>>>26)|0,Lg&=67108863,O[0]=Pu,O[1]=an,O[2]=sn,O[3]=Bc,O[4]=Dc,O[5]=Oc,O[6]=Lc,O[7]=qc,O[8]=Hp,O[9]=jp,O[10]=zp,O[11]=Kp,O[12]=Vp,O[13]=Gp,O[14]=$p,O[15]=Yp,O[16]=Jp,O[17]=Og,O[18]=Lg,D!==0&&(O[19]=D,A.length++),A};Math.imul||(y=m);function E(q,T,P){P.negative=T.negative^q.negative,P.length=q.length+T.length;for(var A=0,v=0,k=0;k>>26)|0,v+=O>>>26,O&=67108863}P.words[k]=D,A=O,O=v}return A!==0?P.words[k]=A:P.length--,P.strip()}function I(q,T,P){var A=new S;return A.mulp(q,T,P)}a.prototype.mulTo=function(T,P){var A,v=this.length+T.length;return this.length===10&&T.length===10?A=y(this,T,P):v<63?A=m(this,T,P):v<1024?A=E(this,T,P):A=I(this,T,P),A};function S(q,T){this.x=q,this.y=T}S.prototype.makeRBT=function(T){for(var P=new Array(T),A=a.prototype._countBits(T)-1,v=0;v>=1;return v},S.prototype.permute=function(T,P,A,v,k,O){for(var D=0;D>>1)k++;return 1<>>13,A[2*O+1]=k&8191,k=k>>>13;for(O=2*P;O>=26,P+=v/67108864|0,P+=k>>>26,this.words[A]=k&67108863}return P!==0&&(this.words[A]=P,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var P=f(T);if(P.length===0)return new a(1);for(var A=this,v=0;v=0);var P=T%26,A=(T-P)/26,v=67108863>>>26-P<<26-P,k;if(P!==0){var O=0;for(k=0;k>>26-P}O&&(this.words[k]=O,this.length++)}if(A!==0){for(k=this.length-1;k>=0;k--)this.words[k+A]=this.words[k];for(k=0;k=0);var v;P?v=(P-P%26)/26:v=0;var k=T%26,O=Math.min((T-k)/26,this.length),D=67108863^67108863>>>k<O)for(this.length-=O,x=0;x=0&&(N!==0||x>=v);x--){var U=this.words[x]|0;this.words[x]=N<<26-k|U>>>k,N=U&D}return B&&N!==0&&(B.words[B.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,P,A){return t(this.negative===0),this.iushrn(T,P,A)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){t(typeof T=="number"&&T>=0);var P=T%26,A=(T-P)/26,v=1<=0);var P=T%26,A=(T-P)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(P!==0&&A++,this.length=Math.min(A,this.length),P!==0){var v=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(T){if(t(typeof T=="number"),t(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(B/67108864|0),this.words[k+A]=O&67108863}for(;k>26,this.words[k+A]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,k=0;k>26,this.words[k]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,P){var A=this.length-T.length,v=this.clone(),k=T,O=k.words[k.length-1]|0,D=this._countBits(O);A=26-D,A!==0&&(k=k.ushln(A),v.iushln(A),O=k.words[k.length-1]|0);var B=v.length-k.length,x;if(P!=="mod"){x=new a(null),x.length=B+1,x.words=new Array(x.length);for(var N=0;N=0;C--){var z=(v.words[k.length+C]|0)*67108864+(v.words[k.length+C-1]|0);for(z=Math.min(z/O|0,67108863),v._ishlnsubmul(k,z,C);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(k,1,C),v.isZero()||(v.negative^=1);x&&(x.words[C]=z)}return x&&x.strip(),v.strip(),P!=="div"&&A!==0&&v.iushrn(A),{div:x||null,mod:v}},a.prototype.divmod=function(T,P,A){if(t(!T.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,k,O;return this.negative!==0&&T.negative===0?(O=this.neg().divmod(T,P),P!=="mod"&&(v=O.div.neg()),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.iadd(T)),{div:v,mod:k}):this.negative===0&&T.negative!==0?(O=this.divmod(T.neg(),P),P!=="mod"&&(v=O.div.neg()),{div:v,mod:O.mod}):(this.negative&T.negative)!==0?(O=this.neg().divmod(T.neg(),P),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.isub(T)),{div:O.div,mod:k}):T.length>this.length||this.cmp(T)<0?{div:new a(0),mod:this}:T.length===1?P==="div"?{div:this.divn(T.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,P)},a.prototype.div=function(T){return this.divmod(T,"div",!1).div},a.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},a.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},a.prototype.divRound=function(T){var P=this.divmod(T);if(P.mod.isZero())return P.div;var A=P.div.negative!==0?P.mod.isub(T):P.mod,v=T.ushrn(1),k=T.andln(1),O=A.cmp(v);return O<0||k===1&&O===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(T){t(T<=67108863);for(var P=(1<<26)%T,A=0,v=this.length-1;v>=0;v--)A=(P*A+(this.words[v]|0))%T;return A},a.prototype.idivn=function(T){t(T<=67108863);for(var P=0,A=this.length-1;A>=0;A--){var v=(this.words[A]|0)+P*67108864;this.words[A]=v/T|0,P=v%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=new a(0),D=new a(1),B=0;P.isEven()&&A.isEven();)P.iushrn(1),A.iushrn(1),++B;for(var x=A.clone(),N=P.clone();!P.isZero();){for(var U=0,C=1;(P.words[0]&C)===0&&U<26;++U,C<<=1);if(U>0)for(P.iushrn(U);U-- >0;)(v.isOdd()||k.isOdd())&&(v.iadd(x),k.isub(N)),v.iushrn(1),k.iushrn(1);for(var z=0,ee=1;(A.words[0]&ee)===0&&z<26;++z,ee<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(x),D.isub(N)),O.iushrn(1),D.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(O),k.isub(D)):(A.isub(P),O.isub(v),D.isub(k))}return{a:O,b:D,gcd:A.iushln(B)}},a.prototype._invmp=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=A.clone();P.cmpn(1)>0&&A.cmpn(1)>0;){for(var D=0,B=1;(P.words[0]&B)===0&&D<26;++D,B<<=1);if(D>0)for(P.iushrn(D);D-- >0;)v.isOdd()&&v.iadd(O),v.iushrn(1);for(var x=0,N=1;(A.words[0]&N)===0&&x<26;++x,N<<=1);if(x>0)for(A.iushrn(x);x-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(k)):(A.isub(P),k.isub(v))}var U;return P.cmpn(1)===0?U=v:U=k,U.cmpn(0)<0&&U.iadd(T),U},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var P=this.clone(),A=T.clone();P.negative=0,A.negative=0;for(var v=0;P.isEven()&&A.isEven();v++)P.iushrn(1),A.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;A.isEven();)A.iushrn(1);var k=P.cmp(A);if(k<0){var O=P;P=A,A=O}else if(k===0||A.cmpn(1)===0)break;P.isub(A)}while(!0);return A.iushln(v)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(T){return this.words[0]&T},a.prototype.bincn=function(T){t(typeof T=="number");var P=T%26,A=(T-P)/26,v=1<>>26,D&=67108863,this.words[O]=D}return k!==0&&(this.words[O]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(T){var P=T<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var A;if(this.length>1)A=1;else{P&&(T=-T),t(T<=67108863,"Number is too big");var v=this.words[0]|0;A=v===T?0:vT.length)return 1;if(this.length=0;A--){var v=this.words[A]|0,k=T.words[A]|0;if(v!==k){vk&&(P=1);break}}return P},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)>=0},a.prototype.gte=function(T){return this.cmp(T)>=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)<=0},a.prototype.lte=function(T){return this.cmp(T)<=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new V(T)},a.prototype.toRed=function(T){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return t(!this.red,"Already a number in reduction context"),this._forceRed(T)},a.prototype.redAdd=function(T){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},a.prototype.redIAdd=function(T){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},a.prototype.redSub=function(T){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},a.prototype.redISub=function(T){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},a.prototype.redShl=function(T){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},a.prototype.redMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return t(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var L={k256:null,p224:null,p192:null,p25519:null};function F(q,T){this.name=q,this.p=new a(T,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},F.prototype.ireduce=function(T){var P=T,A;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),A=P.bitLength();while(A>this.n);var v=A0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},F.prototype.split=function(T,P){T.iushrn(this.n,0,P)},F.prototype.imulK=function(T){return T.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,F),W.prototype.split=function(T,P){for(var A=4194303,v=Math.min(T.length,9),k=0;k>>22,O=D}O>>>=22,T.words[k-10]=O,O===0&&T.length>10?T.length-=10:T.length-=9},W.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var P=0,A=0;A>>=26,T.words[A]=k,P=v}return P!==0&&(T.words[T.length++]=P),T},a._prime=function(T){if(L[T])return L[T];var P;if(T==="k256")P=new W;else if(T==="p224")P=new G;else if(T==="p192")P=new K;else if(T==="p25519")P=new H;else throw new Error("Unknown prime "+T);return L[T]=P,P};function V(q){if(typeof q=="string"){var T=a._prime(q);this.m=T.p,this.prime=T}else t(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}V.prototype._verify1=function(T){t(T.negative===0,"red works only with positives"),t(T.red,"red works only with red numbers")},V.prototype._verify2=function(T,P){t((T.negative|P.negative)===0,"red works only with positives"),t(T.red&&T.red===P.red,"red works only with red numbers")},V.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},V.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},V.prototype.add=function(T,P){this._verify2(T,P);var A=T.add(P);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},V.prototype.iadd=function(T,P){this._verify2(T,P);var A=T.iadd(P);return A.cmp(this.m)>=0&&A.isub(this.m),A},V.prototype.sub=function(T,P){this._verify2(T,P);var A=T.sub(P);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},V.prototype.isub=function(T,P){this._verify2(T,P);var A=T.isub(P);return A.cmpn(0)<0&&A.iadd(this.m),A},V.prototype.shl=function(T,P){return this._verify1(T),this.imod(T.ushln(P))},V.prototype.imul=function(T,P){return this._verify2(T,P),this.imod(T.imul(P))},V.prototype.mul=function(T,P){return this._verify2(T,P),this.imod(T.mul(P))},V.prototype.isqr=function(T){return this.imul(T,T.clone())},V.prototype.sqr=function(T){return this.mul(T,T)},V.prototype.sqrt=function(T){if(T.isZero())return T.clone();var P=this.m.andln(3);if(t(P%2===1),P===3){var A=this.m.add(new a(1)).iushrn(2);return this.pow(T,A)}for(var v=this.m.subn(1),k=0;!v.isZero()&&v.andln(1)===0;)k++,v.iushrn(1);t(!v.isZero());var O=new a(1).toRed(this),D=O.redNeg(),B=this.m.subn(1).iushrn(1),x=this.m.bitLength();for(x=new a(2*x*x).toRed(this);this.pow(x,B).cmp(D)!==0;)x.redIAdd(D);for(var N=this.pow(x,v),U=this.pow(T,v.addn(1).iushrn(1)),C=this.pow(T,v),z=k;C.cmp(O)!==0;){for(var ee=C,j=0;ee.cmp(O)!==0;j++)ee=ee.redSqr();t(j=0;k--){for(var N=P.words[k],U=x-1;U>=0;U--){var C=N>>U&1;if(O!==v[0]&&(O=this.sqr(O)),C===0&&D===0){B=0;continue}D<<=1,D|=C,B++,!(B!==A&&(k!==0||U!==0))&&(O=this.mul(O,v[D]),B=0,D=0)}x=26}return O},V.prototype.convertTo=function(T){var P=T.umod(this.m);return P===T?P.clone():P},V.prototype.convertFrom=function(T){var P=T.clone();return P.red=null,P},a.mont=function(T){return new J(T)};function J(q){V.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}n(J,V),J.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},J.prototype.convertFrom=function(T){var P=this.imod(T.mul(this.rinv));return P.red=null,P},J.prototype.imul=function(T,P){if(T.isZero()||P.isZero())return T.words[0]=0,T.length=1,T;var A=T.imul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.mul=function(T,P){if(T.isZero()||P.isZero())return new a(0)._forceRed(this);var A=T.mul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.invm=function(T){var P=this.imod(T._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(typeof OK>"u"||OK,Xge)});var zl=_((Nxn,tbe)=>{d();p();tbe.exports=ebe;function ebe(r,e){if(!r)throw new Error(e||"Assertion failed")}ebe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var LK=_(abe=>{"use strict";d();p();var D7=abe;function M9t(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}D7.toArray=M9t;function rbe(r){return r.length===1?"0"+r:r}D7.zero2=rbe;function nbe(r){for(var e="",t=0;t{"use strict";d();p();var th=ibe,N9t=so(),B9t=zl(),O7=LK();th.assert=B9t;th.toArray=O7.toArray;th.zero2=O7.zero2;th.toHex=O7.toHex;th.encode=O7.encode;function D9t(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}th.getNAF=D9t;function O9t(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}th.getJSF=O9t;function L9t(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}th.cachedProperty=L9t;function q9t(r){return typeof r=="string"?th.toArray(r,"hex"):r}th.parseBytes=q9t;function F9t(r){return new N9t(r,"hex","le")}th.intFromLE=F9t});var Er=_((qK,obe)=>{d();p();var L7=ac(),_f=L7.Buffer;function sbe(r,e){for(var t in r)e[t]=r[t]}_f.from&&_f.alloc&&_f.allocUnsafe&&_f.allocUnsafeSlow?obe.exports=L7:(sbe(L7,qK),qK.Buffer=Xg);function Xg(r,e,t){return _f(r,e,t)}Xg.prototype=Object.create(_f.prototype);sbe(_f,Xg);Xg.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return _f(r,e,t)};Xg.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=_f(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};Xg.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return _f(r)};Xg.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return L7.SlowBuffer(r)}});var eb=_((zxn,WK)=>{"use strict";d();p();var FK=65536,W9t=4294967295;function U9t(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var H9t=Er().Buffer,q7=global.crypto||global.msCrypto;q7&&q7.getRandomValues?WK.exports=j9t:WK.exports=U9t;function j9t(r,e){if(r>W9t)throw new RangeError("requested too many random bytes");var t=H9t.allocUnsafe(r);if(r>0)if(r>FK)for(var n=0;n{d();p();typeof Object.create=="function"?UK.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:UK.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Mu=_((Jxn,HK)=>{"use strict";d();p();var m3=typeof Reflect=="object"?Reflect:null,cbe=m3&&typeof m3.apply=="function"?m3.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},F7;m3&&typeof m3.ownKeys=="function"?F7=m3.ownKeys:Object.getOwnPropertySymbols?F7=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:F7=function(e){return Object.getOwnPropertyNames(e)};function z9t(r){console&&console.warn&&console.warn(r)}var lbe=Number.isNaN||function(e){return e!==e};function qa(){qa.init.call(this)}HK.exports=qa;HK.exports.once=$9t;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var ube=10;function W7(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return ube},set:function(r){if(typeof r!="number"||r<0||lbe(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");ube=r}});qa.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};qa.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||lbe(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function dbe(r){return r._maxListeners===void 0?qa.defaultMaxListeners:r._maxListeners}qa.prototype.getMaxListeners=function(){return dbe(this)};qa.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")cbe(c,this,t);else for(var u=c.length,l=ybe(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,z9t(o)}return r}qa.prototype.addListener=function(e,t){return pbe(this,e,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(e,t){return pbe(this,e,t,!0)};function K9t(){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 hbe(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=K9t.bind(n);return a.listener=t,n.wrapFn=a,a}qa.prototype.once=function(e,t){return W7(t),this.on(e,hbe(this,e,t)),this};qa.prototype.prependOnceListener=function(e,t){return W7(t),this.prependListener(e,hbe(this,e,t)),this};qa.prototype.removeListener=function(e,t){var n,a,i,s,o;if(W7(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():V9t(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function fbe(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?G9t(a):ybe(a,a.length)}qa.prototype.listeners=function(e){return fbe(this,e,!0)};qa.prototype.rawListeners=function(e){return fbe(this,e,!1)};qa.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):mbe.call(r,e)};qa.prototype.listenerCount=mbe;function mbe(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?F7(this._events):[]};function ybe(r,e){for(var t=new Array(e),n=0;n{d();p();bbe.exports=Mu().EventEmitter});var zK=_((r_n,vbe)=>{"use strict";d();p();vbe.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var gE=_((i_n,wbe)=>{"use strict";d();p();var J9t=zK();wbe.exports=function(){return J9t()&&!!Symbol.toStringTag}});var Tbe=_((c_n,_be)=>{"use strict";d();p();var xbe=typeof Symbol<"u"&&Symbol,Q9t=zK();_be.exports=function(){return typeof xbe!="function"||typeof Symbol!="function"||typeof xbe("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Q9t()}});var Cbe=_((d_n,Ebe)=>{"use strict";d();p();var Z9t="Function.prototype.bind called on incompatible ",KK=Array.prototype.slice,X9t=Object.prototype.toString,eMt="[object Function]";Ebe.exports=function(e){var t=this;if(typeof t!="function"||X9t.call(t)!==eMt)throw new TypeError(Z9t+t);for(var n=KK.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(KK.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(KK.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";d();p();var tMt=Cbe();Ibe.exports=Function.prototype.bind||tMt});var Abe=_((g_n,kbe)=>{"use strict";d();p();var rMt=U7();kbe.exports=rMt.call(Function.call,Object.prototype.hasOwnProperty)});var vE=_((w_n,Nbe)=>{"use strict";d();p();var Ur,v3=SyntaxError,Mbe=Function,b3=TypeError,VK=function(r){try{return Mbe('"use strict"; return ('+r+").constructor;")()}catch{}},tb=Object.getOwnPropertyDescriptor;if(tb)try{tb({},"")}catch{tb=null}var GK=function(){throw new b3},nMt=tb?function(){try{return arguments.callee,GK}catch{try{return tb(arguments,"callee").get}catch{return GK}}}():GK,y3=Tbe()(),Tf=Object.getPrototypeOf||function(r){return r.__proto__},g3={},aMt=typeof Uint8Array>"u"?Ur:Tf(Uint8Array),rb={"%AggregateError%":typeof AggregateError>"u"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":y3?Tf([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":g3,"%AsyncGenerator%":g3,"%AsyncGeneratorFunction%":g3,"%AsyncIteratorPrototype%":g3,"%Atomics%":typeof Atomics>"u"?Ur:Atomics,"%BigInt%":typeof BigInt>"u"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ur:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ur:FinalizationRegistry,"%Function%":Mbe,"%GeneratorFunction%":g3,"%Int8Array%":typeof Int8Array>"u"?Ur:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ur:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":y3?Tf(Tf([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map>"u"?Ur:Map,"%MapIteratorPrototype%":typeof Map>"u"||!y3?Ur:Tf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ur:Promise,"%Proxy%":typeof Proxy>"u"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ur:Set,"%SetIteratorPrototype%":typeof Set>"u"||!y3?Ur:Tf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":y3?Tf(""[Symbol.iterator]()):Ur,"%Symbol%":y3?Symbol:Ur,"%SyntaxError%":v3,"%ThrowTypeError%":nMt,"%TypedArray%":aMt,"%TypeError%":b3,"%Uint8Array%":typeof Uint8Array>"u"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ur:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ur:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ur:WeakSet};try{null.error}catch(r){Sbe=Tf(Tf(r)),rb["%Error.prototype%"]=Sbe}var Sbe,iMt=function r(e){var t;if(e==="%AsyncFunction%")t=VK("async function () {}");else if(e==="%GeneratorFunction%")t=VK("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=VK("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Tf(a.prototype))}return rb[e]=t,t},Pbe={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bE=U7(),H7=Abe(),sMt=bE.call(Function.call,Array.prototype.concat),oMt=bE.call(Function.apply,Array.prototype.splice),Rbe=bE.call(Function.call,String.prototype.replace),j7=bE.call(Function.call,String.prototype.slice),cMt=bE.call(Function.call,RegExp.prototype.exec),uMt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,lMt=/\\(\\)?/g,dMt=function(e){var t=j7(e,0,1),n=j7(e,-1);if(t==="%"&&n!=="%")throw new v3("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new v3("invalid intrinsic syntax, expected opening `%`");var a=[];return Rbe(e,uMt,function(i,s,o,c){a[a.length]=o?Rbe(c,lMt,"$1"):s||i}),a},pMt=function(e,t){var n=e,a;if(H7(Pbe,n)&&(a=Pbe[n],n="%"+a[0]+"%"),H7(rb,n)){var i=rb[n];if(i===g3&&(i=iMt(n)),typeof i>"u"&&!t)throw new b3("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new v3("intrinsic "+e+" does not exist!")};Nbe.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new b3("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new b3('"allowMissing" argument must be a boolean');if(cMt(/^%?[^%]*%?$/,e)===null)throw new v3("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=dMt(e),a=n.length>0?n[0]:"",i=pMt("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],oMt(n,sMt([0,1],u)));for(var l=1,h=!0;l=n.length){var E=tb(o,f);h=!!E,h&&"get"in E&&!("originalValue"in E.get)?o=E.get:o=o[f]}else h=H7(o,f),o=o[f];h&&!c&&(rb[s]=o)}}return o}});var Fbe=_((T_n,z7)=>{"use strict";d();p();var $K=U7(),w3=vE(),Obe=w3("%Function.prototype.apply%"),Lbe=w3("%Function.prototype.call%"),qbe=w3("%Reflect.apply%",!0)||$K.call(Lbe,Obe),Bbe=w3("%Object.getOwnPropertyDescriptor%",!0),nb=w3("%Object.defineProperty%",!0),hMt=w3("%Math.max%");if(nb)try{nb({},"a",{value:1})}catch{nb=null}z7.exports=function(e){var t=qbe($K,Lbe,arguments);if(Bbe&&nb){var n=Bbe(t,"length");n.configurable&&nb(t,"length",{value:1+hMt(0,e.length-(arguments.length-1))})}return t};var Dbe=function(){return qbe($K,Obe,arguments)};nb?nb(z7.exports,"apply",{value:Dbe}):z7.exports.apply=Dbe});var wE=_((I_n,Hbe)=>{"use strict";d();p();var Wbe=vE(),Ube=Fbe(),fMt=Ube(Wbe("String.prototype.indexOf"));Hbe.exports=function(e,t){var n=Wbe(e,!!t);return typeof n=="function"&&fMt(e,".prototype.")>-1?Ube(n):n}});var Kbe=_((S_n,zbe)=>{"use strict";d();p();var mMt=gE()(),yMt=wE(),YK=yMt("Object.prototype.toString"),K7=function(e){return mMt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:YK(e)==="[object Arguments]"},jbe=function(e){return K7(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&YK(e)!=="[object Array]"&&YK(e.callee)==="[object Function]"},gMt=function(){return K7(arguments)}();K7.isLegacyArguments=jbe;zbe.exports=gMt?K7:jbe});var $be=_((M_n,Gbe)=>{"use strict";d();p();var bMt=Object.prototype.toString,vMt=Function.prototype.toString,wMt=/^\s*(?:function)?\*/,Vbe=gE()(),JK=Object.getPrototypeOf,xMt=function(){if(!Vbe)return!1;try{return Function("return function*() {}")()}catch{}},QK;Gbe.exports=function(e){if(typeof e!="function")return!1;if(wMt.test(vMt.call(e)))return!0;if(!Vbe){var t=bMt.call(e);return t==="[object GeneratorFunction]"}if(!JK)return!1;if(typeof QK>"u"){var n=xMt();QK=n?JK(n):!1}return JK(e)===QK}});var Zbe=_((D_n,Qbe)=>{"use strict";d();p();var Jbe=Function.prototype.toString,x3=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,XK,V7;if(typeof x3=="function"&&typeof Object.defineProperty=="function")try{XK=Object.defineProperty({},"length",{get:function(){throw V7}}),V7={},x3(function(){throw 42},null,XK)}catch(r){r!==V7&&(x3=null)}else x3=null;var _Mt=/^\s*class\b/,eV=function(e){try{var t=Jbe.call(e);return _Mt.test(t)}catch{return!1}},ZK=function(e){try{return eV(e)?!1:(Jbe.call(e),!0)}catch{return!1}},G7=Object.prototype.toString,TMt="[object Object]",EMt="[object Function]",CMt="[object GeneratorFunction]",IMt="[object HTMLAllCollection]",kMt="[object HTML document.all class]",AMt="[object HTMLCollection]",SMt=typeof Symbol=="function"&&!!Symbol.toStringTag,PMt=!(0 in[,]),tV=function(){return!1};typeof document=="object"&&(Ybe=document.all,G7.call(Ybe)===G7.call(document.all)&&(tV=function(e){if((PMt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=G7.call(e);return(t===IMt||t===kMt||t===AMt||t===TMt)&&e("")==null}catch{}return!1}));var Ybe;Qbe.exports=x3?function(e){if(tV(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{x3(e,null,XK)}catch(t){if(t!==V7)return!1}return!eV(e)&&ZK(e)}:function(e){if(tV(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(SMt)return ZK(e);if(eV(e))return!1;var t=G7.call(e);return t!==EMt&&t!==CMt&&!/^\[object HTML/.test(t)?!1:ZK(e)}});var rV=_((q_n,eve)=>{"use strict";d();p();var RMt=Zbe(),MMt=Object.prototype.toString,Xbe=Object.prototype.hasOwnProperty,NMt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),MMt.call(e)==="[object Array]"?NMt(e,t,a):typeof e=="string"?BMt(e,t,a):DMt(e,t,a)};eve.exports=OMt});var aV=_((U_n,tve)=>{"use strict";d();p();var nV=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],LMt=typeof globalThis>"u"?global:globalThis;tve.exports=function(){for(var e=[],t=0;t{"use strict";d();p();var qMt=vE(),$7=qMt("%Object.getOwnPropertyDescriptor%",!0);if($7)try{$7([],"length")}catch{$7=null}rve.exports=$7});var cV=_((G_n,ove)=>{"use strict";d();p();var nve=rV(),FMt=aV(),oV=wE(),WMt=oV("Object.prototype.toString"),ave=gE()(),Y7=iV(),UMt=typeof globalThis>"u"?global:globalThis,ive=FMt(),HMt=oV("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return Y7?zMt(e):!1}});var fve=_((J_n,hve)=>{"use strict";d();p();var uve=rV(),KMt=aV(),lve=wE(),uV=iV(),VMt=lve("Object.prototype.toString"),dve=gE()(),cve=typeof globalThis>"u"?global:globalThis,GMt=KMt(),$Mt=lve("String.prototype.slice"),pve={},lV=Object.getPrototypeOf;dve&&uV&&lV&&uve(GMt,function(r){if(typeof cve[r]=="function"){var e=new cve[r];if(Symbol.toStringTag in e){var t=lV(e),n=uV(t,Symbol.toStringTag);if(!n){var a=lV(t);n=uV(a,Symbol.toStringTag)}pve[r]=n.get}}});var YMt=function(e){var t=!1;return uve(pve,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},JMt=cV();hve.exports=function(e){return JMt(e)?!dve||!(Symbol.toStringTag in e)?$Mt(VMt(e),8,-1):YMt(e):!1}});var Ave=_(Or=>{"use strict";d();p();var QMt=Kbe(),ZMt=$be(),rh=fve(),mve=cV();function _3(r){return r.call.bind(r)}var yve=typeof BigInt<"u",gve=typeof Symbol<"u",Bd=_3(Object.prototype.toString),XMt=_3(Number.prototype.valueOf),eNt=_3(String.prototype.valueOf),tNt=_3(Boolean.prototype.valueOf);yve&&(bve=_3(BigInt.prototype.valueOf));var bve;gve&&(vve=_3(Symbol.prototype.valueOf));var vve;function _E(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Or.isArgumentsObject=QMt;Or.isGeneratorFunction=ZMt;Or.isTypedArray=mve;function rNt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Or.isPromise=rNt;function nNt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):mve(r)||xve(r)}Or.isArrayBufferView=nNt;function aNt(r){return rh(r)==="Uint8Array"}Or.isUint8Array=aNt;function iNt(r){return rh(r)==="Uint8ClampedArray"}Or.isUint8ClampedArray=iNt;function sNt(r){return rh(r)==="Uint16Array"}Or.isUint16Array=sNt;function oNt(r){return rh(r)==="Uint32Array"}Or.isUint32Array=oNt;function cNt(r){return rh(r)==="Int8Array"}Or.isInt8Array=cNt;function uNt(r){return rh(r)==="Int16Array"}Or.isInt16Array=uNt;function lNt(r){return rh(r)==="Int32Array"}Or.isInt32Array=lNt;function dNt(r){return rh(r)==="Float32Array"}Or.isFloat32Array=dNt;function pNt(r){return rh(r)==="Float64Array"}Or.isFloat64Array=pNt;function hNt(r){return rh(r)==="BigInt64Array"}Or.isBigInt64Array=hNt;function fNt(r){return rh(r)==="BigUint64Array"}Or.isBigUint64Array=fNt;function J7(r){return Bd(r)==="[object Map]"}J7.working=typeof Map<"u"&&J7(new Map);function mNt(r){return typeof Map>"u"?!1:J7.working?J7(r):r instanceof Map}Or.isMap=mNt;function Q7(r){return Bd(r)==="[object Set]"}Q7.working=typeof Set<"u"&&Q7(new Set);function yNt(r){return typeof Set>"u"?!1:Q7.working?Q7(r):r instanceof Set}Or.isSet=yNt;function Z7(r){return Bd(r)==="[object WeakMap]"}Z7.working=typeof WeakMap<"u"&&Z7(new WeakMap);function gNt(r){return typeof WeakMap>"u"?!1:Z7.working?Z7(r):r instanceof WeakMap}Or.isWeakMap=gNt;function pV(r){return Bd(r)==="[object WeakSet]"}pV.working=typeof WeakSet<"u"&&pV(new WeakSet);function bNt(r){return pV(r)}Or.isWeakSet=bNt;function X7(r){return Bd(r)==="[object ArrayBuffer]"}X7.working=typeof ArrayBuffer<"u"&&X7(new ArrayBuffer);function wve(r){return typeof ArrayBuffer>"u"?!1:X7.working?X7(r):r instanceof ArrayBuffer}Or.isArrayBuffer=wve;function eR(r){return Bd(r)==="[object DataView]"}eR.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&eR(new DataView(new ArrayBuffer(1),0,1));function xve(r){return typeof DataView>"u"?!1:eR.working?eR(r):r instanceof DataView}Or.isDataView=xve;var dV=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function xE(r){return Bd(r)==="[object SharedArrayBuffer]"}function _ve(r){return typeof dV>"u"?!1:(typeof xE.working>"u"&&(xE.working=xE(new dV)),xE.working?xE(r):r instanceof dV)}Or.isSharedArrayBuffer=_ve;function vNt(r){return Bd(r)==="[object AsyncFunction]"}Or.isAsyncFunction=vNt;function wNt(r){return Bd(r)==="[object Map Iterator]"}Or.isMapIterator=wNt;function xNt(r){return Bd(r)==="[object Set Iterator]"}Or.isSetIterator=xNt;function _Nt(r){return Bd(r)==="[object Generator]"}Or.isGeneratorObject=_Nt;function TNt(r){return Bd(r)==="[object WebAssembly.Module]"}Or.isWebAssemblyCompiledModule=TNt;function Tve(r){return _E(r,XMt)}Or.isNumberObject=Tve;function Eve(r){return _E(r,eNt)}Or.isStringObject=Eve;function Cve(r){return _E(r,tNt)}Or.isBooleanObject=Cve;function Ive(r){return yve&&_E(r,bve)}Or.isBigIntObject=Ive;function kve(r){return gve&&_E(r,vve)}Or.isSymbolObject=kve;function ENt(r){return Tve(r)||Eve(r)||Cve(r)||Ive(r)||kve(r)}Or.isBoxedPrimitive=ENt;function CNt(r){return typeof Uint8Array<"u"&&(wve(r)||_ve(r))}Or.isAnyArrayBuffer=CNt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Or,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var Pve=_((rTn,Sve)=>{d();p();Sve.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var cR=_(Lr=>{d();p();var Rve=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return Lr.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var tR={},Mve=/^$/;g.env.NODE_DEBUG&&(rR=g.env.NODE_DEBUG,rR=rR.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),Mve=new RegExp("^"+rR+"$","i"));var rR;Lr.debuglog=function(r){if(r=r.toUpperCase(),!tR[r])if(Mve.test(r)){var e=g.pid;tR[r]=function(){var t=Lr.format.apply(Lr,arguments);console.error("%s %d: %s",r,e,t)}}else tR[r]=function(){};return tR[r]};function wy(r,e){var t={seen:[],stylize:ANt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),yV(e)?t.showHidden=e:e&&Lr._extend(t,e),ib(t.showHidden)&&(t.showHidden=!1),ib(t.depth)&&(t.depth=2),ib(t.colors)&&(t.colors=!1),ib(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=kNt),aR(t,r,t.depth)}Lr.inspect=wy;wy.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};wy.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function kNt(r,e){var t=wy.styles[e];return t?"\x1B["+wy.colors[t][0]+"m"+r+"\x1B["+wy.colors[t][1]+"m":r}function ANt(r,e){return r}function SNt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function aR(r,e,t){if(r.customInspect&&e&&nR(e.inspect)&&e.inspect!==Lr.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return oR(n)||(n=aR(r,n,t)),n}var a=PNt(r,e);if(a)return a;var i=Object.keys(e),s=SNt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),EE(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return hV(e);if(i.length===0){if(nR(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(TE(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(iR(e))return r.stylize(Date.prototype.toString.call(e),"date");if(EE(e))return hV(e)}var c="",u=!1,l=["{","}"];if(Nve(e)&&(u=!0,l=["[","]"]),nR(e)){var h=e.name?": "+e.name:"";c=" [Function"+h+"]"}if(TE(e)&&(c=" "+RegExp.prototype.toString.call(e)),iR(e)&&(c=" "+Date.prototype.toUTCString.call(e)),EE(e)&&(c=" "+hV(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return TE(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var f;return u?f=RNt(r,e,t,s,i):f=i.map(function(m){return mV(r,e,t,s,m,u)}),r.seen.pop(),MNt(f,c,l)}function PNt(r,e){if(ib(e))return r.stylize("undefined","undefined");if(oR(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(Bve(e))return r.stylize(""+e,"number");if(yV(e))return r.stylize(""+e,"boolean");if(sR(e))return r.stylize("null","null")}function hV(r){return"["+Error.prototype.toString.call(r)+"]"}function RNt(r,e,t,n,a){for(var i=[],s=0,o=e.length;s{var aPt=Object.create;var e7=Object.defineProperty;var iPt=Object.getOwnPropertyDescriptor;var sPt=Object.getOwnPropertyNames;var oPt=Object.getPrototypeOf,cPt=Object.prototype.hasOwnProperty;var o1e=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var ce=(r,e)=>()=>(r&&(e=r(r=0)),e);var x=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),cr=(r,e)=>{for(var t in e)e7(r,t,{get:e[t],enumerable:!0})},XP=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of sPt(e))!cPt.call(r,a)&&a!==t&&e7(r,a,{get:()=>e[a],enumerable:!(n=iPt(e,a))||n.enumerable});return r},gr=(r,e,t)=>(XP(r,e,"default"),t&&XP(t,e,"default")),on=(r,e,t)=>(t=r!=null?aPt(oPt(r)):{},XP(e||!r||!r.__esModule?e7(t,"default",{value:r,enumerable:!0}):t,r)),nt=r=>XP(e7({},"__esModule",{value:!0}),r);var g,d=ce(()=>{g={env:"production"}});var l1e=x(t7=>{"use strict";d();p();t7.byteLength=dPt;t7.toByteArray=hPt;t7.fromByteArray=yPt;var df=[],kd=[],lPt=typeof Uint8Array<"u"?Uint8Array:Array,hK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Vg=0,c1e=hK.length;Vg0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function dPt(r){var e=u1e(r),t=e[0],n=e[1];return(t+n)*3/4-n}function pPt(r,e,t){return(e+t)*3/4-t}function hPt(r){var e,t=u1e(r),n=t[0],a=t[1],i=new lPt(pPt(r,n,a)),s=0,o=a>0?n-4:n,c;for(c=0;c>16&255,i[s++]=e>>8&255,i[s++]=e&255;return a===2&&(e=kd[r.charCodeAt(c)]<<2|kd[r.charCodeAt(c+1)]>>4,i[s++]=e&255),a===1&&(e=kd[r.charCodeAt(c)]<<10|kd[r.charCodeAt(c+1)]<<4|kd[r.charCodeAt(c+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function fPt(r){return df[r>>18&63]+df[r>>12&63]+df[r>>6&63]+df[r&63]}function mPt(r,e,t){for(var n,a=[],i=e;io?o:s+i));return n===1?(e=r[t-1],a.push(df[e>>2]+df[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],a.push(df[e>>10]+df[e>>4&63]+df[e<<2&63]+"=")),a.join("")}});var d1e=x(fK=>{d();p();fK.read=function(r,e,t,n,a){var i,s,o=a*8-n-1,c=(1<>1,l=-7,h=t?a-1:0,f=t?-1:1,m=r[e+h];for(h+=f,i=m&(1<<-l)-1,m>>=-l,l+=o;l>0;i=i*256+r[e+h],h+=f,l-=8);for(s=i&(1<<-l)-1,i>>=-l,l+=n;l>0;s=s*256+r[e+h],h+=f,l-=8);if(i===0)i=1-u;else{if(i===c)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),i=i-u}return(m?-1:1)*s*Math.pow(2,i-n)};fK.write=function(r,e,t,n,a,i){var s,o,c,u=i*8-a-1,l=(1<>1,f=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:i-1,y=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),s+h>=1?e+=f/c:e+=f*Math.pow(2,1-h),e*c>=2&&(s++,c/=2),s+h>=l?(o=0,s=l):s+h>=1?(o=(e*c-1)*Math.pow(2,a),s=s+h):(o=e*Math.pow(2,h-1)*Math.pow(2,a),s=0));a>=8;r[t+m]=o&255,m+=y,o/=256,a-=8);for(s=s<0;r[t+m]=s&255,m+=y,s/=256,u-=8);r[t+m-y]|=E*128}});var cc=x(s5=>{"use strict";d();p();var mK=l1e(),i5=d1e(),p1e=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;s5.Buffer=xe;s5.SlowBuffer=xPt;s5.INSPECT_MAX_BYTES=50;var r7=2147483647;s5.kMaxLength=r7;xe.TYPED_ARRAY_SUPPORT=gPt();!xe.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 gPt(){try{var r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(xe.prototype,"parent",{enumerable:!0,get:function(){if(!!xe.isBuffer(this))return this.buffer}});Object.defineProperty(xe.prototype,"offset",{enumerable:!0,get:function(){if(!!xe.isBuffer(this))return this.byteOffset}});function zm(r){if(r>r7)throw new RangeError('The value "'+r+'" is invalid for option "size"');var e=new Uint8Array(r);return Object.setPrototypeOf(e,xe.prototype),e}function xe(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return vK(r)}return m1e(r,e,t)}xe.poolSize=8192;function m1e(r,e,t){if(typeof r=="string")return vPt(r,e);if(ArrayBuffer.isView(r))return wPt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(pf(r,ArrayBuffer)||r&&pf(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(pf(r,SharedArrayBuffer)||r&&pf(r.buffer,SharedArrayBuffer)))return gK(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return xe.from(n,e,t);var a=_Pt(r);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return xe.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}xe.from=function(r,e,t){return m1e(r,e,t)};Object.setPrototypeOf(xe.prototype,Uint8Array.prototype);Object.setPrototypeOf(xe,Uint8Array);function y1e(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function bPt(r,e,t){return y1e(r),r<=0?zm(r):e!==void 0?typeof t=="string"?zm(r).fill(e,t):zm(r).fill(e):zm(r)}xe.alloc=function(r,e,t){return bPt(r,e,t)};function vK(r){return y1e(r),zm(r<0?0:wK(r)|0)}xe.allocUnsafe=function(r){return vK(r)};xe.allocUnsafeSlow=function(r){return vK(r)};function vPt(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!xe.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var t=g1e(r,e)|0,n=zm(t),a=n.write(r,e);return a!==t&&(n=n.slice(0,a)),n}function yK(r){for(var e=r.length<0?0:wK(r.length)|0,t=zm(e),n=0;n=r7)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r7.toString(16)+" bytes");return r|0}function xPt(r){return+r!=r&&(r=0),xe.alloc(+r)}xe.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==xe.prototype};xe.compare=function(e,t){if(pf(e,Uint8Array)&&(e=xe.from(e,e.offset,e.byteLength)),pf(t,Uint8Array)&&(t=xe.from(t,t.offset,t.byteLength)),!xe.isBuffer(e)||!xe.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,a=t.length,i=0,s=Math.min(n,a);ia.length?xe.from(s).copy(a,i):Uint8Array.prototype.set.call(a,s,i);else if(xe.isBuffer(s))s.copy(a,i);else throw new TypeError('"list" argument must be an Array of Buffers');i+=s.length}return a};function g1e(r,e){if(xe.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||pf(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);var t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var a=!1;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return bK(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return T1e(r).length;default:if(a)return n?-1:bK(r).length;e=(""+e).toLowerCase(),a=!0}}xe.byteLength=g1e;function TPt(r,e,t){var n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return NPt(this,e,t);case"utf8":case"utf-8":return v1e(this,e,t);case"ascii":return RPt(this,e,t);case"latin1":case"binary":return MPt(this,e,t);case"base64":return SPt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return BPt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}xe.prototype._isBuffer=!0;function $g(r,e,t){var n=r[e];r[e]=r[t],r[t]=n}xe.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(e+=" ... "),""};p1e&&(xe.prototype[p1e]=xe.prototype.inspect);xe.prototype.compare=function(e,t,n,a,i){if(pf(e,Uint8Array)&&(e=xe.from(e,e.offset,e.byteLength)),!xe.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),a===void 0&&(a=0),i===void 0&&(i=this.length),t<0||n>e.length||a<0||i>this.length)throw new RangeError("out of range index");if(a>=i&&t>=n)return 0;if(a>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,a>>>=0,i>>>=0,this===e)return 0;for(var s=i-a,o=n-t,c=Math.min(s,o),u=this.slice(a,i),l=e.slice(t,n),h=0;h2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,_K(t)&&(t=a?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(a)return-1;t=r.length-1}else if(t<0)if(a)t=0;else return-1;if(typeof e=="string"&&(e=xe.from(e,n)),xe.isBuffer(e))return e.length===0?-1:h1e(r,e,t,n,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):h1e(r,[e],t,n,a);throw new TypeError("val must be string, number or Buffer")}function h1e(r,e,t,n,a){var i=1,s=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;i=2,s/=2,o/=2,t/=2}function c(m,y){return i===1?m[y]:m.readUInt16BE(y*i)}var u;if(a){var l=-1;for(u=t;us&&(t=s-o),u=t;u>=0;u--){for(var h=!0,f=0;fa&&(n=a)):n=a;var i=e.length;n>i/2&&(n=i/2);for(var s=0;s>>0,isFinite(n)?(n=n>>>0,a===void 0&&(a="utf8")):(a=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");for(var s=!1;;)switch(a){case"hex":return EPt(this,e,t,n);case"utf8":case"utf-8":return CPt(this,e,t,n);case"ascii":case"latin1":case"binary":return IPt(this,e,t,n);case"base64":return kPt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return APt(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),s=!0}};xe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function SPt(r,e,t){return e===0&&t===r.length?mK.fromByteArray(r):mK.fromByteArray(r.slice(e,t))}function v1e(r,e,t){t=Math.min(r.length,t);for(var n=[],a=e;a239?4:i>223?3:i>191?2:1;if(a+o<=t){var c,u,l,h;switch(o){case 1:i<128&&(s=i);break;case 2:c=r[a+1],(c&192)===128&&(h=(i&31)<<6|c&63,h>127&&(s=h));break;case 3:c=r[a+1],u=r[a+2],(c&192)===128&&(u&192)===128&&(h=(i&15)<<12|(c&63)<<6|u&63,h>2047&&(h<55296||h>57343)&&(s=h));break;case 4:c=r[a+1],u=r[a+2],l=r[a+3],(c&192)===128&&(u&192)===128&&(l&192)===128&&(h=(i&15)<<18|(c&63)<<12|(u&63)<<6|l&63,h>65535&&h<1114112&&(s=h))}}s===null?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|s&1023),n.push(s),a+=o}return PPt(n)}var f1e=4096;function PPt(r){var e=r.length;if(e<=f1e)return String.fromCharCode.apply(String,r);for(var t="",n=0;nn)&&(t=n);for(var a="",i=e;in&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}xe.prototype.readUintLE=xe.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e+--t],i=1;t>0&&(i*=256);)a+=this[e+--t]*i;return a};xe.prototype.readUint8=xe.prototype.readUInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]};xe.prototype.readUint16LE=xe.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]|this[e+1]<<8};xe.prototype.readUint16BE=xe.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||Ao(e,2,this.length),this[e]<<8|this[e+1]};xe.prototype.readUint32LE=xe.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};xe.prototype.readUint32BE=xe.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};xe.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=this[e],i=1,s=0;++s=i&&(a-=Math.pow(2,8*t)),a};xe.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||Ao(e,t,this.length);for(var a=t,i=1,s=this[e+--a];a>0&&(i*=256);)s+=this[e+--a]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s};xe.prototype.readInt8=function(e,t){return e=e>>>0,t||Ao(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};xe.prototype.readInt16LE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};xe.prototype.readInt16BE=function(e,t){e=e>>>0,t||Ao(e,2,this.length);var n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};xe.prototype.readInt32LE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};xe.prototype.readInt32BE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};xe.prototype.readFloatLE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),i5.read(this,e,!0,23,4)};xe.prototype.readFloatBE=function(e,t){return e=e>>>0,t||Ao(e,4,this.length),i5.read(this,e,!1,23,4)};xe.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),i5.read(this,e,!0,52,8)};xe.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||Ao(e,8,this.length),i5.read(this,e,!1,52,8)};function ul(r,e,t,n,a,i){if(!xe.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||er.length)throw new RangeError("Index out of range")}xe.prototype.writeUintLE=xe.prototype.writeUIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ul(this,e,t,n,i,0)}var s=1,o=0;for(this[t]=e&255;++o>>0,n=n>>>0,!a){var i=Math.pow(2,8*n)-1;ul(this,e,t,n,i,0)}var s=n-1,o=1;for(this[t+s]=e&255;--s>=0&&(o*=256);)this[t+s]=e/o&255;return t+n};xe.prototype.writeUint8=xe.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,1,255,0),this[t]=e&255,t+1};xe.prototype.writeUint16LE=xe.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};xe.prototype.writeUint16BE=xe.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};xe.prototype.writeUint32LE=xe.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};xe.prototype.writeUint32BE=xe.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};xe.prototype.writeIntLE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ul(this,e,t,n,i-1,-i)}var s=0,o=1,c=0;for(this[t]=e&255;++s>0)-c&255;return t+n};xe.prototype.writeIntBE=function(e,t,n,a){if(e=+e,t=t>>>0,!a){var i=Math.pow(2,8*n-1);ul(this,e,t,n,i-1,-i)}var s=n-1,o=1,c=0;for(this[t+s]=e&255;--s>=0&&(o*=256);)e<0&&c===0&&this[t+s+1]!==0&&(c=1),this[t+s]=(e/o>>0)-c&255;return t+n};xe.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};xe.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};xe.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};xe.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};xe.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||ul(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function w1e(r,e,t,n,a,i){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function _1e(r,e,t,n,a){return e=+e,t=t>>>0,a||w1e(r,e,t,4,34028234663852886e22,-34028234663852886e22),i5.write(r,e,t,n,23,4),t+4}xe.prototype.writeFloatLE=function(e,t,n){return _1e(this,e,t,!0,n)};xe.prototype.writeFloatBE=function(e,t,n){return _1e(this,e,t,!1,n)};function x1e(r,e,t,n,a){return e=+e,t=t>>>0,a||w1e(r,e,t,8,17976931348623157e292,-17976931348623157e292),i5.write(r,e,t,n,52,8),t+8}xe.prototype.writeDoubleLE=function(e,t,n){return x1e(this,e,t,!0,n)};xe.prototype.writeDoubleBE=function(e,t,n){return x1e(this,e,t,!1,n)};xe.prototype.copy=function(e,t,n,a){if(!xe.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!a&&a!==0&&(a=this.length),t>=e.length&&(t=e.length),t||(t=0),a>0&&a=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-t>>0,n=n===void 0?this.length:n>>>0,e||(e=0);var s;if(typeof e=="number")for(s=t;s55295&&t<57344){if(!a){if(t>56319){(e-=3)>-1&&i.push(239,191,189);continue}else if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}a=t;continue}if(t<56320){(e-=3)>-1&&i.push(239,191,189),a=t;continue}t=(a-55296<<10|t-56320)+65536}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,t<128){if((e-=1)<0)break;i.push(t)}else if(t<2048){if((e-=2)<0)break;i.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;i.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return i}function LPt(r){for(var e=[],t=0;t>8,a=t%256,i.push(a),i.push(n);return i}function T1e(r){return mK.toByteArray(OPt(r))}function n7(r,e,t,n){for(var a=0;a=e.length||a>=r.length);++a)e[a+t]=r[a];return a}function pf(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function _K(r){return r!==r}var FPt=function(){for(var r="0123456789abcdef",e=new Array(256),t=0;t<16;++t)for(var n=t*16,a=0;a<16;++a)e[n+a]=r[t]+r[a];return e}()});var A1e=x((R5n,k1e)=>{d();p();var vs=k1e.exports={},hf,ff;function xK(){throw new Error("setTimeout has not been defined")}function TK(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?hf=setTimeout:hf=xK}catch{hf=xK}try{typeof clearTimeout=="function"?ff=clearTimeout:ff=TK}catch{ff=TK}})();function E1e(r){if(hf===setTimeout)return setTimeout(r,0);if((hf===xK||!hf)&&setTimeout)return hf=setTimeout,setTimeout(r,0);try{return hf(r,0)}catch{try{return hf.call(null,r,0)}catch{return hf.call(this,r,0)}}}function WPt(r){if(ff===clearTimeout)return clearTimeout(r);if((ff===TK||!ff)&&clearTimeout)return ff=clearTimeout,clearTimeout(r);try{return ff(r)}catch{try{return ff.call(null,r)}catch{return ff.call(this,r)}}}var Km=[],o5=!1,Yg,a7=-1;function UPt(){!o5||!Yg||(o5=!1,Yg.length?Km=Yg.concat(Km):a7=-1,Km.length&&C1e())}function C1e(){if(!o5){var r=E1e(UPt);o5=!0;for(var e=Km.length;e;){for(Yg=Km,Km=[];++a71)for(var t=1;t{b=on(cc()),w=on(A1e()),HPt=function(r){function e(){var n=this||self;return delete r.prototype.__magic__,n}if(typeof globalThis=="object")return globalThis;if(this)return e();r.defineProperty(r.prototype,"__magic__",{configurable:!0,get:e});var t=__magic__;return t}(Object),global=HPt});var Ir=x((S1e,EK)=>{d();p();(function(r,e){"use strict";function t(A,v){if(!A)throw new Error(v||"Assertion failed")}function n(A,v){A.super_=v;var k=function(){};k.prototype=v.prototype,A.prototype=new k,A.prototype.constructor=A}function a(A,v,k){if(a.isBN(A))return A;this.negative=0,this.words=null,this.length=0,this.red=null,A!==null&&((v==="le"||v==="be")&&(k=v,v=10),this._init(A||0,v||10,k||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=cc().Buffer}catch{}a.isBN=function(v){return v instanceof a?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===a.wordSize&&Array.isArray(v.words)},a.max=function(v,k){return v.cmp(k)>0?v:k},a.min=function(v,k){return v.cmp(k)<0?v:k},a.prototype._init=function(v,k,O){if(typeof v=="number")return this._initNumber(v,k,O);if(typeof v=="object")return this._initArray(v,k,O);k==="hex"&&(k=16),t(k===(k|0)&&k>=2&&k<=36),v=v.toString().replace(/\s+/g,"");var D=0;v[0]==="-"&&(D++,this.negative=1),D=0;D-=3)_=v[D]|v[D-1]<<8|v[D-2]<<16,this.words[B]|=_<>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);else if(O==="le")for(D=0,B=0;D>>26-N&67108863,N+=24,N>=26&&(N-=26,B++);return this._strip()};function s(A,v){var k=A.charCodeAt(v);if(k>=48&&k<=57)return k-48;if(k>=65&&k<=70)return k-55;if(k>=97&&k<=102)return k-87;t(!1,"Invalid character in "+A)}function o(A,v,k){var O=s(A,k);return k-1>=v&&(O|=s(A,k-1)<<4),O}a.prototype._parseHex=function(v,k,O){this.length=Math.ceil((v.length-k)/6),this.words=new Array(this.length);for(var D=0;D=k;D-=2)N=o(v,k,D)<=18?(B-=18,_+=1,this.words[_]|=N>>>26):B+=8;else{var U=v.length-k;for(D=U%2===0?k+1:k;D=18?(B-=18,_+=1,this.words[_]|=N>>>26):B+=8}this._strip()};function c(A,v,k,O){for(var D=0,B=0,_=Math.min(A.length,k),N=v;N<_;N++){var U=A.charCodeAt(N)-48;D*=O,U>=49?B=U-49+10:U>=17?B=U-17+10:B=U,t(U>=0&&B1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch{a.prototype.inspect=l}else a.prototype.inspect=l;function l(){return(this.red?""}var h=["","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"],f=[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],m=[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];a.prototype.toString=function(v,k){v=v||10,k=k|0||1;var O;if(v===16||v==="hex"){O="";for(var D=0,B=0,_=0;_>>24-D&16777215,D+=2,D>=26&&(D-=26,_--),B!==0||_!==this.length-1?O=h[6-U.length]+U+O:O=U+O}for(B!==0&&(O=B.toString(16)+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}if(v===(v|0)&&v>=2&&v<=36){var C=f[v],z=m[v];O="";var ee=this.clone();for(ee.negative=0;!ee.isZero();){var j=ee.modrn(z).toString(v);ee=ee.idivn(z),ee.isZero()?O=j+O:O=h[C-j.length]+j+O}for(this.isZero()&&(O="0"+O);O.length%k!==0;)O="0"+O;return this.negative!==0&&(O="-"+O),O}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(v,k){return this.toArrayLike(i,v,k)}),a.prototype.toArray=function(v,k){return this.toArrayLike(Array,v,k)};var y=function(v,k){return v.allocUnsafe?v.allocUnsafe(k):new v(k)};a.prototype.toArrayLike=function(v,k,O){this._strip();var D=this.byteLength(),B=O||Math.max(1,D);t(D<=B,"byte array longer than desired length"),t(B>0,"Requested array length <= 0");var _=y(v,B),N=k==="le"?"LE":"BE";return this["_toArrayLike"+N](_,D),_},a.prototype._toArrayLikeLE=function(v,k){for(var O=0,D=0,B=0,_=0;B>8&255),O>16&255),_===6?(O>24&255),D=0,_=0):(D=N>>>24,_+=2)}if(O=0&&(v[O--]=N>>8&255),O>=0&&(v[O--]=N>>16&255),_===6?(O>=0&&(v[O--]=N>>24&255),D=0,_=0):(D=N>>>24,_+=2)}if(O>=0)for(v[O--]=D;O>=0;)v[O--]=0},Math.clz32?a.prototype._countBits=function(v){return 32-Math.clz32(v)}:a.prototype._countBits=function(v){var k=v,O=0;return k>=4096&&(O+=13,k>>>=13),k>=64&&(O+=7,k>>>=7),k>=8&&(O+=4,k>>>=4),k>=2&&(O+=2,k>>>=2),O+k},a.prototype._zeroBits=function(v){if(v===0)return 26;var k=v,O=0;return(k&8191)===0&&(O+=13,k>>>=13),(k&127)===0&&(O+=7,k>>>=7),(k&15)===0&&(O+=4,k>>>=4),(k&3)===0&&(O+=2,k>>>=2),(k&1)===0&&O++,O},a.prototype.bitLength=function(){var v=this.words[this.length-1],k=this._countBits(v);return(this.length-1)*26+k};function E(A){for(var v=new Array(A.bitLength()),k=0;k>>D&1}return v}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,k=0;kv.length?this.clone().ior(v):v.clone().ior(this)},a.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},a.prototype.iuand=function(v){var k;this.length>v.length?k=v:k=this;for(var O=0;Ov.length?this.clone().iand(v):v.clone().iand(this)},a.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},a.prototype.iuxor=function(v){var k,O;this.length>v.length?(k=this,O=v):(k=v,O=this);for(var D=0;Dv.length?this.clone().ixor(v):v.clone().ixor(this)},a.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},a.prototype.inotn=function(v){t(typeof v=="number"&&v>=0);var k=Math.ceil(v/26)|0,O=v%26;this._expand(k),O>0&&k--;for(var D=0;D0&&(this.words[D]=~this.words[D]&67108863>>26-O),this._strip()},a.prototype.notn=function(v){return this.clone().inotn(v)},a.prototype.setn=function(v,k){t(typeof v=="number"&&v>=0);var O=v/26|0,D=v%26;return this._expand(O+1),k?this.words[O]=this.words[O]|1<v.length?(O=this,D=v):(O=v,D=this);for(var B=0,_=0;_>>26;for(;B!==0&&_>>26;if(this.length=O.length,B!==0)this.words[this.length]=B,this.length++;else if(O!==this)for(;_v.length?this.clone().iadd(v):v.clone().iadd(this)},a.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var k=this.iadd(v);return v.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var O=this.cmp(v);if(O===0)return this.negative=0,this.length=1,this.words[0]=0,this;var D,B;O>0?(D=this,B=v):(D=v,B=this);for(var _=0,N=0;N>26,this.words[N]=k&67108863;for(;_!==0&&N>26,this.words[N]=k&67108863;if(_===0&&N>>26,ee=U&67108863,j=Math.min(C,v.length-1),X=Math.max(0,C-A.length+1);X<=j;X++){var ie=C-X|0;D=A.words[ie]|0,B=v.words[X]|0,_=D*B+ee,z+=_/67108864|0,ee=_&67108863}k.words[C]=ee|0,U=z|0}return U!==0?k.words[C]=U|0:k.length--,k._strip()}var S=function(v,k,O){var D=v.words,B=k.words,_=O.words,N=0,U,C,z,ee=D[0]|0,j=ee&8191,X=ee>>>13,ie=D[1]|0,ue=ie&8191,he=ie>>>13,ke=D[2]|0,ge=ke&8191,me=ke>>>13,Ke=D[3]|0,ve=Ke&8191,Ae=Ke>>>13,so=D[4]|0,Et=so&8191,bt=so>>>13,ci=D[5]|0,_t=ci&8191,st=ci>>>13,ui=D[6]|0,Nt=ui&8191,dt=ui>>>13,oo=D[7]|0,jt=oo&8191,Bt=oo>>>13,ac=D[8]|0,ot=ac&8191,pt=ac>>>13,Nc=D[9]|0,Ct=Nc&8191,It=Nc>>>13,Bc=B[0]|0,Dt=Bc&8191,kt=Bc>>>13,Dc=B[1]|0,At=Dc&8191,Ot=Dc>>>13,ic=B[2]|0,Lt=ic&8191,qt=ic>>>13,Oc=B[3]|0,St=Oc&8191,Ft=Oc>>>13,Lc=B[4]|0,Pt=Lc&8191,Wt=Lc>>>13,sc=B[5]|0,Je=sc&8191,it=sc>>>13,oc=B[6]|0,Ut=oc&8191,Kt=oc>>>13,ol=B[7]|0,Gt=ol&8191,Vt=ol>>>13,cl=B[8]|0,$t=cl&8191,Yt=cl>>>13,Mu=B[9]|0,an=Mu&8191,sn=Mu>>>13;O.negative=v.negative^k.negative,O.length=19,U=Math.imul(j,Dt),C=Math.imul(j,kt),C=C+Math.imul(X,Dt)|0,z=Math.imul(X,kt);var qc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(qc>>>26)|0,qc&=67108863,U=Math.imul(ue,Dt),C=Math.imul(ue,kt),C=C+Math.imul(he,Dt)|0,z=Math.imul(he,kt),U=U+Math.imul(j,At)|0,C=C+Math.imul(j,Ot)|0,C=C+Math.imul(X,At)|0,z=z+Math.imul(X,Ot)|0;var Fc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Fc>>>26)|0,Fc&=67108863,U=Math.imul(ge,Dt),C=Math.imul(ge,kt),C=C+Math.imul(me,Dt)|0,z=Math.imul(me,kt),U=U+Math.imul(ue,At)|0,C=C+Math.imul(ue,Ot)|0,C=C+Math.imul(he,At)|0,z=z+Math.imul(he,Ot)|0,U=U+Math.imul(j,Lt)|0,C=C+Math.imul(j,qt)|0,C=C+Math.imul(X,Lt)|0,z=z+Math.imul(X,qt)|0;var Wc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,U=Math.imul(ve,Dt),C=Math.imul(ve,kt),C=C+Math.imul(Ae,Dt)|0,z=Math.imul(Ae,kt),U=U+Math.imul(ge,At)|0,C=C+Math.imul(ge,Ot)|0,C=C+Math.imul(me,At)|0,z=z+Math.imul(me,Ot)|0,U=U+Math.imul(ue,Lt)|0,C=C+Math.imul(ue,qt)|0,C=C+Math.imul(he,Lt)|0,z=z+Math.imul(he,qt)|0,U=U+Math.imul(j,St)|0,C=C+Math.imul(j,Ft)|0,C=C+Math.imul(X,St)|0,z=z+Math.imul(X,Ft)|0;var Uc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,U=Math.imul(Et,Dt),C=Math.imul(Et,kt),C=C+Math.imul(bt,Dt)|0,z=Math.imul(bt,kt),U=U+Math.imul(ve,At)|0,C=C+Math.imul(ve,Ot)|0,C=C+Math.imul(Ae,At)|0,z=z+Math.imul(Ae,Ot)|0,U=U+Math.imul(ge,Lt)|0,C=C+Math.imul(ge,qt)|0,C=C+Math.imul(me,Lt)|0,z=z+Math.imul(me,qt)|0,U=U+Math.imul(ue,St)|0,C=C+Math.imul(ue,Ft)|0,C=C+Math.imul(he,St)|0,z=z+Math.imul(he,Ft)|0,U=U+Math.imul(j,Pt)|0,C=C+Math.imul(j,Wt)|0,C=C+Math.imul(X,Pt)|0,z=z+Math.imul(X,Wt)|0;var Hc=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,U=Math.imul(_t,Dt),C=Math.imul(_t,kt),C=C+Math.imul(st,Dt)|0,z=Math.imul(st,kt),U=U+Math.imul(Et,At)|0,C=C+Math.imul(Et,Ot)|0,C=C+Math.imul(bt,At)|0,z=z+Math.imul(bt,Ot)|0,U=U+Math.imul(ve,Lt)|0,C=C+Math.imul(ve,qt)|0,C=C+Math.imul(Ae,Lt)|0,z=z+Math.imul(Ae,qt)|0,U=U+Math.imul(ge,St)|0,C=C+Math.imul(ge,Ft)|0,C=C+Math.imul(me,St)|0,z=z+Math.imul(me,Ft)|0,U=U+Math.imul(ue,Pt)|0,C=C+Math.imul(ue,Wt)|0,C=C+Math.imul(he,Pt)|0,z=z+Math.imul(he,Wt)|0,U=U+Math.imul(j,Je)|0,C=C+Math.imul(j,it)|0,C=C+Math.imul(X,Je)|0,z=z+Math.imul(X,it)|0;var zp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(zp>>>26)|0,zp&=67108863,U=Math.imul(Nt,Dt),C=Math.imul(Nt,kt),C=C+Math.imul(dt,Dt)|0,z=Math.imul(dt,kt),U=U+Math.imul(_t,At)|0,C=C+Math.imul(_t,Ot)|0,C=C+Math.imul(st,At)|0,z=z+Math.imul(st,Ot)|0,U=U+Math.imul(Et,Lt)|0,C=C+Math.imul(Et,qt)|0,C=C+Math.imul(bt,Lt)|0,z=z+Math.imul(bt,qt)|0,U=U+Math.imul(ve,St)|0,C=C+Math.imul(ve,Ft)|0,C=C+Math.imul(Ae,St)|0,z=z+Math.imul(Ae,Ft)|0,U=U+Math.imul(ge,Pt)|0,C=C+Math.imul(ge,Wt)|0,C=C+Math.imul(me,Pt)|0,z=z+Math.imul(me,Wt)|0,U=U+Math.imul(ue,Je)|0,C=C+Math.imul(ue,it)|0,C=C+Math.imul(he,Je)|0,z=z+Math.imul(he,it)|0,U=U+Math.imul(j,Ut)|0,C=C+Math.imul(j,Kt)|0,C=C+Math.imul(X,Ut)|0,z=z+Math.imul(X,Kt)|0;var Kp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,U=Math.imul(jt,Dt),C=Math.imul(jt,kt),C=C+Math.imul(Bt,Dt)|0,z=Math.imul(Bt,kt),U=U+Math.imul(Nt,At)|0,C=C+Math.imul(Nt,Ot)|0,C=C+Math.imul(dt,At)|0,z=z+Math.imul(dt,Ot)|0,U=U+Math.imul(_t,Lt)|0,C=C+Math.imul(_t,qt)|0,C=C+Math.imul(st,Lt)|0,z=z+Math.imul(st,qt)|0,U=U+Math.imul(Et,St)|0,C=C+Math.imul(Et,Ft)|0,C=C+Math.imul(bt,St)|0,z=z+Math.imul(bt,Ft)|0,U=U+Math.imul(ve,Pt)|0,C=C+Math.imul(ve,Wt)|0,C=C+Math.imul(Ae,Pt)|0,z=z+Math.imul(Ae,Wt)|0,U=U+Math.imul(ge,Je)|0,C=C+Math.imul(ge,it)|0,C=C+Math.imul(me,Je)|0,z=z+Math.imul(me,it)|0,U=U+Math.imul(ue,Ut)|0,C=C+Math.imul(ue,Kt)|0,C=C+Math.imul(he,Ut)|0,z=z+Math.imul(he,Kt)|0,U=U+Math.imul(j,Gt)|0,C=C+Math.imul(j,Vt)|0,C=C+Math.imul(X,Gt)|0,z=z+Math.imul(X,Vt)|0;var Gp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,U=Math.imul(ot,Dt),C=Math.imul(ot,kt),C=C+Math.imul(pt,Dt)|0,z=Math.imul(pt,kt),U=U+Math.imul(jt,At)|0,C=C+Math.imul(jt,Ot)|0,C=C+Math.imul(Bt,At)|0,z=z+Math.imul(Bt,Ot)|0,U=U+Math.imul(Nt,Lt)|0,C=C+Math.imul(Nt,qt)|0,C=C+Math.imul(dt,Lt)|0,z=z+Math.imul(dt,qt)|0,U=U+Math.imul(_t,St)|0,C=C+Math.imul(_t,Ft)|0,C=C+Math.imul(st,St)|0,z=z+Math.imul(st,Ft)|0,U=U+Math.imul(Et,Pt)|0,C=C+Math.imul(Et,Wt)|0,C=C+Math.imul(bt,Pt)|0,z=z+Math.imul(bt,Wt)|0,U=U+Math.imul(ve,Je)|0,C=C+Math.imul(ve,it)|0,C=C+Math.imul(Ae,Je)|0,z=z+Math.imul(Ae,it)|0,U=U+Math.imul(ge,Ut)|0,C=C+Math.imul(ge,Kt)|0,C=C+Math.imul(me,Ut)|0,z=z+Math.imul(me,Kt)|0,U=U+Math.imul(ue,Gt)|0,C=C+Math.imul(ue,Vt)|0,C=C+Math.imul(he,Gt)|0,z=z+Math.imul(he,Vt)|0,U=U+Math.imul(j,$t)|0,C=C+Math.imul(j,Yt)|0,C=C+Math.imul(X,$t)|0,z=z+Math.imul(X,Yt)|0;var Vp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,U=Math.imul(Ct,Dt),C=Math.imul(Ct,kt),C=C+Math.imul(It,Dt)|0,z=Math.imul(It,kt),U=U+Math.imul(ot,At)|0,C=C+Math.imul(ot,Ot)|0,C=C+Math.imul(pt,At)|0,z=z+Math.imul(pt,Ot)|0,U=U+Math.imul(jt,Lt)|0,C=C+Math.imul(jt,qt)|0,C=C+Math.imul(Bt,Lt)|0,z=z+Math.imul(Bt,qt)|0,U=U+Math.imul(Nt,St)|0,C=C+Math.imul(Nt,Ft)|0,C=C+Math.imul(dt,St)|0,z=z+Math.imul(dt,Ft)|0,U=U+Math.imul(_t,Pt)|0,C=C+Math.imul(_t,Wt)|0,C=C+Math.imul(st,Pt)|0,z=z+Math.imul(st,Wt)|0,U=U+Math.imul(Et,Je)|0,C=C+Math.imul(Et,it)|0,C=C+Math.imul(bt,Je)|0,z=z+Math.imul(bt,it)|0,U=U+Math.imul(ve,Ut)|0,C=C+Math.imul(ve,Kt)|0,C=C+Math.imul(Ae,Ut)|0,z=z+Math.imul(Ae,Kt)|0,U=U+Math.imul(ge,Gt)|0,C=C+Math.imul(ge,Vt)|0,C=C+Math.imul(me,Gt)|0,z=z+Math.imul(me,Vt)|0,U=U+Math.imul(ue,$t)|0,C=C+Math.imul(ue,Yt)|0,C=C+Math.imul(he,$t)|0,z=z+Math.imul(he,Yt)|0,U=U+Math.imul(j,an)|0,C=C+Math.imul(j,sn)|0,C=C+Math.imul(X,an)|0,z=z+Math.imul(X,sn)|0;var $p=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+($p>>>26)|0,$p&=67108863,U=Math.imul(Ct,At),C=Math.imul(Ct,Ot),C=C+Math.imul(It,At)|0,z=Math.imul(It,Ot),U=U+Math.imul(ot,Lt)|0,C=C+Math.imul(ot,qt)|0,C=C+Math.imul(pt,Lt)|0,z=z+Math.imul(pt,qt)|0,U=U+Math.imul(jt,St)|0,C=C+Math.imul(jt,Ft)|0,C=C+Math.imul(Bt,St)|0,z=z+Math.imul(Bt,Ft)|0,U=U+Math.imul(Nt,Pt)|0,C=C+Math.imul(Nt,Wt)|0,C=C+Math.imul(dt,Pt)|0,z=z+Math.imul(dt,Wt)|0,U=U+Math.imul(_t,Je)|0,C=C+Math.imul(_t,it)|0,C=C+Math.imul(st,Je)|0,z=z+Math.imul(st,it)|0,U=U+Math.imul(Et,Ut)|0,C=C+Math.imul(Et,Kt)|0,C=C+Math.imul(bt,Ut)|0,z=z+Math.imul(bt,Kt)|0,U=U+Math.imul(ve,Gt)|0,C=C+Math.imul(ve,Vt)|0,C=C+Math.imul(Ae,Gt)|0,z=z+Math.imul(Ae,Vt)|0,U=U+Math.imul(ge,$t)|0,C=C+Math.imul(ge,Yt)|0,C=C+Math.imul(me,$t)|0,z=z+Math.imul(me,Yt)|0,U=U+Math.imul(ue,an)|0,C=C+Math.imul(ue,sn)|0,C=C+Math.imul(he,an)|0,z=z+Math.imul(he,sn)|0;var Yp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,U=Math.imul(Ct,Lt),C=Math.imul(Ct,qt),C=C+Math.imul(It,Lt)|0,z=Math.imul(It,qt),U=U+Math.imul(ot,St)|0,C=C+Math.imul(ot,Ft)|0,C=C+Math.imul(pt,St)|0,z=z+Math.imul(pt,Ft)|0,U=U+Math.imul(jt,Pt)|0,C=C+Math.imul(jt,Wt)|0,C=C+Math.imul(Bt,Pt)|0,z=z+Math.imul(Bt,Wt)|0,U=U+Math.imul(Nt,Je)|0,C=C+Math.imul(Nt,it)|0,C=C+Math.imul(dt,Je)|0,z=z+Math.imul(dt,it)|0,U=U+Math.imul(_t,Ut)|0,C=C+Math.imul(_t,Kt)|0,C=C+Math.imul(st,Ut)|0,z=z+Math.imul(st,Kt)|0,U=U+Math.imul(Et,Gt)|0,C=C+Math.imul(Et,Vt)|0,C=C+Math.imul(bt,Gt)|0,z=z+Math.imul(bt,Vt)|0,U=U+Math.imul(ve,$t)|0,C=C+Math.imul(ve,Yt)|0,C=C+Math.imul(Ae,$t)|0,z=z+Math.imul(Ae,Yt)|0,U=U+Math.imul(ge,an)|0,C=C+Math.imul(ge,sn)|0,C=C+Math.imul(me,an)|0,z=z+Math.imul(me,sn)|0;var Jp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,U=Math.imul(Ct,St),C=Math.imul(Ct,Ft),C=C+Math.imul(It,St)|0,z=Math.imul(It,Ft),U=U+Math.imul(ot,Pt)|0,C=C+Math.imul(ot,Wt)|0,C=C+Math.imul(pt,Pt)|0,z=z+Math.imul(pt,Wt)|0,U=U+Math.imul(jt,Je)|0,C=C+Math.imul(jt,it)|0,C=C+Math.imul(Bt,Je)|0,z=z+Math.imul(Bt,it)|0,U=U+Math.imul(Nt,Ut)|0,C=C+Math.imul(Nt,Kt)|0,C=C+Math.imul(dt,Ut)|0,z=z+Math.imul(dt,Kt)|0,U=U+Math.imul(_t,Gt)|0,C=C+Math.imul(_t,Vt)|0,C=C+Math.imul(st,Gt)|0,z=z+Math.imul(st,Vt)|0,U=U+Math.imul(Et,$t)|0,C=C+Math.imul(Et,Yt)|0,C=C+Math.imul(bt,$t)|0,z=z+Math.imul(bt,Yt)|0,U=U+Math.imul(ve,an)|0,C=C+Math.imul(ve,sn)|0,C=C+Math.imul(Ae,an)|0,z=z+Math.imul(Ae,sn)|0;var Qp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,U=Math.imul(Ct,Pt),C=Math.imul(Ct,Wt),C=C+Math.imul(It,Pt)|0,z=Math.imul(It,Wt),U=U+Math.imul(ot,Je)|0,C=C+Math.imul(ot,it)|0,C=C+Math.imul(pt,Je)|0,z=z+Math.imul(pt,it)|0,U=U+Math.imul(jt,Ut)|0,C=C+Math.imul(jt,Kt)|0,C=C+Math.imul(Bt,Ut)|0,z=z+Math.imul(Bt,Kt)|0,U=U+Math.imul(Nt,Gt)|0,C=C+Math.imul(Nt,Vt)|0,C=C+Math.imul(dt,Gt)|0,z=z+Math.imul(dt,Vt)|0,U=U+Math.imul(_t,$t)|0,C=C+Math.imul(_t,Yt)|0,C=C+Math.imul(st,$t)|0,z=z+Math.imul(st,Yt)|0,U=U+Math.imul(Et,an)|0,C=C+Math.imul(Et,sn)|0,C=C+Math.imul(bt,an)|0,z=z+Math.imul(bt,sn)|0;var Zp=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,U=Math.imul(Ct,Je),C=Math.imul(Ct,it),C=C+Math.imul(It,Je)|0,z=Math.imul(It,it),U=U+Math.imul(ot,Ut)|0,C=C+Math.imul(ot,Kt)|0,C=C+Math.imul(pt,Ut)|0,z=z+Math.imul(pt,Kt)|0,U=U+Math.imul(jt,Gt)|0,C=C+Math.imul(jt,Vt)|0,C=C+Math.imul(Bt,Gt)|0,z=z+Math.imul(Bt,Vt)|0,U=U+Math.imul(Nt,$t)|0,C=C+Math.imul(Nt,Yt)|0,C=C+Math.imul(dt,$t)|0,z=z+Math.imul(dt,Yt)|0,U=U+Math.imul(_t,an)|0,C=C+Math.imul(_t,sn)|0,C=C+Math.imul(st,an)|0,z=z+Math.imul(st,sn)|0;var Kg=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,U=Math.imul(Ct,Ut),C=Math.imul(Ct,Kt),C=C+Math.imul(It,Ut)|0,z=Math.imul(It,Kt),U=U+Math.imul(ot,Gt)|0,C=C+Math.imul(ot,Vt)|0,C=C+Math.imul(pt,Gt)|0,z=z+Math.imul(pt,Vt)|0,U=U+Math.imul(jt,$t)|0,C=C+Math.imul(jt,Yt)|0,C=C+Math.imul(Bt,$t)|0,z=z+Math.imul(Bt,Yt)|0,U=U+Math.imul(Nt,an)|0,C=C+Math.imul(Nt,sn)|0,C=C+Math.imul(dt,an)|0,z=z+Math.imul(dt,sn)|0;var Gg=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,U=Math.imul(Ct,Gt),C=Math.imul(Ct,Vt),C=C+Math.imul(It,Gt)|0,z=Math.imul(It,Vt),U=U+Math.imul(ot,$t)|0,C=C+Math.imul(ot,Yt)|0,C=C+Math.imul(pt,$t)|0,z=z+Math.imul(pt,Yt)|0,U=U+Math.imul(jt,an)|0,C=C+Math.imul(jt,sn)|0,C=C+Math.imul(Bt,an)|0,z=z+Math.imul(Bt,sn)|0;var lK=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(lK>>>26)|0,lK&=67108863,U=Math.imul(Ct,$t),C=Math.imul(Ct,Yt),C=C+Math.imul(It,$t)|0,z=Math.imul(It,Yt),U=U+Math.imul(ot,an)|0,C=C+Math.imul(ot,sn)|0,C=C+Math.imul(pt,an)|0,z=z+Math.imul(pt,sn)|0;var dK=(N+U|0)+((C&8191)<<13)|0;N=(z+(C>>>13)|0)+(dK>>>26)|0,dK&=67108863,U=Math.imul(Ct,an),C=Math.imul(Ct,sn),C=C+Math.imul(It,an)|0,z=Math.imul(It,sn);var pK=(N+U|0)+((C&8191)<<13)|0;return N=(z+(C>>>13)|0)+(pK>>>26)|0,pK&=67108863,_[0]=qc,_[1]=Fc,_[2]=Wc,_[3]=Uc,_[4]=Hc,_[5]=zp,_[6]=Kp,_[7]=Gp,_[8]=Vp,_[9]=$p,_[10]=Yp,_[11]=Jp,_[12]=Qp,_[13]=Zp,_[14]=Kg,_[15]=Gg,_[16]=lK,_[17]=dK,_[18]=pK,N!==0&&(_[19]=N,O.length++),O};Math.imul||(S=I);function L(A,v,k){k.negative=v.negative^A.negative,k.length=A.length+v.length;for(var O=0,D=0,B=0;B>>26)|0,D+=_>>>26,_&=67108863}k.words[B]=N,O=_,_=D}return O!==0?k.words[B]=O:k.length--,k._strip()}function F(A,v,k){return L(A,v,k)}a.prototype.mulTo=function(v,k){var O,D=this.length+v.length;return this.length===10&&v.length===10?O=S(this,v,k):D<63?O=I(this,v,k):D<1024?O=L(this,v,k):O=F(this,v,k),O};function W(A,v){this.x=A,this.y=v}W.prototype.makeRBT=function(v){for(var k=new Array(v),O=a.prototype._countBits(v)-1,D=0;D>=1;return D},W.prototype.permute=function(v,k,O,D,B,_){for(var N=0;N<_;N++)D[N]=k[v[N]],B[N]=O[v[N]]},W.prototype.transform=function(v,k,O,D,B,_){this.permute(_,v,k,O,D,B);for(var N=1;N>>1)B++;return 1<>>13,O[2*_+1]=B&8191,B=B>>>13;for(_=2*k;_>=26,O+=B/67108864|0,O+=_>>>26,this.words[D]=_&67108863}return O!==0&&(this.words[D]=O,this.length++),k?this.ineg():this},a.prototype.muln=function(v){return this.clone().imuln(v)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(v){var k=E(v);if(k.length===0)return new a(1);for(var O=this,D=0;D=0);var k=v%26,O=(v-k)/26,D=67108863>>>26-k<<26-k,B;if(k!==0){var _=0;for(B=0;B>>26-k}_&&(this.words[B]=_,this.length++)}if(O!==0){for(B=this.length-1;B>=0;B--)this.words[B+O]=this.words[B];for(B=0;B=0);var D;k?D=(k-k%26)/26:D=0;var B=v%26,_=Math.min((v-B)/26,this.length),N=67108863^67108863>>>B<_)for(this.length-=_,C=0;C=0&&(z!==0||C>=D);C--){var ee=this.words[C]|0;this.words[C]=z<<26-B|ee>>>B,z=ee&N}return U&&z!==0&&(U.words[U.length++]=z),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(v,k,O){return t(this.negative===0),this.iushrn(v,k,O)},a.prototype.shln=function(v){return this.clone().ishln(v)},a.prototype.ushln=function(v){return this.clone().iushln(v)},a.prototype.shrn=function(v){return this.clone().ishrn(v)},a.prototype.ushrn=function(v){return this.clone().iushrn(v)},a.prototype.testn=function(v){t(typeof v=="number"&&v>=0);var k=v%26,O=(v-k)/26,D=1<=0);var k=v%26,O=(v-k)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=O)return this;if(k!==0&&O++,this.length=Math.min(O,this.length),k!==0){var D=67108863^67108863>>>k<=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},a.prototype.isubn=function(v){if(t(typeof v=="number"),t(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k>26)-(U/67108864|0),this.words[B+O]=_&67108863}for(;B>26,this.words[B+O]=_&67108863;if(N===0)return this._strip();for(t(N===-1),N=0,B=0;B>26,this.words[B]=_&67108863;return this.negative=1,this._strip()},a.prototype._wordDiv=function(v,k){var O=this.length-v.length,D=this.clone(),B=v,_=B.words[B.length-1]|0,N=this._countBits(_);O=26-N,O!==0&&(B=B.ushln(O),D.iushln(O),_=B.words[B.length-1]|0);var U=D.length-B.length,C;if(k!=="mod"){C=new a(null),C.length=U+1,C.words=new Array(C.length);for(var z=0;z=0;j--){var X=(D.words[B.length+j]|0)*67108864+(D.words[B.length+j-1]|0);for(X=Math.min(X/_|0,67108863),D._ishlnsubmul(B,X,j);D.negative!==0;)X--,D.negative=0,D._ishlnsubmul(B,1,j),D.isZero()||(D.negative^=1);C&&(C.words[j]=X)}return C&&C._strip(),D._strip(),k!=="div"&&O!==0&&D.iushrn(O),{div:C||null,mod:D}},a.prototype.divmod=function(v,k,O){if(t(!v.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var D,B,_;return this.negative!==0&&v.negative===0?(_=this.neg().divmod(v,k),k!=="mod"&&(D=_.div.neg()),k!=="div"&&(B=_.mod.neg(),O&&B.negative!==0&&B.iadd(v)),{div:D,mod:B}):this.negative===0&&v.negative!==0?(_=this.divmod(v.neg(),k),k!=="mod"&&(D=_.div.neg()),{div:D,mod:_.mod}):(this.negative&v.negative)!==0?(_=this.neg().divmod(v.neg(),k),k!=="div"&&(B=_.mod.neg(),O&&B.negative!==0&&B.isub(v)),{div:_.div,mod:B}):v.length>this.length||this.cmp(v)<0?{div:new a(0),mod:this}:v.length===1?k==="div"?{div:this.divn(v.words[0]),mod:null}:k==="mod"?{div:null,mod:new a(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new a(this.modrn(v.words[0]))}:this._wordDiv(v,k)},a.prototype.div=function(v){return this.divmod(v,"div",!1).div},a.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},a.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},a.prototype.divRound=function(v){var k=this.divmod(v);if(k.mod.isZero())return k.div;var O=k.div.negative!==0?k.mod.isub(v):k.mod,D=v.ushrn(1),B=v.andln(1),_=O.cmp(D);return _<0||B===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},a.prototype.modrn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=(1<<26)%v,D=0,B=this.length-1;B>=0;B--)D=(O*D+(this.words[B]|0))%v;return k?-D:D},a.prototype.modn=function(v){return this.modrn(v)},a.prototype.idivn=function(v){var k=v<0;k&&(v=-v),t(v<=67108863);for(var O=0,D=this.length-1;D>=0;D--){var B=(this.words[D]|0)+O*67108864;this.words[D]=B/v|0,O=B%v}return this._strip(),k?this.ineg():this},a.prototype.divn=function(v){return this.clone().idivn(v)},a.prototype.egcd=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),_=new a(0),N=new a(1),U=0;k.isEven()&&O.isEven();)k.iushrn(1),O.iushrn(1),++U;for(var C=O.clone(),z=k.clone();!k.isZero();){for(var ee=0,j=1;(k.words[0]&j)===0&&ee<26;++ee,j<<=1);if(ee>0)for(k.iushrn(ee);ee-- >0;)(D.isOdd()||B.isOdd())&&(D.iadd(C),B.isub(z)),D.iushrn(1),B.iushrn(1);for(var X=0,ie=1;(O.words[0]&ie)===0&&X<26;++X,ie<<=1);if(X>0)for(O.iushrn(X);X-- >0;)(_.isOdd()||N.isOdd())&&(_.iadd(C),N.isub(z)),_.iushrn(1),N.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(_),B.isub(N)):(O.isub(k),_.isub(D),N.isub(B))}return{a:_,b:N,gcd:O.iushln(U)}},a.prototype._invmp=function(v){t(v.negative===0),t(!v.isZero());var k=this,O=v.clone();k.negative!==0?k=k.umod(v):k=k.clone();for(var D=new a(1),B=new a(0),_=O.clone();k.cmpn(1)>0&&O.cmpn(1)>0;){for(var N=0,U=1;(k.words[0]&U)===0&&N<26;++N,U<<=1);if(N>0)for(k.iushrn(N);N-- >0;)D.isOdd()&&D.iadd(_),D.iushrn(1);for(var C=0,z=1;(O.words[0]&z)===0&&C<26;++C,z<<=1);if(C>0)for(O.iushrn(C);C-- >0;)B.isOdd()&&B.iadd(_),B.iushrn(1);k.cmp(O)>=0?(k.isub(O),D.isub(B)):(O.isub(k),B.isub(D))}var ee;return k.cmpn(1)===0?ee=D:ee=B,ee.cmpn(0)<0&&ee.iadd(v),ee},a.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var k=this.clone(),O=v.clone();k.negative=0,O.negative=0;for(var D=0;k.isEven()&&O.isEven();D++)k.iushrn(1),O.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;O.isEven();)O.iushrn(1);var B=k.cmp(O);if(B<0){var _=k;k=O,O=_}else if(B===0||O.cmpn(1)===0)break;k.isub(O)}while(!0);return O.iushln(D)},a.prototype.invm=function(v){return this.egcd(v).a.umod(v)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(v){return this.words[0]&v},a.prototype.bincn=function(v){t(typeof v=="number");var k=v%26,O=(v-k)/26,D=1<>>26,N&=67108863,this.words[_]=N}return B!==0&&(this.words[_]=B,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(v){var k=v<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this._strip();var O;if(this.length>1)O=1;else{k&&(v=-v),t(v<=67108863,"Number is too big");var D=this.words[0]|0;O=D===v?0:Dv.length)return 1;if(this.length=0;O--){var D=this.words[O]|0,B=v.words[O]|0;if(D!==B){DB&&(k=1);break}}return k},a.prototype.gtn=function(v){return this.cmpn(v)===1},a.prototype.gt=function(v){return this.cmp(v)===1},a.prototype.gten=function(v){return this.cmpn(v)>=0},a.prototype.gte=function(v){return this.cmp(v)>=0},a.prototype.ltn=function(v){return this.cmpn(v)===-1},a.prototype.lt=function(v){return this.cmp(v)===-1},a.prototype.lten=function(v){return this.cmpn(v)<=0},a.prototype.lte=function(v){return this.cmp(v)<=0},a.prototype.eqn=function(v){return this.cmpn(v)===0},a.prototype.eq=function(v){return this.cmp(v)===0},a.red=function(v){return new T(v)},a.prototype.toRed=function(v){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(v){return this.red=v,this},a.prototype.forceRed=function(v){return t(!this.red,"Already a number in reduction context"),this._forceRed(v)},a.prototype.redAdd=function(v){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},a.prototype.redIAdd=function(v){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},a.prototype.redSub=function(v){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},a.prototype.redISub=function(v){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},a.prototype.redShl=function(v){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},a.prototype.redMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},a.prototype.redIMul=function(v){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(v){return t(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var V={k256:null,p224:null,p192:null,p25519:null};function K(A,v){this.name=A,this.p=new a(v,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}K.prototype._tmp=function(){var v=new a(null);return v.words=new Array(Math.ceil(this.n/13)),v},K.prototype.ireduce=function(v){var k=v,O;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),O=k.bitLength();while(O>this.n);var D=O0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},K.prototype.split=function(v,k){v.iushrn(this.n,0,k)},K.prototype.imulK=function(v){return v.imul(this.k)};function H(){K.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(H,K),H.prototype.split=function(v,k){for(var O=4194303,D=Math.min(v.length,9),B=0;B>>22,_=N}_>>>=22,v.words[B-10]=_,_===0&&v.length>10?v.length-=10:v.length-=9},H.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var k=0,O=0;O>>=26,v.words[O]=B,k=D}return k!==0&&(v.words[v.length++]=k),v},a._prime=function(v){if(V[v])return V[v];var k;if(v==="k256")k=new H;else if(v==="p224")k=new G;else if(v==="p192")k=new J;else if(v==="p25519")k=new q;else throw new Error("Unknown prime "+v);return V[v]=k,k};function T(A){if(typeof A=="string"){var v=a._prime(A);this.m=v.p,this.prime=v}else t(A.gtn(1),"modulus must be greater than 1"),this.m=A,this.prime=null}T.prototype._verify1=function(v){t(v.negative===0,"red works only with positives"),t(v.red,"red works only with red numbers")},T.prototype._verify2=function(v,k){t((v.negative|k.negative)===0,"red works only with positives"),t(v.red&&v.red===k.red,"red works only with red numbers")},T.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(u(v,v.umod(this.m)._forceRed(this)),v)},T.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},T.prototype.add=function(v,k){this._verify2(v,k);var O=v.add(k);return O.cmp(this.m)>=0&&O.isub(this.m),O._forceRed(this)},T.prototype.iadd=function(v,k){this._verify2(v,k);var O=v.iadd(k);return O.cmp(this.m)>=0&&O.isub(this.m),O},T.prototype.sub=function(v,k){this._verify2(v,k);var O=v.sub(k);return O.cmpn(0)<0&&O.iadd(this.m),O._forceRed(this)},T.prototype.isub=function(v,k){this._verify2(v,k);var O=v.isub(k);return O.cmpn(0)<0&&O.iadd(this.m),O},T.prototype.shl=function(v,k){return this._verify1(v),this.imod(v.ushln(k))},T.prototype.imul=function(v,k){return this._verify2(v,k),this.imod(v.imul(k))},T.prototype.mul=function(v,k){return this._verify2(v,k),this.imod(v.mul(k))},T.prototype.isqr=function(v){return this.imul(v,v.clone())},T.prototype.sqr=function(v){return this.mul(v,v)},T.prototype.sqrt=function(v){if(v.isZero())return v.clone();var k=this.m.andln(3);if(t(k%2===1),k===3){var O=this.m.add(new a(1)).iushrn(2);return this.pow(v,O)}for(var D=this.m.subn(1),B=0;!D.isZero()&&D.andln(1)===0;)B++,D.iushrn(1);t(!D.isZero());var _=new a(1).toRed(this),N=_.redNeg(),U=this.m.subn(1).iushrn(1),C=this.m.bitLength();for(C=new a(2*C*C).toRed(this);this.pow(C,U).cmp(N)!==0;)C.redIAdd(N);for(var z=this.pow(C,D),ee=this.pow(v,D.addn(1).iushrn(1)),j=this.pow(v,D),X=B;j.cmp(_)!==0;){for(var ie=j,ue=0;ie.cmp(_)!==0;ue++)ie=ie.redSqr();t(ue=0;B--){for(var z=k.words[B],ee=C-1;ee>=0;ee--){var j=z>>ee&1;if(_!==D[0]&&(_=this.sqr(_)),j===0&&N===0){U=0;continue}N<<=1,N|=j,U++,!(U!==O&&(B!==0||ee!==0))&&(_=this.mul(_,D[N]),U=0,N=0)}C=26}return _},T.prototype.convertTo=function(v){var k=v.umod(this.m);return k===v?k.clone():k},T.prototype.convertFrom=function(v){var k=v.clone();return k.red=null,k},a.mont=function(v){return new P(v)};function P(A){T.call(this,A),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}n(P,T),P.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},P.prototype.convertFrom=function(v){var k=this.imod(v.mul(this.rinv));return k.red=null,k},P.prototype.imul=function(v,k){if(v.isZero()||k.isZero())return v.words[0]=0,v.length=1,v;var O=v.imul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),_=B;return B.cmp(this.m)>=0?_=B.isub(this.m):B.cmpn(0)<0&&(_=B.iadd(this.m)),_._forceRed(this)},P.prototype.mul=function(v,k){if(v.isZero()||k.isZero())return new a(0)._forceRed(this);var O=v.mul(k),D=O.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=O.isub(D).iushrn(this.shift),_=B;return B.cmp(this.m)>=0?_=B.isub(this.m):B.cmpn(0)<0&&(_=B.iadd(this.m)),_._forceRed(this)},P.prototype.invm=function(v){var k=this.imod(v._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof EK>"u"||EK,S1e)});var P1e=x(i7=>{"use strict";d();p();Object.defineProperty(i7,"__esModule",{value:!0});i7.version=void 0;i7.version="logger/5.7.0"});var Zt=x(yf=>{"use strict";d();p();Object.defineProperty(yf,"__esModule",{value:!0});yf.Logger=yf.ErrorCode=yf.LogLevel=void 0;var R1e=!1,M1e=!1,s7={debug:1,default:2,info:2,warning:3,error:4,off:5},N1e=s7.default,jPt=P1e(),CK=null;function zPt(){try{var r=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(e){try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{r.push(e)}}),r.length)throw new Error("missing "+r.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var B1e=zPt(),O1e;(function(r){r.DEBUG="DEBUG",r.INFO="INFO",r.WARNING="WARNING",r.ERROR="ERROR",r.OFF="OFF"})(O1e=yf.LogLevel||(yf.LogLevel={}));var mf;(function(r){r.UNKNOWN_ERROR="UNKNOWN_ERROR",r.NOT_IMPLEMENTED="NOT_IMPLEMENTED",r.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",r.NETWORK_ERROR="NETWORK_ERROR",r.SERVER_ERROR="SERVER_ERROR",r.TIMEOUT="TIMEOUT",r.BUFFER_OVERRUN="BUFFER_OVERRUN",r.NUMERIC_FAULT="NUMERIC_FAULT",r.MISSING_NEW="MISSING_NEW",r.INVALID_ARGUMENT="INVALID_ARGUMENT",r.MISSING_ARGUMENT="MISSING_ARGUMENT",r.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",r.CALL_EXCEPTION="CALL_EXCEPTION",r.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",r.NONCE_EXPIRED="NONCE_EXPIRED",r.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",r.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",r.TRANSACTION_REPLACED="TRANSACTION_REPLACED",r.ACTION_REJECTED="ACTION_REJECTED"})(mf=yf.ErrorCode||(yf.ErrorCode={}));var D1e="0123456789abcdef",KPt=function(){function r(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return r.prototype._log=function(e,t){var n=e.toLowerCase();s7[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(N1e>s7[n])&&console.log.apply(console,t)},r.prototype.debug=function(){for(var e=[],t=0;t>4],h+=D1e[l[f]&15];a.push(u+"=Uint8Array(0x"+h+")")}else a.push(u+"="+JSON.stringify(l))}catch{a.push(u+"="+JSON.stringify(n[u].toString()))}}),a.push("code="+t),a.push("version="+this.version);var i=e,s="";switch(t){case mf.NUMERIC_FAULT:{s="NUMERIC_FAULT";var o=e;switch(o){case"overflow":case"underflow":case"division-by-zero":s+="-"+o;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result";break}break}case mf.CALL_EXCEPTION:case mf.INSUFFICIENT_FUNDS:case mf.MISSING_NEW:case mf.NONCE_EXPIRED:case mf.REPLACEMENT_UNDERPRICED:case mf.TRANSACTION_REPLACED:case mf.UNPREDICTABLE_GAS_LIMIT:s=t;break}s&&(e+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),a.length&&(e+=" ("+a.join(", ")+")");var c=new Error(e);return c.reason=i,c.code=t,Object.keys(n).forEach(function(u){c[u]=n[u]}),c},r.prototype.throwError=function(e,t,n){throw this.makeError(e,t,n)},r.prototype.throwArgumentError=function(e,t,n){return this.throwError(e,r.errors.INVALID_ARGUMENT,{argument:t,value:n})},r.prototype.assert=function(e,t,n,a){e||this.throwError(t,n,a)},r.prototype.assertArgument=function(e,t,n,a){e||this.throwArgumentError(t,n,a)},r.prototype.checkNormalize=function(e){e==null&&(e="platform missing String.prototype.normalize"),B1e&&this.throwError("platform missing String.prototype.normalize",r.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:B1e})},r.prototype.checkSafeUint53=function(e,t){typeof e=="number"&&(t==null&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,r.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))},r.prototype.checkArgumentCount=function(e,t,n){n?n=": "+n:n="",et&&this.throwError("too many arguments"+n,r.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})},r.prototype.checkNew=function(e,t){(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.prototype.checkAbstract=function(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",r.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",r.errors.MISSING_NEW,{name:t.name})},r.globalLogger=function(){return CK||(CK=new r(jPt.version)),CK},r.setCensorship=function(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),R1e){if(!e)return;this.globalLogger().throwError("error censorship permanent",r.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}M1e=!!e,R1e=!!t},r.setLogLevel=function(e){var t=s7[e.toLowerCase()];if(t==null){r.globalLogger().warn("invalid log level - "+e);return}N1e=t},r.from=function(e){return new r(e)},r.errors=mf,r.levels=O1e,r}();yf.Logger=KPt});var L1e=x(o7=>{"use strict";d();p();Object.defineProperty(o7,"__esModule",{value:!0});o7.version=void 0;o7.version="bytes/5.7.0"});var wr=x(Zr=>{"use strict";d();p();Object.defineProperty(Zr,"__esModule",{value:!0});Zr.joinSignature=Zr.splitSignature=Zr.hexZeroPad=Zr.hexStripZeros=Zr.hexValue=Zr.hexConcat=Zr.hexDataSlice=Zr.hexDataLength=Zr.hexlify=Zr.isHexString=Zr.zeroPad=Zr.stripZeros=Zr.concat=Zr.arrayify=Zr.isBytes=Zr.isBytesLike=void 0;var GPt=Zt(),VPt=L1e(),ts=new GPt.Logger(VPt.version);function F1e(r){return!!r.toHexString}function c5(r){return r.slice||(r.slice=function(){var e=Array.prototype.slice.call(arguments);return c5(new Uint8Array(Array.prototype.slice.apply(r,e)))}),r}function W1e(r){return Xp(r)&&!(r.length%2)||u7(r)}Zr.isBytesLike=W1e;function q1e(r){return typeof r=="number"&&r==r&&r%1===0}function u7(r){if(r==null)return!1;if(r.constructor===Uint8Array)return!0;if(typeof r=="string"||!q1e(r.length)||r.length<0)return!1;for(var e=0;e=256)return!1}return!0}Zr.isBytes=u7;function Jg(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid arrayify value");for(var t=[];r;)t.unshift(r&255),r=parseInt(String(r/256));return t.length===0&&t.push(0),c5(new Uint8Array(t))}if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),F1e(r)&&(r=r.toHexString()),Xp(r)){var n=r.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":ts.throwArgumentError("hex data is odd-length","value",r));for(var t=[],a=0;ae&&ts.throwArgumentError("value out of range","value",arguments[0]);var t=new Uint8Array(e);return t.set(r,e-r.length),c5(t)}Zr.zeroPad=H1e;function Xp(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}Zr.isHexString=Xp;var IK="0123456789abcdef";function jc(r,e){if(e||(e={}),typeof r=="number"){ts.checkSafeUint53(r,"invalid hexlify value");for(var t="";r;)t=IK[r&15]+t,r=Math.floor(r/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if(typeof r=="bigint")return r=r.toString(16),r.length%2?"0x0"+r:"0x"+r;if(e.allowMissingPrefix&&typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),F1e(r))return r.toHexString();if(Xp(r))return r.length%2&&(e.hexPad==="left"?r="0x0"+r.substring(2):e.hexPad==="right"?r+="0":ts.throwArgumentError("hex data is odd-length","value",r)),r.toLowerCase();if(u7(r)){for(var n="0x",a=0;a>4]+IK[i&15]}return n}return ts.throwArgumentError("invalid hexlify value","value",r)}Zr.hexlify=jc;function YPt(r){if(typeof r!="string")r=jc(r);else if(!Xp(r)||r.length%2)return null;return(r.length-2)/2}Zr.hexDataLength=YPt;function JPt(r,e,t){return typeof r!="string"?r=jc(r):(!Xp(r)||r.length%2)&&ts.throwArgumentError("invalid hexData","value",r),e=2+2*e,t!=null?"0x"+r.substring(e,2+2*t):"0x"+r.substring(e)}Zr.hexDataSlice=JPt;function QPt(r){var e="0x";return r.forEach(function(t){e+=jc(t).substring(2)}),e}Zr.hexConcat=QPt;function ZPt(r){var e=j1e(jc(r,{hexPad:"left"}));return e==="0x"?"0x0":e}Zr.hexValue=ZPt;function j1e(r){typeof r!="string"&&(r=jc(r)),Xp(r)||ts.throwArgumentError("invalid hex string","value",r),r=r.substring(2);for(var e=0;e2*e+2&&ts.throwArgumentError("value out of range","value",arguments[1]);r.length<2*e+2;)r="0x0"+r.substring(2);return r}Zr.hexZeroPad=c7;function z1e(r){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(W1e(r)){var t=Jg(r);t.length===64?(e.v=27+(t[32]>>7),t[32]&=127,e.r=jc(t.slice(0,32)),e.s=jc(t.slice(32,64))):t.length===65?(e.r=jc(t.slice(0,32)),e.s=jc(t.slice(32,64)),e.v=t[64]):ts.throwArgumentError("invalid signature string","signature",r),e.v<27&&(e.v===0||e.v===1?e.v+=27:ts.throwArgumentError("signature invalid v byte","signature",r)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(t[32]|=128),e._vs=jc(t.slice(32,64))}else{if(e.r=r.r,e.s=r.s,e.v=r.v,e.recoveryParam=r.recoveryParam,e._vs=r._vs,e._vs!=null){var n=H1e(Jg(e._vs),32);e._vs=jc(n);var a=n[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=a:e.recoveryParam!==a&&ts.throwArgumentError("signature recoveryParam mismatch _vs","signature",r),n[0]&=127;var i=jc(n);e.s==null?e.s=i:e.s!==i&&ts.throwArgumentError("signature v mismatch _vs","signature",r)}if(e.recoveryParam==null)e.v==null?ts.throwArgumentError("signature missing v and recoveryParam","signature",r):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{var s=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==s&&ts.throwArgumentError("signature recoveryParam mismatch v","signature",r)}e.r==null||!Xp(e.r)?ts.throwArgumentError("signature missing or invalid r","signature",r):e.r=c7(e.r,32),e.s==null||!Xp(e.s)?ts.throwArgumentError("signature missing or invalid s","signature",r):e.s=c7(e.s,32);var o=Jg(e.s);o[0]>=128&&ts.throwArgumentError("signature s out of range","signature",r),e.recoveryParam&&(o[0]|=128);var c=jc(o);e._vs&&(Xp(e._vs)||ts.throwArgumentError("signature invalid _vs","signature",r),e._vs=c7(e._vs,32)),e._vs==null?e._vs=c:e._vs!==c&&ts.throwArgumentError("signature _vs mismatch v and s","signature",r)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}Zr.splitSignature=z1e;function XPt(r){return r=z1e(r),jc(U1e([r.r,r.s,r.recoveryParam?"0x1c":"0x1b"]))}Zr.joinSignature=XPt});var kK=x(l7=>{"use strict";d();p();Object.defineProperty(l7,"__esModule",{value:!0});l7.version=void 0;l7.version="bignumber/5.7.0"});var p7=x(Sd=>{"use strict";d();p();var e7t=Sd&&Sd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sd,"__esModule",{value:!0});Sd._base16To36=Sd._base36To16=Sd.BigNumber=Sd.isBigNumberish=void 0;var t7t=e7t(Ir()),IE=t7t.default.BN,u5=wr(),l5=Zt(),r7t=kK(),Vm=new l5.Logger(r7t.version),AK={},K1e=9007199254740991;function n7t(r){return r!=null&&(d7.isBigNumber(r)||typeof r=="number"&&r%1===0||typeof r=="string"&&!!r.match(/^-?[0-9]+$/)||(0,u5.isHexString)(r)||typeof r=="bigint"||(0,u5.isBytes)(r))}Sd.isBigNumberish=n7t;var G1e=!1,d7=function(){function r(e,t){e!==AK&&Vm.throwError("cannot call constructor directly; use BigNumber.from",l5.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return r.prototype.fromTwos=function(e){return ll(Wr(this).fromTwos(e))},r.prototype.toTwos=function(e){return ll(Wr(this).toTwos(e))},r.prototype.abs=function(){return this._hex[0]==="-"?r.from(this._hex.substring(1)):this},r.prototype.add=function(e){return ll(Wr(this).add(Wr(e)))},r.prototype.sub=function(e){return ll(Wr(this).sub(Wr(e)))},r.prototype.div=function(e){var t=r.from(e);return t.isZero()&&Ad("division-by-zero","div"),ll(Wr(this).div(Wr(e)))},r.prototype.mul=function(e){return ll(Wr(this).mul(Wr(e)))},r.prototype.mod=function(e){var t=Wr(e);return t.isNeg()&&Ad("division-by-zero","mod"),ll(Wr(this).umod(t))},r.prototype.pow=function(e){var t=Wr(e);return t.isNeg()&&Ad("negative-power","pow"),ll(Wr(this).pow(t))},r.prototype.and=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","and"),ll(Wr(this).and(t))},r.prototype.or=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","or"),ll(Wr(this).or(t))},r.prototype.xor=function(e){var t=Wr(e);return(this.isNegative()||t.isNeg())&&Ad("unbound-bitwise-result","xor"),ll(Wr(this).xor(t))},r.prototype.mask=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","mask"),ll(Wr(this).maskn(e))},r.prototype.shl=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","shl"),ll(Wr(this).shln(e))},r.prototype.shr=function(e){return(this.isNegative()||e<0)&&Ad("negative-width","shr"),ll(Wr(this).shrn(e))},r.prototype.eq=function(e){return Wr(this).eq(Wr(e))},r.prototype.lt=function(e){return Wr(this).lt(Wr(e))},r.prototype.lte=function(e){return Wr(this).lte(Wr(e))},r.prototype.gt=function(e){return Wr(this).gt(Wr(e))},r.prototype.gte=function(e){return Wr(this).gte(Wr(e))},r.prototype.isNegative=function(){return this._hex[0]==="-"},r.prototype.isZero=function(){return Wr(this).isZero()},r.prototype.toNumber=function(){try{return Wr(this).toNumber()}catch{Ad("overflow","toNumber",this.toString())}return null},r.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch{}return Vm.throwError("this platform does not support BigInt",l5.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},r.prototype.toString=function(){return arguments.length>0&&(arguments[0]===10?G1e||(G1e=!0,Vm.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Vm.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",l5.Logger.errors.UNEXPECTED_ARGUMENT,{}):Vm.throwError("BigNumber.toString does not accept parameters",l5.Logger.errors.UNEXPECTED_ARGUMENT,{})),Wr(this).toString(10)},r.prototype.toHexString=function(){return this._hex},r.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},r.from=function(e){if(e instanceof r)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new r(AK,kE(e)):e.match(/^-?[0-9]+$/)?new r(AK,kE(new IE(e))):Vm.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&Ad("underflow","BigNumber.from",e),(e>=K1e||e<=-K1e)&&Ad("overflow","BigNumber.from",e),r.from(String(e));var t=e;if(typeof t=="bigint")return r.from(t.toString());if((0,u5.isBytes)(t))return r.from((0,u5.hexlify)(t));if(t)if(t.toHexString){var n=t.toHexString();if(typeof n=="string")return r.from(n)}else{var n=t._hex;if(n==null&&t.type==="BigNumber"&&(n=t.hex),typeof n=="string"&&((0,u5.isHexString)(n)||n[0]==="-"&&(0,u5.isHexString)(n.substring(1))))return r.from(n)}return Vm.throwArgumentError("invalid BigNumber value","value",e)},r.isBigNumber=function(e){return!!(e&&e._isBigNumber)},r}();Sd.BigNumber=d7;function kE(r){if(typeof r!="string")return kE(r.toString(16));if(r[0]==="-")return r=r.substring(1),r[0]==="-"&&Vm.throwArgumentError("invalid hex","value",r),r=kE(r),r==="0x00"?r:"-"+r;if(r.substring(0,2)!=="0x"&&(r="0x"+r),r==="0x")return"0x00";for(r.length%2&&(r="0x0"+r.substring(2));r.length>4&&r.substring(0,4)==="0x00";)r="0x"+r.substring(4);return r}function ll(r){return d7.from(kE(r))}function Wr(r){var e=d7.from(r).toHexString();return e[0]==="-"?new IE("-"+e.substring(3),16):new IE(e.substring(2),16)}function Ad(r,e,t){var n={fault:r,operation:e};return t!=null&&(n.value=t),Vm.throwError(r,l5.Logger.errors.NUMERIC_FAULT,n)}function a7t(r){return new IE(r,36).toString(16)}Sd._base36To16=a7t;function i7t(r){return new IE(r,16).toString(36)}Sd._base16To36=i7t});var Q1e=x(bf=>{"use strict";d();p();Object.defineProperty(bf,"__esModule",{value:!0});bf.FixedNumber=bf.FixedFormat=bf.parseFixed=bf.formatFixed=void 0;var h7=wr(),PE=Zt(),s7t=kK(),Nu=new PE.Logger(s7t.version),$m=p7(),AE={},$1e=$m.BigNumber.from(0),Y1e=$m.BigNumber.from(-1);function J1e(r,e,t,n){var a={fault:e,operation:t};return n!==void 0&&(a.value=n),Nu.throwError(r,PE.Logger.errors.NUMERIC_FAULT,a)}var SE="0";for(;SE.length<256;)SE+=SE;function SK(r){if(typeof r!="number")try{r=$m.BigNumber.from(r).toNumber()}catch{}return typeof r=="number"&&r>=0&&r<=256&&!(r%1)?"1"+SE.substring(0,r):Nu.throwArgumentError("invalid decimal size","decimals",r)}function f7(r,e){e==null&&(e=0);var t=SK(e);r=$m.BigNumber.from(r);var n=r.lt($1e);n&&(r=r.mul(Y1e));for(var a=r.mod(t).toString();a.length2&&Nu.throwArgumentError("too many decimal points","value",r);var i=a[0],s=a[1];for(i||(i="0"),s||(s="0");s[s.length-1]==="0";)s=s.substring(0,s.length-1);for(s.length>t.length-1&&J1e("fractional component exceeds decimals","underflow","parseFixed"),s===""&&(s="0");s.length80&&Nu.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",a),new r(AE,t,n,a)},r}();bf.FixedFormat=m7;var PK=function(){function r(e,t,n,a){e!==AE&&Nu.throwError("cannot use FixedNumber constructor; use FixedNumber.from",PE.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=a,this._hex=t,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return r.prototype._checkFormat=function(e){this.format.name!==e.format.name&&Nu.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},r.prototype.addUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.add(n),this.format.decimals,this.format)},r.prototype.subUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.sub(n),this.format.decimals,this.format)},r.prototype.mulUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},r.prototype.divUnsafe=function(e){this._checkFormat(e);var t=gf(this._value,this.format.decimals),n=gf(e._value,e.format.decimals);return r.fromValue(t.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},r.prototype.floor=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(t=t.subUnsafe(V1e.toFormat(t.format))),t},r.prototype.ceiling=function(){var e=this.toString().split(".");e.length===1&&e.push("0");var t=r.from(e[0],this.format),n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(t=t.addUnsafe(V1e.toFormat(t.format))),t},r.prototype.round=function(e){e==null&&(e=0);var t=this.toString().split(".");if(t.length===1&&t.push("0"),(e<0||e>80||e%1)&&Nu.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;var n=r.from("1"+SE.substring(0,e),this.format),a=o7t.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(a).floor().divUnsafe(n)},r.prototype.isZero=function(){return this._value==="0.0"||this._value==="0"},r.prototype.isNegative=function(){return this._value[0]==="-"},r.prototype.toString=function(){return this._value},r.prototype.toHexString=function(e){if(e==null)return this._hex;e%8&&Nu.throwArgumentError("invalid byte width","width",e);var t=$m.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,h7.hexZeroPad)(t,e/8)},r.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},r.prototype.toFormat=function(e){return r.fromString(this._value,e)},r.fromValue=function(e,t,n){return n==null&&t!=null&&!(0,$m.isBigNumberish)(t)&&(n=t,t=null),t==null&&(t=0),n==null&&(n="fixed"),r.fromString(f7(e,t),m7.from(n))},r.fromString=function(e,t){t==null&&(t="fixed");var n=m7.from(t),a=gf(e,n.decimals);!n.signed&&a.lt($1e)&&J1e("unsigned value cannot be negative","overflow","value",e);var i=null;n.signed?i=a.toTwos(n.width).toHexString():(i=a.toHexString(),i=(0,h7.hexZeroPad)(i,n.width/8));var s=f7(a,n.decimals);return new r(AE,i,s,n)},r.fromBytes=function(e,t){t==null&&(t="fixed");var n=m7.from(t);if((0,h7.arrayify)(e).length>n.width/8)throw new Error("overflow");var a=$m.BigNumber.from(e);n.signed&&(a=a.fromTwos(n.width));var i=a.toTwos((n.signed?0:1)+n.width).toHexString(),s=f7(a,n.decimals);return new r(AE,i,s,n)},r.from=function(e,t){if(typeof e=="string")return r.fromString(e,t);if((0,h7.isBytes)(e))return r.fromBytes(e,t);try{return r.fromValue(e,0,t)}catch(n){if(n.code!==PE.Logger.errors.INVALID_ARGUMENT)throw n}return Nu.throwArgumentError("invalid FixedNumber value","value",e)},r.isFixedNumber=function(e){return!!(e&&e._isFixedNumber)},r}();bf.FixedNumber=PK;var V1e=PK.from(1),o7t=PK.from("0.5")});var qs=x(zc=>{"use strict";d();p();Object.defineProperty(zc,"__esModule",{value:!0});zc._base36To16=zc._base16To36=zc.parseFixed=zc.FixedNumber=zc.FixedFormat=zc.formatFixed=zc.BigNumber=void 0;var c7t=p7();Object.defineProperty(zc,"BigNumber",{enumerable:!0,get:function(){return c7t.BigNumber}});var y7=Q1e();Object.defineProperty(zc,"formatFixed",{enumerable:!0,get:function(){return y7.formatFixed}});Object.defineProperty(zc,"FixedFormat",{enumerable:!0,get:function(){return y7.FixedFormat}});Object.defineProperty(zc,"FixedNumber",{enumerable:!0,get:function(){return y7.FixedNumber}});Object.defineProperty(zc,"parseFixed",{enumerable:!0,get:function(){return y7.parseFixed}});var Z1e=p7();Object.defineProperty(zc,"_base16To36",{enumerable:!0,get:function(){return Z1e._base16To36}});Object.defineProperty(zc,"_base36To16",{enumerable:!0,get:function(){return Z1e._base36To16}})});var X1e=x(g7=>{"use strict";d();p();Object.defineProperty(g7,"__esModule",{value:!0});g7.version=void 0;g7.version="properties/5.7.0"});var Aa=x(Fs=>{"use strict";d();p();var u7t=Fs&&Fs.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},l7t=Fs&&Fs.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(w7,"__esModule",{value:!0});w7.version=void 0;w7.version="abi/5.7.0"});var k7=x(nr=>{"use strict";d();p();var E7=nr&&nr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nr,"__esModule",{value:!0});nr.ErrorFragment=nr.FunctionFragment=nr.ConstructorFragment=nr.EventFragment=nr.Fragment=nr.ParamType=nr.FormatTypes=void 0;var BK=qs(),w7t=Aa(),C7=Zt(),_7t=d5(),zr=new C7.Logger(_7t.version),Qg={},rge={calldata:!0,memory:!0,storage:!0},x7t={calldata:!0,memory:!0};function _7(r,e){if(r==="bytes"||r==="string"){if(rge[e])return!0}else if(r==="address"){if(e==="payable")return!0}else if((r.indexOf("[")>=0||r==="tuple")&&x7t[e])return!0;return(rge[e]||e==="payable")&&zr.throwArgumentError("invalid modifier","name",e),!1}function T7t(r,e){var t=r;function n(h){zr.throwArgumentError("unexpected character at position "+h,"param",r)}r=r.replace(/\s/g," ");function a(h){var f={type:"",name:"",parent:h,state:{allowType:!0}};return e&&(f.indexed=!1),f}for(var i={type:"",name:"",state:{allowType:!0}},s=i,o=0;o2&&zr.throwArgumentError("invalid human-readable ABI signature","value",r),t[1].match(/^[0-9]+$/)||zr.throwArgumentError("invalid human-readable ABI signature gas","value",r),e.gas=BK.BigNumber.from(t[1]),t[0]):r}function ige(r,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",r.split(" ").forEach(function(t){switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function sge(r){var e={constant:!1,payable:!0,stateMutability:"payable"};return r.stateMutability!=null?(e.stateMutability=r.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",r.constant!=null&&!!r.constant!==e.constant&&zr.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",r),e.payable=e.stateMutability==="payable",r.payable!=null&&!!r.payable!==e.payable&&zr.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",r)):r.payable!=null?(e.payable=!!r.payable,r.constant==null&&!e.payable&&r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e.constant=!!r.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&zr.throwArgumentError("cannot have constant payable function","value",r)):r.constant!=null?(e.constant=!!r.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):r.type!=="constructor"&&zr.throwArgumentError("unable to determine stateMutability","value",r),e}var T7=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});t===nr.FormatTypes.sighash&&zr.throwError("cannot format a constructor for sighash",C7.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isConstructorFragment(t))return t;t.type!=="constructor"&&zr.throwArgumentError("invalid constructor object","value",t);var n=sge(t);n.constant&&zr.throwArgumentError("constructor cannot be constant","value",t);var a={name:null,type:t.type,inputs:t.inputs?t.inputs.map(Zg.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?BK.BigNumber.from(t.gas):null};return new e(Qg,a)},e.fromString=function(t){var n={type:"constructor"};t=age(t,n);var a=t.match(NE);return(!a||a[1].trim()!=="constructor")&&zr.throwArgumentError("invalid constructor string","value",t),n.inputs=RE(a[2].trim(),!1),ige(a[3].trim(),n),e.fromObject(n)},e.isConstructorFragment=function(t){return t&&t._isFragment&&t.type==="constructor"},e}(I7);nr.ConstructorFragment=T7;var MK=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))}),outputs:this.outputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",t!==nr.FormatTypes.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(a){return a.format(t)}).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFunctionFragment(t))return t;t.type!=="function"&&zr.throwArgumentError("invalid function object","value",t);var n=sge(t),a={type:t.type,name:ME(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(Zg.fromObject):[],outputs:t.outputs?t.outputs.map(Zg.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?BK.BigNumber.from(t.gas):null};return new e(Qg,a)},e.fromString=function(t){var n={type:"function"};t=age(t,n);var a=t.split(" returns ");a.length>2&&zr.throwArgumentError("invalid function string","value",t);var i=a[0].match(NE);if(i||zr.throwArgumentError("invalid function signature","value",t),n.name=i[1].trim(),n.name&&ME(n.name),n.inputs=RE(i[2],!1),ige(i[3].trim(),n),a.length>1){var s=a[1].match(NE);(s[1].trim()!=""||s[3].trim()!="")&&zr.throwArgumentError("unexpected tokens","value",t),n.outputs=RE(s[2],!1)}else n.outputs=[];return e.fromObject(n)},e.isFunctionFragment=function(t){return t&&t._isFragment&&t.type==="function"},e}(T7);nr.FunctionFragment=MK;function nge(r){var e=r.format();return(e==="Error(string)"||e==="Panic(uint256)")&&zr.throwArgumentError("cannot specify user defined "+e+" error","fragment",r),r}var NK=function(r){E7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.format=function(t){if(t||(t=nr.FormatTypes.sighash),nr.FormatTypes[t]||zr.throwArgumentError("invalid format type","format",t),t===nr.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(a){return JSON.parse(a.format(t))})});var n="";return t!==nr.FormatTypes.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(function(a){return a.format(t)}).join(t===nr.FormatTypes.full?", ":",")+") ",n.trim()},e.from=function(t){return typeof t=="string"?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isErrorFragment(t))return t;t.type!=="error"&&zr.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:ME(t.name),inputs:t.inputs?t.inputs.map(Zg.fromObject):[]};return nge(new e(Qg,n))},e.fromString=function(t){var n={type:"error"},a=t.match(NE);return a||zr.throwArgumentError("invalid error signature","value",t),n.name=a[1].trim(),n.name&&ME(n.name),n.inputs=RE(a[2],!1),nge(e.fromObject(n))},e.isErrorFragment=function(t){return t&&t._isFragment&&t.type==="error"},e}(I7);nr.ErrorFragment=NK;function p5(r){return r.match(/^uint($|[^1-9])/)?r="uint256"+r.substring(4):r.match(/^int($|[^1-9])/)&&(r="int256"+r.substring(3)),r}var C7t=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function ME(r){return(!r||!r.match(C7t))&&zr.throwArgumentError('invalid identifier "'+r+'"',"value",r),r}var NE=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function I7t(r){r=r.trim();for(var e=[],t="",n=0,a=0;a{"use strict";d();p();Object.defineProperty(vf,"__esModule",{value:!0});vf.Reader=vf.Writer=vf.Coder=vf.checkResultErrors=void 0;var xy=wr(),oge=qs(),BE=Aa(),DK=Zt(),k7t=d5(),OK=new DK.Logger(k7t.version);function A7t(r){var e=[],t=function(n,a){if(!!Array.isArray(a))for(var i in a){var s=n.slice();s.push(i);try{t(s,a[i])}catch(o){e.push({path:s,error:o})}}};return t([],r),e}vf.checkResultErrors=A7t;var S7t=function(){function r(e,t,n,a){this.name=e,this.type=t,this.localName=n,this.dynamic=a}return r.prototype._throwError=function(e,t){OK.throwArgumentError(e,this.localName,t)},r}();vf.Coder=S7t;var P7t=function(){function r(e){(0,BE.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,xy.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),r.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},r.prototype.appendWriter=function(e){return this._writeData((0,xy.concat)(e._data))},r.prototype.writeBytes=function(e){var t=(0,xy.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,xy.concat)([t,this._padding.slice(n)])),this._writeData(t)},r.prototype._getValue=function(e){var t=(0,xy.arrayify)(oge.BigNumber.from(e));return t.length>this.wordSize&&OK.throwError("value out-of-bounds",DK.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,xy.concat)([this._padding.slice(t.length%this.wordSize),t])),t},r.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},r.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}},r}();vf.Writer=P7t;var R7t=function(){function r(e,t,n,a){(0,BE.defineReadOnly)(this,"_data",(0,xy.arrayify)(e)),(0,BE.defineReadOnly)(this,"wordSize",t||32),(0,BE.defineReadOnly)(this,"_coerceFunc",n),(0,BE.defineReadOnly)(this,"allowLoose",a),this._offset=0}return Object.defineProperty(r.prototype,"data",{get:function(){return(0,xy.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),r.coerce=function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t},r.prototype.coerce=function(e,t){return this._coerceFunc?this._coerceFunc(e,t):r.coerce(e,t)},r.prototype._peekBytes=function(e,t,n){var a=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+a>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?a=t:OK.throwError("data out-of-bounds",DK.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+a})),this._data.slice(this._offset,this._offset+a)},r.prototype.subReader=function(e){return new r(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)},r.prototype.readBytes=function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)},r.prototype.readValue=function(){return oge.BigNumber.from(this.readBytes(this.wordSize))},r}();vf.Reader=R7t});var LK=x((x3n,A7)=>{d();p();(function(){"use strict";var r="input is invalid type",e="finalize already called",t=typeof window=="object",n=t?window:{};n.JS_SHA3_NO_WINDOW&&(t=!1);var a=!t&&typeof self=="object",i=!n.JS_SHA3_NO_NODE_JS&&typeof g=="object"&&g.versions&&g.versions.node;i?n=global:a&&(n=self);var s=!n.JS_SHA3_NO_COMMON_JS&&typeof A7=="object"&&A7.exports,o=typeof define=="function"&&define.amd,c=!n.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",u="0123456789abcdef".split(""),l=[31,7936,2031616,520093696],h=[4,1024,262144,67108864],f=[1,256,65536,16777216],m=[6,1536,393216,100663296],y=[0,8,16,24],E=[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],I=[224,256,384,512],S=[128,256],L=["hex","buffer","arrayBuffer","array","digest"],F={128:168,256:136};(n.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(j){return Object.prototype.toString.call(j)==="[object Array]"}),c&&(n.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(j){return typeof j=="object"&&j.buffer&&j.buffer.constructor===ArrayBuffer});for(var W=function(j,X,ie){return function(ue){return new C(j,X,j).update(ue)[ie]()}},V=function(j,X,ie){return function(ue,he){return new C(j,X,he).update(ue)[ie]()}},K=function(j,X,ie){return function(ue,he,ke,ge){return v["cshake"+j].update(ue,he,ke,ge)[ie]()}},H=function(j,X,ie){return function(ue,he,ke,ge){return v["kmac"+j].update(ue,he,ke,ge)[ie]()}},G=function(j,X,ie,ue){for(var he=0;he>5,this.byteCount=this.blockCount<<2,this.outputBlocks=ie>>5,this.extraBytes=(ie&31)>>3;for(var ue=0;ue<50;++ue)this.s[ue]=0}C.prototype.update=function(j){if(this.finalized)throw new Error(e);var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}for(var ue=this.blocks,he=this.byteCount,ke=j.length,ge=this.blockCount,me=0,Ke=this.s,ve,Ae;me>2]|=j[me]<>2]|=Ae<>2]|=(192|Ae>>6)<>2]|=(128|Ae&63)<=57344?(ue[ve>>2]|=(224|Ae>>12)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<>2]|=(240|Ae>>18)<>2]|=(128|Ae>>12&63)<>2]|=(128|Ae>>6&63)<>2]|=(128|Ae&63)<=he){for(this.start=ve-he,this.block=ue[ge],ve=0;ve>8,ie=j&255;ie>0;)he.unshift(ie),j=j>>8,ie=j&255,++ue;return X?he.push(ue):he.unshift(ue),this.update(he),he.length},C.prototype.encodeString=function(j){var X,ie=typeof j;if(ie!=="string"){if(ie==="object"){if(j===null)throw new Error(r);if(c&&j.constructor===ArrayBuffer)j=new Uint8Array(j);else if(!Array.isArray(j)&&(!c||!ArrayBuffer.isView(j)))throw new Error(r)}else throw new Error(r);X=!0}var ue=0,he=j.length;if(X)ue=he;else for(var ke=0;ke=57344?ue+=3:(ge=65536+((ge&1023)<<10|j.charCodeAt(++ke)&1023),ue+=4)}return ue+=this.encode(ue*8),this.update(j),ue},C.prototype.bytepad=function(j,X){for(var ie=this.encode(X),ue=0;ue>2]|=this.padding[X&3],this.lastByteIndex===this.byteCount)for(j[0]=j[ie],X=1;X>4&15]+u[me&15]+u[me>>12&15]+u[me>>8&15]+u[me>>20&15]+u[me>>16&15]+u[me>>28&15]+u[me>>24&15];ke%j===0&&(ee(X),he=0)}return ue&&(me=X[he],ge+=u[me>>4&15]+u[me&15],ue>1&&(ge+=u[me>>12&15]+u[me>>8&15]),ue>2&&(ge+=u[me>>20&15]+u[me>>16&15])),ge},C.prototype.arrayBuffer=function(){this.finalize();var j=this.blockCount,X=this.s,ie=this.outputBlocks,ue=this.extraBytes,he=0,ke=0,ge=this.outputBits>>3,me;ue?me=new ArrayBuffer(ie+1<<2):me=new ArrayBuffer(ge);for(var Ke=new Uint32Array(me);ke>8&255,ge[me+2]=Ke>>16&255,ge[me+3]=Ke>>24&255;ke%j===0&&ee(X)}return ue&&(me=ke<<2,Ke=X[he],ge[me]=Ke&255,ue>1&&(ge[me+1]=Ke>>8&255),ue>2&&(ge[me+2]=Ke>>16&255)),ge};function z(j,X,ie){C.call(this,j,X,ie)}z.prototype=new C,z.prototype.finalize=function(){return this.encode(this.outputBits,!0),C.prototype.finalize.call(this)};var ee=function(j){var X,ie,ue,he,ke,ge,me,Ke,ve,Ae,so,Et,bt,ci,_t,st,ui,Nt,dt,oo,jt,Bt,ac,ot,pt,Nc,Ct,It,Bc,Dt,kt,Dc,At,Ot,ic,Lt,qt,Oc,St,Ft,Lc,Pt,Wt,sc,Je,it,oc,Ut,Kt,ol,Gt,Vt,cl,$t,Yt,Mu,an,sn,qc,Fc,Wc,Uc,Hc;for(ue=0;ue<48;ue+=2)he=j[0]^j[10]^j[20]^j[30]^j[40],ke=j[1]^j[11]^j[21]^j[31]^j[41],ge=j[2]^j[12]^j[22]^j[32]^j[42],me=j[3]^j[13]^j[23]^j[33]^j[43],Ke=j[4]^j[14]^j[24]^j[34]^j[44],ve=j[5]^j[15]^j[25]^j[35]^j[45],Ae=j[6]^j[16]^j[26]^j[36]^j[46],so=j[7]^j[17]^j[27]^j[37]^j[47],Et=j[8]^j[18]^j[28]^j[38]^j[48],bt=j[9]^j[19]^j[29]^j[39]^j[49],X=Et^(ge<<1|me>>>31),ie=bt^(me<<1|ge>>>31),j[0]^=X,j[1]^=ie,j[10]^=X,j[11]^=ie,j[20]^=X,j[21]^=ie,j[30]^=X,j[31]^=ie,j[40]^=X,j[41]^=ie,X=he^(Ke<<1|ve>>>31),ie=ke^(ve<<1|Ke>>>31),j[2]^=X,j[3]^=ie,j[12]^=X,j[13]^=ie,j[22]^=X,j[23]^=ie,j[32]^=X,j[33]^=ie,j[42]^=X,j[43]^=ie,X=ge^(Ae<<1|so>>>31),ie=me^(so<<1|Ae>>>31),j[4]^=X,j[5]^=ie,j[14]^=X,j[15]^=ie,j[24]^=X,j[25]^=ie,j[34]^=X,j[35]^=ie,j[44]^=X,j[45]^=ie,X=Ke^(Et<<1|bt>>>31),ie=ve^(bt<<1|Et>>>31),j[6]^=X,j[7]^=ie,j[16]^=X,j[17]^=ie,j[26]^=X,j[27]^=ie,j[36]^=X,j[37]^=ie,j[46]^=X,j[47]^=ie,X=Ae^(he<<1|ke>>>31),ie=so^(ke<<1|he>>>31),j[8]^=X,j[9]^=ie,j[18]^=X,j[19]^=ie,j[28]^=X,j[29]^=ie,j[38]^=X,j[39]^=ie,j[48]^=X,j[49]^=ie,ci=j[0],_t=j[1],it=j[11]<<4|j[10]>>>28,oc=j[10]<<4|j[11]>>>28,It=j[20]<<3|j[21]>>>29,Bc=j[21]<<3|j[20]>>>29,Fc=j[31]<<9|j[30]>>>23,Wc=j[30]<<9|j[31]>>>23,Pt=j[40]<<18|j[41]>>>14,Wt=j[41]<<18|j[40]>>>14,Ot=j[2]<<1|j[3]>>>31,ic=j[3]<<1|j[2]>>>31,st=j[13]<<12|j[12]>>>20,ui=j[12]<<12|j[13]>>>20,Ut=j[22]<<10|j[23]>>>22,Kt=j[23]<<10|j[22]>>>22,Dt=j[33]<<13|j[32]>>>19,kt=j[32]<<13|j[33]>>>19,Uc=j[42]<<2|j[43]>>>30,Hc=j[43]<<2|j[42]>>>30,$t=j[5]<<30|j[4]>>>2,Yt=j[4]<<30|j[5]>>>2,Lt=j[14]<<6|j[15]>>>26,qt=j[15]<<6|j[14]>>>26,Nt=j[25]<<11|j[24]>>>21,dt=j[24]<<11|j[25]>>>21,ol=j[34]<<15|j[35]>>>17,Gt=j[35]<<15|j[34]>>>17,Dc=j[45]<<29|j[44]>>>3,At=j[44]<<29|j[45]>>>3,ot=j[6]<<28|j[7]>>>4,pt=j[7]<<28|j[6]>>>4,Mu=j[17]<<23|j[16]>>>9,an=j[16]<<23|j[17]>>>9,Oc=j[26]<<25|j[27]>>>7,St=j[27]<<25|j[26]>>>7,oo=j[36]<<21|j[37]>>>11,jt=j[37]<<21|j[36]>>>11,Vt=j[47]<<24|j[46]>>>8,cl=j[46]<<24|j[47]>>>8,sc=j[8]<<27|j[9]>>>5,Je=j[9]<<27|j[8]>>>5,Nc=j[18]<<20|j[19]>>>12,Ct=j[19]<<20|j[18]>>>12,sn=j[29]<<7|j[28]>>>25,qc=j[28]<<7|j[29]>>>25,Ft=j[38]<<8|j[39]>>>24,Lc=j[39]<<8|j[38]>>>24,Bt=j[48]<<14|j[49]>>>18,ac=j[49]<<14|j[48]>>>18,j[0]=ci^~st&Nt,j[1]=_t^~ui&dt,j[10]=ot^~Nc&It,j[11]=pt^~Ct&Bc,j[20]=Ot^~Lt&Oc,j[21]=ic^~qt&St,j[30]=sc^~it&Ut,j[31]=Je^~oc&Kt,j[40]=$t^~Mu&sn,j[41]=Yt^~an&qc,j[2]=st^~Nt&oo,j[3]=ui^~dt&jt,j[12]=Nc^~It&Dt,j[13]=Ct^~Bc&kt,j[22]=Lt^~Oc&Ft,j[23]=qt^~St&Lc,j[32]=it^~Ut&ol,j[33]=oc^~Kt&Gt,j[42]=Mu^~sn&Fc,j[43]=an^~qc&Wc,j[4]=Nt^~oo&Bt,j[5]=dt^~jt&ac,j[14]=It^~Dt&Dc,j[15]=Bc^~kt&At,j[24]=Oc^~Ft&Pt,j[25]=St^~Lc&Wt,j[34]=Ut^~ol&Vt,j[35]=Kt^~Gt&cl,j[44]=sn^~Fc&Uc,j[45]=qc^~Wc&Hc,j[6]=oo^~Bt&ci,j[7]=jt^~ac&_t,j[16]=Dt^~Dc&ot,j[17]=kt^~At&pt,j[26]=Ft^~Pt&Ot,j[27]=Lc^~Wt&ic,j[36]=ol^~Vt&sc,j[37]=Gt^~cl&Je,j[46]=Fc^~Uc&$t,j[47]=Wc^~Hc&Yt,j[8]=Bt^~ci&st,j[9]=ac^~_t&ui,j[18]=Dc^~ot&Nc,j[19]=At^~pt&Ct,j[28]=Pt^~Ot&Lt,j[29]=Wt^~ic&qt,j[38]=Vt^~sc&it,j[39]=cl^~Je&oc,j[48]=Uc^~$t&Mu,j[49]=Hc^~Yt&an,j[0]^=E[ue],j[1]^=E[ue+1]};if(s)A7.exports=v;else{for(O=0;O{"use strict";d();p();var M7t=h5&&h5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(h5,"__esModule",{value:!0});h5.keccak256=void 0;var N7t=M7t(LK()),B7t=wr();function D7t(r){return"0x"+N7t.default.keccak_256((0,B7t.arrayify)(r))}h5.keccak256=D7t});var cge=x(S7=>{"use strict";d();p();Object.defineProperty(S7,"__esModule",{value:!0});S7.version=void 0;S7.version="rlp/5.7.0"});var P7=x(f5=>{"use strict";d();p();Object.defineProperty(f5,"__esModule",{value:!0});f5.decode=f5.encode=void 0;var Xg=wr(),Ym=Zt(),O7t=cge(),wf=new Ym.Logger(O7t.version);function uge(r){for(var e=[];r;)e.unshift(r&255),r>>=8;return e}function lge(r,e,t){for(var n=0,a=0;ae+1+n&&wf.throwError("child data too short",Ym.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:a}}function hge(r,e){if(r.length===0&&wf.throwError("data too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),r[e]>=248){var t=r[e]-247;e+1+t>r.length&&wf.throwError("data short segment too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var n=lge(r,e+1,t);return e+1+t+n>r.length&&wf.throwError("data long segment too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),dge(r,e,e+1+t,t+n)}else if(r[e]>=192){var a=r[e]-192;return e+1+a>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{}),dge(r,e,e+1,a)}else if(r[e]>=184){var t=r[e]-183;e+1+t>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var i=lge(r,e+1,t);e+1+t+i>r.length&&wf.throwError("data array too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var s=(0,Xg.hexlify)(r.slice(e+1+t,e+1+t+i));return{consumed:1+t+i,result:s}}else if(r[e]>=128){var o=r[e]-128;e+1+o>r.length&&wf.throwError("data too short",Ym.Logger.errors.BUFFER_OVERRUN,{});var s=(0,Xg.hexlify)(r.slice(e+1,e+1+o));return{consumed:1+o,result:s}}return{consumed:1,result:(0,Xg.hexlify)(r[e])}}function q7t(r){var e=(0,Xg.arrayify)(r),t=hge(e,0);return t.consumed!==e.length&&wf.throwArgumentError("invalid rlp data","data",r),t.result}f5.decode=q7t});var fge=x(R7=>{"use strict";d();p();Object.defineProperty(R7,"__esModule",{value:!0});R7.version=void 0;R7.version="address/5.7.0"});var Md=x(Rd=>{"use strict";d();p();Object.defineProperty(Rd,"__esModule",{value:!0});Rd.getCreate2Address=Rd.getContractAddress=Rd.getIcapAddress=Rd.isAddress=Rd.getAddress=void 0;var Jm=wr(),qK=qs(),FK=Kl(),F7t=P7(),W7t=Zt(),U7t=fge(),Ty=new W7t.Logger(U7t.version);function mge(r){(0,Jm.isHexString)(r,20)||Ty.throwArgumentError("invalid address","address",r),r=r.toLowerCase();for(var e=r.substring(2).split(""),t=new Uint8Array(40),n=0;n<40;n++)t[n]=e[n].charCodeAt(0);for(var a=(0,Jm.arrayify)((0,FK.keccak256)(t)),n=0;n<40;n+=2)a[n>>1]>>4>=8&&(e[n]=e[n].toUpperCase()),(a[n>>1]&15)>=8&&(e[n+1]=e[n+1].toUpperCase());return"0x"+e.join("")}var H7t=9007199254740991;function j7t(r){return Math.log10?Math.log10(r):Math.log(r)/Math.LN10}var WK={};for(eh=0;eh<10;eh++)WK[String(eh)]=String(eh);var eh;for(eh=0;eh<26;eh++)WK[String.fromCharCode(65+eh)]=String(10+eh);var eh,yge=Math.floor(j7t(H7t));function gge(r){r=r.toUpperCase(),r=r.substring(4)+r.substring(0,2)+"00";for(var e=r.split("").map(function(a){return WK[a]}).join("");e.length>=yge;){var t=e.substring(0,yge);e=parseInt(t,10)%97+e.substring(t.length)}for(var n=String(98-parseInt(e,10)%97);n.length<2;)n="0"+n;return n}function eb(r){var e=null;if(typeof r!="string"&&Ty.throwArgumentError("invalid address","address",r),r.match(/^(0x)?[0-9a-fA-F]{40}$/))r.substring(0,2)!=="0x"&&(r="0x"+r),e=mge(r),r.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==r&&Ty.throwArgumentError("bad address checksum","address",r);else if(r.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(r.substring(2,4)!==gge(r)&&Ty.throwArgumentError("bad icap checksum","address",r),e=(0,qK._base36To16)(r.substring(4));e.length<40;)e="0"+e;e=mge("0x"+e)}else Ty.throwArgumentError("invalid address","address",r);return e}Rd.getAddress=eb;function z7t(r){try{return eb(r),!0}catch{}return!1}Rd.isAddress=z7t;function K7t(r){for(var e=(0,qK._base16To36)(eb(r).substring(2)).toUpperCase();e.length<30;)e="0"+e;return"XE"+gge("XE00"+e)+e}Rd.getIcapAddress=K7t;function G7t(r){var e=null;try{e=eb(r.from)}catch{Ty.throwArgumentError("missing from address","transaction",r)}var t=(0,Jm.stripZeros)((0,Jm.arrayify)(qK.BigNumber.from(r.nonce).toHexString()));return eb((0,Jm.hexDataSlice)((0,FK.keccak256)((0,F7t.encode)([e,t])),12))}Rd.getContractAddress=G7t;function V7t(r,e,t){return(0,Jm.hexDataLength)(e)!==32&&Ty.throwArgumentError("salt must be 32 bytes","salt",e),(0,Jm.hexDataLength)(t)!==32&&Ty.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",t),eb((0,Jm.hexDataSlice)((0,FK.keccak256)((0,Jm.concat)(["0xff",eb(r),e,t])),12))}Rd.getCreate2Address=V7t});var vge=x(m5=>{"use strict";d();p();var $7t=m5&&m5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(m5,"__esModule",{value:!0});m5.AddressCoder=void 0;var bge=Md(),Y7t=wr(),J7t=Pd(),Q7t=function(r){$7t(e,r);function e(t){return r.call(this,"address","address",t,!1)||this}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},e.prototype.encode=function(t,n){try{n=(0,bge.getAddress)(n)}catch(a){this._throwError(a.message,n)}return t.writeValue(n)},e.prototype.decode=function(t){return(0,bge.getAddress)((0,Y7t.hexZeroPad)(t.readValue().toHexString(),20))},e}(J7t.Coder);m5.AddressCoder=Q7t});var wge=x(y5=>{"use strict";d();p();var Z7t=y5&&y5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(y5,"__esModule",{value:!0});y5.AnonymousCoder=void 0;var X7t=Pd(),eRt=function(r){Z7t(e,r);function e(t){var n=r.call(this,t.name,t.type,void 0,t.dynamic)||this;return n.coder=t,n}return e.prototype.defaultValue=function(){return this.coder.defaultValue()},e.prototype.encode=function(t,n){return this.coder.encode(t,n)},e.prototype.decode=function(t){return this.coder.decode(t)},e}(X7t.Coder);y5.AnonymousCoder=eRt});var HK=x(_f=>{"use strict";d();p();var tRt=_f&&_f.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_f,"__esModule",{value:!0});_f.ArrayCoder=_f.unpack=_f.pack=void 0;var b5=Zt(),rRt=d5(),g5=new b5.Logger(rRt.version),UK=Pd(),nRt=wge();function _ge(r,e,t){var n=null;if(Array.isArray(t))n=t;else if(t&&typeof t=="object"){var a={};n=e.map(function(u){var l=u.localName;return l||g5.throwError("cannot encode object for signature with missing names",b5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]&&g5.throwError("cannot encode object for signature with duplicate names",b5.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:u,value:t}),a[l]=!0,t[l]})}else g5.throwArgumentError("invalid tuple value","tuple",t);e.length!==n.length&&g5.throwArgumentError("types/value length mismatch","tuple",t);var i=new UK.Writer(r.wordSize),s=new UK.Writer(r.wordSize),o=[];e.forEach(function(u,l){var h=n[l];if(u.dynamic){var f=s.length;u.encode(s,h);var m=i.writeUpdatableValue();o.push(function(y){m(y+f)})}else u.encode(i,h)}),o.forEach(function(u){u(i.length)});var c=r.appendWriter(i);return c+=r.appendWriter(s),c}_f.pack=_ge;function xge(r,e){var t=[],n=r.subReader(0);e.forEach(function(o){var c=null;if(o.dynamic){var u=r.readValue(),l=n.subReader(u.toNumber());try{c=o.decode(l)}catch(h){if(h.code===b5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}}else try{c=o.decode(r)}catch(h){if(h.code===b5.Logger.errors.BUFFER_OVERRUN)throw h;c=h,c.baseType=o.name,c.name=o.localName,c.type=o.type}c!=null&&t.push(c)});var a=e.reduce(function(o,c){var u=c.localName;return u&&(o[u]||(o[u]=0),o[u]++),o},{});e.forEach(function(o,c){var u=o.localName;if(!(!u||a[u]!==1)&&(u==="length"&&(u="_length"),t[u]==null)){var l=t[c];l instanceof Error?Object.defineProperty(t,u,{enumerable:!0,get:function(){throw l}}):t[u]=l}});for(var i=function(o){var c=t[o];c instanceof Error&&Object.defineProperty(t,o,{enumerable:!0,get:function(){throw c}})},s=0;s=0?n:"")+"]",o=n===-1||t.dynamic;return i=r.call(this,"array",s,a,o)||this,i.coder=t,i.length=n,i}return e.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],a=0;at._data.length&&g5.throwError("insufficient data length",b5.Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n}));for(var a=[],i=0;i{"use strict";d();p();var iRt=v5&&v5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(v5,"__esModule",{value:!0});v5.BooleanCoder=void 0;var sRt=Pd(),oRt=function(r){iRt(e,r);function e(t){return r.call(this,"bool","bool",t,!1)||this}return e.prototype.defaultValue=function(){return!1},e.prototype.encode=function(t,n){return t.writeValue(n?1:0)},e.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},e}(sRt.Coder);v5.BooleanCoder=oRt});var jK=x(Ey=>{"use strict";d();p();var Ege=Ey&&Ey.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ey,"__esModule",{value:!0});Ey.BytesCoder=Ey.DynamicBytesCoder=void 0;var Cge=wr(),cRt=Pd(),Ige=function(r){Ege(e,r);function e(t,n){return r.call(this,t,t,n,!0)||this}return e.prototype.defaultValue=function(){return"0x"},e.prototype.encode=function(t,n){n=(0,Cge.arrayify)(n);var a=t.writeValue(n.length);return a+=t.writeBytes(n),a},e.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},e}(cRt.Coder);Ey.DynamicBytesCoder=Ige;var uRt=function(r){Ege(e,r);function e(t){return r.call(this,"bytes",t)||this}return e.prototype.decode=function(t){return t.coerce(this.name,(0,Cge.hexlify)(r.prototype.decode.call(this,t)))},e}(Ige);Ey.BytesCoder=uRt});var Age=x(w5=>{"use strict";d();p();var lRt=w5&&w5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(w5,"__esModule",{value:!0});w5.FixedBytesCoder=void 0;var kge=wr(),dRt=Pd(),pRt=function(r){lRt(e,r);function e(t,n){var a=this,i="bytes"+String(t);return a=r.call(this,i,i,n,!1)||this,a.size=t,a}return e.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)},e.prototype.encode=function(t,n){var a=(0,kge.arrayify)(n);return a.length!==this.size&&this._throwError("incorrect data length",n),t.writeBytes(a)},e.prototype.decode=function(t){return t.coerce(this.name,(0,kge.hexlify)(t.readBytes(this.size)))},e}(dRt.Coder);w5.FixedBytesCoder=pRt});var Sge=x(_5=>{"use strict";d();p();var hRt=_5&&_5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_5,"__esModule",{value:!0});_5.NullCoder=void 0;var fRt=Pd(),mRt=function(r){hRt(e,r);function e(t){return r.call(this,"null","",t,!1)||this}return e.prototype.defaultValue=function(){return null},e.prototype.encode=function(t,n){return n!=null&&this._throwError("not null",n),t.writeBytes([])},e.prototype.decode=function(t){return t.readBytes(0),t.coerce(this.name,null)},e}(fRt.Coder);_5.NullCoder=mRt});var Pge=x(M7=>{"use strict";d();p();Object.defineProperty(M7,"__esModule",{value:!0});M7.AddressZero=void 0;M7.AddressZero="0x0000000000000000000000000000000000000000"});var Rge=x(So=>{"use strict";d();p();Object.defineProperty(So,"__esModule",{value:!0});So.MaxInt256=So.MinInt256=So.MaxUint256=So.WeiPerEther=So.Two=So.One=So.Zero=So.NegativeOne=void 0;var Cy=qs(),yRt=Cy.BigNumber.from(-1);So.NegativeOne=yRt;var gRt=Cy.BigNumber.from(0);So.Zero=gRt;var bRt=Cy.BigNumber.from(1);So.One=bRt;var vRt=Cy.BigNumber.from(2);So.Two=vRt;var wRt=Cy.BigNumber.from("1000000000000000000");So.WeiPerEther=wRt;var _Rt=Cy.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");So.MaxUint256=_Rt;var xRt=Cy.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");So.MinInt256=xRt;var TRt=Cy.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");So.MaxInt256=TRt});var Mge=x(N7=>{"use strict";d();p();Object.defineProperty(N7,"__esModule",{value:!0});N7.HashZero=void 0;N7.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"});var Nge=x(B7=>{"use strict";d();p();Object.defineProperty(B7,"__esModule",{value:!0});B7.EtherSymbol=void 0;B7.EtherSymbol="\u039E"});var tb=x(bi=>{"use strict";d();p();Object.defineProperty(bi,"__esModule",{value:!0});bi.EtherSymbol=bi.HashZero=bi.MaxInt256=bi.MinInt256=bi.MaxUint256=bi.WeiPerEther=bi.Two=bi.One=bi.Zero=bi.NegativeOne=bi.AddressZero=void 0;var ERt=Pge();Object.defineProperty(bi,"AddressZero",{enumerable:!0,get:function(){return ERt.AddressZero}});var Iy=Rge();Object.defineProperty(bi,"NegativeOne",{enumerable:!0,get:function(){return Iy.NegativeOne}});Object.defineProperty(bi,"Zero",{enumerable:!0,get:function(){return Iy.Zero}});Object.defineProperty(bi,"One",{enumerable:!0,get:function(){return Iy.One}});Object.defineProperty(bi,"Two",{enumerable:!0,get:function(){return Iy.Two}});Object.defineProperty(bi,"WeiPerEther",{enumerable:!0,get:function(){return Iy.WeiPerEther}});Object.defineProperty(bi,"MaxUint256",{enumerable:!0,get:function(){return Iy.MaxUint256}});Object.defineProperty(bi,"MinInt256",{enumerable:!0,get:function(){return Iy.MinInt256}});Object.defineProperty(bi,"MaxInt256",{enumerable:!0,get:function(){return Iy.MaxInt256}});var CRt=Mge();Object.defineProperty(bi,"HashZero",{enumerable:!0,get:function(){return CRt.HashZero}});var IRt=Nge();Object.defineProperty(bi,"EtherSymbol",{enumerable:!0,get:function(){return IRt.EtherSymbol}})});var Bge=x(x5=>{"use strict";d();p();var kRt=x5&&x5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x5,"__esModule",{value:!0});x5.NumberCoder=void 0;var ARt=qs(),D7=tb(),SRt=Pd(),PRt=function(r){kRt(e,r);function e(t,n,a){var i=this,s=(n?"int":"uint")+t*8;return i=r.call(this,s,s,a,!1)||this,i.size=t,i.signed=n,i}return e.prototype.defaultValue=function(){return 0},e.prototype.encode=function(t,n){var a=ARt.BigNumber.from(n),i=D7.MaxUint256.mask(t.wordSize*8);if(this.signed){var s=i.mask(this.size*8-1);(a.gt(s)||a.lt(s.add(D7.One).mul(D7.NegativeOne)))&&this._throwError("value out-of-bounds",n)}else(a.lt(D7.Zero)||a.gt(i.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*t.wordSize)),t.writeValue(a)},e.prototype.decode=function(t){var n=t.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),t.coerce(this.name,n)},e}(SRt.Coder);x5.NumberCoder=PRt});var Dge=x(O7=>{"use strict";d();p();Object.defineProperty(O7,"__esModule",{value:!0});O7.version=void 0;O7.version="strings/5.7.0"});var q7=x(ws=>{"use strict";d();p();Object.defineProperty(ws,"__esModule",{value:!0});ws.toUtf8CodePoints=ws.toUtf8String=ws._toUtf8String=ws._toEscapedUtf8String=ws.toUtf8Bytes=ws.Utf8ErrorFuncs=ws.Utf8ErrorReason=ws.UnicodeNormalizationForm=void 0;var Oge=wr(),RRt=Zt(),MRt=Dge(),Lge=new RRt.Logger(MRt.version),L7;(function(r){r.current="",r.NFC="NFC",r.NFD="NFD",r.NFKC="NFKC",r.NFKD="NFKD"})(L7=ws.UnicodeNormalizationForm||(ws.UnicodeNormalizationForm={}));var Nd;(function(r){r.UNEXPECTED_CONTINUE="unexpected continuation byte",r.BAD_PREFIX="bad codepoint prefix",r.OVERRUN="string overrun",r.MISSING_CONTINUE="missing continuation byte",r.OUT_OF_RANGE="out of UTF-8 range",r.UTF16_SURROGATE="UTF-16 surrogate",r.OVERLONG="overlong representation"})(Nd=ws.Utf8ErrorReason||(ws.Utf8ErrorReason={}));function NRt(r,e,t,n,a){return Lge.throwArgumentError("invalid codepoint at offset "+e+"; "+r,"bytes",t)}function qge(r,e,t,n,a){if(r===Nd.BAD_PREFIX||r===Nd.UNEXPECTED_CONTINUE){for(var i=0,s=e+1;s>6===2;s++)i++;return i}return r===Nd.OVERRUN?t.length-e-1:0}function BRt(r,e,t,n,a){return r===Nd.OVERLONG?(n.push(a),0):(n.push(65533),qge(r,e,t,n,a))}ws.Utf8ErrorFuncs=Object.freeze({error:NRt,ignore:qge,replace:BRt});function KK(r,e){e==null&&(e=ws.Utf8ErrorFuncs.error),r=(0,Oge.arrayify)(r);for(var t=[],n=0;n>7===0){t.push(a);continue}var i=null,s=null;if((a&224)===192)i=1,s=127;else if((a&240)===224)i=2,s=2047;else if((a&248)===240)i=3,s=65535;else{(a&192)===128?n+=e(Nd.UNEXPECTED_CONTINUE,n-1,r,t):n+=e(Nd.BAD_PREFIX,n-1,r,t);continue}if(n-1+i>=r.length){n+=e(Nd.OVERRUN,n-1,r,t);continue}for(var o=a&(1<<8-i-1)-1,c=0;c1114111){n+=e(Nd.OUT_OF_RANGE,n-1-i,r,t,o);continue}if(o>=55296&&o<=57343){n+=e(Nd.UTF16_SURROGATE,n-1-i,r,t,o);continue}if(o<=s){n+=e(Nd.OVERLONG,n-1-i,r,t,o);continue}t.push(o)}}return t}function Fge(r,e){e===void 0&&(e=L7.current),e!=L7.current&&(Lge.checkNormalize(),r=r.normalize(e));for(var t=[],n=0;n>6|192),t.push(a&63|128);else if((a&64512)==55296){n++;var i=r.charCodeAt(n);if(n>=r.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");var s=65536+((a&1023)<<10)+(i&1023);t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)}else t.push(a>>12|224),t.push(a>>6&63|128),t.push(a&63|128)}return(0,Oge.arrayify)(t)}ws.toUtf8Bytes=Fge;function zK(r){var e="0000"+r.toString(16);return"\\u"+e.substring(e.length-4)}function DRt(r,e){return'"'+KK(r,e).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?zK(t):(t-=65536,zK((t>>10&1023)+55296)+zK((t&1023)+56320))}).join("")+'"'}ws._toEscapedUtf8String=DRt;function Wge(r){return r.map(function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))}).join("")}ws._toUtf8String=Wge;function ORt(r,e){return Wge(KK(r,e))}ws.toUtf8String=ORt;function LRt(r,e){return e===void 0&&(e=L7.current),KK(Fge(r,e))}ws.toUtf8CodePoints=LRt});var Hge=x(T5=>{"use strict";d();p();Object.defineProperty(T5,"__esModule",{value:!0});T5.parseBytes32String=T5.formatBytes32String=void 0;var qRt=tb(),GK=wr(),Uge=q7();function FRt(r){var e=(0,Uge.toUtf8Bytes)(r);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,GK.hexlify)((0,GK.concat)([e,qRt.HashZero]).slice(0,32))}T5.formatBytes32String=FRt;function WRt(r){var e=(0,GK.arrayify)(r);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");for(var t=31;e[t-1]===0;)t--;return(0,Uge.toUtf8String)(e.slice(0,t))}T5.parseBytes32String=WRt});var Vge=x(xf=>{"use strict";d();p();Object.defineProperty(xf,"__esModule",{value:!0});xf.nameprep=xf._nameprepTableC=xf._nameprepTableB2=xf._nameprepTableA1=void 0;var DE=q7();function URt(r){if(r.length%4!==0)throw new Error("bad data");for(var e=[],t=0;t=t&&r<=t+a.h&&(r-t)%(a.d||1)===0){if(a.e&&a.e.indexOf(r-t)!==-1)continue;return a}}return null}var HRt=jge("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),jRt="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(r){return parseInt(r,16)}),zRt=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],KRt=VK("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),GRt=VK("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),VRt=VK("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",URt),$Rt=jge("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function YRt(r){return r.reduce(function(e,t){return t.forEach(function(n){e.push(n)}),e},[])}function zge(r){return!!$K(r,HRt)}xf._nameprepTableA1=zge;function Kge(r){var e=$K(r,zRt);if(e)return[r+e.s];var t=KRt[r];if(t)return t;var n=GRt[r];if(n)return[r+n[0]];var a=VRt[r];return a||null}xf._nameprepTableB2=Kge;function Gge(r){return!!$K(r,$Rt)}xf._nameprepTableC=Gge;function JRt(r){if(r.match(/^[a-z0-9-]*$/i)&&r.length<=59)return r.toLowerCase();var e=(0,DE.toUtf8CodePoints)(r);e=YRt(e.map(function(n){if(jRt.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];var a=Kge(n);return a||[n]})),e=(0,DE.toUtf8CodePoints)((0,DE._toUtf8String)(e),DE.UnicodeNormalizationForm.NFKC),e.forEach(function(n){if(Gge(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(function(n){if(zge(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var t=(0,DE._toUtf8String)(e);if(t.substring(0,1)==="-"||t.substring(2,4)==="--"||t.substring(t.length-1)==="-")throw new Error("invalid hyphen");return t}xf.nameprep=JRt});var Ws=x(rs=>{"use strict";d();p();Object.defineProperty(rs,"__esModule",{value:!0});rs.nameprep=rs.parseBytes32String=rs.formatBytes32String=rs.UnicodeNormalizationForm=rs.Utf8ErrorReason=rs.Utf8ErrorFuncs=rs.toUtf8String=rs.toUtf8CodePoints=rs.toUtf8Bytes=rs._toEscapedUtf8String=void 0;var $ge=Hge();Object.defineProperty(rs,"formatBytes32String",{enumerable:!0,get:function(){return $ge.formatBytes32String}});Object.defineProperty(rs,"parseBytes32String",{enumerable:!0,get:function(){return $ge.parseBytes32String}});var QRt=Vge();Object.defineProperty(rs,"nameprep",{enumerable:!0,get:function(){return QRt.nameprep}});var rb=q7();Object.defineProperty(rs,"_toEscapedUtf8String",{enumerable:!0,get:function(){return rb._toEscapedUtf8String}});Object.defineProperty(rs,"toUtf8Bytes",{enumerable:!0,get:function(){return rb.toUtf8Bytes}});Object.defineProperty(rs,"toUtf8CodePoints",{enumerable:!0,get:function(){return rb.toUtf8CodePoints}});Object.defineProperty(rs,"toUtf8String",{enumerable:!0,get:function(){return rb.toUtf8String}});Object.defineProperty(rs,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return rb.UnicodeNormalizationForm}});Object.defineProperty(rs,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return rb.Utf8ErrorFuncs}});Object.defineProperty(rs,"Utf8ErrorReason",{enumerable:!0,get:function(){return rb.Utf8ErrorReason}})});var Jge=x(E5=>{"use strict";d();p();var ZRt=E5&&E5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E5,"__esModule",{value:!0});E5.StringCoder=void 0;var Yge=Ws(),XRt=jK(),e9t=function(r){ZRt(e,r);function e(t){return r.call(this,"string",t)||this}return e.prototype.defaultValue=function(){return""},e.prototype.encode=function(t,n){return r.prototype.encode.call(this,t,(0,Yge.toUtf8Bytes)(n))},e.prototype.decode=function(t){return(0,Yge.toUtf8String)(r.prototype.decode.call(this,t))},e}(XRt.DynamicBytesCoder);E5.StringCoder=e9t});var Zge=x(C5=>{"use strict";d();p();var t9t=C5&&C5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C5,"__esModule",{value:!0});C5.TupleCoder=void 0;var r9t=Pd(),Qge=HK(),n9t=function(r){t9t(e,r);function e(t,n){var a=this,i=!1,s=[];t.forEach(function(c){c.dynamic&&(i=!0),s.push(c.type)});var o="tuple("+s.join(",")+")";return a=r.call(this,"tuple",o,n,i)||this,a.coders=t,a}return e.prototype.defaultValue=function(){var t=[];this.coders.forEach(function(a){t.push(a.defaultValue())});var n=this.coders.reduce(function(a,i){var s=i.localName;return s&&(a[s]||(a[s]=0),a[s]++),a},{});return this.coders.forEach(function(a,i){var s=a.localName;!s||n[s]!==1||(s==="length"&&(s="_length"),t[s]==null&&(t[s]=t[i]))}),Object.freeze(t)},e.prototype.encode=function(t,n){return(0,Qge.pack)(t,this.coders,n)},e.prototype.decode=function(t){return t.coerce(this.name,(0,Qge.unpack)(t,this.coders))},e}(r9t.Coder);C5.TupleCoder=n9t});var JK=x(I5=>{"use strict";d();p();Object.defineProperty(I5,"__esModule",{value:!0});I5.defaultAbiCoder=I5.AbiCoder=void 0;var a9t=wr(),i9t=Aa(),ebe=Zt(),s9t=d5(),F7=new ebe.Logger(s9t.version),Xge=Pd(),o9t=vge(),c9t=HK(),u9t=Tge(),l9t=jK(),d9t=Age(),p9t=Sge(),h9t=Bge(),f9t=Jge(),W7=Zge(),YK=k7(),m9t=new RegExp(/^bytes([0-9]*)$/),y9t=new RegExp(/^(u?int)([0-9]*)$/),tbe=function(){function r(e){(0,i9t.defineReadOnly)(this,"coerceFunc",e||null)}return r.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new o9t.AddressCoder(e.name);case"bool":return new u9t.BooleanCoder(e.name);case"string":return new f9t.StringCoder(e.name);case"bytes":return new l9t.BytesCoder(e.name);case"array":return new c9t.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new W7.TupleCoder((e.components||[]).map(function(i){return t._getCoder(i)}),e.name);case"":return new p9t.NullCoder(e.name)}var n=e.type.match(y9t);if(n){var a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&F7.throwArgumentError("invalid "+n[1]+" bit length","param",e),new h9t.NumberCoder(a/8,n[1]==="int",e.name)}if(n=e.type.match(m9t),n){var a=parseInt(n[1]);return(a===0||a>32)&&F7.throwArgumentError("invalid bytes length","param",e),new d9t.FixedBytesCoder(a,e.name)}return F7.throwArgumentError("invalid type","type",e.type)},r.prototype._getWordSize=function(){return 32},r.prototype._getReader=function(e,t){return new Xge.Reader(e,this._getWordSize(),this.coerceFunc,t)},r.prototype._getWriter=function(){return new Xge.Writer(this._getWordSize())},r.prototype.getDefaultValue=function(e){var t=this,n=e.map(function(i){return t._getCoder(YK.ParamType.from(i))}),a=new W7.TupleCoder(n,"_");return a.defaultValue()},r.prototype.encode=function(e,t){var n=this;e.length!==t.length&&F7.throwError("types/values length mismatch",ebe.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var a=e.map(function(o){return n._getCoder(YK.ParamType.from(o))}),i=new W7.TupleCoder(a,"_"),s=this._getWriter();return i.encode(s,t),s.data},r.prototype.decode=function(e,t,n){var a=this,i=e.map(function(o){return a._getCoder(YK.ParamType.from(o))}),s=new W7.TupleCoder(i,"_");return s.decode(this._getReader((0,a9t.arrayify)(t),n))},r}();I5.AbiCoder=tbe;I5.defaultAbiCoder=new tbe});var QK=x(U7=>{"use strict";d();p();Object.defineProperty(U7,"__esModule",{value:!0});U7.id=void 0;var g9t=Kl(),b9t=Ws();function v9t(r){return(0,g9t.keccak256)((0,b9t.toUtf8Bytes)(r))}U7.id=v9t});var ZK=x(H7=>{"use strict";d();p();Object.defineProperty(H7,"__esModule",{value:!0});H7.version=void 0;H7.version="hash/5.7.0"});var nbe=x(k5=>{"use strict";d();p();Object.defineProperty(k5,"__esModule",{value:!0});k5.encode=k5.decode=void 0;var rbe=wr();function w9t(r){r=atob(r);for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(A5,"__esModule",{value:!0});A5.encode=A5.decode=void 0;var abe=nbe();Object.defineProperty(A5,"decode",{enumerable:!0,get:function(){return abe.decode}});Object.defineProperty(A5,"encode",{enumerable:!0,get:function(){return abe.encode}})});var eG=x(Po=>{"use strict";d();p();Object.defineProperty(Po,"__esModule",{value:!0});Po.read_emoji_trie=Po.read_zero_terminated_array=Po.read_mapped_map=Po.read_member_array=Po.signed=Po.read_compressed_payload=Po.read_payload=Po.decode_arithmetic=void 0;function sbe(r,e){e==null&&(e=1);var t=[],n=t.forEach,a=function(i,s){n.call(i,function(o){s>0&&Array.isArray(o)?a(o,s-1):t.push(o)})};return a(r,e),t}function x9t(r){for(var e={},t=0;t>--u&1}for(var f=31,m=Math.pow(2,f),y=m>>>1,E=y>>1,I=m-1,S=0,s=0;s1;){var G=K+H>>>1;V>>1|h(),J=J<<1^y,q=(q^y)<<1|y|1;F=J,W=1+q-J}var T=n-4;return L.map(function(P){switch(P-T){case 3:return T+65792+(r[c++]<<16|r[c++]<<8|r[c++]);case 2:return T+256+(r[c++]<<8|r[c++]);case 1:return T+r[c++];default:return P-1}})}Po.decode_arithmetic=obe;function cbe(r){var e=0;return function(){return r[e++]}}Po.read_payload=cbe;function T9t(r){return cbe(obe(r))}Po.read_compressed_payload=T9t;function ube(r){return r&1?~r>>1:r>>1}Po.signed=ube;function E9t(r,e){for(var t=Array(r),n=0;n>=1;var c=i==1,u=i==2;return{branches:n,valid:s,fe0f:o,save:c,check:u}}}Po.read_emoji_trie=S9t});var pbe=x(j7=>{"use strict";d();p();Object.defineProperty(j7,"__esModule",{value:!0});j7.getData=void 0;var P9t=OE(),R9t=eG();function M9t(){return(0,R9t.read_compressed_payload)((0,P9t.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}j7.getData=M9t});var ybe=x(S5=>{"use strict";d();p();Object.defineProperty(S5,"__esModule",{value:!0});S5.ens_normalize=S5.ens_normalize_post_check=void 0;var N9t=Ws(),B9t=pbe(),z7=(0,B9t.getData)(),K7=eG(),D9t=new Set((0,K7.read_member_array)(z7)),O9t=new Set((0,K7.read_member_array)(z7)),L9t=(0,K7.read_mapped_map)(z7),q9t=(0,K7.read_emoji_trie)(z7),hbe=45,fbe=95;function mbe(r){return(0,N9t.toUtf8CodePoints)(r)}function F9t(r){return r.filter(function(e){return e!=65039})}function tG(r){for(var e=0,t=r.split(".");e=0;i--)if(a[i]!==fbe)throw new Error("underscore only allowed at start");if(a.length>=4&&a.every(function(s){return s<128})&&a[2]===hbe&&a[3]===hbe)throw new Error("invalid label extension")}catch(s){throw new Error('Invalid label "'+n+'": '+s.message)}}return r}S5.ens_normalize_post_check=tG;function W9t(r){return tG(U9t(r,F9t))}S5.ens_normalize=W9t;function U9t(r,e){for(var t=mbe(r).reverse(),n=[];t.length;){var a=j9t(t);if(a){n.push.apply(n,e(a));continue}var i=t.pop();if(D9t.has(i)){n.push(i);continue}if(!O9t.has(i)){var s=L9t[i];if(s){n.push.apply(n,s);continue}throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase())}}return tG(H9t(String.fromCodePoint.apply(String,n)))}function H9t(r){return r.normalize("NFC")}function j9t(r,e){var t,n=q9t,a,i,s=[],o=r.length;e&&(e.length=0);for(var c=function(){var l=r[--o];if(n=(t=n.branches.find(function(h){return h.set.has(l)}))===null||t===void 0?void 0:t.node,!n)return"break";if(n.save)i=l;else if(n.check&&l===i)return"break";s.push(l),n.fe0f&&(s.push(65039),o>0&&r[o-1]==65039&&o--),n.valid&&(a=s.slice(),n.valid==2&&a.splice(1,1),e&&e.push.apply(e,r.slice(o).reverse()),r.length=o)};o;){var u=c();if(u==="break")break}return a}});var rG=x(Tf=>{"use strict";d();p();Object.defineProperty(Tf,"__esModule",{value:!0});Tf.dnsEncode=Tf.namehash=Tf.isValidName=Tf.ensNormalize=void 0;var G7=wr(),vbe=Ws(),gbe=Kl(),z9t=Zt(),K9t=ZK(),G9t=new z9t.Logger(K9t.version),V9t=ybe(),wbe=new Uint8Array(32);wbe.fill(0);function bbe(r){if(r.length===0)throw new Error("invalid ENS name; empty component");return r}function V7(r){var e=(0,vbe.toUtf8Bytes)((0,V9t.ens_normalize)(r)),t=[];if(r.length===0)return t;for(var n=0,a=0;a=e.length)throw new Error("invalid ENS name; empty component");return t.push(bbe(e.slice(n))),t}function $9t(r){return V7(r).map(function(e){return(0,vbe.toUtf8String)(e)}).join(".")}Tf.ensNormalize=$9t;function Y9t(r){try{return V7(r).length!==0}catch{}return!1}Tf.isValidName=Y9t;function J9t(r){typeof r!="string"&&G9t.throwArgumentError("invalid ENS name; not a string","name",r);for(var e=wbe,t=V7(r);t.length;)e=(0,gbe.keccak256)((0,G7.concat)([e,(0,gbe.keccak256)(t.pop())]));return(0,G7.hexlify)(e)}Tf.namehash=J9t;function Q9t(r){return(0,G7.hexlify)((0,G7.concat)(V7(r).map(function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t})))+"00"}Tf.dnsEncode=Q9t});var _be=x(nb=>{"use strict";d();p();Object.defineProperty(nb,"__esModule",{value:!0});nb.hashMessage=nb.messagePrefix=void 0;var Z9t=wr(),X9t=Kl(),nG=Ws();nb.messagePrefix=`Ethereum Signed Message: +`;function eMt(r){return typeof r=="string"&&(r=(0,nG.toUtf8Bytes)(r)),(0,X9t.keccak256)((0,Z9t.concat)([(0,nG.toUtf8Bytes)(nb.messagePrefix),(0,nG.toUtf8Bytes)(String(r.length)),r]))}nb.hashMessage=eMt});var Pbe=x(ky=>{"use strict";d();p();var tMt=ky&&ky.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},rMt=ky&&ky.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]256||e[2]&&e[2]!==String(n))&&Li.throwArgumentError("invalid numeric width","type",r);var a=sMt.mask(t?n-1:n),i=t?a.add(Sbe).mul(iMt):Abe;return function(o){var c=ib.BigNumber.from(o);return(c.lt(i)||c.gt(a))&&Li.throwArgumentError("value out-of-bounds for "+r,"value",o),(0,uc.hexZeroPad)(c.toTwos(256).toHexString(),32)}}}{var e=r.match(/^bytes(\d+)$/);if(e){var s=parseInt(e[1]);return(s===0||s>32||e[1]!==String(s))&&Li.throwArgumentError("invalid bytes width","type",r),function(c){var u=(0,uc.arrayify)(c);return u.length!==s&&Li.throwArgumentError("invalid length for "+r,"value",c),oMt(c)}}}switch(r){case"address":return function(o){return(0,uc.hexZeroPad)((0,Cbe.getAddress)(o),32)};case"bool":return function(o){return o?cMt:uMt};case"bytes":return function(o){return(0,P5.keccak256)(o)};case"string":return function(o){return(0,Ibe.id)(o)}}return null}function Ebe(r,e){return r+"("+e.map(function(t){var n=t.name,a=t.type;return a+" "+n}).join(",")+")"}var dMt=function(){function r(e){(0,ab.defineReadOnly)(this,"types",Object.freeze((0,ab.deepCopy)(e))),(0,ab.defineReadOnly)(this,"_encoderCache",{}),(0,ab.defineReadOnly)(this,"_types",{});var t={},n={},a={};Object.keys(e).forEach(function(h){t[h]={},n[h]=[],a[h]={}});var i=function(h){var f={};e[h].forEach(function(m){f[m.name]&&Li.throwArgumentError("duplicate variable name "+JSON.stringify(m.name)+" in "+JSON.stringify(h),"types",e),f[m.name]=!0;var y=m.type.match(/^([^\x5b]*)(\x5b|$)/)[1];y===h&&Li.throwArgumentError("circular type reference to "+JSON.stringify(y),"types",e);var E=iG(y);E||(n[y]||Li.throwArgumentError("unknown type "+JSON.stringify(y),"types",e),n[y].push(h),t[h][y]=!0)})};for(var s in e)i(s);var o=Object.keys(n).filter(function(h){return n[h].length===0});o.length===0?Li.throwArgumentError("missing primary type","types",e):o.length>1&&Li.throwArgumentError("ambiguous primary types or unused types: "+o.map(function(h){return JSON.stringify(h)}).join(", "),"types",e),(0,ab.defineReadOnly)(this,"primaryType",o[0]);function c(h,f){f[h]&&Li.throwArgumentError("circular type reference to "+JSON.stringify(h),"types",e),f[h]=!0,Object.keys(t[h]).forEach(function(m){!n[m]||(c(m,f),Object.keys(f).forEach(function(y){a[y][m]=!0}))}),delete f[h]}c(this.primaryType,{});for(var u in a){var l=Object.keys(a[u]);l.sort(),this._types[u]=Ebe(u,e[u])+l.map(function(h){return Ebe(h,e[h])}).join("")}}return r.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},r.prototype._getEncoder=function(e){var t=this;{var n=iG(e);if(n)return n}var a=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var i=a[1],s=this.getEncoder(i),o=parseInt(a[3]);return function(l){o>=0&&l.length!==o&&Li.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",l);var h=l.map(s);return t._types[i]&&(h=h.map(P5.keccak256)),(0,P5.keccak256)((0,uc.hexConcat)(h))}}var c=this.types[e];if(c){var u=(0,Ibe.id)(this._types[e]);return function(l){var h=c.map(function(f){var m=f.name,y=f.type,E=t.getEncoder(y)(l[m]);return t._types[y]?(0,P5.keccak256)(E):E});return h.unshift(u),(0,uc.hexConcat)(h)}}return Li.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.encodeType=function(e){var t=this._types[e];return t||Li.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},r.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},r.prototype.hashStruct=function(e,t){return(0,P5.keccak256)(this.encodeData(e,t))},r.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},r.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},r.prototype._visit=function(e,t,n){var a=this;{var i=iG(e);if(i)return n(e,t)}var s=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(s){var o=s[1],c=parseInt(s[3]);return c>=0&&t.length!==c&&Li.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map(function(l){return a._visit(o,l,n)})}var u=this.types[e];return u?u.reduce(function(l,h){var f=h.name,m=h.type;return l[f]=a._visit(m,t[f],n),l},{}):Li.throwArgumentError("unknown type: "+e,"type",e)},r.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},r.from=function(e){return new r(e)},r.getPrimaryType=function(e){return r.from(e).primaryType},r.hashStruct=function(e,t,n){return r.from(t).hashStruct(e,n)},r.hashDomain=function(e){var t=[];for(var n in e){var a=xbe[n];a||Li.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",e),t.push({name:n,type:a})}return t.sort(function(i,s){return aG.indexOf(i.name)-aG.indexOf(s.name)}),r.hashStruct("EIP712Domain",{EIP712Domain:t},e)},r.encode=function(e,t,n){return(0,uc.hexConcat)(["0x1901",r.hashDomain(e),r.from(t).hash(n)])},r.hash=function(e,t,n){return(0,P5.keccak256)(r.encode(e,t,n))},r.resolveNames=function(e,t,n,a){return tMt(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f;return rMt(this,function(m){switch(m.label){case 0:e=(0,ab.shallowCopy)(e),i={},e.verifyingContract&&!(0,uc.isHexString)(e.verifyingContract,20)&&(i[e.verifyingContract]="0x"),s=r.from(t),s.visit(n,function(y,E){return y==="address"&&!(0,uc.isHexString)(E,20)&&(i[E]="0x"),E}),o=[];for(c in i)o.push(c);u=0,m.label=1;case 1:return u{"use strict";d();p();Object.defineProperty(Ro,"__esModule",{value:!0});Ro._TypedDataEncoder=Ro.hashMessage=Ro.messagePrefix=Ro.ensNormalize=Ro.isValidName=Ro.namehash=Ro.dnsEncode=Ro.id=void 0;var pMt=QK();Object.defineProperty(Ro,"id",{enumerable:!0,get:function(){return pMt.id}});var sG=rG();Object.defineProperty(Ro,"dnsEncode",{enumerable:!0,get:function(){return sG.dnsEncode}});Object.defineProperty(Ro,"isValidName",{enumerable:!0,get:function(){return sG.isValidName}});Object.defineProperty(Ro,"namehash",{enumerable:!0,get:function(){return sG.namehash}});var Rbe=_be();Object.defineProperty(Ro,"hashMessage",{enumerable:!0,get:function(){return Rbe.hashMessage}});Object.defineProperty(Ro,"messagePrefix",{enumerable:!0,get:function(){return Rbe.messagePrefix}});var hMt=rG();Object.defineProperty(Ro,"ensNormalize",{enumerable:!0,get:function(){return hMt.ensNormalize}});var fMt=Pbe();Object.defineProperty(Ro,"_TypedDataEncoder",{enumerable:!0,get:function(){return fMt.TypedDataEncoder}})});var qbe=x(Kc=>{"use strict";d();p();var J7=Kc&&Kc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Interface=Kc.Indexed=Kc.ErrorDescription=Kc.TransactionDescription=Kc.LogDescription=Kc.checkResultErrors=void 0;var mMt=Md(),Mbe=qs(),vi=wr(),$7=sb(),Nbe=Kl(),lc=Aa(),yMt=JK(),gMt=Pd();Object.defineProperty(Kc,"checkResultErrors",{enumerable:!0,get:function(){return gMt.checkResultErrors}});var Qm=k7(),Y7=Zt(),bMt=d5(),qi=new Y7.Logger(bMt.version),Dbe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(lc.Description);Kc.LogDescription=Dbe;var Obe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(lc.Description);Kc.TransactionDescription=Obe;var Lbe=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(lc.Description);Kc.ErrorDescription=Lbe;var oG=function(r){J7(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.isIndexed=function(t){return!!(t&&t._isIndexed)},e}(lc.Description);Kc.Indexed=oG;var vMt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Bbe(r,e){var t=new Error("deferred error during ABI decoding triggered accessing "+r);return t.error=e,t}var wMt=function(){function r(e){var t=this.constructor,n=this,a=[];typeof e=="string"?a=JSON.parse(e):a=e,(0,lc.defineReadOnly)(this,"fragments",a.map(function(i){return Qm.Fragment.from(i)}).filter(function(i){return i!=null})),(0,lc.defineReadOnly)(this,"_abiCoder",(0,lc.getStatic)(t,"getAbiCoder")()),(0,lc.defineReadOnly)(this,"functions",{}),(0,lc.defineReadOnly)(this,"errors",{}),(0,lc.defineReadOnly)(this,"events",{}),(0,lc.defineReadOnly)(this,"structs",{}),this.fragments.forEach(function(i){var s=null;switch(i.type){case"constructor":if(n.deploy){qi.warn("duplicate definition - constructor");return}(0,lc.defineReadOnly)(n,"deploy",i);return;case"function":s=n.functions;break;case"event":s=n.events;break;case"error":s=n.errors;break;default:return}var o=i.format();if(s[o]){qi.warn("duplicate definition - "+o);return}s[o]=i}),this.deploy||(0,lc.defineReadOnly)(this,"deploy",Qm.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,lc.defineReadOnly)(this,"_isInterface",!0)}return r.prototype.format=function(e){e||(e=Qm.FormatTypes.full),e===Qm.FormatTypes.sighash&&qi.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map(function(n){return n.format(e)});return e===Qm.FormatTypes.json?JSON.stringify(t.map(function(n){return JSON.parse(n)})):t},r.getAbiCoder=function(){return yMt.defaultAbiCoder},r.getAddress=function(e){return(0,mMt.getAddress)(e)},r.getSighash=function(e){return(0,vi.hexDataSlice)((0,$7.id)(e.format()),0,4)},r.getEventTopic=function(e){return(0,$7.id)(e.format())},r.prototype.getFunction=function(e){if((0,vi.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];qi.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){var n=e.trim(),a=Object.keys(this.functions).filter(function(s){return s.split("(")[0]===n});return a.length===0?qi.throwArgumentError("no matching function","name",n):a.length>1&&qi.throwArgumentError("multiple matching functions","name",n),this.functions[a[0]]}var i=this.functions[Qm.FunctionFragment.fromString(e).format()];return i||qi.throwArgumentError("no matching function","signature",e),i},r.prototype.getEvent=function(e){if((0,vi.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];qi.throwArgumentError("no matching event","topichash",t)}if(e.indexOf("(")===-1){var a=e.trim(),i=Object.keys(this.events).filter(function(o){return o.split("(")[0]===a});return i.length===0?qi.throwArgumentError("no matching event","name",a):i.length>1&&qi.throwArgumentError("multiple matching events","name",a),this.events[i[0]]}var s=this.events[Qm.EventFragment.fromString(e).format()];return s||qi.throwArgumentError("no matching event","signature",e),s},r.prototype.getError=function(e){if((0,vi.isHexString)(e)){var t=(0,lc.getStatic)(this.constructor,"getSighash");for(var n in this.errors){var a=this.errors[n];if(e===t(a))return this.errors[n]}qi.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){var i=e.trim(),s=Object.keys(this.errors).filter(function(c){return c.split("(")[0]===i});return s.length===0?qi.throwArgumentError("no matching error","name",i):s.length>1&&qi.throwArgumentError("multiple matching errors","name",i),this.errors[s[0]]}var o=this.errors[Qm.FunctionFragment.fromString(e).format()];return o||qi.throwArgumentError("no matching error","signature",e),o},r.prototype.getSighash=function(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch{throw t}}return(0,lc.getStatic)(this.constructor,"getSighash")(e)},r.prototype.getEventTopic=function(e){return typeof e=="string"&&(e=this.getEvent(e)),(0,lc.getStatic)(this.constructor,"getEventTopic")(e)},r.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},r.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},r.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},r.prototype.decodeErrorResult=function(e,t){typeof e=="string"&&(e=this.getError(e));var n=(0,vi.arrayify)(t);return(0,vi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&qi.throwArgumentError("data signature does not match error "+e.name+".","data",(0,vi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeErrorResult=function(e,t){return typeof e=="string"&&(e=this.getError(e)),(0,vi.hexlify)((0,vi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionData=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,vi.arrayify)(t);return(0,vi.hexlify)(n.slice(0,4))!==this.getSighash(e)&&qi.throwArgumentError("data signature does not match function "+e.name+".","data",(0,vi.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))},r.prototype.encodeFunctionData=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,vi.hexlify)((0,vi.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},r.prototype.decodeFunctionResult=function(e,t){typeof e=="string"&&(e=this.getFunction(e));var n=(0,vi.arrayify)(t),a=null,i="",s=null,o=null,c=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{var u=(0,vi.hexlify)(n.slice(0,4)),l=vMt[u];if(l)s=this._abiCoder.decode(l.inputs,n.slice(4)),o=l.name,c=l.signature,l.reason&&(a=s[0]),o==="Error"?i="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(s[0]):o==="Panic"&&(i="; VM Exception while processing transaction: reverted with panic code "+s[0]);else try{var h=this.getError(u);s=this._abiCoder.decode(h.inputs,n.slice(4)),o=h.name,c=h.format()}catch{}break}}return qi.throwError("call revert exception"+i,Y7.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,vi.hexlify)(t),errorArgs:s,errorName:o,errorSignature:c,reason:a})},r.prototype.encodeFunctionResult=function(e,t){return typeof e=="string"&&(e=this.getFunction(e)),(0,vi.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},r.prototype.encodeFilterTopics=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e)),t.length>e.inputs.length&&qi.throwError("too many arguments for "+e.format(),Y7.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var a=[];e.anonymous||a.push(this.getEventTopic(e));var i=function(s,o){return s.type==="string"?(0,$7.id)(o):s.type==="bytes"?(0,Nbe.keccak256)((0,vi.hexlify)(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=Mbe.BigNumber.from(o).toHexString()),s.type==="address"&&n._abiCoder.encode(["address"],[o]),(0,vi.hexZeroPad)((0,vi.hexlify)(o),32))};for(t.forEach(function(s,o){var c=e.inputs[o];if(!c.indexed){s!=null&&qi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,s);return}s==null?a.push(null):c.baseType==="array"||c.baseType==="tuple"?qi.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,s):Array.isArray(s)?a.push(s.map(function(u){return i(c,u)})):a.push(i(c,s))});a.length&&a[a.length-1]===null;)a.pop();return a},r.prototype.encodeEventLog=function(e,t){var n=this;typeof e=="string"&&(e=this.getEvent(e));var a=[],i=[],s=[];return e.anonymous||a.push(this.getEventTopic(e)),t.length!==e.inputs.length&&qi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(function(o,c){var u=t[c];if(o.indexed)if(o.type==="string")a.push((0,$7.id)(u));else if(o.type==="bytes")a.push((0,Nbe.keccak256)(u));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");a.push(n._abiCoder.encode([o.type],[u]))}else i.push(o),s.push(u)}),{data:this._abiCoder.encode(i,s),topics:a}},r.prototype.decodeEventLog=function(e,t,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){var a=this.getEventTopic(e);(!(0,vi.isHexString)(n[0],32)||n[0].toLowerCase()!==a)&&qi.throwError("fragment/topic mismatch",Y7.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:a,value:n[0]}),n=n.slice(1)}var i=[],s=[],o=[];e.inputs.forEach(function(E,I){E.indexed?E.type==="string"||E.type==="bytes"||E.baseType==="tuple"||E.baseType==="array"?(i.push(Qm.ParamType.fromObject({type:"bytes32",name:E.name})),o.push(!0)):(i.push(E),o.push(!1)):(s.push(E),o.push(!1))});var c=n!=null?this._abiCoder.decode(i,(0,vi.concat)(n)):null,u=this._abiCoder.decode(s,t,!0),l=[],h=0,f=0;e.inputs.forEach(function(E,I){if(E.indexed)if(c==null)l[I]=new oG({_isIndexed:!0,hash:null});else if(o[I])l[I]=new oG({_isIndexed:!0,hash:c[f++]});else try{l[I]=c[f++]}catch(L){l[I]=L}else try{l[I]=u[h++]}catch(L){l[I]=L}if(E.name&&l[E.name]==null){var S=l[I];S instanceof Error?Object.defineProperty(l,E.name,{enumerable:!0,get:function(){throw Bbe("property "+JSON.stringify(E.name),S)}}):l[E.name]=S}});for(var m=function(E){var I=l[E];I instanceof Error&&Object.defineProperty(l,E,{enumerable:!0,get:function(){throw Bbe("index "+E,I)}})},y=0;y{"use strict";d();p();Object.defineProperty(Sa,"__esModule",{value:!0});Sa.TransactionDescription=Sa.LogDescription=Sa.checkResultErrors=Sa.Indexed=Sa.Interface=Sa.defaultAbiCoder=Sa.AbiCoder=Sa.FormatTypes=Sa.ParamType=Sa.FunctionFragment=Sa.Fragment=Sa.EventFragment=Sa.ErrorFragment=Sa.ConstructorFragment=void 0;var ob=k7();Object.defineProperty(Sa,"ConstructorFragment",{enumerable:!0,get:function(){return ob.ConstructorFragment}});Object.defineProperty(Sa,"ErrorFragment",{enumerable:!0,get:function(){return ob.ErrorFragment}});Object.defineProperty(Sa,"EventFragment",{enumerable:!0,get:function(){return ob.EventFragment}});Object.defineProperty(Sa,"FormatTypes",{enumerable:!0,get:function(){return ob.FormatTypes}});Object.defineProperty(Sa,"Fragment",{enumerable:!0,get:function(){return ob.Fragment}});Object.defineProperty(Sa,"FunctionFragment",{enumerable:!0,get:function(){return ob.FunctionFragment}});Object.defineProperty(Sa,"ParamType",{enumerable:!0,get:function(){return ob.ParamType}});var Fbe=JK();Object.defineProperty(Sa,"AbiCoder",{enumerable:!0,get:function(){return Fbe.AbiCoder}});Object.defineProperty(Sa,"defaultAbiCoder",{enumerable:!0,get:function(){return Fbe.defaultAbiCoder}});var LE=qbe();Object.defineProperty(Sa,"checkResultErrors",{enumerable:!0,get:function(){return LE.checkResultErrors}});Object.defineProperty(Sa,"Indexed",{enumerable:!0,get:function(){return LE.Indexed}});Object.defineProperty(Sa,"Interface",{enumerable:!0,get:function(){return LE.Interface}});Object.defineProperty(Sa,"LogDescription",{enumerable:!0,get:function(){return LE.LogDescription}});Object.defineProperty(Sa,"TransactionDescription",{enumerable:!0,get:function(){return LE.TransactionDescription}})});var Wbe=x(Q7=>{"use strict";d();p();Object.defineProperty(Q7,"__esModule",{value:!0});Q7.version=void 0;Q7.version="abstract-provider/5.7.0"});var R5=x(Mo=>{"use strict";d();p();var X7=Mo&&Mo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),_Mt=Mo&&Mo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},xMt=Mo&&Mo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(tR,"__esModule",{value:!0});tR.version=void 0;tR.version="abstract-signer/5.7.0"});var FE=x(Dd=>{"use strict";d();p();var PMt=Dd&&Dd.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),th=Dd&&Dd.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},rh=Dd&&Dd.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0)throw c;return Bd.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Zm.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:c,tx:t})})),t.chainId==null?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(c){return c[1]!==0&&c[0]!==c[1]&&Bd.throwArgumentError("chainId address mismatch","transaction",e),c[0]}),[4,(0,Ay.resolveProperties)(t)];case 6:return[2,o.sent()]}})})},r.prototype._checkProvider=function(e){this.provider||Bd.throwError("missing provider",Zm.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},r.isSigner=function(e){return!!(e&&e._isSigner)},r}();Dd.Signer=Hbe;var BMt=function(r){PMt(e,r);function e(t,n){var a=r.call(this)||this;return(0,Ay.defineReadOnly)(a,"address",t),(0,Ay.defineReadOnly)(a,"provider",n||null),a}return e.prototype.getAddress=function(){return Promise.resolve(this.address)},e.prototype._fail=function(t,n){return Promise.resolve().then(function(){Bd.throwError(t,Zm.Logger.errors.UNSUPPORTED_OPERATION,{operation:n})})},e.prototype.signMessage=function(t){return this._fail("VoidSigner cannot sign messages","signMessage")},e.prototype.signTransaction=function(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")},e.prototype._signTypedData=function(t,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")},e.prototype.connect=function(t){return new e(this.address,t)},e}(Hbe);Dd.VoidSigner=BMt});var jbe=x((Gxn,DMt)=>{DMt.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}});var co=x((zbe,lG)=>{d();p();(function(r,e){"use strict";function t(q,T){if(!q)throw new Error(T||"Assertion failed")}function n(q,T){q.super_=T;var P=function(){};P.prototype=T.prototype,q.prototype=new P,q.prototype.constructor=q}function a(q,T,P){if(a.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((T==="le"||T==="be")&&(P=T,T=10),this._init(q||0,T||10,P||"be"))}typeof r=="object"?r.exports=a:e.BN=a,a.BN=a,a.wordSize=26;var i;try{typeof window<"u"&&typeof window.Buffer<"u"?i=window.Buffer:i=cc().Buffer}catch{}a.isBN=function(T){return T instanceof a?!0:T!==null&&typeof T=="object"&&T.constructor.wordSize===a.wordSize&&Array.isArray(T.words)},a.max=function(T,P){return T.cmp(P)>0?T:P},a.min=function(T,P){return T.cmp(P)<0?T:P},a.prototype._init=function(T,P,A){if(typeof T=="number")return this._initNumber(T,P,A);if(typeof T=="object")return this._initArray(T,P,A);P==="hex"&&(P=16),t(P===(P|0)&&P>=2&&P<=36),T=T.toString().replace(/\s+/g,"");var v=0;T[0]==="-"&&(v++,this.negative=1),v=0;v-=3)O=T[v]|T[v-1]<<8|T[v-2]<<16,this.words[k]|=O<>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);else if(A==="le")for(v=0,k=0;v>>26-D&67108863,D+=24,D>=26&&(D-=26,k++);return this.strip()};function s(q,T){var P=q.charCodeAt(T);return P>=65&&P<=70?P-55:P>=97&&P<=102?P-87:P-48&15}function o(q,T,P){var A=s(q,P);return P-1>=T&&(A|=s(q,P-1)<<4),A}a.prototype._parseHex=function(T,P,A){this.length=Math.ceil((T.length-P)/6),this.words=new Array(this.length);for(var v=0;v=P;v-=2)D=o(T,P,v)<=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8;else{var B=T.length-P;for(v=B%2===0?P+1:P;v=18?(k-=18,O+=1,this.words[O]|=D>>>26):k+=8}this.strip()};function c(q,T,P,A){for(var v=0,k=Math.min(q.length,P),O=T;O=49?v+=D-49+10:D>=17?v+=D-17+10:v+=D}return v}a.prototype._parseBase=function(T,P,A){this.words=[0],this.length=1;for(var v=0,k=1;k<=67108863;k*=P)v++;v--,k=k/P|0;for(var O=T.length-A,D=O%v,B=Math.min(O,O-D)+A,_=0,N=A;N1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},a.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var u=["","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"],l=[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],h=[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];a.prototype.toString=function(T,P){T=T||10,P=P|0||1;var A;if(T===16||T==="hex"){A="";for(var v=0,k=0,O=0;O>>24-v&16777215,k!==0||O!==this.length-1?A=u[6-B.length]+B+A:A=B+A,v+=2,v>=26&&(v-=26,O--)}for(k!==0&&(A=k.toString(16)+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}if(T===(T|0)&&T>=2&&T<=36){var _=l[T],N=h[T];A="";var U=this.clone();for(U.negative=0;!U.isZero();){var C=U.modn(N).toString(T);U=U.idivn(N),U.isZero()?A=C+A:A=u[_-C.length]+C+A}for(this.isZero()&&(A="0"+A);A.length%P!==0;)A="0"+A;return this.negative!==0&&(A="-"+A),A}t(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var T=this.words[0];return this.length===2?T+=this.words[1]*67108864:this.length===3&&this.words[2]===1?T+=4503599627370496+this.words[1]*67108864:this.length>2&&t(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-T:T},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(T,P){return t(typeof i<"u"),this.toArrayLike(i,T,P)},a.prototype.toArray=function(T,P){return this.toArrayLike(Array,T,P)},a.prototype.toArrayLike=function(T,P,A){var v=this.byteLength(),k=A||Math.max(1,v);t(v<=k,"byte array longer than desired length"),t(k>0,"Requested array length <= 0"),this.strip();var O=P==="le",D=new T(k),B,_,N=this.clone();if(O){for(_=0;!N.isZero();_++)B=N.andln(255),N.iushrn(8),D[_]=B;for(;_=4096&&(A+=13,P>>>=13),P>=64&&(A+=7,P>>>=7),P>=8&&(A+=4,P>>>=4),P>=2&&(A+=2,P>>>=2),A+P},a.prototype._zeroBits=function(T){if(T===0)return 26;var P=T,A=0;return(P&8191)===0&&(A+=13,P>>>=13),(P&127)===0&&(A+=7,P>>>=7),(P&15)===0&&(A+=4,P>>>=4),(P&3)===0&&(A+=2,P>>>=2),(P&1)===0&&A++,A},a.prototype.bitLength=function(){var T=this.words[this.length-1],P=this._countBits(T);return(this.length-1)*26+P};function f(q){for(var T=new Array(q.bitLength()),P=0;P>>v}return T}a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var T=0,P=0;PT.length?this.clone().ior(T):T.clone().ior(this)},a.prototype.uor=function(T){return this.length>T.length?this.clone().iuor(T):T.clone().iuor(this)},a.prototype.iuand=function(T){var P;this.length>T.length?P=T:P=this;for(var A=0;AT.length?this.clone().iand(T):T.clone().iand(this)},a.prototype.uand=function(T){return this.length>T.length?this.clone().iuand(T):T.clone().iuand(this)},a.prototype.iuxor=function(T){var P,A;this.length>T.length?(P=this,A=T):(P=T,A=this);for(var v=0;vT.length?this.clone().ixor(T):T.clone().ixor(this)},a.prototype.uxor=function(T){return this.length>T.length?this.clone().iuxor(T):T.clone().iuxor(this)},a.prototype.inotn=function(T){t(typeof T=="number"&&T>=0);var P=Math.ceil(T/26)|0,A=T%26;this._expand(P),A>0&&P--;for(var v=0;v0&&(this.words[v]=~this.words[v]&67108863>>26-A),this.strip()},a.prototype.notn=function(T){return this.clone().inotn(T)},a.prototype.setn=function(T,P){t(typeof T=="number"&&T>=0);var A=T/26|0,v=T%26;return this._expand(A+1),P?this.words[A]=this.words[A]|1<T.length?(A=this,v=T):(A=T,v=this);for(var k=0,O=0;O>>26;for(;k!==0&&O>>26;if(this.length=A.length,k!==0)this.words[this.length]=k,this.length++;else if(A!==this)for(;OT.length?this.clone().iadd(T):T.clone().iadd(this)},a.prototype.isub=function(T){if(T.negative!==0){T.negative=0;var P=this.iadd(T);return T.negative=1,P._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(T),this.negative=1,this._normSign();var A=this.cmp(T);if(A===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,k;A>0?(v=this,k=T):(v=T,k=this);for(var O=0,D=0;D>26,this.words[D]=P&67108863;for(;O!==0&&D>26,this.words[D]=P&67108863;if(O===0&&D>>26,U=B&67108863,C=Math.min(_,T.length-1),z=Math.max(0,_-q.length+1);z<=C;z++){var ee=_-z|0;v=q.words[ee]|0,k=T.words[z]|0,O=v*k+U,N+=O/67108864|0,U=O&67108863}P.words[_]=U|0,B=N|0}return B!==0?P.words[_]=B|0:P.length--,P.strip()}var y=function(T,P,A){var v=T.words,k=P.words,O=A.words,D=0,B,_,N,U=v[0]|0,C=U&8191,z=U>>>13,ee=v[1]|0,j=ee&8191,X=ee>>>13,ie=v[2]|0,ue=ie&8191,he=ie>>>13,ke=v[3]|0,ge=ke&8191,me=ke>>>13,Ke=v[4]|0,ve=Ke&8191,Ae=Ke>>>13,so=v[5]|0,Et=so&8191,bt=so>>>13,ci=v[6]|0,_t=ci&8191,st=ci>>>13,ui=v[7]|0,Nt=ui&8191,dt=ui>>>13,oo=v[8]|0,jt=oo&8191,Bt=oo>>>13,ac=v[9]|0,ot=ac&8191,pt=ac>>>13,Nc=k[0]|0,Ct=Nc&8191,It=Nc>>>13,Bc=k[1]|0,Dt=Bc&8191,kt=Bc>>>13,Dc=k[2]|0,At=Dc&8191,Ot=Dc>>>13,ic=k[3]|0,Lt=ic&8191,qt=ic>>>13,Oc=k[4]|0,St=Oc&8191,Ft=Oc>>>13,Lc=k[5]|0,Pt=Lc&8191,Wt=Lc>>>13,sc=k[6]|0,Je=sc&8191,it=sc>>>13,oc=k[7]|0,Ut=oc&8191,Kt=oc>>>13,ol=k[8]|0,Gt=ol&8191,Vt=ol>>>13,cl=k[9]|0,$t=cl&8191,Yt=cl>>>13;A.negative=T.negative^P.negative,A.length=19,B=Math.imul(C,Ct),_=Math.imul(C,It),_=_+Math.imul(z,Ct)|0,N=Math.imul(z,It);var Mu=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Mu>>>26)|0,Mu&=67108863,B=Math.imul(j,Ct),_=Math.imul(j,It),_=_+Math.imul(X,Ct)|0,N=Math.imul(X,It),B=B+Math.imul(C,Dt)|0,_=_+Math.imul(C,kt)|0,_=_+Math.imul(z,Dt)|0,N=N+Math.imul(z,kt)|0;var an=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(an>>>26)|0,an&=67108863,B=Math.imul(ue,Ct),_=Math.imul(ue,It),_=_+Math.imul(he,Ct)|0,N=Math.imul(he,It),B=B+Math.imul(j,Dt)|0,_=_+Math.imul(j,kt)|0,_=_+Math.imul(X,Dt)|0,N=N+Math.imul(X,kt)|0,B=B+Math.imul(C,At)|0,_=_+Math.imul(C,Ot)|0,_=_+Math.imul(z,At)|0,N=N+Math.imul(z,Ot)|0;var sn=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(sn>>>26)|0,sn&=67108863,B=Math.imul(ge,Ct),_=Math.imul(ge,It),_=_+Math.imul(me,Ct)|0,N=Math.imul(me,It),B=B+Math.imul(ue,Dt)|0,_=_+Math.imul(ue,kt)|0,_=_+Math.imul(he,Dt)|0,N=N+Math.imul(he,kt)|0,B=B+Math.imul(j,At)|0,_=_+Math.imul(j,Ot)|0,_=_+Math.imul(X,At)|0,N=N+Math.imul(X,Ot)|0,B=B+Math.imul(C,Lt)|0,_=_+Math.imul(C,qt)|0,_=_+Math.imul(z,Lt)|0,N=N+Math.imul(z,qt)|0;var qc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(qc>>>26)|0,qc&=67108863,B=Math.imul(ve,Ct),_=Math.imul(ve,It),_=_+Math.imul(Ae,Ct)|0,N=Math.imul(Ae,It),B=B+Math.imul(ge,Dt)|0,_=_+Math.imul(ge,kt)|0,_=_+Math.imul(me,Dt)|0,N=N+Math.imul(me,kt)|0,B=B+Math.imul(ue,At)|0,_=_+Math.imul(ue,Ot)|0,_=_+Math.imul(he,At)|0,N=N+Math.imul(he,Ot)|0,B=B+Math.imul(j,Lt)|0,_=_+Math.imul(j,qt)|0,_=_+Math.imul(X,Lt)|0,N=N+Math.imul(X,qt)|0,B=B+Math.imul(C,St)|0,_=_+Math.imul(C,Ft)|0,_=_+Math.imul(z,St)|0,N=N+Math.imul(z,Ft)|0;var Fc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Fc>>>26)|0,Fc&=67108863,B=Math.imul(Et,Ct),_=Math.imul(Et,It),_=_+Math.imul(bt,Ct)|0,N=Math.imul(bt,It),B=B+Math.imul(ve,Dt)|0,_=_+Math.imul(ve,kt)|0,_=_+Math.imul(Ae,Dt)|0,N=N+Math.imul(Ae,kt)|0,B=B+Math.imul(ge,At)|0,_=_+Math.imul(ge,Ot)|0,_=_+Math.imul(me,At)|0,N=N+Math.imul(me,Ot)|0,B=B+Math.imul(ue,Lt)|0,_=_+Math.imul(ue,qt)|0,_=_+Math.imul(he,Lt)|0,N=N+Math.imul(he,qt)|0,B=B+Math.imul(j,St)|0,_=_+Math.imul(j,Ft)|0,_=_+Math.imul(X,St)|0,N=N+Math.imul(X,Ft)|0,B=B+Math.imul(C,Pt)|0,_=_+Math.imul(C,Wt)|0,_=_+Math.imul(z,Pt)|0,N=N+Math.imul(z,Wt)|0;var Wc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Wc>>>26)|0,Wc&=67108863,B=Math.imul(_t,Ct),_=Math.imul(_t,It),_=_+Math.imul(st,Ct)|0,N=Math.imul(st,It),B=B+Math.imul(Et,Dt)|0,_=_+Math.imul(Et,kt)|0,_=_+Math.imul(bt,Dt)|0,N=N+Math.imul(bt,kt)|0,B=B+Math.imul(ve,At)|0,_=_+Math.imul(ve,Ot)|0,_=_+Math.imul(Ae,At)|0,N=N+Math.imul(Ae,Ot)|0,B=B+Math.imul(ge,Lt)|0,_=_+Math.imul(ge,qt)|0,_=_+Math.imul(me,Lt)|0,N=N+Math.imul(me,qt)|0,B=B+Math.imul(ue,St)|0,_=_+Math.imul(ue,Ft)|0,_=_+Math.imul(he,St)|0,N=N+Math.imul(he,Ft)|0,B=B+Math.imul(j,Pt)|0,_=_+Math.imul(j,Wt)|0,_=_+Math.imul(X,Pt)|0,N=N+Math.imul(X,Wt)|0,B=B+Math.imul(C,Je)|0,_=_+Math.imul(C,it)|0,_=_+Math.imul(z,Je)|0,N=N+Math.imul(z,it)|0;var Uc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Uc>>>26)|0,Uc&=67108863,B=Math.imul(Nt,Ct),_=Math.imul(Nt,It),_=_+Math.imul(dt,Ct)|0,N=Math.imul(dt,It),B=B+Math.imul(_t,Dt)|0,_=_+Math.imul(_t,kt)|0,_=_+Math.imul(st,Dt)|0,N=N+Math.imul(st,kt)|0,B=B+Math.imul(Et,At)|0,_=_+Math.imul(Et,Ot)|0,_=_+Math.imul(bt,At)|0,N=N+Math.imul(bt,Ot)|0,B=B+Math.imul(ve,Lt)|0,_=_+Math.imul(ve,qt)|0,_=_+Math.imul(Ae,Lt)|0,N=N+Math.imul(Ae,qt)|0,B=B+Math.imul(ge,St)|0,_=_+Math.imul(ge,Ft)|0,_=_+Math.imul(me,St)|0,N=N+Math.imul(me,Ft)|0,B=B+Math.imul(ue,Pt)|0,_=_+Math.imul(ue,Wt)|0,_=_+Math.imul(he,Pt)|0,N=N+Math.imul(he,Wt)|0,B=B+Math.imul(j,Je)|0,_=_+Math.imul(j,it)|0,_=_+Math.imul(X,Je)|0,N=N+Math.imul(X,it)|0,B=B+Math.imul(C,Ut)|0,_=_+Math.imul(C,Kt)|0,_=_+Math.imul(z,Ut)|0,N=N+Math.imul(z,Kt)|0;var Hc=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Hc>>>26)|0,Hc&=67108863,B=Math.imul(jt,Ct),_=Math.imul(jt,It),_=_+Math.imul(Bt,Ct)|0,N=Math.imul(Bt,It),B=B+Math.imul(Nt,Dt)|0,_=_+Math.imul(Nt,kt)|0,_=_+Math.imul(dt,Dt)|0,N=N+Math.imul(dt,kt)|0,B=B+Math.imul(_t,At)|0,_=_+Math.imul(_t,Ot)|0,_=_+Math.imul(st,At)|0,N=N+Math.imul(st,Ot)|0,B=B+Math.imul(Et,Lt)|0,_=_+Math.imul(Et,qt)|0,_=_+Math.imul(bt,Lt)|0,N=N+Math.imul(bt,qt)|0,B=B+Math.imul(ve,St)|0,_=_+Math.imul(ve,Ft)|0,_=_+Math.imul(Ae,St)|0,N=N+Math.imul(Ae,Ft)|0,B=B+Math.imul(ge,Pt)|0,_=_+Math.imul(ge,Wt)|0,_=_+Math.imul(me,Pt)|0,N=N+Math.imul(me,Wt)|0,B=B+Math.imul(ue,Je)|0,_=_+Math.imul(ue,it)|0,_=_+Math.imul(he,Je)|0,N=N+Math.imul(he,it)|0,B=B+Math.imul(j,Ut)|0,_=_+Math.imul(j,Kt)|0,_=_+Math.imul(X,Ut)|0,N=N+Math.imul(X,Kt)|0,B=B+Math.imul(C,Gt)|0,_=_+Math.imul(C,Vt)|0,_=_+Math.imul(z,Gt)|0,N=N+Math.imul(z,Vt)|0;var zp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(zp>>>26)|0,zp&=67108863,B=Math.imul(ot,Ct),_=Math.imul(ot,It),_=_+Math.imul(pt,Ct)|0,N=Math.imul(pt,It),B=B+Math.imul(jt,Dt)|0,_=_+Math.imul(jt,kt)|0,_=_+Math.imul(Bt,Dt)|0,N=N+Math.imul(Bt,kt)|0,B=B+Math.imul(Nt,At)|0,_=_+Math.imul(Nt,Ot)|0,_=_+Math.imul(dt,At)|0,N=N+Math.imul(dt,Ot)|0,B=B+Math.imul(_t,Lt)|0,_=_+Math.imul(_t,qt)|0,_=_+Math.imul(st,Lt)|0,N=N+Math.imul(st,qt)|0,B=B+Math.imul(Et,St)|0,_=_+Math.imul(Et,Ft)|0,_=_+Math.imul(bt,St)|0,N=N+Math.imul(bt,Ft)|0,B=B+Math.imul(ve,Pt)|0,_=_+Math.imul(ve,Wt)|0,_=_+Math.imul(Ae,Pt)|0,N=N+Math.imul(Ae,Wt)|0,B=B+Math.imul(ge,Je)|0,_=_+Math.imul(ge,it)|0,_=_+Math.imul(me,Je)|0,N=N+Math.imul(me,it)|0,B=B+Math.imul(ue,Ut)|0,_=_+Math.imul(ue,Kt)|0,_=_+Math.imul(he,Ut)|0,N=N+Math.imul(he,Kt)|0,B=B+Math.imul(j,Gt)|0,_=_+Math.imul(j,Vt)|0,_=_+Math.imul(X,Gt)|0,N=N+Math.imul(X,Vt)|0,B=B+Math.imul(C,$t)|0,_=_+Math.imul(C,Yt)|0,_=_+Math.imul(z,$t)|0,N=N+Math.imul(z,Yt)|0;var Kp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Kp>>>26)|0,Kp&=67108863,B=Math.imul(ot,Dt),_=Math.imul(ot,kt),_=_+Math.imul(pt,Dt)|0,N=Math.imul(pt,kt),B=B+Math.imul(jt,At)|0,_=_+Math.imul(jt,Ot)|0,_=_+Math.imul(Bt,At)|0,N=N+Math.imul(Bt,Ot)|0,B=B+Math.imul(Nt,Lt)|0,_=_+Math.imul(Nt,qt)|0,_=_+Math.imul(dt,Lt)|0,N=N+Math.imul(dt,qt)|0,B=B+Math.imul(_t,St)|0,_=_+Math.imul(_t,Ft)|0,_=_+Math.imul(st,St)|0,N=N+Math.imul(st,Ft)|0,B=B+Math.imul(Et,Pt)|0,_=_+Math.imul(Et,Wt)|0,_=_+Math.imul(bt,Pt)|0,N=N+Math.imul(bt,Wt)|0,B=B+Math.imul(ve,Je)|0,_=_+Math.imul(ve,it)|0,_=_+Math.imul(Ae,Je)|0,N=N+Math.imul(Ae,it)|0,B=B+Math.imul(ge,Ut)|0,_=_+Math.imul(ge,Kt)|0,_=_+Math.imul(me,Ut)|0,N=N+Math.imul(me,Kt)|0,B=B+Math.imul(ue,Gt)|0,_=_+Math.imul(ue,Vt)|0,_=_+Math.imul(he,Gt)|0,N=N+Math.imul(he,Vt)|0,B=B+Math.imul(j,$t)|0,_=_+Math.imul(j,Yt)|0,_=_+Math.imul(X,$t)|0,N=N+Math.imul(X,Yt)|0;var Gp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Gp>>>26)|0,Gp&=67108863,B=Math.imul(ot,At),_=Math.imul(ot,Ot),_=_+Math.imul(pt,At)|0,N=Math.imul(pt,Ot),B=B+Math.imul(jt,Lt)|0,_=_+Math.imul(jt,qt)|0,_=_+Math.imul(Bt,Lt)|0,N=N+Math.imul(Bt,qt)|0,B=B+Math.imul(Nt,St)|0,_=_+Math.imul(Nt,Ft)|0,_=_+Math.imul(dt,St)|0,N=N+Math.imul(dt,Ft)|0,B=B+Math.imul(_t,Pt)|0,_=_+Math.imul(_t,Wt)|0,_=_+Math.imul(st,Pt)|0,N=N+Math.imul(st,Wt)|0,B=B+Math.imul(Et,Je)|0,_=_+Math.imul(Et,it)|0,_=_+Math.imul(bt,Je)|0,N=N+Math.imul(bt,it)|0,B=B+Math.imul(ve,Ut)|0,_=_+Math.imul(ve,Kt)|0,_=_+Math.imul(Ae,Ut)|0,N=N+Math.imul(Ae,Kt)|0,B=B+Math.imul(ge,Gt)|0,_=_+Math.imul(ge,Vt)|0,_=_+Math.imul(me,Gt)|0,N=N+Math.imul(me,Vt)|0,B=B+Math.imul(ue,$t)|0,_=_+Math.imul(ue,Yt)|0,_=_+Math.imul(he,$t)|0,N=N+Math.imul(he,Yt)|0;var Vp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Vp>>>26)|0,Vp&=67108863,B=Math.imul(ot,Lt),_=Math.imul(ot,qt),_=_+Math.imul(pt,Lt)|0,N=Math.imul(pt,qt),B=B+Math.imul(jt,St)|0,_=_+Math.imul(jt,Ft)|0,_=_+Math.imul(Bt,St)|0,N=N+Math.imul(Bt,Ft)|0,B=B+Math.imul(Nt,Pt)|0,_=_+Math.imul(Nt,Wt)|0,_=_+Math.imul(dt,Pt)|0,N=N+Math.imul(dt,Wt)|0,B=B+Math.imul(_t,Je)|0,_=_+Math.imul(_t,it)|0,_=_+Math.imul(st,Je)|0,N=N+Math.imul(st,it)|0,B=B+Math.imul(Et,Ut)|0,_=_+Math.imul(Et,Kt)|0,_=_+Math.imul(bt,Ut)|0,N=N+Math.imul(bt,Kt)|0,B=B+Math.imul(ve,Gt)|0,_=_+Math.imul(ve,Vt)|0,_=_+Math.imul(Ae,Gt)|0,N=N+Math.imul(Ae,Vt)|0,B=B+Math.imul(ge,$t)|0,_=_+Math.imul(ge,Yt)|0,_=_+Math.imul(me,$t)|0,N=N+Math.imul(me,Yt)|0;var $p=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+($p>>>26)|0,$p&=67108863,B=Math.imul(ot,St),_=Math.imul(ot,Ft),_=_+Math.imul(pt,St)|0,N=Math.imul(pt,Ft),B=B+Math.imul(jt,Pt)|0,_=_+Math.imul(jt,Wt)|0,_=_+Math.imul(Bt,Pt)|0,N=N+Math.imul(Bt,Wt)|0,B=B+Math.imul(Nt,Je)|0,_=_+Math.imul(Nt,it)|0,_=_+Math.imul(dt,Je)|0,N=N+Math.imul(dt,it)|0,B=B+Math.imul(_t,Ut)|0,_=_+Math.imul(_t,Kt)|0,_=_+Math.imul(st,Ut)|0,N=N+Math.imul(st,Kt)|0,B=B+Math.imul(Et,Gt)|0,_=_+Math.imul(Et,Vt)|0,_=_+Math.imul(bt,Gt)|0,N=N+Math.imul(bt,Vt)|0,B=B+Math.imul(ve,$t)|0,_=_+Math.imul(ve,Yt)|0,_=_+Math.imul(Ae,$t)|0,N=N+Math.imul(Ae,Yt)|0;var Yp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Yp>>>26)|0,Yp&=67108863,B=Math.imul(ot,Pt),_=Math.imul(ot,Wt),_=_+Math.imul(pt,Pt)|0,N=Math.imul(pt,Wt),B=B+Math.imul(jt,Je)|0,_=_+Math.imul(jt,it)|0,_=_+Math.imul(Bt,Je)|0,N=N+Math.imul(Bt,it)|0,B=B+Math.imul(Nt,Ut)|0,_=_+Math.imul(Nt,Kt)|0,_=_+Math.imul(dt,Ut)|0,N=N+Math.imul(dt,Kt)|0,B=B+Math.imul(_t,Gt)|0,_=_+Math.imul(_t,Vt)|0,_=_+Math.imul(st,Gt)|0,N=N+Math.imul(st,Vt)|0,B=B+Math.imul(Et,$t)|0,_=_+Math.imul(Et,Yt)|0,_=_+Math.imul(bt,$t)|0,N=N+Math.imul(bt,Yt)|0;var Jp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Jp>>>26)|0,Jp&=67108863,B=Math.imul(ot,Je),_=Math.imul(ot,it),_=_+Math.imul(pt,Je)|0,N=Math.imul(pt,it),B=B+Math.imul(jt,Ut)|0,_=_+Math.imul(jt,Kt)|0,_=_+Math.imul(Bt,Ut)|0,N=N+Math.imul(Bt,Kt)|0,B=B+Math.imul(Nt,Gt)|0,_=_+Math.imul(Nt,Vt)|0,_=_+Math.imul(dt,Gt)|0,N=N+Math.imul(dt,Vt)|0,B=B+Math.imul(_t,$t)|0,_=_+Math.imul(_t,Yt)|0,_=_+Math.imul(st,$t)|0,N=N+Math.imul(st,Yt)|0;var Qp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Qp>>>26)|0,Qp&=67108863,B=Math.imul(ot,Ut),_=Math.imul(ot,Kt),_=_+Math.imul(pt,Ut)|0,N=Math.imul(pt,Kt),B=B+Math.imul(jt,Gt)|0,_=_+Math.imul(jt,Vt)|0,_=_+Math.imul(Bt,Gt)|0,N=N+Math.imul(Bt,Vt)|0,B=B+Math.imul(Nt,$t)|0,_=_+Math.imul(Nt,Yt)|0,_=_+Math.imul(dt,$t)|0,N=N+Math.imul(dt,Yt)|0;var Zp=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Zp>>>26)|0,Zp&=67108863,B=Math.imul(ot,Gt),_=Math.imul(ot,Vt),_=_+Math.imul(pt,Gt)|0,N=Math.imul(pt,Vt),B=B+Math.imul(jt,$t)|0,_=_+Math.imul(jt,Yt)|0,_=_+Math.imul(Bt,$t)|0,N=N+Math.imul(Bt,Yt)|0;var Kg=(D+B|0)+((_&8191)<<13)|0;D=(N+(_>>>13)|0)+(Kg>>>26)|0,Kg&=67108863,B=Math.imul(ot,$t),_=Math.imul(ot,Yt),_=_+Math.imul(pt,$t)|0,N=Math.imul(pt,Yt);var Gg=(D+B|0)+((_&8191)<<13)|0;return D=(N+(_>>>13)|0)+(Gg>>>26)|0,Gg&=67108863,O[0]=Mu,O[1]=an,O[2]=sn,O[3]=qc,O[4]=Fc,O[5]=Wc,O[6]=Uc,O[7]=Hc,O[8]=zp,O[9]=Kp,O[10]=Gp,O[11]=Vp,O[12]=$p,O[13]=Yp,O[14]=Jp,O[15]=Qp,O[16]=Zp,O[17]=Kg,O[18]=Gg,D!==0&&(O[19]=D,A.length++),A};Math.imul||(y=m);function E(q,T,P){P.negative=T.negative^q.negative,P.length=q.length+T.length;for(var A=0,v=0,k=0;k>>26)|0,v+=O>>>26,O&=67108863}P.words[k]=D,A=O,O=v}return A!==0?P.words[k]=A:P.length--,P.strip()}function I(q,T,P){var A=new S;return A.mulp(q,T,P)}a.prototype.mulTo=function(T,P){var A,v=this.length+T.length;return this.length===10&&T.length===10?A=y(this,T,P):v<63?A=m(this,T,P):v<1024?A=E(this,T,P):A=I(this,T,P),A};function S(q,T){this.x=q,this.y=T}S.prototype.makeRBT=function(T){for(var P=new Array(T),A=a.prototype._countBits(T)-1,v=0;v>=1;return v},S.prototype.permute=function(T,P,A,v,k,O){for(var D=0;D>>1)k++;return 1<>>13,A[2*O+1]=k&8191,k=k>>>13;for(O=2*P;O>=26,P+=v/67108864|0,P+=k>>>26,this.words[A]=k&67108863}return P!==0&&(this.words[A]=P,this.length++),this},a.prototype.muln=function(T){return this.clone().imuln(T)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(T){var P=f(T);if(P.length===0)return new a(1);for(var A=this,v=0;v=0);var P=T%26,A=(T-P)/26,v=67108863>>>26-P<<26-P,k;if(P!==0){var O=0;for(k=0;k>>26-P}O&&(this.words[k]=O,this.length++)}if(A!==0){for(k=this.length-1;k>=0;k--)this.words[k+A]=this.words[k];for(k=0;k=0);var v;P?v=(P-P%26)/26:v=0;var k=T%26,O=Math.min((T-k)/26,this.length),D=67108863^67108863>>>k<O)for(this.length-=O,_=0;_=0&&(N!==0||_>=v);_--){var U=this.words[_]|0;this.words[_]=N<<26-k|U>>>k,N=U&D}return B&&N!==0&&(B.words[B.length++]=N),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(T,P,A){return t(this.negative===0),this.iushrn(T,P,A)},a.prototype.shln=function(T){return this.clone().ishln(T)},a.prototype.ushln=function(T){return this.clone().iushln(T)},a.prototype.shrn=function(T){return this.clone().ishrn(T)},a.prototype.ushrn=function(T){return this.clone().iushrn(T)},a.prototype.testn=function(T){t(typeof T=="number"&&T>=0);var P=T%26,A=(T-P)/26,v=1<=0);var P=T%26,A=(T-P)/26;if(t(this.negative===0,"imaskn works only with positive numbers"),this.length<=A)return this;if(P!==0&&A++,this.length=Math.min(A,this.length),P!==0){var v=67108863^67108863>>>P<=67108864;P++)this.words[P]-=67108864,P===this.length-1?this.words[P+1]=1:this.words[P+1]++;return this.length=Math.max(this.length,P+1),this},a.prototype.isubn=function(T){if(t(typeof T=="number"),t(T<67108864),T<0)return this.iaddn(-T);if(this.negative!==0)return this.negative=0,this.iaddn(T),this.negative=1,this;if(this.words[0]-=T,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var P=0;P>26)-(B/67108864|0),this.words[k+A]=O&67108863}for(;k>26,this.words[k+A]=O&67108863;if(D===0)return this.strip();for(t(D===-1),D=0,k=0;k>26,this.words[k]=O&67108863;return this.negative=1,this.strip()},a.prototype._wordDiv=function(T,P){var A=this.length-T.length,v=this.clone(),k=T,O=k.words[k.length-1]|0,D=this._countBits(O);A=26-D,A!==0&&(k=k.ushln(A),v.iushln(A),O=k.words[k.length-1]|0);var B=v.length-k.length,_;if(P!=="mod"){_=new a(null),_.length=B+1,_.words=new Array(_.length);for(var N=0;N<_.length;N++)_.words[N]=0}var U=v.clone()._ishlnsubmul(k,1,B);U.negative===0&&(v=U,_&&(_.words[B]=1));for(var C=B-1;C>=0;C--){var z=(v.words[k.length+C]|0)*67108864+(v.words[k.length+C-1]|0);for(z=Math.min(z/O|0,67108863),v._ishlnsubmul(k,z,C);v.negative!==0;)z--,v.negative=0,v._ishlnsubmul(k,1,C),v.isZero()||(v.negative^=1);_&&(_.words[C]=z)}return _&&_.strip(),v.strip(),P!=="div"&&A!==0&&v.iushrn(A),{div:_||null,mod:v}},a.prototype.divmod=function(T,P,A){if(t(!T.isZero()),this.isZero())return{div:new a(0),mod:new a(0)};var v,k,O;return this.negative!==0&&T.negative===0?(O=this.neg().divmod(T,P),P!=="mod"&&(v=O.div.neg()),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.iadd(T)),{div:v,mod:k}):this.negative===0&&T.negative!==0?(O=this.divmod(T.neg(),P),P!=="mod"&&(v=O.div.neg()),{div:v,mod:O.mod}):(this.negative&T.negative)!==0?(O=this.neg().divmod(T.neg(),P),P!=="div"&&(k=O.mod.neg(),A&&k.negative!==0&&k.isub(T)),{div:O.div,mod:k}):T.length>this.length||this.cmp(T)<0?{div:new a(0),mod:this}:T.length===1?P==="div"?{div:this.divn(T.words[0]),mod:null}:P==="mod"?{div:null,mod:new a(this.modn(T.words[0]))}:{div:this.divn(T.words[0]),mod:new a(this.modn(T.words[0]))}:this._wordDiv(T,P)},a.prototype.div=function(T){return this.divmod(T,"div",!1).div},a.prototype.mod=function(T){return this.divmod(T,"mod",!1).mod},a.prototype.umod=function(T){return this.divmod(T,"mod",!0).mod},a.prototype.divRound=function(T){var P=this.divmod(T);if(P.mod.isZero())return P.div;var A=P.div.negative!==0?P.mod.isub(T):P.mod,v=T.ushrn(1),k=T.andln(1),O=A.cmp(v);return O<0||k===1&&O===0?P.div:P.div.negative!==0?P.div.isubn(1):P.div.iaddn(1)},a.prototype.modn=function(T){t(T<=67108863);for(var P=(1<<26)%T,A=0,v=this.length-1;v>=0;v--)A=(P*A+(this.words[v]|0))%T;return A},a.prototype.idivn=function(T){t(T<=67108863);for(var P=0,A=this.length-1;A>=0;A--){var v=(this.words[A]|0)+P*67108864;this.words[A]=v/T|0,P=v%T}return this.strip()},a.prototype.divn=function(T){return this.clone().idivn(T)},a.prototype.egcd=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=new a(0),D=new a(1),B=0;P.isEven()&&A.isEven();)P.iushrn(1),A.iushrn(1),++B;for(var _=A.clone(),N=P.clone();!P.isZero();){for(var U=0,C=1;(P.words[0]&C)===0&&U<26;++U,C<<=1);if(U>0)for(P.iushrn(U);U-- >0;)(v.isOdd()||k.isOdd())&&(v.iadd(_),k.isub(N)),v.iushrn(1),k.iushrn(1);for(var z=0,ee=1;(A.words[0]&ee)===0&&z<26;++z,ee<<=1);if(z>0)for(A.iushrn(z);z-- >0;)(O.isOdd()||D.isOdd())&&(O.iadd(_),D.isub(N)),O.iushrn(1),D.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(O),k.isub(D)):(A.isub(P),O.isub(v),D.isub(k))}return{a:O,b:D,gcd:A.iushln(B)}},a.prototype._invmp=function(T){t(T.negative===0),t(!T.isZero());var P=this,A=T.clone();P.negative!==0?P=P.umod(T):P=P.clone();for(var v=new a(1),k=new a(0),O=A.clone();P.cmpn(1)>0&&A.cmpn(1)>0;){for(var D=0,B=1;(P.words[0]&B)===0&&D<26;++D,B<<=1);if(D>0)for(P.iushrn(D);D-- >0;)v.isOdd()&&v.iadd(O),v.iushrn(1);for(var _=0,N=1;(A.words[0]&N)===0&&_<26;++_,N<<=1);if(_>0)for(A.iushrn(_);_-- >0;)k.isOdd()&&k.iadd(O),k.iushrn(1);P.cmp(A)>=0?(P.isub(A),v.isub(k)):(A.isub(P),k.isub(v))}var U;return P.cmpn(1)===0?U=v:U=k,U.cmpn(0)<0&&U.iadd(T),U},a.prototype.gcd=function(T){if(this.isZero())return T.abs();if(T.isZero())return this.abs();var P=this.clone(),A=T.clone();P.negative=0,A.negative=0;for(var v=0;P.isEven()&&A.isEven();v++)P.iushrn(1),A.iushrn(1);do{for(;P.isEven();)P.iushrn(1);for(;A.isEven();)A.iushrn(1);var k=P.cmp(A);if(k<0){var O=P;P=A,A=O}else if(k===0||A.cmpn(1)===0)break;P.isub(A)}while(!0);return A.iushln(v)},a.prototype.invm=function(T){return this.egcd(T).a.umod(T)},a.prototype.isEven=function(){return(this.words[0]&1)===0},a.prototype.isOdd=function(){return(this.words[0]&1)===1},a.prototype.andln=function(T){return this.words[0]&T},a.prototype.bincn=function(T){t(typeof T=="number");var P=T%26,A=(T-P)/26,v=1<>>26,D&=67108863,this.words[O]=D}return k!==0&&(this.words[O]=k,this.length++),this},a.prototype.isZero=function(){return this.length===1&&this.words[0]===0},a.prototype.cmpn=function(T){var P=T<0;if(this.negative!==0&&!P)return-1;if(this.negative===0&&P)return 1;this.strip();var A;if(this.length>1)A=1;else{P&&(T=-T),t(T<=67108863,"Number is too big");var v=this.words[0]|0;A=v===T?0:vT.length)return 1;if(this.length=0;A--){var v=this.words[A]|0,k=T.words[A]|0;if(v!==k){vk&&(P=1);break}}return P},a.prototype.gtn=function(T){return this.cmpn(T)===1},a.prototype.gt=function(T){return this.cmp(T)===1},a.prototype.gten=function(T){return this.cmpn(T)>=0},a.prototype.gte=function(T){return this.cmp(T)>=0},a.prototype.ltn=function(T){return this.cmpn(T)===-1},a.prototype.lt=function(T){return this.cmp(T)===-1},a.prototype.lten=function(T){return this.cmpn(T)<=0},a.prototype.lte=function(T){return this.cmp(T)<=0},a.prototype.eqn=function(T){return this.cmpn(T)===0},a.prototype.eq=function(T){return this.cmp(T)===0},a.red=function(T){return new G(T)},a.prototype.toRed=function(T){return t(!this.red,"Already a number in reduction context"),t(this.negative===0,"red works only with positives"),T.convertTo(this)._forceRed(T)},a.prototype.fromRed=function(){return t(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(T){return this.red=T,this},a.prototype.forceRed=function(T){return t(!this.red,"Already a number in reduction context"),this._forceRed(T)},a.prototype.redAdd=function(T){return t(this.red,"redAdd works only with red numbers"),this.red.add(this,T)},a.prototype.redIAdd=function(T){return t(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,T)},a.prototype.redSub=function(T){return t(this.red,"redSub works only with red numbers"),this.red.sub(this,T)},a.prototype.redISub=function(T){return t(this.red,"redISub works only with red numbers"),this.red.isub(this,T)},a.prototype.redShl=function(T){return t(this.red,"redShl works only with red numbers"),this.red.shl(this,T)},a.prototype.redMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.mul(this,T)},a.prototype.redIMul=function(T){return t(this.red,"redMul works only with red numbers"),this.red._verify2(this,T),this.red.imul(this,T)},a.prototype.redSqr=function(){return t(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return t(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return t(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return t(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return t(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(T){return t(this.red&&!T.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,T)};var L={k256:null,p224:null,p192:null,p25519:null};function F(q,T){this.name=q,this.p=new a(T,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}F.prototype._tmp=function(){var T=new a(null);return T.words=new Array(Math.ceil(this.n/13)),T},F.prototype.ireduce=function(T){var P=T,A;do this.split(P,this.tmp),P=this.imulK(P),P=P.iadd(this.tmp),A=P.bitLength();while(A>this.n);var v=A0?P.isub(this.p):P.strip!==void 0?P.strip():P._strip(),P},F.prototype.split=function(T,P){T.iushrn(this.n,0,P)},F.prototype.imulK=function(T){return T.imul(this.k)};function W(){F.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(W,F),W.prototype.split=function(T,P){for(var A=4194303,v=Math.min(T.length,9),k=0;k>>22,O=D}O>>>=22,T.words[k-10]=O,O===0&&T.length>10?T.length-=10:T.length-=9},W.prototype.imulK=function(T){T.words[T.length]=0,T.words[T.length+1]=0,T.length+=2;for(var P=0,A=0;A>>=26,T.words[A]=k,P=v}return P!==0&&(T.words[T.length++]=P),T},a._prime=function(T){if(L[T])return L[T];var P;if(T==="k256")P=new W;else if(T==="p224")P=new V;else if(T==="p192")P=new K;else if(T==="p25519")P=new H;else throw new Error("Unknown prime "+T);return L[T]=P,P};function G(q){if(typeof q=="string"){var T=a._prime(q);this.m=T.p,this.prime=T}else t(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}G.prototype._verify1=function(T){t(T.negative===0,"red works only with positives"),t(T.red,"red works only with red numbers")},G.prototype._verify2=function(T,P){t((T.negative|P.negative)===0,"red works only with positives"),t(T.red&&T.red===P.red,"red works only with red numbers")},G.prototype.imod=function(T){return this.prime?this.prime.ireduce(T)._forceRed(this):T.umod(this.m)._forceRed(this)},G.prototype.neg=function(T){return T.isZero()?T.clone():this.m.sub(T)._forceRed(this)},G.prototype.add=function(T,P){this._verify2(T,P);var A=T.add(P);return A.cmp(this.m)>=0&&A.isub(this.m),A._forceRed(this)},G.prototype.iadd=function(T,P){this._verify2(T,P);var A=T.iadd(P);return A.cmp(this.m)>=0&&A.isub(this.m),A},G.prototype.sub=function(T,P){this._verify2(T,P);var A=T.sub(P);return A.cmpn(0)<0&&A.iadd(this.m),A._forceRed(this)},G.prototype.isub=function(T,P){this._verify2(T,P);var A=T.isub(P);return A.cmpn(0)<0&&A.iadd(this.m),A},G.prototype.shl=function(T,P){return this._verify1(T),this.imod(T.ushln(P))},G.prototype.imul=function(T,P){return this._verify2(T,P),this.imod(T.imul(P))},G.prototype.mul=function(T,P){return this._verify2(T,P),this.imod(T.mul(P))},G.prototype.isqr=function(T){return this.imul(T,T.clone())},G.prototype.sqr=function(T){return this.mul(T,T)},G.prototype.sqrt=function(T){if(T.isZero())return T.clone();var P=this.m.andln(3);if(t(P%2===1),P===3){var A=this.m.add(new a(1)).iushrn(2);return this.pow(T,A)}for(var v=this.m.subn(1),k=0;!v.isZero()&&v.andln(1)===0;)k++,v.iushrn(1);t(!v.isZero());var O=new a(1).toRed(this),D=O.redNeg(),B=this.m.subn(1).iushrn(1),_=this.m.bitLength();for(_=new a(2*_*_).toRed(this);this.pow(_,B).cmp(D)!==0;)_.redIAdd(D);for(var N=this.pow(_,v),U=this.pow(T,v.addn(1).iushrn(1)),C=this.pow(T,v),z=k;C.cmp(O)!==0;){for(var ee=C,j=0;ee.cmp(O)!==0;j++)ee=ee.redSqr();t(j=0;k--){for(var N=P.words[k],U=_-1;U>=0;U--){var C=N>>U&1;if(O!==v[0]&&(O=this.sqr(O)),C===0&&D===0){B=0;continue}D<<=1,D|=C,B++,!(B!==A&&(k!==0||U!==0))&&(O=this.mul(O,v[D]),B=0,D=0)}_=26}return O},G.prototype.convertTo=function(T){var P=T.umod(this.m);return P===T?P.clone():P},G.prototype.convertFrom=function(T){var P=T.clone();return P.red=null,P},a.mont=function(T){return new J(T)};function J(q){G.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new a(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)}n(J,G),J.prototype.convertTo=function(T){return this.imod(T.ushln(this.shift))},J.prototype.convertFrom=function(T){var P=this.imod(T.mul(this.rinv));return P.red=null,P},J.prototype.imul=function(T,P){if(T.isZero()||P.isZero())return T.words[0]=0,T.length=1,T;var A=T.imul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.mul=function(T,P){if(T.isZero()||P.isZero())return new a(0)._forceRed(this);var A=T.mul(P),v=A.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),k=A.isub(v).iushrn(this.shift),O=k;return k.cmp(this.m)>=0?O=k.isub(this.m):k.cmpn(0)<0&&(O=k.iadd(this.m)),O._forceRed(this)},J.prototype.invm=function(T){var P=this.imod(T._invmp(this.m).mul(this.r2));return P._forceRed(this)}})(typeof lG>"u"||lG,zbe)});var Gl=x((Yxn,Gbe)=>{d();p();Gbe.exports=Kbe;function Kbe(r,e){if(!r)throw new Error(e||"Assertion failed")}Kbe.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}});var dG=x(Ybe=>{"use strict";d();p();var rR=Ybe;function OMt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r!="string"){for(var n=0;n>8,s=a&255;i?t.push(i,s):t.push(s)}return t}rR.toArray=OMt;function Vbe(r){return r.length===1?"0"+r:r}rR.zero2=Vbe;function $be(r){for(var e="",t=0;t{"use strict";d();p();var nh=Jbe,LMt=co(),qMt=Gl(),nR=dG();nh.assert=qMt;nh.toArray=nR.toArray;nh.zero2=nR.zero2;nh.toHex=nR.toHex;nh.encode=nR.encode;function FMt(r,e,t){var n=new Array(Math.max(r.bitLength(),t)+1);n.fill(0);for(var a=1<(a>>1)-1?o=(a>>1)-c:o=c,i.isubn(o)):o=0,n[s]=o,i.iushrn(1)}return n}nh.getNAF=FMt;function WMt(r,e){var t=[[],[]];r=r.clone(),e=e.clone();for(var n=0,a=0,i;r.cmpn(-n)>0||e.cmpn(-a)>0;){var s=r.andln(3)+n&3,o=e.andln(3)+a&3;s===3&&(s=-1),o===3&&(o=-1);var c;(s&1)===0?c=0:(i=r.andln(7)+n&7,(i===3||i===5)&&o===2?c=-s:c=s),t[0].push(c);var u;(o&1)===0?u=0:(i=e.andln(7)+a&7,(i===3||i===5)&&s===2?u=-o:u=o),t[1].push(u),2*n===c+1&&(n=1-n),2*a===u+1&&(a=1-a),r.iushrn(1),e.iushrn(1)}return t}nh.getJSF=WMt;function UMt(r,e,t){var n="_"+e;r.prototype[e]=function(){return this[n]!==void 0?this[n]:this[n]=t.call(this)}}nh.cachedProperty=UMt;function HMt(r){return typeof r=="string"?nh.toArray(r,"hex"):r}nh.parseBytes=HMt;function jMt(r){return new LMt(r,"hex","le")}nh.intFromLE=jMt});var Er=x((pG,Zbe)=>{d();p();var aR=cc(),Ef=aR.Buffer;function Qbe(r,e){for(var t in r)e[t]=r[t]}Ef.from&&Ef.alloc&&Ef.allocUnsafe&&Ef.allocUnsafeSlow?Zbe.exports=aR:(Qbe(aR,pG),pG.Buffer=cb);function cb(r,e,t){return Ef(r,e,t)}cb.prototype=Object.create(Ef.prototype);Qbe(Ef,cb);cb.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Ef(r,e,t)};cb.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var n=Ef(r);return e!==void 0?typeof t=="string"?n.fill(e,t):n.fill(e):n.fill(0),n};cb.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Ef(r)};cb.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return aR.SlowBuffer(r)}});var ub=x((sTn,fG)=>{"use strict";d();p();var hG=65536,zMt=4294967295;function KMt(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var GMt=Er().Buffer,iR=global.crypto||global.msCrypto;iR&&iR.getRandomValues?fG.exports=VMt:fG.exports=KMt;function VMt(r,e){if(r>zMt)throw new RangeError("requested too many random bytes");var t=GMt.allocUnsafe(r);if(r>0)if(r>hG)for(var n=0;n{d();p();typeof Object.create=="function"?mG.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:mG.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}});var Bu=x((pTn,yG)=>{"use strict";d();p();var M5=typeof Reflect=="object"?Reflect:null,Xbe=M5&&typeof M5.apply=="function"?M5.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)},sR;M5&&typeof M5.ownKeys=="function"?sR=M5.ownKeys:Object.getOwnPropertySymbols?sR=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:sR=function(e){return Object.getOwnPropertyNames(e)};function $Mt(r){console&&console.warn&&console.warn(r)}var tve=Number.isNaN||function(e){return e!==e};function qa(){qa.init.call(this)}yG.exports=qa;yG.exports.once=ZMt;qa.EventEmitter=qa;qa.prototype._events=void 0;qa.prototype._eventsCount=0;qa.prototype._maxListeners=void 0;var eve=10;function oR(r){if(typeof r!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r)}Object.defineProperty(qa,"defaultMaxListeners",{enumerable:!0,get:function(){return eve},set:function(r){if(typeof r!="number"||r<0||tve(r))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+r+".");eve=r}});qa.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};qa.prototype.setMaxListeners=function(e){if(typeof e!="number"||e<0||tve(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this};function rve(r){return r._maxListeners===void 0?qa.defaultMaxListeners:r._maxListeners}qa.prototype.getMaxListeners=function(){return rve(this)};qa.prototype.emit=function(e){for(var t=[],n=1;n0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var c=i[e];if(c===void 0)return!1;if(typeof c=="function")Xbe(c,this,t);else for(var u=c.length,l=ove(c,u),n=0;n0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=r,o.type=e,o.count=s.length,$Mt(o)}return r}qa.prototype.addListener=function(e,t){return nve(this,e,t,!1)};qa.prototype.on=qa.prototype.addListener;qa.prototype.prependListener=function(e,t){return nve(this,e,t,!0)};function YMt(){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 ave(r,e,t){var n={fired:!1,wrapFn:void 0,target:r,type:e,listener:t},a=YMt.bind(n);return a.listener=t,n.wrapFn=a,a}qa.prototype.once=function(e,t){return oR(t),this.on(e,ave(this,e,t)),this};qa.prototype.prependOnceListener=function(e,t){return oR(t),this.prependListener(e,ave(this,e,t)),this};qa.prototype.removeListener=function(e,t){var n,a,i,s,o;if(oR(t),a=this._events,a===void 0)return this;if(n=a[e],n===void 0)return this;if(n===t||n.listener===t)--this._eventsCount===0?this._events=Object.create(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if(typeof n!="function"){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;i===0?n.shift():JMt(n,i),n.length===1&&(a[e]=n[0]),a.removeListener!==void 0&&this.emit("removeListener",e,o||t)}return this};qa.prototype.off=qa.prototype.removeListener;qa.prototype.removeAllListeners=function(e){var t,n,a;if(n=this._events,n===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i=Object.keys(n),s;for(a=0;a=0;a--)this.removeListener(e,t[a]);return this};function ive(r,e,t){var n=r._events;if(n===void 0)return[];var a=n[e];return a===void 0?[]:typeof a=="function"?t?[a.listener||a]:[a]:t?QMt(a):ove(a,a.length)}qa.prototype.listeners=function(e){return ive(this,e,!0)};qa.prototype.rawListeners=function(e){return ive(this,e,!1)};qa.listenerCount=function(r,e){return typeof r.listenerCount=="function"?r.listenerCount(e):sve.call(r,e)};qa.prototype.listenerCount=sve;function sve(r){var e=this._events;if(e!==void 0){var t=e[r];if(typeof t=="function")return 1;if(t!==void 0)return t.length}return 0}qa.prototype.eventNames=function(){return this._eventsCount>0?sR(this._events):[]};function ove(r,e){for(var t=new Array(e),n=0;n{d();p();uve.exports=Bu().EventEmitter});var bG=x((bTn,lve)=>{"use strict";d();p();lve.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var i=Object.getOwnPropertySymbols(e);if(i.length!==1||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,t);if(s.value!==a||s.enumerable!==!0)return!1}return!0}});var WE=x((_Tn,dve)=>{"use strict";d();p();var eNt=bG();dve.exports=function(){return eNt()&&!!Symbol.toStringTag}});var fve=x((ETn,hve)=>{"use strict";d();p();var pve=typeof Symbol<"u"&&Symbol,tNt=bG();hve.exports=function(){return typeof pve!="function"||typeof Symbol!="function"||typeof pve("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:tNt()}});var yve=x((kTn,mve)=>{"use strict";d();p();var rNt="Function.prototype.bind called on incompatible ",vG=Array.prototype.slice,nNt=Object.prototype.toString,aNt="[object Function]";mve.exports=function(e){var t=this;if(typeof t!="function"||nNt.call(t)!==aNt)throw new TypeError(rNt+t);for(var n=vG.call(arguments,1),a,i=function(){if(this instanceof a){var l=t.apply(this,n.concat(vG.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(vG.call(arguments)))},s=Math.max(0,t.length-n.length),o=[],c=0;c{"use strict";d();p();var iNt=yve();gve.exports=Function.prototype.bind||iNt});var vve=x((NTn,bve)=>{"use strict";d();p();var sNt=cR();bve.exports=sNt.call(Function.call,Object.prototype.hasOwnProperty)});var HE=x((OTn,Eve)=>{"use strict";d();p();var Ur,O5=SyntaxError,Tve=Function,D5=TypeError,wG=function(r){try{return Tve('"use strict"; return ('+r+").constructor;")()}catch{}},lb=Object.getOwnPropertyDescriptor;if(lb)try{lb({},"")}catch{lb=null}var _G=function(){throw new D5},oNt=lb?function(){try{return arguments.callee,_G}catch{try{return lb(arguments,"callee").get}catch{return _G}}}():_G,N5=fve()(),Cf=Object.getPrototypeOf||function(r){return r.__proto__},B5={},cNt=typeof Uint8Array>"u"?Ur:Cf(Uint8Array),db={"%AggregateError%":typeof AggregateError>"u"?Ur:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ur:ArrayBuffer,"%ArrayIteratorPrototype%":N5?Cf([][Symbol.iterator]()):Ur,"%AsyncFromSyncIteratorPrototype%":Ur,"%AsyncFunction%":B5,"%AsyncGenerator%":B5,"%AsyncGeneratorFunction%":B5,"%AsyncIteratorPrototype%":B5,"%Atomics%":typeof Atomics>"u"?Ur:Atomics,"%BigInt%":typeof BigInt>"u"?Ur:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ur:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ur:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ur:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Ur:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ur:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ur:FinalizationRegistry,"%Function%":Tve,"%GeneratorFunction%":B5,"%Int8Array%":typeof Int8Array>"u"?Ur:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ur:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Ur:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":N5?Cf(Cf([][Symbol.iterator]())):Ur,"%JSON%":typeof JSON=="object"?JSON:Ur,"%Map%":typeof Map>"u"?Ur:Map,"%MapIteratorPrototype%":typeof Map>"u"||!N5?Ur:Cf(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ur:Promise,"%Proxy%":typeof Proxy>"u"?Ur:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Ur:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ur:Set,"%SetIteratorPrototype%":typeof Set>"u"||!N5?Ur:Cf(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ur:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":N5?Cf(""[Symbol.iterator]()):Ur,"%Symbol%":N5?Symbol:Ur,"%SyntaxError%":O5,"%ThrowTypeError%":oNt,"%TypedArray%":cNt,"%TypeError%":D5,"%Uint8Array%":typeof Uint8Array>"u"?Ur:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ur:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ur:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ur:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Ur:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ur:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ur:WeakSet};try{null.error}catch(r){wve=Cf(Cf(r)),db["%Error.prototype%"]=wve}var wve,uNt=function r(e){var t;if(e==="%AsyncFunction%")t=wG("async function () {}");else if(e==="%GeneratorFunction%")t=wG("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=wG("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&(t=Cf(a.prototype))}return db[e]=t,t},_ve={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},UE=cR(),uR=vve(),lNt=UE.call(Function.call,Array.prototype.concat),dNt=UE.call(Function.apply,Array.prototype.splice),xve=UE.call(Function.call,String.prototype.replace),lR=UE.call(Function.call,String.prototype.slice),pNt=UE.call(Function.call,RegExp.prototype.exec),hNt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fNt=/\\(\\)?/g,mNt=function(e){var t=lR(e,0,1),n=lR(e,-1);if(t==="%"&&n!=="%")throw new O5("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new O5("invalid intrinsic syntax, expected opening `%`");var a=[];return xve(e,hNt,function(i,s,o,c){a[a.length]=o?xve(c,fNt,"$1"):s||i}),a},yNt=function(e,t){var n=e,a;if(uR(_ve,n)&&(a=_ve[n],n="%"+a[0]+"%"),uR(db,n)){var i=db[n];if(i===B5&&(i=uNt(n)),typeof i>"u"&&!t)throw new D5("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:i}}throw new O5("intrinsic "+e+" does not exist!")};Eve.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new D5("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new D5('"allowMissing" argument must be a boolean');if(pNt(/^%?[^%]*%?$/,e)===null)throw new O5("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=mNt(e),a=n.length>0?n[0]:"",i=yNt("%"+a+"%",t),s=i.name,o=i.value,c=!1,u=i.alias;u&&(a=u[0],dNt(n,lNt([0,1],u)));for(var l=1,h=!0;l=n.length){var E=lb(o,f);h=!!E,h&&"get"in E&&!("originalValue"in E.get)?o=E.get:o=o[f]}else h=uR(o,f),o=o[f];h&&!c&&(db[s]=o)}}return o}});var Pve=x((FTn,dR)=>{"use strict";d();p();var xG=cR(),L5=HE(),kve=L5("%Function.prototype.apply%"),Ave=L5("%Function.prototype.call%"),Sve=L5("%Reflect.apply%",!0)||xG.call(Ave,kve),Cve=L5("%Object.getOwnPropertyDescriptor%",!0),pb=L5("%Object.defineProperty%",!0),gNt=L5("%Math.max%");if(pb)try{pb({},"a",{value:1})}catch{pb=null}dR.exports=function(e){var t=Sve(xG,Ave,arguments);if(Cve&&pb){var n=Cve(t,"length");n.configurable&&pb(t,"length",{value:1+gNt(0,e.length-(arguments.length-1))})}return t};var Ive=function(){return Sve(xG,kve,arguments)};pb?pb(dR.exports,"apply",{value:Ive}):dR.exports.apply=Ive});var jE=x((HTn,Nve)=>{"use strict";d();p();var Rve=HE(),Mve=Pve(),bNt=Mve(Rve("String.prototype.indexOf"));Nve.exports=function(e,t){var n=Rve(e,!!t);return typeof n=="function"&&bNt(e,".prototype.")>-1?Mve(n):n}});var Ove=x((KTn,Dve)=>{"use strict";d();p();var vNt=WE()(),wNt=jE(),TG=wNt("Object.prototype.toString"),pR=function(e){return vNt&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:TG(e)==="[object Arguments]"},Bve=function(e){return pR(e)?!0:e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&TG(e)!=="[object Array]"&&TG(e.callee)==="[object Function]"},_Nt=function(){return pR(arguments)}();pR.isLegacyArguments=Bve;Dve.exports=_Nt?pR:Bve});var Fve=x(($Tn,qve)=>{"use strict";d();p();var xNt=Object.prototype.toString,TNt=Function.prototype.toString,ENt=/^\s*(?:function)?\*/,Lve=WE()(),EG=Object.getPrototypeOf,CNt=function(){if(!Lve)return!1;try{return Function("return function*() {}")()}catch{}},CG;qve.exports=function(e){if(typeof e!="function")return!1;if(ENt.test(TNt.call(e)))return!0;if(!Lve){var t=xNt.call(e);return t==="[object GeneratorFunction]"}if(!EG)return!1;if(typeof CG>"u"){var n=CNt();CG=n?EG(n):!1}return EG(e)===CG}});var jve=x((QTn,Hve)=>{"use strict";d();p();var Uve=Function.prototype.toString,q5=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,kG,hR;if(typeof q5=="function"&&typeof Object.defineProperty=="function")try{kG=Object.defineProperty({},"length",{get:function(){throw hR}}),hR={},q5(function(){throw 42},null,kG)}catch(r){r!==hR&&(q5=null)}else q5=null;var INt=/^\s*class\b/,AG=function(e){try{var t=Uve.call(e);return INt.test(t)}catch{return!1}},IG=function(e){try{return AG(e)?!1:(Uve.call(e),!0)}catch{return!1}},fR=Object.prototype.toString,kNt="[object Object]",ANt="[object Function]",SNt="[object GeneratorFunction]",PNt="[object HTMLAllCollection]",RNt="[object HTML document.all class]",MNt="[object HTMLCollection]",NNt=typeof Symbol=="function"&&!!Symbol.toStringTag,BNt=!(0 in[,]),SG=function(){return!1};typeof document=="object"&&(Wve=document.all,fR.call(Wve)===fR.call(document.all)&&(SG=function(e){if((BNt||!e)&&(typeof e>"u"||typeof e=="object"))try{var t=fR.call(e);return(t===PNt||t===RNt||t===MNt||t===kNt)&&e("")==null}catch{}return!1}));var Wve;Hve.exports=q5?function(e){if(SG(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;try{q5(e,null,kG)}catch(t){if(t!==hR)return!1}return!AG(e)&&IG(e)}:function(e){if(SG(e))return!0;if(!e||typeof e!="function"&&typeof e!="object")return!1;if(NNt)return IG(e);if(AG(e))return!1;var t=fR.call(e);return t!==ANt&&t!==SNt&&!/^\[object HTML/.test(t)?!1:IG(e)}});var PG=x((e6n,Kve)=>{"use strict";d();p();var DNt=jve(),ONt=Object.prototype.toString,zve=Object.prototype.hasOwnProperty,LNt=function(e,t,n){for(var a=0,i=e.length;a=3&&(a=n),ONt.call(e)==="[object Array]"?LNt(e,t,a):typeof e=="string"?qNt(e,t,a):FNt(e,t,a)};Kve.exports=WNt});var MG=x((n6n,Gve)=>{"use strict";d();p();var RG=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],UNt=typeof globalThis>"u"?global:globalThis;Gve.exports=function(){for(var e=[],t=0;t{"use strict";d();p();var HNt=HE(),mR=HNt("%Object.getOwnPropertyDescriptor%",!0);if(mR)try{mR([],"length")}catch{mR=null}Vve.exports=mR});var OG=x((u6n,Zve)=>{"use strict";d();p();var $ve=PG(),jNt=MG(),DG=jE(),zNt=DG("Object.prototype.toString"),Yve=WE()(),yR=NG(),KNt=typeof globalThis>"u"?global:globalThis,Jve=jNt(),GNt=DG("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n-1}return yR?$Nt(e):!1}});var i2e=x((p6n,a2e)=>{"use strict";d();p();var e2e=PG(),YNt=MG(),t2e=jE(),LG=NG(),JNt=t2e("Object.prototype.toString"),r2e=WE()(),Xve=typeof globalThis>"u"?global:globalThis,QNt=YNt(),ZNt=t2e("String.prototype.slice"),n2e={},qG=Object.getPrototypeOf;r2e&&LG&&qG&&e2e(QNt,function(r){if(typeof Xve[r]=="function"){var e=new Xve[r];if(Symbol.toStringTag in e){var t=qG(e),n=LG(t,Symbol.toStringTag);if(!n){var a=qG(t);n=LG(a,Symbol.toStringTag)}n2e[r]=n.get}}});var XNt=function(e){var t=!1;return e2e(n2e,function(n,a){if(!t)try{var i=n.call(e);i===a&&(t=i)}catch{}}),t},eBt=OG();a2e.exports=function(e){return eBt(e)?!r2e||!(Symbol.toStringTag in e)?ZNt(JNt(e),8,-1):XNt(e):!1}});var v2e=x(Or=>{"use strict";d();p();var tBt=Ove(),rBt=Fve(),ah=i2e(),s2e=OG();function F5(r){return r.call.bind(r)}var o2e=typeof BigInt<"u",c2e=typeof Symbol<"u",Od=F5(Object.prototype.toString),nBt=F5(Number.prototype.valueOf),aBt=F5(String.prototype.valueOf),iBt=F5(Boolean.prototype.valueOf);o2e&&(u2e=F5(BigInt.prototype.valueOf));var u2e;c2e&&(l2e=F5(Symbol.prototype.valueOf));var l2e;function KE(r,e){if(typeof r!="object")return!1;try{return e(r),!0}catch{return!1}}Or.isArgumentsObject=tBt;Or.isGeneratorFunction=rBt;Or.isTypedArray=s2e;function sBt(r){return typeof Promise<"u"&&r instanceof Promise||r!==null&&typeof r=="object"&&typeof r.then=="function"&&typeof r.catch=="function"}Or.isPromise=sBt;function oBt(r){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(r):s2e(r)||p2e(r)}Or.isArrayBufferView=oBt;function cBt(r){return ah(r)==="Uint8Array"}Or.isUint8Array=cBt;function uBt(r){return ah(r)==="Uint8ClampedArray"}Or.isUint8ClampedArray=uBt;function lBt(r){return ah(r)==="Uint16Array"}Or.isUint16Array=lBt;function dBt(r){return ah(r)==="Uint32Array"}Or.isUint32Array=dBt;function pBt(r){return ah(r)==="Int8Array"}Or.isInt8Array=pBt;function hBt(r){return ah(r)==="Int16Array"}Or.isInt16Array=hBt;function fBt(r){return ah(r)==="Int32Array"}Or.isInt32Array=fBt;function mBt(r){return ah(r)==="Float32Array"}Or.isFloat32Array=mBt;function yBt(r){return ah(r)==="Float64Array"}Or.isFloat64Array=yBt;function gBt(r){return ah(r)==="BigInt64Array"}Or.isBigInt64Array=gBt;function bBt(r){return ah(r)==="BigUint64Array"}Or.isBigUint64Array=bBt;function gR(r){return Od(r)==="[object Map]"}gR.working=typeof Map<"u"&&gR(new Map);function vBt(r){return typeof Map>"u"?!1:gR.working?gR(r):r instanceof Map}Or.isMap=vBt;function bR(r){return Od(r)==="[object Set]"}bR.working=typeof Set<"u"&&bR(new Set);function wBt(r){return typeof Set>"u"?!1:bR.working?bR(r):r instanceof Set}Or.isSet=wBt;function vR(r){return Od(r)==="[object WeakMap]"}vR.working=typeof WeakMap<"u"&&vR(new WeakMap);function _Bt(r){return typeof WeakMap>"u"?!1:vR.working?vR(r):r instanceof WeakMap}Or.isWeakMap=_Bt;function WG(r){return Od(r)==="[object WeakSet]"}WG.working=typeof WeakSet<"u"&&WG(new WeakSet);function xBt(r){return WG(r)}Or.isWeakSet=xBt;function wR(r){return Od(r)==="[object ArrayBuffer]"}wR.working=typeof ArrayBuffer<"u"&&wR(new ArrayBuffer);function d2e(r){return typeof ArrayBuffer>"u"?!1:wR.working?wR(r):r instanceof ArrayBuffer}Or.isArrayBuffer=d2e;function _R(r){return Od(r)==="[object DataView]"}_R.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&_R(new DataView(new ArrayBuffer(1),0,1));function p2e(r){return typeof DataView>"u"?!1:_R.working?_R(r):r instanceof DataView}Or.isDataView=p2e;var FG=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function zE(r){return Od(r)==="[object SharedArrayBuffer]"}function h2e(r){return typeof FG>"u"?!1:(typeof zE.working>"u"&&(zE.working=zE(new FG)),zE.working?zE(r):r instanceof FG)}Or.isSharedArrayBuffer=h2e;function TBt(r){return Od(r)==="[object AsyncFunction]"}Or.isAsyncFunction=TBt;function EBt(r){return Od(r)==="[object Map Iterator]"}Or.isMapIterator=EBt;function CBt(r){return Od(r)==="[object Set Iterator]"}Or.isSetIterator=CBt;function IBt(r){return Od(r)==="[object Generator]"}Or.isGeneratorObject=IBt;function kBt(r){return Od(r)==="[object WebAssembly.Module]"}Or.isWebAssemblyCompiledModule=kBt;function f2e(r){return KE(r,nBt)}Or.isNumberObject=f2e;function m2e(r){return KE(r,aBt)}Or.isStringObject=m2e;function y2e(r){return KE(r,iBt)}Or.isBooleanObject=y2e;function g2e(r){return o2e&&KE(r,u2e)}Or.isBigIntObject=g2e;function b2e(r){return c2e&&KE(r,l2e)}Or.isSymbolObject=b2e;function ABt(r){return f2e(r)||m2e(r)||y2e(r)||g2e(r)||b2e(r)}Or.isBoxedPrimitive=ABt;function SBt(r){return typeof Uint8Array<"u"&&(d2e(r)||h2e(r))}Or.isAnyArrayBuffer=SBt;["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(r){Object.defineProperty(Or,r,{enumerable:!1,value:function(){throw new Error(r+" is not supported in userland")}})})});var _2e=x((b6n,w2e)=>{d();p();w2e.exports=function(e){return e&&typeof e=="object"&&typeof e.copy=="function"&&typeof e.fill=="function"&&typeof e.readUInt8=="function"}});var SR=x(Lr=>{d();p();var x2e=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},a=0;a=a)return o;switch(o){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch{return"[Circular]"}default:return o}}),s=n[t];t"u")return function(){return Lr.deprecate(r,e).apply(this,arguments)};var t=!1;function n(){if(!t){if(g.throwDeprecation)throw new Error(e);g.traceDeprecation?console.trace(e):console.error(e),t=!0}return r.apply(this,arguments)}return n};var xR={},T2e=/^$/;g.env.NODE_DEBUG&&(TR=g.env.NODE_DEBUG,TR=TR.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),T2e=new RegExp("^"+TR+"$","i"));var TR;Lr.debuglog=function(r){if(r=r.toUpperCase(),!xR[r])if(T2e.test(r)){var e=g.pid;xR[r]=function(){var t=Lr.format.apply(Lr,arguments);console.error("%s %d: %s",r,e,t)}}else xR[r]=function(){};return xR[r]};function Sy(r,e){var t={seen:[],stylize:MBt};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),zG(e)?t.showHidden=e:e&&Lr._extend(t,e),fb(t.showHidden)&&(t.showHidden=!1),fb(t.depth)&&(t.depth=2),fb(t.colors)&&(t.colors=!1),fb(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=RBt),CR(t,r,t.depth)}Lr.inspect=Sy;Sy.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};Sy.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function RBt(r,e){var t=Sy.styles[e];return t?"\x1B["+Sy.colors[t][0]+"m"+r+"\x1B["+Sy.colors[t][1]+"m":r}function MBt(r,e){return r}function NBt(r){var e={};return r.forEach(function(t,n){e[t]=!0}),e}function CR(r,e,t){if(r.customInspect&&e&&ER(e.inspect)&&e.inspect!==Lr.inspect&&!(e.constructor&&e.constructor.prototype===e)){var n=e.inspect(t,r);return AR(n)||(n=CR(r,n,t)),n}var a=BBt(r,e);if(a)return a;var i=Object.keys(e),s=NBt(i);if(r.showHidden&&(i=Object.getOwnPropertyNames(e)),VE(e)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return UG(e);if(i.length===0){if(ER(e)){var o=e.name?": "+e.name:"";return r.stylize("[Function"+o+"]","special")}if(GE(e))return r.stylize(RegExp.prototype.toString.call(e),"regexp");if(IR(e))return r.stylize(Date.prototype.toString.call(e),"date");if(VE(e))return UG(e)}var c="",u=!1,l=["{","}"];if(E2e(e)&&(u=!0,l=["[","]"]),ER(e)){var h=e.name?": "+e.name:"";c=" [Function"+h+"]"}if(GE(e)&&(c=" "+RegExp.prototype.toString.call(e)),IR(e)&&(c=" "+Date.prototype.toUTCString.call(e)),VE(e)&&(c=" "+UG(e)),i.length===0&&(!u||e.length==0))return l[0]+c+l[1];if(t<0)return GE(e)?r.stylize(RegExp.prototype.toString.call(e),"regexp"):r.stylize("[Object]","special");r.seen.push(e);var f;return u?f=DBt(r,e,t,s,i):f=i.map(function(m){return jG(r,e,t,s,m,u)}),r.seen.pop(),OBt(f,c,l)}function BBt(r,e){if(fb(e))return r.stylize("undefined","undefined");if(AR(e)){var t="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return r.stylize(t,"string")}if(C2e(e))return r.stylize(""+e,"number");if(zG(e))return r.stylize(""+e,"boolean");if(kR(e))return r.stylize("null","null")}function UG(r){return"["+Error.prototype.toString.call(r)+"]"}function DBt(r,e,t,n,a){for(var i=[],s=0,o=e.length;s-1&&(i?o=o.split(` `).map(function(u){return" "+u}).join(` `).slice(2):o=` `+o.split(` `).map(function(u){return" "+u}).join(` -`))):o=r.stylize("[Circular]","special")),ib(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function MNt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` +`))):o=r.stylize("[Circular]","special")),fb(s)){if(i&&a.match(/^\d+$/))return o;s=JSON.stringify(""+a),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.slice(1,-1),s=r.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=r.stylize(s,"string"))}return s+": "+o}function OBt(r,e,t){var n=0,a=r.reduce(function(i,s){return n++,s.indexOf(` `)>=0&&n++,i+s.replace(/\u001b\[\d\d?m/g,"").length+1},0);return a>60?t[0]+(e===""?"":e+` `)+" "+r.join(`, - `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Lr.types=Ave();function Nve(r){return Array.isArray(r)}Lr.isArray=Nve;function yV(r){return typeof r=="boolean"}Lr.isBoolean=yV;function sR(r){return r===null}Lr.isNull=sR;function NNt(r){return r==null}Lr.isNullOrUndefined=NNt;function Bve(r){return typeof r=="number"}Lr.isNumber=Bve;function oR(r){return typeof r=="string"}Lr.isString=oR;function BNt(r){return typeof r=="symbol"}Lr.isSymbol=BNt;function ib(r){return r===void 0}Lr.isUndefined=ib;function TE(r){return T3(r)&&gV(r)==="[object RegExp]"}Lr.isRegExp=TE;Lr.types.isRegExp=TE;function T3(r){return typeof r=="object"&&r!==null}Lr.isObject=T3;function iR(r){return T3(r)&&gV(r)==="[object Date]"}Lr.isDate=iR;Lr.types.isDate=iR;function EE(r){return T3(r)&&(gV(r)==="[object Error]"||r instanceof Error)}Lr.isError=EE;Lr.types.isNativeError=EE;function nR(r){return typeof r=="function"}Lr.isFunction=nR;function DNt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Lr.isPrimitive=DNt;Lr.isBuffer=Pve();function gV(r){return Object.prototype.toString.call(r)}function fV(r){return r<10?"0"+r.toString(10):r.toString(10)}var ONt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function LNt(){var r=new Date,e=[fV(r.getHours()),fV(r.getMinutes()),fV(r.getSeconds())].join(":");return[r.getDate(),ONt[r.getMonth()],e].join(" ")}Lr.log=function(){console.log("%s - %s",LNt(),Lr.format.apply(Lr,arguments))};Lr.inherits=xr();Lr._extend=function(r,e){if(!e||!T3(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function Dve(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var ab=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Lr.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(ab&&e[ab]){var t=e[ab];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,ab,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";d();p();function Ove(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function Lve(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return uR.alloc(0);for(var n=uR.allocUnsafe(t>>>0),a=this.head,i=0;a;)GNt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=uR.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:VNt,value:function(t,n){return bV(this,Lve(Lve({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var wV=_((dTn,jve)=>{"use strict";d();p();function $Nt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(vV,this,r)):g.nextTick(vV,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(lR,t):(t._writableState.errorEmitted=!0,g.nextTick(Hve,t,i)):g.nextTick(Hve,t,i):e?(g.nextTick(lR,t),e(i)):g.nextTick(lR,t)}),this)}function Hve(r,e){vV(r,e),lR(r)}function lR(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function YNt(){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 vV(r,e){r.emit("error",e)}function JNt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}jve.exports={destroy:$Nt,undestroy:YNt,errorOrDestroy:JNt}});var sb=_((fTn,Vve)=>{"use strict";d();p();function QNt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var Kve={};function Dd(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){QNt(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,Kve[r]=a}function zve(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function ZNt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function XNt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function eBt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Dd("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Dd("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&ZNt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(XNt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(zve(e,"type"));else{var i=eBt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(zve(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Dd("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Dd("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Dd("ERR_STREAM_PREMATURE_CLOSE","Premature close");Dd("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Dd("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Dd("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Dd("ERR_STREAM_WRITE_AFTER_END","write after end");Dd("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Dd("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Dd("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Vve.exports.codes=Kve});var xV=_((gTn,Gve)=>{"use strict";d();p();var tBt=sb().codes.ERR_INVALID_OPT_VALUE;function rBt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function nBt(r,e,t,n){var a=rBt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new tBt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}Gve.exports={getHighWaterMark:nBt}});var Yve=_((wTn,$ve)=>{d();p();$ve.exports=aBt;function aBt(r,e){if(_V("noDeprecation"))return r;var t=!1;function n(){if(!t){if(_V("throwDeprecation"))throw new Error(e);_V("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function _V(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var hR=_((TTn,t2e)=>{"use strict";d();p();t2e.exports=ns;function Qve(r){var e=this;this.next=null,this.entry=null,this.finish=function(){RBt(e,r)}}var E3;ns.WritableState=IE;var iBt={deprecate:Yve()},Zve=jK(),pR=ac().Buffer,sBt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function oBt(r){return pR.from(r)}function cBt(r){return pR.isBuffer(r)||r instanceof sBt}var EV=wV(),uBt=xV(),lBt=uBt.getHighWaterMark,xy=sb().codes,dBt=xy.ERR_INVALID_ARG_TYPE,pBt=xy.ERR_METHOD_NOT_IMPLEMENTED,hBt=xy.ERR_MULTIPLE_CALLBACK,fBt=xy.ERR_STREAM_CANNOT_PIPE,mBt=xy.ERR_STREAM_DESTROYED,yBt=xy.ERR_STREAM_NULL_VALUES,gBt=xy.ERR_STREAM_WRITE_AFTER_END,bBt=xy.ERR_UNKNOWN_ENCODING,C3=EV.errorOrDestroy;xr()(ns,Zve);function vBt(){}function IE(r,e,t){E3=E3||_y(),r=r||{},typeof t!="boolean"&&(t=e instanceof E3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=lBt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){IBt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Qve(this)}IE.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(IE.prototype,"buffer",{get:iBt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var dR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(dR=Function.prototype[Symbol.hasInstance],Object.defineProperty(ns,Symbol.hasInstance,{value:function(e){return dR.call(this,e)?!0:this!==ns?!1:e&&e._writableState instanceof IE}})):dR=function(e){return e instanceof this};function ns(r){E3=E3||_y();var e=this instanceof E3;if(!e&&!dR.call(ns,this))return new ns(r);this._writableState=new IE(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),Zve.call(this)}ns.prototype.pipe=function(){C3(this,new fBt)};function wBt(r,e){var t=new gBt;C3(r,t),g.nextTick(e,t)}function xBt(r,e,t,n){var a;return t===null?a=new yBt:typeof t!="string"&&!e.objectMode&&(a=new dBt("chunk",["string","Buffer"],t)),a?(C3(r,a),g.nextTick(n,a),!1):!0}ns.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&cBt(r);return i&&!pR.isBuffer(r)&&(r=oBt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=vBt),n.ending?wBt(this,t):(i||xBt(this,n,r,t))&&(n.pendingcb++,a=TBt(this,n,i,r,e,t)),a};ns.prototype.cork=function(){this._writableState.corked++};ns.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Xve(this,r))};ns.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new bBt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ns.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function _Bt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=pR.from(e,t)),e}Object.defineProperty(ns.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function TBt(r,e,t,n,a,i){if(!t){var s=_Bt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";d();p();var MBt=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};n2e.exports=Ef;var r2e=yR(),IV=hR();xr()(Ef,r2e);for(CV=MBt(IV.prototype),fR=0;fR{"use strict";d();p();var AV=Er().Buffer,a2e=AV.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function DBt(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function OBt(r){var e=DBt(r);if(typeof e!="string"&&(AV.isEncoding===a2e||!a2e(r)))throw new Error("Unknown encoding: "+r);return e||r}i2e.StringDecoder=kE;function kE(r){this.encoding=OBt(r);var e;switch(this.encoding){case"utf16le":this.text=HBt,this.end=jBt,e=4;break;case"utf8":this.fillLast=FBt,e=4;break;case"base64":this.text=zBt,this.end=KBt,e=3;break;default:this.write=VBt,this.end=GBt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=AV.allocUnsafe(e)}kE.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function LBt(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function qBt(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function FBt(r){var e=this.lastTotal-this.lastNeed,t=qBt(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function WBt(r,e){var t=LBt(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function UBt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function HBt(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function jBt(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function zBt(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function KBt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function VBt(r){return r.toString(this.encoding)}function GBt(r){return r&&r.length?this.write(r):""}});var AE=_((MTn,c2e)=>{"use strict";d();p();var s2e=sb().codes.ERR_STREAM_PREMATURE_CLOSE;function $Bt(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";d();p();var bR;function Ty(r,e,t){return e=QBt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function QBt(r){var e=ZBt(r,"string");return typeof e=="symbol"?e:String(e)}function ZBt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var XBt=AE(),Ey=Symbol("lastResolve"),ob=Symbol("lastReject"),SE=Symbol("error"),vR=Symbol("ended"),cb=Symbol("lastPromise"),SV=Symbol("handlePromise"),ub=Symbol("stream");function Cy(r,e){return{value:r,done:e}}function eDt(r){var e=r[Ey];if(e!==null){var t=r[ub].read();t!==null&&(r[cb]=null,r[Ey]=null,r[ob]=null,e(Cy(t,!1)))}}function tDt(r){g.nextTick(eDt,r)}function rDt(r,e){return function(t,n){r.then(function(){if(e[vR]){t(Cy(void 0,!0));return}e[SV](t,n)},n)}}var nDt=Object.getPrototypeOf(function(){}),aDt=Object.setPrototypeOf((bR={get stream(){return this[ub]},next:function(){var e=this,t=this[SE];if(t!==null)return Promise.reject(t);if(this[vR])return Promise.resolve(Cy(void 0,!0));if(this[ub].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[SE]?o(e[SE]):s(Cy(void 0,!0))})});var n=this[cb],a;if(n)a=new Promise(rDt(n,this));else{var i=this[ub].read();if(i!==null)return Promise.resolve(Cy(i,!1));a=new Promise(this[SV])}return this[cb]=a,a}},Ty(bR,Symbol.asyncIterator,function(){return this}),Ty(bR,"return",function(){var e=this;return new Promise(function(t,n){e[ub].destroy(null,function(a){if(a){n(a);return}t(Cy(void 0,!0))})})}),bR),nDt),iDt=function(e){var t,n=Object.create(aDt,(t={},Ty(t,ub,{value:e,writable:!0}),Ty(t,Ey,{value:null,writable:!0}),Ty(t,ob,{value:null,writable:!0}),Ty(t,SE,{value:null,writable:!0}),Ty(t,vR,{value:e._readableState.endEmitted,writable:!0}),Ty(t,SV,{value:function(i,s){var o=n[ub].read();o?(n[cb]=null,n[Ey]=null,n[ob]=null,i(Cy(o,!1))):(n[Ey]=i,n[ob]=s)},writable:!0}),t));return n[cb]=null,XBt(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[ob];i!==null&&(n[cb]=null,n[Ey]=null,n[ob]=null,i(a)),n[SE]=a;return}var s=n[Ey];s!==null&&(n[cb]=null,n[Ey]=null,n[ob]=null,s(Cy(void 0,!0))),n[vR]=!0}),e.on("readable",tDt.bind(null,n)),n};u2e.exports=iDt});var p2e=_((qTn,d2e)=>{d();p();d2e.exports=function(){throw new Error("Readable.from is not available in the browser")}});var yR=_((HTn,_2e)=>{"use strict";d();p();_2e.exports=on;var I3;on.ReadableState=y2e;var UTn=Mu().EventEmitter,m2e=function(e,t){return e.listeners(t).length},RE=jK(),wR=ac().Buffer,sDt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function oDt(r){return wR.from(r)}function cDt(r){return wR.isBuffer(r)||r instanceof sDt}var PV=cR(),Pr;PV&&PV.debuglog?Pr=PV.debuglog("stream"):Pr=function(){};var uDt=Uve(),LV=wV(),lDt=xV(),dDt=lDt.getHighWaterMark,xR=sb().codes,pDt=xR.ERR_INVALID_ARG_TYPE,hDt=xR.ERR_STREAM_PUSH_AFTER_EOF,fDt=xR.ERR_METHOD_NOT_IMPLEMENTED,mDt=xR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,k3,RV,MV;xr()(on,RE);var PE=LV.errorOrDestroy,NV=["error","close","destroy","pause","resume"];function yDt(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function y2e(r,e,t){I3=I3||_y(),r=r||{},typeof t!="boolean"&&(t=e instanceof I3),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=dDt(this,r,"readableHighWaterMark",t),this.buffer=new uDt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(k3||(k3=gR().StringDecoder),this.decoder=new k3(r.encoding),this.encoding=r.encoding)}function on(r){if(I3=I3||_y(),!(this instanceof on))return new on(r);var e=this instanceof I3;this._readableState=new y2e(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),RE.call(this)}Object.defineProperty(on.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});on.prototype.destroy=LV.destroy;on.prototype._undestroy=LV.undestroy;on.prototype._destroy=function(r,e){e(r)};on.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=wR.from(r,e),e=""),n=!0),g2e(this,r,e,!1,n)};on.prototype.unshift=function(r){return g2e(this,r,null,!0,!1)};function g2e(r,e,t,n,a){Pr("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,vDt(r,i);else{var s;if(a||(s=gDt(i,e)),s)PE(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==wR.prototype&&(e=oDt(e)),n)i.endEmitted?PE(r,new mDt):BV(r,i,e,!0);else if(i.ended)PE(r,new hDt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?BV(r,i,e,!1):OV(r,i)):BV(r,i,e,!1)}else n||(i.reading=!1,OV(r,i))}return!i.ended&&(i.length=h2e?r=h2e:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function f2e(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=bDt(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}on.prototype.read=function(r){Pr("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?DV(this):_R(this),null;if(r=f2e(r,e),r===0&&e.ended)return e.length===0&&DV(this),null;var n=e.needReadable;Pr("need readable",n),(e.length===0||e.length-r0?a=w2e(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&DV(this)),a!==null&&this.emit("data",a),a};function vDt(r,e){if(Pr("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?_R(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,b2e(r)))}}function _R(r){var e=r._readableState;Pr("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pr("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(b2e,r))}function b2e(r){var e=r._readableState;Pr("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,qV(r)}function OV(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(wDt,r,e))}function wDt(r,e){for(;!e.reading&&!e.ended&&(e.length1&&x2e(n.pipes,r)!==-1)&&!u&&(Pr("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function f(I){Pr("onerror",I),E(),r.removeListener("error",f),m2e(r,"error")===0&&PE(r,I)}yDt(r,"error",f);function m(){r.removeListener("finish",y),E()}r.once("close",m);function y(){Pr("onfinish"),r.removeListener("close",m),E()}r.once("finish",y);function E(){Pr("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Pr("pipe resume"),t.resume()),r};function xDt(r){return function(){var t=r._readableState;Pr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&m2e(r,"data")&&(t.flowing=!0,qV(r))}}on.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Pr("on readable",n.length,n.reading),n.length?_R(this):n.reading||g.nextTick(_Dt,this)),t};on.prototype.addListener=on.prototype.on;on.prototype.removeListener=function(r,e){var t=RE.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(v2e,this),t};on.prototype.removeAllListeners=function(r){var e=RE.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(v2e,this),e};function v2e(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function _Dt(r){Pr("readable nexttick read 0"),r.read(0)}on.prototype.resume=function(){var r=this._readableState;return r.flowing||(Pr("resume"),r.flowing=!r.readableListening,TDt(this,r)),r.paused=!1,this};function TDt(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick(EDt,r,e))}function EDt(r,e){Pr("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),qV(r),e.flowing&&!e.reading&&r.read(0)}on.prototype.pause=function(){return Pr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pr("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function qV(r){var e=r._readableState;for(Pr("flow",e.flowing);e.flowing&&r.read()!==null;);}on.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Pr("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(Pr("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function DV(r){var e=r._readableState;Pr("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(CDt,e,r))}function CDt(r,e){if(Pr("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(on.from=function(r,e){return MV===void 0&&(MV=p2e()),MV(on,r,e)});function x2e(r,e){for(var t=0,n=r.length;t{"use strict";d();p();E2e.exports=Gm;var TR=sb().codes,IDt=TR.ERR_METHOD_NOT_IMPLEMENTED,kDt=TR.ERR_MULTIPLE_CALLBACK,ADt=TR.ERR_TRANSFORM_ALREADY_TRANSFORMING,SDt=TR.ERR_TRANSFORM_WITH_LENGTH_0,ER=_y();xr()(Gm,ER);function PDt(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new kDt);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";d();p();I2e.exports=ME;var C2e=CR();xr()(ME,C2e);function ME(r){if(!(this instanceof ME))return new ME(r);C2e.call(this,r)}ME.prototype._transform=function(r,e,t){t(null,r)}});var UV=_((QTn,P2e)=>{"use strict";d();p();var WV;function MDt(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var S2e=sb().codes,NDt=S2e.ERR_MISSING_ARGS,BDt=S2e.ERR_STREAM_DESTROYED;function k2e(r){if(r)throw r}function DDt(r){return r.setHeader&&typeof r.abort=="function"}function ODt(r,e,t,n){n=MDt(n);var a=!1;r.on("close",function(){a=!0}),WV===void 0&&(WV=AE()),WV(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,DDt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new BDt("pipe"))}}}function A2e(r){r()}function LDt(r,e){return r.pipe(e)}function qDt(r){return!r.length||typeof r[r.length-1]!="function"?k2e:r.pop()}function FDt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return ODt(s,c,u,function(l){a||(a=l),l&&i.forEach(A2e),!c&&(i.forEach(A2e),n(a))})});return e.reduce(LDt)}P2e.exports=FDt});var NE=_((Od,R2e)=>{d();p();Od=R2e.exports=yR();Od.Stream=Od;Od.Readable=Od;Od.Writable=hR();Od.Duplex=_y();Od.Transform=CR();Od.PassThrough=FV();Od.finished=AE();Od.pipeline=UV()});var HV=_((r6n,N2e)=>{"use strict";d();p();var IR=Er().Buffer,M2e=NE().Transform,WDt=xr();function UDt(r,e){if(!IR.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Iy(r){M2e.call(this),this._block=IR.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}WDt(Iy,M2e);Iy.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Iy.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Iy.prototype.update=function(r,e){if(UDt(r,"Data"),this._finalized)throw new Error("Digest already called");IR.isBuffer(r)||(r=IR.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Iy.prototype._update=function(){throw new Error("_update is not implemented")};Iy.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Iy.prototype._digest=function(){throw new Error("_digest is not implemented")};N2e.exports=Iy});var SR=_((i6n,D2e)=>{"use strict";d();p();var HDt=xr(),B2e=HV(),jDt=Er().Buffer,zDt=new Array(16);function kR(){B2e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}HDt(kR,B2e);kR.prototype._update=function(){for(var r=zDt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=Hc(t,n,a,i,r[0],3614090360,7),i=Hc(i,t,n,a,r[1],3905402710,12),a=Hc(a,i,t,n,r[2],606105819,17),n=Hc(n,a,i,t,r[3],3250441966,22),t=Hc(t,n,a,i,r[4],4118548399,7),i=Hc(i,t,n,a,r[5],1200080426,12),a=Hc(a,i,t,n,r[6],2821735955,17),n=Hc(n,a,i,t,r[7],4249261313,22),t=Hc(t,n,a,i,r[8],1770035416,7),i=Hc(i,t,n,a,r[9],2336552879,12),a=Hc(a,i,t,n,r[10],4294925233,17),n=Hc(n,a,i,t,r[11],2304563134,22),t=Hc(t,n,a,i,r[12],1804603682,7),i=Hc(i,t,n,a,r[13],4254626195,12),a=Hc(a,i,t,n,r[14],2792965006,17),n=Hc(n,a,i,t,r[15],1236535329,22),t=jc(t,n,a,i,r[1],4129170786,5),i=jc(i,t,n,a,r[6],3225465664,9),a=jc(a,i,t,n,r[11],643717713,14),n=jc(n,a,i,t,r[0],3921069994,20),t=jc(t,n,a,i,r[5],3593408605,5),i=jc(i,t,n,a,r[10],38016083,9),a=jc(a,i,t,n,r[15],3634488961,14),n=jc(n,a,i,t,r[4],3889429448,20),t=jc(t,n,a,i,r[9],568446438,5),i=jc(i,t,n,a,r[14],3275163606,9),a=jc(a,i,t,n,r[3],4107603335,14),n=jc(n,a,i,t,r[8],1163531501,20),t=jc(t,n,a,i,r[13],2850285829,5),i=jc(i,t,n,a,r[2],4243563512,9),a=jc(a,i,t,n,r[7],1735328473,14),n=jc(n,a,i,t,r[12],2368359562,20),t=zc(t,n,a,i,r[5],4294588738,4),i=zc(i,t,n,a,r[8],2272392833,11),a=zc(a,i,t,n,r[11],1839030562,16),n=zc(n,a,i,t,r[14],4259657740,23),t=zc(t,n,a,i,r[1],2763975236,4),i=zc(i,t,n,a,r[4],1272893353,11),a=zc(a,i,t,n,r[7],4139469664,16),n=zc(n,a,i,t,r[10],3200236656,23),t=zc(t,n,a,i,r[13],681279174,4),i=zc(i,t,n,a,r[0],3936430074,11),a=zc(a,i,t,n,r[3],3572445317,16),n=zc(n,a,i,t,r[6],76029189,23),t=zc(t,n,a,i,r[9],3654602809,4),i=zc(i,t,n,a,r[12],3873151461,11),a=zc(a,i,t,n,r[15],530742520,16),n=zc(n,a,i,t,r[2],3299628645,23),t=Kc(t,n,a,i,r[0],4096336452,6),i=Kc(i,t,n,a,r[7],1126891415,10),a=Kc(a,i,t,n,r[14],2878612391,15),n=Kc(n,a,i,t,r[5],4237533241,21),t=Kc(t,n,a,i,r[12],1700485571,6),i=Kc(i,t,n,a,r[3],2399980690,10),a=Kc(a,i,t,n,r[10],4293915773,15),n=Kc(n,a,i,t,r[1],2240044497,21),t=Kc(t,n,a,i,r[8],1873313359,6),i=Kc(i,t,n,a,r[15],4264355552,10),a=Kc(a,i,t,n,r[6],2734768916,15),n=Kc(n,a,i,t,r[13],1309151649,21),t=Kc(t,n,a,i,r[4],4149444226,6),i=Kc(i,t,n,a,r[11],3174756917,10),a=Kc(a,i,t,n,r[2],718787259,15),n=Kc(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};kR.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=jDt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function AR(r,e){return r<>>32-e}function Hc(r,e,t,n,a,i,s){return AR(r+(e&t|~e&n)+a+i|0,s)+e|0}function jc(r,e,t,n,a,i,s){return AR(r+(e&n|t&~n)+a+i|0,s)+e|0}function zc(r,e,t,n,a,i,s){return AR(r+(e^t^n)+a+i|0,s)+e|0}function Kc(r,e,t,n,a,i,s){return AR(r+(t^(e|~n))+a+i|0,s)+e|0}D2e.exports=kR});var RR=_((c6n,H2e)=>{"use strict";d();p();var jV=ac().Buffer,KDt=xr(),U2e=HV(),VDt=new Array(16),BE=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],DE=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],OE=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],LE=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],qE=[0,1518500249,1859775393,2400959708,2840853838],FE=[1352829926,1548603684,1836072691,2053994217,0];function PR(){U2e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}KDt(PR,U2e);PR.prototype._update=function(){for(var r=VDt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,h=this._e|0,f=0;f<80;f+=1){var m,y;f<16?(m=O2e(t,n,a,i,s,r[BE[f]],qE[0],OE[f]),y=W2e(o,c,u,l,h,r[DE[f]],FE[0],LE[f])):f<32?(m=L2e(t,n,a,i,s,r[BE[f]],qE[1],OE[f]),y=F2e(o,c,u,l,h,r[DE[f]],FE[1],LE[f])):f<48?(m=q2e(t,n,a,i,s,r[BE[f]],qE[2],OE[f]),y=q2e(o,c,u,l,h,r[DE[f]],FE[2],LE[f])):f<64?(m=F2e(t,n,a,i,s,r[BE[f]],qE[3],OE[f]),y=L2e(o,c,u,l,h,r[DE[f]],FE[3],LE[f])):(m=W2e(t,n,a,i,s,r[BE[f]],qE[4],OE[f]),y=O2e(o,c,u,l,h,r[DE[f]],FE[4],LE[f])),t=s,s=i,i=lb(a,10),a=n,n=m,o=h,h=l,l=lb(u,10),u=c,c=y}var E=this._b+a+l|0;this._b=this._c+i+h|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=E};PR.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=jV.alloc?jV.alloc(20):new jV(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function lb(r,e){return r<>>32-e}function O2e(r,e,t,n,a,i,s,o){return lb(r+(e^t^n)+i+s|0,o)+a|0}function L2e(r,e,t,n,a,i,s,o){return lb(r+(e&t|~e&n)+i+s|0,o)+a|0}function q2e(r,e,t,n,a,i,s,o){return lb(r+((e|~t)^n)+i+s|0,o)+a|0}function F2e(r,e,t,n,a,i,s,o){return lb(r+(e&n|t&~n)+i+s|0,o)+a|0}function W2e(r,e,t,n,a,i,s,o){return lb(r+(e^(t|~n))+i+s|0,o)+a|0}H2e.exports=PR});var db=_((d6n,z2e)=>{d();p();var j2e=Er().Buffer;function MR(r,e){this._block=j2e.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}MR.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=j2e.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};MR.prototype._update=function(){throw new Error("_update must be implemented by subclass")};z2e.exports=MR});var G2e=_((f6n,V2e)=>{d();p();var GDt=xr(),K2e=db(),$Dt=Er().Buffer,YDt=[1518500249,1859775393,-1894007588,-899497514],JDt=new Array(80);function WE(){this.init(),this._w=JDt,K2e.call(this,64,56)}GDt(WE,K2e);WE.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function QDt(r){return r<<5|r>>>27}function ZDt(r){return r<<30|r>>>2}function XDt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}WE.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=QDt(t)+XDt(u,n,a,i)+s+e[c]+YDt[u]|0;s=i,i=a,a=ZDt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};WE.prototype._hash=function(){var r=$Dt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};V2e.exports=WE});var J2e=_((g6n,Y2e)=>{d();p();var eOt=xr(),$2e=db(),tOt=Er().Buffer,rOt=[1518500249,1859775393,-1894007588,-899497514],nOt=new Array(80);function UE(){this.init(),this._w=nOt,$2e.call(this,64,56)}eOt(UE,$2e);UE.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function aOt(r){return r<<1|r>>>31}function iOt(r){return r<<5|r>>>27}function sOt(r){return r<<30|r>>>2}function oOt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}UE.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=aOt(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=iOt(t)+oOt(u,n,a,i)+s+e[c]+rOt[u]|0;s=i,i=a,a=sOt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};UE.prototype._hash=function(){var r=tOt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Y2e.exports=UE});var zV=_((w6n,Z2e)=>{d();p();var cOt=xr(),Q2e=db(),uOt=Er().Buffer,lOt=[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],dOt=new Array(64);function HE(){this.init(),this._w=dOt,Q2e.call(this,64,56)}cOt(HE,Q2e);HE.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 pOt(r,e,t){return t^r&(e^t)}function hOt(r,e,t){return r&e|t&(r|e)}function fOt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function mOt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function yOt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function gOt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}HE.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=gOt(e[l-2])+e[l-7]+yOt(e[l-15])+e[l-16]|0;for(var h=0;h<64;++h){var f=u+mOt(s)+pOt(s,o,c)+lOt[h]+e[h]|0,m=fOt(t)+hOt(t,n,a)|0;u=c,c=o,o=s,s=i+f|0,i=a,a=n,n=t,t=f+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};HE.prototype._hash=function(){var r=uOt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};Z2e.exports=HE});var ewe=_((T6n,X2e)=>{d();p();var bOt=xr(),vOt=zV(),wOt=db(),xOt=Er().Buffer,_Ot=new Array(64);function NR(){this.init(),this._w=_Ot,wOt.call(this,64,56)}bOt(NR,vOt);NR.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};NR.prototype._hash=function(){var r=xOt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};X2e.exports=NR});var KV=_((I6n,owe)=>{d();p();var TOt=xr(),swe=db(),EOt=Er().Buffer,twe=[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],COt=new Array(160);function jE(){this.init(),this._w=COt,swe.call(this,128,112)}TOt(jE,swe);jE.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 rwe(r,e,t){return t^r&(e^t)}function nwe(r,e,t){return r&e|t&(r|e)}function awe(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function iwe(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function IOt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function kOt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function AOt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function SOt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function Ro(r,e){return r>>>0>>0?1:0}jE.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,h=this._bl|0,f=this._cl|0,m=this._dl|0,y=this._el|0,E=this._fl|0,I=this._gl|0,S=this._hl|0,L=0;L<32;L+=2)e[L]=r.readInt32BE(L*4),e[L+1]=r.readInt32BE(L*4+4);for(;L<160;L+=2){var F=e[L-30],W=e[L-15*2+1],G=IOt(F,W),K=kOt(W,F);F=e[L-2*2],W=e[L-2*2+1];var H=AOt(F,W),V=SOt(W,F),J=e[L-7*2],q=e[L-7*2+1],T=e[L-16*2],P=e[L-16*2+1],A=K+q|0,v=G+J+Ro(A,K)|0;A=A+V|0,v=v+H+Ro(A,V)|0,A=A+P|0,v=v+T+Ro(A,P)|0,e[L]=v,e[L+1]=A}for(var k=0;k<160;k+=2){v=e[k],A=e[k+1];var O=nwe(t,n,a),D=nwe(l,h,f),B=awe(t,l),x=awe(l,t),N=iwe(s,y),U=iwe(y,s),C=twe[k],z=twe[k+1],ee=rwe(s,o,c),j=rwe(y,E,I),X=S+U|0,ie=u+N+Ro(X,S)|0;X=X+j|0,ie=ie+ee+Ro(X,j)|0,X=X+z|0,ie=ie+C+Ro(X,z)|0,X=X+A|0,ie=ie+v+Ro(X,A)|0;var ue=x+D|0,he=B+O+Ro(ue,x)|0;u=c,S=I,c=o,I=E,o=s,E=y,y=m+X|0,s=i+ie+Ro(y,m)|0,i=a,m=f,a=n,f=h,n=t,h=l,l=X+ue|0,t=ie+he+Ro(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+E|0,this._gl=this._gl+I|0,this._hl=this._hl+S|0,this._ah=this._ah+t+Ro(this._al,l)|0,this._bh=this._bh+n+Ro(this._bl,h)|0,this._ch=this._ch+a+Ro(this._cl,f)|0,this._dh=this._dh+i+Ro(this._dl,m)|0,this._eh=this._eh+s+Ro(this._el,y)|0,this._fh=this._fh+o+Ro(this._fl,E)|0,this._gh=this._gh+c+Ro(this._gl,I)|0,this._hh=this._hh+u+Ro(this._hl,S)|0};jE.prototype._hash=function(){var r=EOt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};owe.exports=jE});var uwe=_((S6n,cwe)=>{d();p();var POt=xr(),ROt=KV(),MOt=db(),NOt=Er().Buffer,BOt=new Array(160);function BR(){this.init(),this._w=BOt,MOt.call(this,128,112)}POt(BR,ROt);BR.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};BR.prototype._hash=function(){var r=NOt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};cwe.exports=BR});var zE=_(($m,lwe)=>{d();p();var $m=lwe.exports=function(e){e=e.toLowerCase();var t=$m[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};$m.sha=G2e();$m.sha1=J2e();$m.sha224=ewe();$m.sha256=zV();$m.sha384=uwe();$m.sha512=KV()});var pwe=_((B6n,dwe)=>{d();p();dwe.exports=Ld;var VV=Mu().EventEmitter,DOt=xr();DOt(Ld,VV);Ld.Readable=yR();Ld.Writable=hR();Ld.Duplex=_y();Ld.Transform=CR();Ld.PassThrough=FV();Ld.finished=AE();Ld.pipeline=UV();Ld.Stream=Ld;function Ld(){VV.call(this)}Ld.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),VV.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var Ym=_((L6n,mwe)=>{d();p();var hwe=Er().Buffer,fwe=pwe().Transform,OOt=gR().StringDecoder,LOt=xr();function nh(r){fwe.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}LOt(nh,fwe);nh.prototype.update=function(r,e,t){typeof r=="string"&&(r=hwe.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};nh.prototype.setAutoPadding=function(){};nh.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};nh.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};nh.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};nh.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};nh.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};nh.prototype._finalOrDigest=function(r){var e=this.__final()||hwe.alloc(0);return r&&(e=this._toString(e,r,!0)),e};nh.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new OOt(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};mwe.exports=nh});var A3=_((W6n,gwe)=>{"use strict";d();p();var qOt=xr(),FOt=SR(),WOt=RR(),UOt=zE(),ywe=Ym();function DR(r){ywe.call(this,"digest"),this._hash=r}qOt(DR,ywe);DR.prototype._update=function(r){this._hash.update(r)};DR.prototype._final=function(){return this._hash.digest()};gwe.exports=function(e){return e=e.toLowerCase(),e==="md5"?new FOt:e==="rmd160"||e==="ripemd160"?new WOt:new DR(UOt(e))}});var wwe=_((j6n,vwe)=>{"use strict";d();p();var HOt=xr(),pb=Er().Buffer,bwe=Ym(),jOt=pb.alloc(128),S3=64;function OR(r,e){bwe.call(this,"digest"),typeof e=="string"&&(e=pb.from(e)),this._alg=r,this._key=e,e.length>S3?e=r(e):e.length{d();p();var zOt=SR();xwe.exports=function(r){return new zOt().update(r).digest()}});var JV=_((Y6n,Twe)=>{"use strict";d();p();var KOt=xr(),VOt=wwe(),_we=Ym(),KE=Er().Buffer,GOt=GV(),$V=RR(),YV=zE(),$Ot=KE.alloc(128);function VE(r,e){_we.call(this,"digest"),typeof e=="string"&&(e=KE.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new $V:YV(r);e=n.update(e).digest()}else e.length{YOt.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var Cwe=_((X6n,Ewe)=>{d();p();Ewe.exports=QV()});var ZV=_((rEn,Iwe)=>{d();p();var JOt=Math.pow(2,30)-1;Iwe.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>JOt||e!==e)throw new TypeError("Bad key length")}});var XV=_((iEn,Awe)=>{d();p();var LR;global.process&&global.process.browser?LR="utf-8":global.process&&global.process.version?(kwe=parseInt(g.version.split(".")[0].slice(1),10),LR=kwe>=6?"utf-8":"binary"):LR="utf-8";var kwe;Awe.exports=LR});var tG=_((cEn,Swe)=>{d();p();var eG=Er().Buffer;Swe.exports=function(r,e,t){if(eG.isBuffer(r))return r;if(typeof r=="string")return eG.from(r,e);if(ArrayBuffer.isView(r))return eG.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var rG=_((dEn,Nwe)=>{d();p();var QOt=GV(),ZOt=RR(),XOt=zE(),hb=Er().Buffer,eLt=ZV(),Pwe=XV(),Rwe=tG(),tLt=hb.alloc(128),qR={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Mwe(r,e,t){var n=rLt(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{d();p();var Lwe=Er().Buffer,aLt=ZV(),Bwe=XV(),Dwe=rG(),Owe=tG(),FR,GE=global.crypto&&global.crypto.subtle,iLt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},nG=[];function sLt(r){if(global.process&&!global.process.browser||!GE||!GE.importKey||!GE.deriveBits)return Promise.resolve(!1);if(nG[r]!==void 0)return nG[r];FR=FR||Lwe.alloc(8);var e=qwe(FR,FR,10,128,r).then(function(){return!0}).catch(function(){return!1});return nG[r]=e,e}var fb;function aG(){return fb||(global.process&&global.process.nextTick?fb=global.process.nextTick:global.queueMicrotask?fb=global.queueMicrotask:global.setImmediate?fb=global.setImmediate:fb=global.setTimeout,fb)}function qwe(r,e,t,n,a){return GE.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return GE.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return Lwe.from(i)})}function oLt(r,e){r.then(function(t){aG()(function(){e(null,t)})},function(t){aG()(function(){e(t)})})}Fwe.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=iLt[a.toLowerCase()];if(!s||typeof global.Promise!="function"){aG()(function(){var o;try{o=Dwe(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(aLt(t,n),r=Owe(r,Bwe,"Password"),e=Owe(e,Bwe,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");oLt(sLt(s).then(function(o){return o?qwe(r,e,t,n,s):Dwe(r,e,t,n,a)}),i)}});var sG=_(iG=>{d();p();iG.pbkdf2=Wwe();iG.pbkdf2Sync=rG()});var oG=_(qd=>{"use strict";d();p();qd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};qd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};qd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};qd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.r28shl=function(e,t){return e<>>28-t};var WR=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];qd.pc2=function(e,t,n,a){for(var i=0,s=0,o=WR.length>>>1,c=0;c>>WR[c]&1;for(var c=o;c>>WR[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};qd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var Uwe=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];qd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=Uwe[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=Uwe[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var Hwe=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];qd.permute=function(e){for(var t=0,n=0;n>>Hwe[n]&1;return t>>>0};qd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";d();p();var cLt=zl();function Fd(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}jwe.exports=Fd;Fd.prototype._init=function(){};Fd.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Fd.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Fd.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Fd.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";d();p();var zwe=zl(),uLt=xr(),oo=oG(),Kwe=UR();function lLt(){this.tmp=new Array(2),this.keys=null}function Cf(r){Kwe.call(this,r);var e=new lLt;this._desState=e,this.deriveKeys(e,r.key)}uLt(Cf,Kwe);Vwe.exports=Cf;Cf.create=function(e){return new Cf(e)};var dLt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];Cf.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),zwe.equal(t.length,this.blockSize,"Invalid key length");var n=oo.readUInt32BE(t,0),a=oo.readUInt32BE(t,4);oo.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=oo.r28shl(n,s),a=oo.r28shl(a,s),oo.pc2(n,a,e.keys,i)}};Cf.prototype._update=function(e,t,n,a){var i=this._desState,s=oo.readUInt32BE(e,t),o=oo.readUInt32BE(e,t+4);oo.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],oo.writeUInt32BE(n,s,a),oo.writeUInt32BE(n,o,a+4)};Cf.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}oo.rip(o,s,a,i)};Cf.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];oo.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=oo.substitute(u,l),f=oo.permute(h),m=s;s=(o^f)>>>0,o=m}oo.rip(s,o,a,i)}});var $we=_(Gwe=>{"use strict";d();p();var pLt=zl(),hLt=xr(),HR={};function fLt(r){pLt.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";d();p();var yLt=zl(),gLt=xr(),Ywe=UR(),ky=cG();function bLt(r,e){yLt.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[ky.create({type:"encrypt",key:t}),ky.create({type:"decrypt",key:n}),ky.create({type:"encrypt",key:a})]:this.ciphers=[ky.create({type:"decrypt",key:a}),ky.create({type:"encrypt",key:n}),ky.create({type:"decrypt",key:t})]}function mb(r){Ywe.call(this,r);var e=new bLt(this.type,this.options.key);this._edeState=e}gLt(mb,Ywe);Jwe.exports=mb;mb.create=function(e){return new mb(e)};mb.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};mb.prototype._pad=ky.prototype._pad;mb.prototype._unpad=ky.prototype._unpad});var Zwe=_(P3=>{"use strict";d();p();P3.utils=oG();P3.Cipher=UR();P3.DES=cG();P3.CBC=$we();P3.EDE=Qwe()});var t3e=_((qEn,e3e)=>{d();p();var Xwe=Ym(),Jm=Zwe(),vLt=xr(),yb=Er().Buffer,$E={"des-ede3-cbc":Jm.CBC.instantiate(Jm.EDE),"des-ede3":Jm.EDE,"des-ede-cbc":Jm.CBC.instantiate(Jm.EDE),"des-ede":Jm.EDE,"des-cbc":Jm.CBC.instantiate(Jm.DES),"des-ecb":Jm.DES};$E.des=$E["des-cbc"];$E.des3=$E["des-ede3-cbc"];e3e.exports=jR;vLt(jR,Xwe);function jR(r){Xwe.call(this);var e=r.mode.toLowerCase(),t=$E[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;yb.isBuffer(a)||(a=yb.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=yb.concat([a,a.slice(0,8)]));var i=r.iv;yb.isBuffer(i)||(i=yb.from(i)),this._des=t.create({key:a,iv:i,type:n})}jR.prototype._update=function(r){return yb.from(this._des.update(r))};jR.prototype._final=function(){return yb.from(this._des.final())}});var r3e=_(uG=>{d();p();uG.encrypt=function(r,e){return r._cipher.encryptBlock(e)};uG.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var R3=_((zEn,n3e)=>{d();p();n3e.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new b.Buffer(n),i=0;i{d();p();var a3e=R3();lG.encrypt=function(r,e){var t=a3e(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};lG.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return a3e(n,t)}});var c3e=_(o3e=>{d();p();var YE=Er().Buffer,wLt=R3();function s3e(r,e,t){var n=e.length,a=wLt(e,r._cache);return r._cache=r._cache.slice(n),r._prev=YE.concat([r._prev,t?e:a]),a}o3e.encrypt=function(r,e,t){for(var n=YE.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=YE.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=YE.concat([n,s3e(r,e.slice(0,a),t)]),e=e.slice(a);else{n=YE.concat([n,s3e(r,e,t)]);break}return n}});var l3e=_(u3e=>{d();p();var dG=Er().Buffer;function xLt(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=dG.concat([r._prev.slice(1),dG.from([t?e:a])]),a}u3e.encrypt=function(r,e,t){for(var n=e.length,a=dG.allocUnsafe(n),i=-1;++i{d();p();var zR=Er().Buffer;function _Lt(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=TLt(r._prev,t?o:c);return s}function TLt(r,e){var t=r.length,n=-1,a=zR.allocUnsafe(r.length);for(r=zR.concat([r,zR.from([e])]);++n>7;return a}d3e.encrypt=function(r,e,t){for(var n=e.length,a=zR.allocUnsafe(n),i=-1;++i{d();p();var ELt=R3();function CLt(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}h3e.encrypt=function(r,e){for(;r._cache.length{d();p();function ILt(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}m3e.exports=ILt});var fG=_(g3e=>{d();p();var kLt=R3(),y3e=Er().Buffer,ALt=pG();function SLt(r){var e=r._cipher.encryptBlockRaw(r._prev);return ALt(r._prev),e}var hG=16;g3e.encrypt=function(r,e){var t=Math.ceil(e.length/hG),n=r._cache.length;r._cache=y3e.concat([r._cache,y3e.allocUnsafe(t*hG)]);for(var a=0;a{PLt.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var VR=_((mCn,b3e)=>{d();p();var RLt={ECB:r3e(),CBC:i3e(),CFB:c3e(),CFB8:l3e(),CFB1:p3e(),OFB:f3e(),CTR:fG(),GCM:fG()},KR=mG();for(yG in KR)KR[yG].module=RLt[KR[yG].mode];var yG;b3e.exports=KR});var JE=_((bCn,w3e)=>{d();p();var GR=Er().Buffer;function bG(r){GR.isBuffer(r)||(r=GR.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[h>>>8&255]^c[f&255]^e[S++],y=i[l>>>24]^s[h>>>16&255]^o[f>>>8&255]^c[u&255]^e[S++],E=i[h>>>24]^s[f>>>16&255]^o[u>>>8&255]^c[l&255]^e[S++],I=i[f>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[h&255]^e[S++],u=m,l=y,h=E,f=I;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[f&255])^e[S++],y=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[f>>>8&255]<<8|n[u&255])^e[S++],E=(n[h>>>24]<<24|n[f>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[S++],I=(n[f>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[h&255])^e[S++],m=m>>>0,y=y>>>0,E=E>>>0,I=I>>>0,[m,y,E,I]}var MLt=[0,1,2,4,8,16,32,64,128,27,54],Fs=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],h=r[l],f=r[h],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=f*16843009^h*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[f^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Wd(r){this._key=bG(r),this._reset()}Wd.blockSize=4*4;Wd.keySize=256/8;Wd.prototype.blockSize=Wd.blockSize;Wd.prototype.keySize=Wd.keySize;Wd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255],s^=MLt[i/e|0]<<24):e>6&&i%e===4&&(s=Fs.SBOX[s>>>24]<<24|Fs.SBOX[s>>>16&255]<<16|Fs.SBOX[s>>>8&255]<<8|Fs.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^Fs.INV_SUB_MIX[1][Fs.SBOX[l>>>16&255]]^Fs.INV_SUB_MIX[2][Fs.SBOX[l>>>8&255]]^Fs.INV_SUB_MIX[3][Fs.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Wd.prototype.encryptBlockRaw=function(r){return r=bG(r),v3e(r,this._keySchedule,Fs.SUB_MIX,Fs.SBOX,this._nRounds)};Wd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=GR.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Wd.prototype.decryptBlock=function(r){r=bG(r);var e=r[1];r[1]=r[3],r[3]=e;var t=v3e(r,this._invKeySchedule,Fs.INV_SUB_MIX,Fs.INV_SBOX,this._nRounds),n=GR.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Wd.prototype.scrub=function(){gG(this._keySchedule),gG(this._invKeySchedule),gG(this._key)};w3e.exports.AES=Wd});var T3e=_((xCn,_3e)=>{d();p();var M3=Er().Buffer,NLt=M3.alloc(16,0);function BLt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function x3e(r){var e=M3.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function QE(r){this.h=r,this.state=M3.alloc(16,0),this.cache=M3.allocUnsafe(0)}QE.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=x3e(e)};QE.prototype.update=function(r){this.cache=M3.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};QE.prototype.final=function(r,e){return this.cache.length&&this.ghash(M3.concat([this.cache,NLt],16)),this.ghash(x3e([0,r,0,e])),this.state};_3e.exports=QE});var vG=_((ECn,I3e)=>{d();p();var DLt=JE(),ol=Er().Buffer,E3e=Ym(),OLt=xr(),C3e=T3e(),LLt=R3(),qLt=pG();function FLt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{d();p();var ULt=JE(),wG=Er().Buffer,k3e=Ym(),HLt=xr();function $R(r,e,t,n){k3e.call(this),this._cipher=new ULt.AES(e),this._prev=wG.from(t),this._cache=wG.allocUnsafe(0),this._secCache=wG.allocUnsafe(0),this._decrypt=n,this._mode=r}HLt($R,k3e);$R.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};$R.prototype._final=function(){this._cipher.scrub()};A3e.exports=$R});var ZE=_((PCn,S3e)=>{d();p();var bb=Er().Buffer,jLt=SR();function zLt(r,e,t,n){if(bb.isBuffer(r)||(r=bb.from(r,"binary")),e&&(bb.isBuffer(e)||(e=bb.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=bb.alloc(a),s=bb.alloc(n||0),o=bb.alloc(0);a>0||n>0;){var c=new jLt;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var h=s.length-n,f=Math.min(n,o.length-u);o.copy(s,h,u,u+f),n-=f}}return o.fill(0),{key:i,iv:s}}S3e.exports=zLt});var N3e=_(_G=>{d();p();var P3e=VR(),KLt=vG(),Qm=Er().Buffer,VLt=xG(),R3e=Ym(),GLt=JE(),$Lt=ZE(),YLt=xr();function XE(r,e,t){R3e.call(this),this._cache=new YR,this._cipher=new GLt.AES(e),this._prev=Qm.from(t),this._mode=r,this._autopadding=!0}YLt(XE,R3e);XE.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return Qm.concat(n)};var JLt=Qm.alloc(16,16);XE.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(JLt))throw this._cipher.scrub(),new Error("data not multiple of block length")};XE.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function YR(){this.cache=Qm.allocUnsafe(0)}YR.prototype.add=function(r){this.cache=Qm.concat([this.cache,r])};YR.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};YR.prototype.flush=function(){for(var r=16-this.cache.length,e=Qm.allocUnsafe(r),t=-1;++t{d();p();var ZLt=vG(),N3=Er().Buffer,B3e=VR(),XLt=xG(),D3e=Ym(),eqt=JE(),tqt=ZE(),rqt=xr();function eC(r,e,t){D3e.call(this),this._cache=new JR,this._last=void 0,this._cipher=new eqt.AES(e),this._prev=N3.from(t),this._mode=r,this._autopadding=!0}rqt(eC,D3e);eC.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return N3.concat(n)};eC.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return nqt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};eC.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function JR(){this.cache=N3.allocUnsafe(0)}JR.prototype.add=function(r){this.cache=N3.concat([this.cache,r])};JR.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};JR.prototype.flush=function(){if(this.cache.length)return this.cache};function nqt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{d();p();var q3e=N3e(),F3e=L3e(),iqt=mG();function sqt(){return Object.keys(iqt)}ah.createCipher=ah.Cipher=q3e.createCipher;ah.createCipheriv=ah.Cipheriv=q3e.createCipheriv;ah.createDecipher=ah.Decipher=F3e.createDecipher;ah.createDecipheriv=ah.Decipheriv=F3e.createDecipheriv;ah.listCiphers=ah.getCiphers=sqt});var W3e=_(Zm=>{d();p();Zm["des-ecb"]={key:8,iv:0};Zm["des-cbc"]=Zm.des={key:8,iv:8};Zm["des-ede3-cbc"]=Zm.des3={key:24,iv:8};Zm["des-ede3"]={key:24,iv:0};Zm["des-ede-cbc"]={key:16,iv:8};Zm["des-ede"]={key:16,iv:0}});var K3e=_(ih=>{d();p();var U3e=t3e(),EG=QR(),Ay=VR(),Xm=W3e(),H3e=ZE();function oqt(r,e){r=r.toLowerCase();var t,n;if(Ay[r])t=Ay[r].key,n=Ay[r].iv;else if(Xm[r])t=Xm[r].key*8,n=Xm[r].iv;else throw new TypeError("invalid suite type");var a=H3e(e,!1,t,n);return j3e(r,a.key,a.iv)}function cqt(r,e){r=r.toLowerCase();var t,n;if(Ay[r])t=Ay[r].key,n=Ay[r].iv;else if(Xm[r])t=Xm[r].key*8,n=Xm[r].iv;else throw new TypeError("invalid suite type");var a=H3e(e,!1,t,n);return z3e(r,a.key,a.iv)}function j3e(r,e,t){if(r=r.toLowerCase(),Ay[r])return EG.createCipheriv(r,e,t);if(Xm[r])return new U3e({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function z3e(r,e,t){if(r=r.toLowerCase(),Ay[r])return EG.createDecipheriv(r,e,t);if(Xm[r])return new U3e({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function uqt(){return Object.keys(Xm).concat(EG.getCiphers())}ih.createCipher=ih.Cipher=oqt;ih.createCipheriv=ih.Cipheriv=j3e;ih.createDecipher=ih.Decipher=cqt;ih.createDecipheriv=ih.Decipheriv=z3e;ih.listCiphers=ih.getCiphers=uqt});var CG=_(($Cn,V3e)=>{d();p();var vb=so(),lqt=ZR();function wb(r){this.rand=r||new lqt.Rand}V3e.exports=wb;wb.create=function(e){return new wb(e)};wb.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new vb(this.rand.generate(n));while(a.cmp(e)>=0);return a};wb.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};wb.prototype.test=function(e,t,n){var a=e.bitLength(),i=vb.mont(e),s=new vb(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),h=!0;t>0;t--){var f=this._randrange(new vb(2),o);n&&n(f);var m=f.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new vb(2),s),h=e.gcd(l);if(h.cmpn(1)!==0)return h;var f=l.toRed(a).redPow(c);if(!(f.cmp(i)===0||f.cmp(u)===0)){for(var m=1;m{d();p();var dqt=eb();Y3e.exports=PG;PG.simpleSieve=AG;PG.fermatTest=SG;var oc=so(),pqt=new oc(24),hqt=CG(),G3e=new hqt,fqt=new oc(1),kG=new oc(2),mqt=new oc(5),QCn=new oc(16),ZCn=new oc(8),yqt=new oc(10),gqt=new oc(3),XCn=new oc(7),bqt=new oc(11),$3e=new oc(4),e4n=new oc(12),IG=null;function vqt(){if(IG!==null)return IG;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(fqt),t.testn(1)||t.iadd(kG),e.cmp(kG)){if(!e.cmp(mqt))for(;t.mod(yqt).cmp(gqt);)t.iadd($3e)}else for(;t.mod(pqt).cmp(bqt);)t.iadd($3e);if(n=t.shrn(1),AG(n)&&AG(t)&&SG(n)&&SG(t)&&G3e.test(n)&&G3e.test(t))return t}}});var J3e=_((a4n,wqt)=>{wqt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var e5e=_((i4n,X3e)=>{d();p();var Ud=so(),xqt=CG(),Q3e=new xqt,_qt=new Ud(24),Tqt=new Ud(11),Eqt=new Ud(10),Cqt=new Ud(3),Iqt=new Ud(7),Z3e=RG(),kqt=eb();X3e.exports=e0;function Aqt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._pub=new Ud(r),this}function Sqt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._priv=new Ud(r),this}var XR={};function Pqt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in XR)return XR[n];var a=0;if(r.isEven()||!Z3e.simpleSieve||!Z3e.fermatTest(r)||!Q3e.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,XR[n]=a,a;Q3e.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(_qt).cmp(Tqt)&&(a+=8);break;case"05":i=r.mod(Eqt),i.cmp(Cqt)&&i.cmp(Iqt)&&(a+=8);break;default:a+=4}return XR[n]=a,a}function e0(r,e,t){this.setGenerator(e),this.__prime=new Ud(r),this._prime=Ud.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=Aqt,this.setPrivateKey=Sqt):this._primeCode=8}Object.defineProperty(e0.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=Pqt(this.__prime,this.__gen)),this._primeCode}});e0.prototype.generateKeys=function(){return this._priv||(this._priv=new Ud(kqt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};e0.prototype.computeSecret=function(r){r=new Ud(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new b.Buffer(e.toArray()),n=this.getPrime();if(t.length{d();p();var Rqt=RG(),t5e=J3e(),MG=e5e();function Mqt(r){var e=new b.Buffer(t5e[r].prime,"hex"),t=new b.Buffer(t5e[r].gen,"hex");return new MG(e,t)}var Nqt={binary:!0,hex:!0,base64:!0};function r5e(r,e,t,n){return b.Buffer.isBuffer(e)||Nqt[e]===void 0?r5e(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new b.Buffer([2]),b.Buffer.isBuffer(t)||(t=new b.Buffer(t,n)),typeof r=="number"?new MG(Rqt(r,t),t,!0):(b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),new MG(r,t,!0)))}B3.DiffieHellmanGroup=B3.createDiffieHellmanGroup=B3.getDiffieHellman=Mqt;B3.createDiffieHellman=B3.DiffieHellman=r5e});var t9=_((d4n,s5e)=>{d();p();var D3=Ir(),Bqt=eb();function Dqt(r){var e=a5e(r),t=e.toRed(D3.mont(r.modulus)).redPow(new D3(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function a5e(r){var e=r.modulus.byteLength(),t;do t=new D3(Bqt(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function i5e(r,e){var t=Dqt(e),n=e.modulus.byteLength(),a=new D3(r).mul(t.blinder).umod(e.modulus),i=a.toRed(D3.mont(e.prime1)),s=a.toRed(D3.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),h=s.redPow(e.exponent2).fromRed(),f=l.isub(h).imul(o).umod(c).imul(u);return h.iadd(f).imul(t.unblinder).umod(e.modulus).toArrayLike(b.Buffer,"be",n)}i5e.getr=a5e;s5e.exports=i5e});var n9=_((f4n,o5e)=>{"use strict";d();p();var r9=ac(),O3=r9.Buffer,Hd={},jd;for(jd in r9)!r9.hasOwnProperty(jd)||jd==="SlowBuffer"||jd==="Buffer"||(Hd[jd]=r9[jd]);var L3=Hd.Buffer={};for(jd in O3)!O3.hasOwnProperty(jd)||jd==="allocUnsafe"||jd==="allocUnsafeSlow"||(L3[jd]=O3[jd]);Hd.Buffer.prototype=O3.prototype;(!L3.from||L3.from===Uint8Array.from)&&(L3.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return O3(r,e,t)});L3.alloc||(L3.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=O3(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!Hd.kStringMaxLength)try{Hd.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}Hd.constants||(Hd.constants={MAX_LENGTH:Hd.kMaxLength},Hd.kStringMaxLength&&(Hd.constants.MAX_STRING_LENGTH=Hd.kStringMaxLength));o5e.exports=Hd});var a9=_(c5e=>{"use strict";d();p();var Oqt=xr();function zd(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}c5e.Reporter=zd;zd.prototype.isError=function(e){return e instanceof q3};zd.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};zd.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};zd.prototype.enterKey=function(e){return this._reporterState.path.push(e)};zd.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};zd.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};zd.prototype.path=function(){return this._reporterState.path.join("/")};zd.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};zd.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};zd.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof q3;if(a?t=e:t=new q3(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};zd.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function q3(r,e){this.path=r,this.rethrow(e)}Oqt(q3,Error);q3.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,q3),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var U3=_(NG=>{"use strict";d();p();var Lqt=xr(),i9=a9().Reporter,F3=n9().Buffer;function Kd(r,e){if(i9.call(this,e),!F3.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}Lqt(Kd,i9);NG.DecoderBuffer=Kd;Kd.isDecoderBuffer=function(e){return e instanceof Kd?!0:typeof e=="object"&&F3.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Kd.prototype.save=function(){return{offset:this.offset,reporter:i9.prototype.save.call(this)}};Kd.prototype.restore=function(e){let t=new Kd(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i9.prototype.restore.call(this,e.reporter),t};Kd.prototype.isEmpty=function(){return this.offset===this.length};Kd.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Kd.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new Kd(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Kd.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function W3(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return W3.isEncoderBuffer(t)||(t=new W3(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=F3.byteLength(r);else if(F3.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}NG.EncoderBuffer=W3;W3.isEncoderBuffer=function(e){return e instanceof W3?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};W3.prototype.join=function(e,t){return e||(e=F3.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):F3.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var s9=_((T4n,l5e)=>{"use strict";d();p();var qqt=a9().Reporter,Fqt=U3().EncoderBuffer,Wqt=U3().DecoderBuffer,Nu=zl(),u5e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],Uqt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(u5e),Hqt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Fa(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}l5e.exports=Fa;var jqt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Fa.prototype.clone=function(){let e=this._baseState,t={};jqt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};Fa.prototype._wrap=function(){let e=this._baseState;Uqt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};Fa.prototype._init=function(e){let t=this._baseState;Nu(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Nu.equal(t.children.length,1,"Root node can have only one child")};Fa.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Nu(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Nu(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};Hqt.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});u5e.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Nu(t.tag===null),t.tag=r,this._useArgs(n),this}});Fa.prototype.use=function(e){Nu(e);let t=this._baseState;return Nu(t.use===null),t.use=e,this};Fa.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};Fa.prototype.def=function(e){let t=this._baseState;return Nu(t.default===null),t.default=e,t.optional=!0,this};Fa.prototype.explicit=function(e){let t=this._baseState;return Nu(t.explicit===null&&t.implicit===null),t.explicit=e,this};Fa.prototype.implicit=function(e){let t=this._baseState;return Nu(t.explicit===null&&t.implicit===null),t.implicit=e,this};Fa.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Fa.prototype.key=function(e){let t=this._baseState;return Nu(t.key===null),t.key=e,this};Fa.prototype.any=function(){let e=this._baseState;return e.any=!0,this};Fa.prototype.choice=function(e){let t=this._baseState;return Nu(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Fa.prototype.contains=function(e){let t=this._baseState;return Nu(t.use===null),t.contains=e,this};Fa.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new Wqt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};Fa.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Fa.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Nu(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Fa.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};Fa.prototype._createEncoderBuffer=function(e){return new Fqt(e,this.reporter)};Fa.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};Fa.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new qqt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Fa.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Nu(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};Fa.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Fa.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Fa.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var o9=_(xb=>{"use strict";d();p();function d5e(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}xb.tagClass={0:"universal",1:"application",2:"context",3:"private"};xb.tagClassByName=d5e(xb.tagClass);xb.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};xb.tagByName=d5e(xb.tag)});var DG=_((S4n,f5e)=>{"use strict";d();p();var zqt=xr(),t0=n9().Buffer,p5e=s9(),BG=o9();function h5e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new sh,this.tree._init(r.body)}f5e.exports=h5e;h5e.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function sh(r){p5e.call(this,"der",r)}zqt(sh,p5e);sh.prototype._encodeComposite=function(e,t,n,a){let i=Kqt(e,t,n,this.reporter);if(a.length<128){let c=t0.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=t0.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};sh.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=t0.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=t0.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function Vd(r){return r<10?"0"+r:r}sh.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[Vd(a.getUTCFullYear()),Vd(a.getUTCMonth()+1),Vd(a.getUTCDate()),Vd(a.getUTCHours()),Vd(a.getUTCMinutes()),Vd(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[Vd(a.getUTCFullYear()%100),Vd(a.getUTCMonth()+1),Vd(a.getUTCDate()),Vd(a.getUTCHours()),Vd(a.getUTCMinutes()),Vd(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};sh.prototype._encodeNull=function(){return this._createEncoderBuffer("")};sh.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!t0.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=t0.from(i)}if(t0.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=t0.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(t0.from(a))};sh.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};sh.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};sh.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=BG.tagClassByName[t||"universal"]<<6,a)}});var y5e=_((M4n,m5e)=>{"use strict";d();p();var Vqt=xr(),OG=DG();function LG(r){OG.call(this,r),this.enc="pem"}Vqt(LG,OG);m5e.exports=LG;LG.prototype.encode=function(e,t){let a=OG.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";d();p();var g5e=b5e;g5e.der=DG();g5e.pem=y5e()});var WG=_((q4n,E5e)=>{"use strict";d();p();var Gqt=xr(),$qt=so(),v5e=U3().DecoderBuffer,x5e=s9(),w5e=o9();function _5e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new Vl,this.tree._init(r.body)}E5e.exports=_5e;_5e.prototype.decode=function(e,t){return v5e.isDecoderBuffer(e)||(e=new v5e(e,t)),this.tree._decode(e,t)};function Vl(r){x5e.call(this,"der",r)}Gqt(Vl,x5e);Vl.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=FG(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};Vl.prototype._decodeTag=function(e,t,n){let a=FG(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=T5e(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};Vl.prototype._skipUntilEnd=function(e,t){for(;;){let n=FG(e,t);if(e.isError(n))return n;let a=T5e(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};Vl.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};Vl.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=w5e.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function T5e(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";d();p();var Yqt=xr(),Jqt=n9().Buffer,UG=WG();function HG(r){UG.call(this,r),this.enc="pem"}Yqt(HG,UG);C5e.exports=HG;HG.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";d();p();var k5e=A5e;k5e.der=WG();k5e.pem=I5e()});var P5e=_(S5e=>{"use strict";d();p();var Qqt=qG(),Zqt=jG(),Xqt=xr(),eFt=S5e;eFt.define=function(e,t){return new H3(e,t)};function H3(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}H3.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return Xqt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};H3.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(Zqt[e])),this.decoders[e]};H3.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};H3.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(Qqt[e])),this.encoders[e]};H3.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var M5e=_(R5e=>{"use strict";d();p();var c9=R5e;c9.Reporter=a9().Reporter;c9.DecoderBuffer=U3().DecoderBuffer;c9.EncoderBuffer=U3().EncoderBuffer;c9.Node=s9()});var D5e=_(B5e=>{"use strict";d();p();var N5e=B5e;N5e._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};N5e.der=o9()});var zG=_(O5e=>{"use strict";d();p();var j3=O5e;j3.bignum=so();j3.define=P5e().define;j3.base=M5e();j3.constants=D5e();j3.decoders=jG();j3.encoders=qG()});var W5e=_((i8n,F5e)=>{"use strict";d();p();var oh=zG(),L5e=oh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),tFt=oh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),KG=oh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),rFt=oh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(KG),this.key("subjectPublicKey").bitstr())}),nFt=oh.define("RelativeDistinguishedName",function(){this.setof(tFt)}),aFt=oh.define("RDNSequence",function(){this.seqof(nFt)}),q5e=oh.define("Name",function(){this.choice({rdnSequence:this.use(aFt)})}),iFt=oh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(L5e),this.key("notAfter").use(L5e))}),sFt=oh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),oFt=oh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(KG),this.key("issuer").use(q5e),this.key("validity").use(iFt),this.key("subject").use(q5e),this.key("subjectPublicKeyInfo").use(rFt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(sFt).optional())}),cFt=oh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(oFt),this.key("signatureAlgorithm").use(KG),this.key("signatureValue").bitstr())});F5e.exports=cFt});var H5e=_(uh=>{"use strict";d();p();var ch=zG();uh.certificate=W5e();var uFt=ch.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});uh.RSAPrivateKey=uFt;var lFt=ch.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});uh.RSAPublicKey=lFt;var dFt=ch.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(U5e),this.key("subjectPublicKey").bitstr())});uh.PublicKey=dFt;var U5e=ch.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),pFt=ch.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(U5e),this.key("subjectPrivateKey").octstr())});uh.PrivateKey=pFt;var hFt=ch.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});uh.EncryptedPrivateKey=hFt;var fFt=ch.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});uh.DSAPrivateKey=fFt;uh.DSAparam=ch.define("DSAparam",function(){this.int()});var mFt=ch.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(yFt),this.key("publicKey").optional().explicit(1).bitstr())});uh.ECPrivateKey=mFt;var yFt=ch.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});uh.signature=ch.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var j5e=_((d8n,gFt)=>{gFt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var K5e=_((p8n,z5e)=>{d();p();var bFt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,vFt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,wFt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,xFt=ZE(),_Ft=QR(),u9=Er().Buffer;z5e.exports=function(r,e){var t=r.toString(),n=t.match(bFt),a;if(n){var s="aes"+n[1],o=u9.from(n[2],"hex"),c=u9.from(n[3].replace(/[\r\n]/g,""),"base64"),u=xFt(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],h=_Ft.createDecipheriv(s,u,o);l.push(h.update(c)),l.push(h.final()),a=u9.concat(l)}else{var i=t.match(wFt);a=u9.from(i[2].replace(/[\r\n]/g,""),"base64")}var f=t.match(vFt)[1];return{tag:f,data:a}}});var tC=_((m8n,G5e)=>{d();p();var cl=H5e(),TFt=j5e(),EFt=K5e(),CFt=QR(),IFt=sG(),VG=Er().Buffer;G5e.exports=V5e;function V5e(r){var e;typeof r=="object"&&!VG.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=VG.from(r));var t=EFt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=cl.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=cl.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return cl.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=cl.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=cl.EncryptedPrivateKey.decode(a,"der"),a=kFt(a,e);case"PRIVATE KEY":switch(s=cl.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return cl.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:cl.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=cl.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return cl.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return cl.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:cl.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=cl.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}V5e.signature=cl.signature;function kFt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=TFt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=IFt.pbkdf2Sync(e,t,n,o,"sha1"),u=CFt.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),VG.concat(l)}});var GG=_((b8n,AFt)=>{AFt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var J5e=_((v8n,d9)=>{d();p();var Vc=Er().Buffer,_b=JV(),SFt=t9(),PFt=rC().ec,l9=Ir(),RFt=tC(),MFt=GG();function NFt(r,e,t,n,a){var i=RFt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return BFt(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return DFt(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Vc.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function LFt(r,e){r=$G(r,e),r=r.mod(e);var t=Vc.from(r.toArray());if(t.length{d();p();var YG=Er().Buffer,nC=Ir(),FFt=rC().ec,Z5e=tC(),WFt=GG();function UFt(r,e,t,n,a){var i=Z5e(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return HFt(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return jFt(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=YG.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}X5e.exports=UFt});var sxe=_((C8n,ixe)=>{d();p();var p9=Er().Buffer,nxe=A3(),h9=NE(),axe=xr(),zFt=J5e(),KFt=exe(),Tb=QV();Object.keys(Tb).forEach(function(r){Tb[r].id=p9.from(Tb[r].id,"hex"),Tb[r.toLowerCase()]=Tb[r]});function aC(r){h9.Writable.call(this);var e=Tb[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=nxe(e.hash),this._tag=e.id,this._signType=e.sign}axe(aC,h9.Writable);aC.prototype._write=function(e,t,n){this._hash.update(e),n()};aC.prototype.update=function(e,t){return typeof e=="string"&&(e=p9.from(e,t)),this._hash.update(e),this};aC.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=zFt(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function iC(r){h9.Writable.call(this);var e=Tb[r];if(!e)throw new Error("Unknown message digest");this._hash=nxe(e.hash),this._tag=e.id,this._signType=e.sign}axe(iC,h9.Writable);iC.prototype._write=function(e,t,n){this._hash.update(e),n()};iC.prototype.update=function(e,t){return typeof e=="string"&&(e=p9.from(e,t)),this._hash.update(e),this};iC.prototype.verify=function(e,t,n){typeof t=="string"&&(t=p9.from(t,n)),this.end();var a=this._hash.digest();return KFt(t,a,e,this._signType,this._tag)};function txe(r){return new aC(r)}function rxe(r){return new iC(r)}ixe.exports={Sign:txe,Verify:rxe,createSign:txe,createVerify:rxe}});var cxe=_((A8n,oxe)=>{d();p();var VFt=rC(),GFt=so();oxe.exports=function(e){return new Eb(e)};var Gl={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Gl.p224=Gl.secp224r1;Gl.p256=Gl.secp256r1=Gl.prime256v1;Gl.p192=Gl.secp192r1=Gl.prime192v1;Gl.p384=Gl.secp384r1;Gl.p521=Gl.secp521r1;function Eb(r){this.curveType=Gl[r],this.curveType||(this.curveType={name:r}),this.curve=new VFt.ec(this.curveType.name),this.keys=void 0}Eb.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Eb.prototype.computeSecret=function(r,e,t){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return JG(a,t,this.curveType.byteLength)};Eb.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),JG(t,r)};Eb.prototype.getPrivateKey=function(r){return JG(this.keys.getPrivate(),r)};Eb.prototype.setPublicKey=function(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this.keys._importPublic(r),this};Eb.prototype.setPrivateKey=function(r,e){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var t=new GFt(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function JG(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new b.Buffer(r);if(t&&n.length{d();p();var $Ft=A3(),QG=Er().Buffer;uxe.exports=function(r,e){for(var t=QG.alloc(0),n=0,a;t.length{d();p();lxe.exports=function(e,t){for(var n=e.length,a=-1;++a{d();p();var dxe=so(),JFt=Er().Buffer;function QFt(r,e){return JFt.from(r.toRed(dxe.mont(e.modulus)).redPow(new dxe(e.publicExponent)).fromRed().toArray())}pxe.exports=QFt});var yxe=_((W8n,mxe)=>{d();p();var ZFt=tC(),t$=eb(),XFt=A3(),hxe=ZG(),fxe=XG(),r$=so(),eWt=e$(),tWt=t9(),lh=Er().Buffer;mxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=ZFt(e),s;if(a===4)s=rWt(i,t);else if(a===1)s=nWt(i,t,n);else if(a===3){if(s=new r$(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?tWt(s,i):eWt(s,i)};function rWt(r,e){var t=r.modulus.byteLength(),n=e.length,a=XFt("sha1").update(lh.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=lh.alloc(t-n-s-2),c=t-i-1,u=t$(i),l=fxe(lh.concat([a,o,lh.alloc(1,1),e],c),hxe(u,c)),h=fxe(u,hxe(l,i));return new r$(lh.concat([lh.alloc(1),h,l],t))}function nWt(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=lh.alloc(a-n-3,255):i=aWt(a-n-3),new r$(lh.concat([lh.from([0,t?1:2]),i,lh.alloc(1),e],a))}function aWt(r){for(var e=lh.allocUnsafe(r),t=0,n=t$(r*2),a=0,i;t{d();p();var iWt=tC(),gxe=ZG(),bxe=XG(),vxe=so(),sWt=t9(),oWt=A3(),cWt=e$(),sC=Er().Buffer;wxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=iWt(e),s=i.modulus.byteLength();if(t.length>s||new vxe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=cWt(new vxe(t),i):o=sWt(t,i);var c=sC.alloc(s-o.length);if(o=sC.concat([c,o],s),a===4)return uWt(i,o);if(a===1)return lWt(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function uWt(r,e){var t=r.modulus.byteLength(),n=oWt("sha1").update(sC.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=bxe(i,gxe(s,a)),c=bxe(s,gxe(o,t-a-1));if(dWt(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function lWt(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function dWt(r,e){r=sC.from(r),e=sC.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{d();p();Cb.publicEncrypt=yxe();Cb.privateDecrypt=xxe();Cb.privateEncrypt=function(e,t){return Cb.publicEncrypt(e,t,!0)};Cb.publicDecrypt=function(e,t){return Cb.privateDecrypt(e,t,!0)}});var Mxe=_(oC=>{"use strict";d();p();function Txe(){throw new Error(`secure random number generation not supported by this browser -use chrome, FireFox or Internet Explorer 11`)}var Cxe=Er(),Exe=eb(),Ixe=Cxe.Buffer,kxe=Cxe.kMaxLength,n$=global.crypto||global.msCrypto,Axe=Math.pow(2,32)-1;function Sxe(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>Axe||r<0)throw new TypeError("offset must be a uint32");if(r>kxe||r>e)throw new RangeError("offset out of range")}function Pxe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>Axe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>kxe)throw new RangeError("buffer too small")}n$&&n$.getRandomValues||!g.browser?(oC.randomFill=pWt,oC.randomFillSync=hWt):(oC.randomFill=Txe,oC.randomFillSync=Txe);function pWt(r,e,t,n){if(!Ixe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return Sxe(e,r.length),Pxe(t,e,r.length),Rxe(r,e,t,n)}function Rxe(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(n$.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){Exe(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=Exe(t);return s.copy(r,e),r}function hWt(r,e,t){if(typeof e>"u"&&(e=0),!Ixe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return Sxe(e,r.length),t===void 0&&(t=r.length-e),Pxe(t,e,r.length),Rxe(r,e,t)}});var a$=_(Cr=>{"use strict";d();p();Cr.randomBytes=Cr.rng=Cr.pseudoRandomBytes=Cr.prng=eb();Cr.createHash=Cr.Hash=A3();Cr.createHmac=Cr.Hmac=JV();var fWt=Cwe(),mWt=Object.keys(fWt),yWt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(mWt);Cr.getHashes=function(){return yWt};var Nxe=sG();Cr.pbkdf2=Nxe.pbkdf2;Cr.pbkdf2Sync=Nxe.pbkdf2Sync;var If=K3e();Cr.Cipher=If.Cipher;Cr.createCipher=If.createCipher;Cr.Cipheriv=If.Cipheriv;Cr.createCipheriv=If.createCipheriv;Cr.Decipher=If.Decipher;Cr.createDecipher=If.createDecipher;Cr.Decipheriv=If.Decipheriv;Cr.createDecipheriv=If.createDecipheriv;Cr.getCiphers=If.getCiphers;Cr.listCiphers=If.listCiphers;var cC=n5e();Cr.DiffieHellmanGroup=cC.DiffieHellmanGroup;Cr.createDiffieHellmanGroup=cC.createDiffieHellmanGroup;Cr.getDiffieHellman=cC.getDiffieHellman;Cr.createDiffieHellman=cC.createDiffieHellman;Cr.DiffieHellman=cC.DiffieHellman;var f9=sxe();Cr.createSign=f9.createSign;Cr.Sign=f9.Sign;Cr.createVerify=f9.createVerify;Cr.Verify=f9.Verify;Cr.createECDH=cxe();var m9=_xe();Cr.publicEncrypt=m9.publicEncrypt;Cr.privateEncrypt=m9.privateEncrypt;Cr.publicDecrypt=m9.publicDecrypt;Cr.privateDecrypt=m9.privateDecrypt;var Bxe=Mxe();Cr.randomFill=Bxe.randomFill;Cr.randomFillSync=Bxe.randomFillSync;Cr.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))};Cr.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var ZR=_((tIn,o$)=>{d();p();var i$;o$.exports=function(e){return i$||(i$=new Sy(null)),i$.generate(e)};function Sy(r){this.rand=r}o$.exports.Rand=Sy;Sy.prototype.generate=function(e){return this._rand(e)};Sy.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();var Ib=so(),uC=Kl(),y9=uC.getNAF,gWt=uC.getJSF,g9=uC.assert;function Py(r,e){this.type=r,this.p=new Ib(e.p,16),this.red=e.prime?Ib.red(e.prime):Ib.mont(this.p),this.zero=new Ib(0).toRed(this.red),this.one=new Ib(1).toRed(this.red),this.two=new Ib(2).toRed(this.red),this.n=e.n&&new Ib(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Dxe.exports=Py;Py.prototype.point=function(){throw new Error("Not implemented")};Py.prototype.validate=function(){throw new Error("Not implemented")};Py.prototype._fixedNafMul=function(e,t){g9(e.precomputed);var n=e._getDoubles(),a=y9(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];g9(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};Py.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,h,f;for(l=0;l=1;l-=2){var y=l-1,E=l;if(s[y]!==1||s[E]!==1){c[y]=y9(n[y],s[y],this._bitLength),c[E]=y9(n[E],s[E],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[E].length,u);continue}var I=[t[y],null,null,t[E]];t[y].y.cmp(t[E].y)===0?(I[1]=t[y].add(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg())):t[y].y.cmp(t[E].y.redNeg())===0?(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].add(t[E].neg())):(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],L=gWt(n[y],n[E]);for(u=Math.max(L[0].length,u),c[y]=new Array(u),c[E]=new Array(u),h=0;h=0;l--){for(var H=0;l>=0;){var V=!0;for(h=0;h=0&&H++,G=G.dblp(H),l<0)break;for(h=0;h0?f=o[h][J-1>>1]:J<0&&(f=o[h][-J-1>>1].neg()),f.type==="affine"?G=G.mixedAdd(f):G=G.add(f))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};Gd.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";d();p();var bWt=Kl(),as=so(),c$=xr(),z3=lC(),vWt=bWt.assert;function $d(r){z3.call(this,"short",r),this.a=new as(r.a,16).toRed(this.red),this.b=new as(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}c$($d,z3);Oxe.exports=$d;$d.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new as(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new as(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],vWt(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new as(o.a,16),b:new as(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};$d.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:as.mont(e),n=new as(2).toRed(t).redInvm(),a=n.redNeg(),i=new as(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};$d.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new as(1),s=new as(0),o=new as(0),c=new as(1),u,l,h,f,m,y,E,I=0,S,L;n.cmpn(0)!==0;){var F=a.div(n);S=a.sub(F.mul(n)),L=o.sub(F.mul(i));var W=c.sub(F.mul(s));if(!h&&S.cmp(t)<0)u=E.neg(),l=i,h=S.neg(),f=L;else if(h&&++I===2)break;E=S,a=n,n=S,o=i,i=L,c=s,s=W}m=S.neg(),y=L;var G=h.sqr().add(f.sqr()),K=m.sqr().add(y.sqr());return K.cmp(G)>=0&&(m=u,y=l),h.negative&&(h=h.neg(),f=f.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:h,b:f},{a:m,b:y}]};$d.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),h=e.sub(o).sub(c),f=u.add(l).neg();return{k1:h,k2:f}};$d.prototype.pointFromX=function(e,t){e=new as(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};$d.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};$d.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Mo.prototype.isInfinity=function(){return this.inf};Mo.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Mo.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Mo.prototype.getX=function(){return this.x.fromRed()};Mo.prototype.getY=function(){return this.y.fromRed()};Mo.prototype.mul=function(e){return e=new as(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Mo.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Mo.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Mo.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Mo.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Mo.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function cc(r,e,t,n){z3.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new as(0)):(this.x=new as(e,16),this.y=new as(t,16),this.z=new as(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}c$(cc,z3.BasePoint);$d.prototype.jpoint=function(e,t,n){return new cc(this,e,t,n)};cc.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};cc.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};cc.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),h=l.redMul(c),f=a.redMul(l),m=u.redSqr().redIAdd(h).redISub(f).redISub(f),y=u.redMul(f.redISub(m)).redISub(s.redMul(h)),E=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,E)};cc.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),h=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(h).redISub(h),m=c.redMul(h.redISub(f)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(f,m,y)};cc.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};cc.prototype.inspect=function(){return this.isInfinity()?"":""};cc.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Wxe=_((lIn,Fxe)=>{"use strict";d();p();var K3=so(),qxe=xr(),b9=lC(),wWt=Kl();function V3(r){b9.call(this,"mont",r),this.a=new K3(r.a,16).toRed(this.red),this.b=new K3(r.b,16).toRed(this.red),this.i4=new K3(4).toRed(this.red).redInvm(),this.two=new K3(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}qxe(V3,b9);Fxe.exports=V3;V3.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function No(r,e,t){b9.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new K3(e,16),this.z=new K3(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}qxe(No,b9.BasePoint);V3.prototype.decodePoint=function(e,t){return this.point(wWt.toArray(e,t),1)};V3.prototype.point=function(e,t){return new No(this,e,t)};V3.prototype.pointFromJSON=function(e){return No.fromJSON(this,e)};No.prototype.precompute=function(){};No.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};No.fromJSON=function(e,t){return new No(e,t[0],t[1]||e.one)};No.prototype.inspect=function(){return this.isInfinity()?"":""};No.prototype.isInfinity=function(){return this.z.cmpn(0)===0};No.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};No.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};No.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};No.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};No.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};No.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};No.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};No.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};No.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var jxe=_((hIn,Hxe)=>{"use strict";d();p();var xWt=Kl(),r0=so(),Uxe=xr(),v9=lC(),_Wt=xWt.assert;function kf(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,v9.call(this,"edwards",r),this.a=new r0(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new r0(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new r0(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),_Wt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Uxe(kf,v9);Hxe.exports=kf;kf.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};kf.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};kf.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};kf.prototype.pointFromX=function(e,t){e=new r0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};kf.prototype.pointFromY=function(e,t){e=new r0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};kf.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function ti(r,e,t,n,a){v9.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new r0(e,16),this.y=new r0(t,16),this.z=n?new r0(n,16):this.curve.one,this.t=a&&new r0(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Uxe(ti,v9.BasePoint);kf.prototype.pointFromJSON=function(e){return ti.fromJSON(this,e)};kf.prototype.point=function(e,t,n,a){return new ti(this,e,t,n,a)};ti.fromJSON=function(e,t){return new ti(e,t[0],t[1],t[2])};ti.prototype.inspect=function(){return this.isInfinity()?"":""};ti.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ti.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),h=i.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,h)};ti.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};ti.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ti.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),h=c.redMul(u),f=s.redMul(u),m=o.redMul(c);return this.curve.point(l,h,m,f)};ti.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),h,f;return this.curve.twisted?(h=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),f=o.redMul(c)):(h=t.redMul(c).redMul(i.redSub(a)),f=this.curve._mulC(o).redMul(c)),this.curve.point(l,h,f)};ti.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ti.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ti.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};ti.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};ti.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};ti.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ti.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ti.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ti.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ti.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};ti.prototype.toP=ti.prototype.normalize;ti.prototype.mixedAdd=ti.prototype.add});var u$=_(zxe=>{"use strict";d();p();var w9=zxe;w9.base=lC();w9.short=Lxe();w9.mont=Wxe();w9.edwards=jxe()});var dh=_(Ga=>{"use strict";d();p();var TWt=zl(),EWt=xr();Ga.inherits=EWt;function CWt(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function IWt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):CWt(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Ga.htonl=Kxe;function AWt(r,e){for(var t="",n=0;n>>0}return i}Ga.join32=SWt;function PWt(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Ga.split32=PWt;function RWt(r,e){return r>>>e|r<<32-e}Ga.rotr32=RWt;function MWt(r,e){return r<>>32-e}Ga.rotl32=MWt;function NWt(r,e){return r+e>>>0}Ga.sum32=NWt;function BWt(r,e,t){return r+e+t>>>0}Ga.sum32_3=BWt;function DWt(r,e,t,n){return r+e+t+n>>>0}Ga.sum32_4=DWt;function OWt(r,e,t,n,a){return r+e+t+n+a>>>0}Ga.sum32_5=OWt;function LWt(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Ga.sum64=LWt;function qWt(r,e,t,n){var a=e+n>>>0,i=(a>>0}Ga.sum64_hi=qWt;function FWt(r,e,t,n){var a=e+n;return a>>>0}Ga.sum64_lo=FWt;function WWt(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Ga.sum64_4_hi=WWt;function UWt(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Ga.sum64_4_lo=UWt;function HWt(r,e,t,n,a,i,s,o,c,u){var l=0,h=e;h=h+n>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}Ga.sum64_5_hi=HWt;function jWt(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Ga.sum64_5_lo=jWt;function zWt(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Ga.rotr64_hi=zWt;function KWt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ga.rotr64_lo=KWt;function VWt(r,e,t){return r>>>t}Ga.shr64_hi=VWt;function GWt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Ga.shr64_lo=GWt});var G3=_(Yxe=>{"use strict";d();p();var $xe=dh(),$Wt=zl();function x9(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Yxe.BlockHash=x9;x9.prototype.update=function(e,t){if(e=$xe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=$xe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";d();p();var YWt=dh(),Af=YWt.rotr32;function JWt(r,e,t,n){if(r===0)return Jxe(e,t,n);if(r===1||r===3)return Zxe(e,t,n);if(r===2)return Qxe(e,t,n)}n0.ft_1=JWt;function Jxe(r,e,t){return r&e^~r&t}n0.ch32=Jxe;function Qxe(r,e,t){return r&e^r&t^e&t}n0.maj32=Qxe;function Zxe(r,e,t){return r^e^t}n0.p32=Zxe;function QWt(r){return Af(r,2)^Af(r,13)^Af(r,22)}n0.s0_256=QWt;function ZWt(r){return Af(r,6)^Af(r,11)^Af(r,25)}n0.s1_256=ZWt;function XWt(r){return Af(r,7)^Af(r,18)^r>>>3}n0.g0_256=XWt;function eUt(r){return Af(r,17)^Af(r,19)^r>>>10}n0.g1_256=eUt});var t_e=_((AIn,e_e)=>{"use strict";d();p();var $3=dh(),tUt=G3(),rUt=l$(),d$=$3.rotl32,dC=$3.sum32,nUt=$3.sum32_5,aUt=rUt.ft_1,Xxe=tUt.BlockHash,iUt=[1518500249,1859775393,2400959708,3395469782];function Sf(){if(!(this instanceof Sf))return new Sf;Xxe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}$3.inherits(Sf,Xxe);e_e.exports=Sf;Sf.blockSize=512;Sf.outSize=160;Sf.hmacStrength=80;Sf.padLength=64;Sf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var Y3=dh(),sUt=G3(),J3=l$(),oUt=zl(),ph=Y3.sum32,cUt=Y3.sum32_4,uUt=Y3.sum32_5,lUt=J3.ch32,dUt=J3.maj32,pUt=J3.s0_256,hUt=J3.s1_256,fUt=J3.g0_256,mUt=J3.g1_256,r_e=sUt.BlockHash,yUt=[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 Pf(){if(!(this instanceof Pf))return new Pf;r_e.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=yUt,this.W=new Array(64)}Y3.inherits(Pf,r_e);n_e.exports=Pf;Pf.blockSize=512;Pf.outSize=256;Pf.hmacStrength=192;Pf.padLength=64;Pf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var h$=dh(),a_e=p$();function a0(){if(!(this instanceof a0))return new a0;a_e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}h$.inherits(a0,a_e);i_e.exports=a0;a0.blockSize=512;a0.outSize=224;a0.hmacStrength=192;a0.padLength=64;a0.prototype._digest=function(e){return e==="hex"?h$.toHex32(this.h.slice(0,7),"big"):h$.split32(this.h.slice(0,7),"big")}});var y$=_((LIn,l_e)=>{"use strict";d();p();var ul=dh(),gUt=G3(),bUt=zl(),Rf=ul.rotr64_hi,Mf=ul.rotr64_lo,o_e=ul.shr64_hi,c_e=ul.shr64_lo,Ry=ul.sum64,f$=ul.sum64_hi,m$=ul.sum64_lo,vUt=ul.sum64_4_hi,wUt=ul.sum64_4_lo,xUt=ul.sum64_5_hi,_Ut=ul.sum64_5_lo,u_e=gUt.BlockHash,TUt=[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 hh(){if(!(this instanceof hh))return new hh;u_e.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=TUt,this.W=new Array(160)}ul.inherits(hh,u_e);l_e.exports=hh;hh.blockSize=1024;hh.outSize=512;hh.hmacStrength=192;hh.padLength=128;hh.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var g$=dh(),d_e=y$();function i0(){if(!(this instanceof i0))return new i0;d_e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}g$.inherits(i0,d_e);p_e.exports=i0;i0.blockSize=1024;i0.outSize=384;i0.hmacStrength=192;i0.padLength=128;i0.prototype._digest=function(e){return e==="hex"?g$.toHex32(this.h.slice(0,12),"big"):g$.split32(this.h.slice(0,12),"big")}});var f_e=_(Q3=>{"use strict";d();p();Q3.sha1=t_e();Q3.sha224=s_e();Q3.sha256=p$();Q3.sha384=h_e();Q3.sha512=y$()});var w_e=_(v_e=>{"use strict";d();p();var kb=dh(),OUt=G3(),_9=kb.rotl32,m_e=kb.sum32,pC=kb.sum32_3,y_e=kb.sum32_4,b_e=OUt.BlockHash;function Nf(){if(!(this instanceof Nf))return new Nf;b_e.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}kb.inherits(Nf,b_e);v_e.ripemd160=Nf;Nf.blockSize=512;Nf.outSize=160;Nf.hmacStrength=192;Nf.padLength=64;Nf.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,h=s,f=o,m=0;m<80;m++){var y=m_e(_9(y_e(n,g_e(m,a,i,s),e[FUt[m]+t],LUt(m)),UUt[m]),o);n=o,o=s,s=_9(i,10),i=a,a=y,y=m_e(_9(y_e(c,g_e(79-m,u,l,h),e[WUt[m]+t],qUt(m)),HUt[m]),f),c=f,f=h,h=_9(l,10),l=u,u=y}y=pC(this.h[1],i,h),this.h[1]=pC(this.h[2],s,f),this.h[2]=pC(this.h[3],o,c),this.h[3]=pC(this.h[4],n,u),this.h[4]=pC(this.h[0],a,l),this.h[0]=y};Nf.prototype._digest=function(e){return e==="hex"?kb.toHex32(this.h,"little"):kb.split32(this.h,"little")};function g_e(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function LUt(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function qUt(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var FUt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],WUt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],UUt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],HUt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var __e=_((YIn,x_e)=>{"use strict";d();p();var jUt=dh(),zUt=zl();function Z3(r,e,t){if(!(this instanceof Z3))return new Z3(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(jUt.toArray(e,t))}x_e.exports=Z3;Z3.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),zUt(e.length<=this.blockSize);for(var t=e.length;t{d();p();var uc=T_e;uc.utils=dh();uc.common=G3();uc.sha=f_e();uc.ripemd=w_e();uc.hmac=__e();uc.sha1=uc.sha.sha1;uc.sha256=uc.sha.sha256;uc.sha224=uc.sha.sha224;uc.sha384=uc.sha.sha384;uc.sha512=uc.sha.sha512;uc.ripemd160=uc.ripemd.ripemd160});var C_e=_((tkn,E_e)=>{d();p();E_e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var T9=_(A_e=>{"use strict";d();p();var v$=A_e,My=hC(),b$=u$(),KUt=Kl(),I_e=KUt.assert;function k_e(r){r.type==="short"?this.curve=new b$.short(r):r.type==="edwards"?this.curve=new b$.edwards(r):this.curve=new b$.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,I_e(this.g.validate(),"Invalid curve"),I_e(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}v$.PresetCurve=k_e;function Ny(r,e){Object.defineProperty(v$,r,{configurable:!0,enumerable:!0,get:function(){var t=new k_e(e);return Object.defineProperty(v$,r,{configurable:!0,enumerable:!0,value:t}),t}})}Ny("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:My.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Ny("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:My.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Ny("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:My.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Ny("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:My.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});Ny("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:My.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});Ny("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:My.sha256,gRed:!1,g:["9"]});Ny("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:My.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var w$;try{w$=C_e()}catch{w$=void 0}Ny("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:My.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",w$]})});var R_e=_((okn,P_e)=>{"use strict";d();p();var VUt=hC(),Ab=LK(),S_e=zl();function By(r){if(!(this instanceof By))return new By(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ab.toArray(r.entropy,r.entropyEnc||"hex"),t=Ab.toArray(r.nonce,r.nonceEnc||"hex"),n=Ab.toArray(r.pers,r.persEnc||"hex");S_e(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}P_e.exports=By;By.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};By.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Ab.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";d();p();var GUt=so(),$Ut=Kl(),x$=$Ut.assert;function Gc(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}M_e.exports=Gc;Gc.fromPublic=function(e,t,n){return t instanceof Gc?t:new Gc(e,{pub:t,pubEnc:n})};Gc.fromPrivate=function(e,t,n){return t instanceof Gc?t:new Gc(e,{priv:t,privEnc:n})};Gc.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Gc.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Gc.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Gc.prototype._importPrivate=function(e,t){this.priv=new GUt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Gc.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?x$(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&x$(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Gc.prototype.derive=function(e){return e.validate()||x$(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Gc.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Gc.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Gc.prototype.inspect=function(){return""}});var O_e=_((hkn,D_e)=>{"use strict";d();p();var E9=so(),E$=Kl(),YUt=E$.assert;function C9(r,e){if(r instanceof C9)return r;this._importDER(r,e)||(YUt(r.r&&r.s,"Signature without r or s"),this.r=new E9(r.r,16),this.s=new E9(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}D_e.exports=C9;function JUt(){this.place=0}function _$(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function B_e(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}C9.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=B_e(t),n=B_e(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];T$(a,t.length),a=a.concat(t),a.push(2),T$(a,n.length);var i=a.concat(n),s=[48];return T$(s,i.length),s=s.concat(i),E$.encode(s,e)}});var W_e=_((ykn,F_e)=>{"use strict";d();p();var Sb=so(),L_e=R_e(),QUt=Kl(),C$=T9(),ZUt=ZR(),q_e=QUt.assert,I$=N_e(),I9=O_e();function Yd(r){if(!(this instanceof Yd))return new Yd(r);typeof r=="string"&&(q_e(Object.prototype.hasOwnProperty.call(C$,r),"Unknown curve "+r),r=C$[r]),r instanceof C$.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}F_e.exports=Yd;Yd.prototype.keyPair=function(e){return new I$(this,e)};Yd.prototype.keyFromPrivate=function(e,t){return I$.fromPrivate(this,e,t)};Yd.prototype.keyFromPublic=function(e,t){return I$.fromPublic(this,e,t)};Yd.prototype.genKeyPair=function(e){e||(e={});for(var t=new L_e({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||ZUt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new Sb(2));;){var i=new Sb(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Yd.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Yd.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new Sb(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new L_e({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new Sb(1)),l=0;;l++){var h=a.k?a.k(l):new Sb(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var E=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(E=E.umod(this.n),E.cmpn(0)!==0){var I=(f.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&E.cmp(this.nh)>0&&(E=this.n.sub(E),I^=1),new I9({r:y,s:E,recoveryParam:I})}}}}}};Yd.prototype.verify=function(e,t,n,a){e=this._truncateToN(new Sb(e,16)),n=this.keyFromPublic(n,a),t=new I9(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};Yd.prototype.recoverPubKey=function(r,e,t,n){q_e((3&t)===t,"The recovery param is more than two bits"),e=new I9(e,n);var a=this.n,i=new Sb(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),h=a.sub(i).mul(l).umod(a),f=o.mul(l).umod(a);return this.g.mulAdd(h,s,f)};Yd.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new I9(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var z_e=_((vkn,j_e)=>{"use strict";d();p();var fC=Kl(),H_e=fC.assert,U_e=fC.parseBytes,X3=fC.cachedProperty;function Bo(r,e){this.eddsa=r,this._secret=U_e(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=U_e(e.pub)}Bo.fromPublic=function(e,t){return t instanceof Bo?t:new Bo(e,{pub:t})};Bo.fromSecret=function(e,t){return t instanceof Bo?t:new Bo(e,{secret:t})};Bo.prototype.secret=function(){return this._secret};X3(Bo,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});X3(Bo,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});X3(Bo,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});X3(Bo,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});X3(Bo,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});X3(Bo,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Bo.prototype.sign=function(e){return H_e(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Bo.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Bo.prototype.getSecret=function(e){return H_e(this._secret,"KeyPair is public only"),fC.encode(this.secret(),e)};Bo.prototype.getPublic=function(e){return fC.encode(this.pubBytes(),e)};j_e.exports=Bo});var V_e=_((_kn,K_e)=>{"use strict";d();p();var XUt=so(),k9=Kl(),eHt=k9.assert,A9=k9.cachedProperty,tHt=k9.parseBytes;function Pb(r,e){this.eddsa=r,typeof e!="object"&&(e=tHt(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),eHt(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof XUt&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}A9(Pb,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});A9(Pb,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});A9(Pb,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});A9(Pb,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Pb.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Pb.prototype.toHex=function(){return k9.encode(this.toBytes(),"hex").toUpperCase()};K_e.exports=Pb});var Q_e=_((Ckn,J_e)=>{"use strict";d();p();var rHt=hC(),nHt=T9(),e5=Kl(),aHt=e5.assert,$_e=e5.parseBytes,Y_e=z_e(),G_e=V_e();function ll(r){if(aHt(r==="ed25519","only tested with ed25519 so far"),!(this instanceof ll))return new ll(r);r=nHt[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=rHt.sha512}J_e.exports=ll;ll.prototype.sign=function(e,t){e=$_e(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};ll.prototype.verify=function(e,t,n){e=$_e(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};ll.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";d();p();var Rb=Z_e;Rb.version=Zge().version;Rb.utils=Kl();Rb.rand=ZR();Rb.curve=u$();Rb.curves=T9();Rb.ec=W_e();Rb.eddsa=Q_e()});var X_e=_(t5=>{"use strict";d();p();var iHt=t5&&t5.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(t5,"__esModule",{value:!0});t5.EC=void 0;var sHt=iHt(rC()),oHt=sHt.default.ec;t5.EC=oHt});var eTe=_(S9=>{"use strict";d();p();Object.defineProperty(S9,"__esModule",{value:!0});S9.version=void 0;S9.version="signing-key/5.7.0"});var yC=_(Dy=>{"use strict";d();p();Object.defineProperty(Dy,"__esModule",{value:!0});Dy.computePublicKey=Dy.recoverPublicKey=Dy.SigningKey=void 0;var cHt=X_e(),Ws=wr(),mC=Aa(),uHt=Zt(),lHt=eTe(),A$=new uHt.Logger(lHt.version),k$=null;function Bf(){return k$||(k$=new cHt.EC("secp256k1")),k$}var tTe=function(){function r(e){(0,mC.defineReadOnly)(this,"curve","secp256k1"),(0,mC.defineReadOnly)(this,"privateKey",(0,Ws.hexlify)(e)),(0,Ws.hexDataLength)(this.privateKey)!==32&&A$.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey));(0,mC.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,mC.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,mC.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=Bf().keyFromPublic((0,Ws.arrayify)(this.publicKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=(0,Ws.arrayify)(e);n.length!==32&&A$.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,Ws.splitSignature)({recoveryParam:a.recoveryParam,r:(0,Ws.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,Ws.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=Bf().keyFromPrivate((0,Ws.arrayify)(this.privateKey)),n=Bf().keyFromPublic((0,Ws.arrayify)(rTe(e)));return(0,Ws.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();Dy.SigningKey=tTe;function dHt(r,e){var t=(0,Ws.splitSignature)(e),n={r:(0,Ws.arrayify)(t.r),s:(0,Ws.arrayify)(t.s)};return"0x"+Bf().recoverPubKey((0,Ws.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}Dy.recoverPublicKey=dHt;function rTe(r,e){var t=(0,Ws.arrayify)(r);if(t.length===32){var n=new tTe(t);return e?"0x"+Bf().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,Ws.hexlify)(t):"0x"+Bf().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+Bf().keyFromPublic(t).getPublic(!0,"hex"):(0,Ws.hexlify)(t)}return A$.throwArgumentError("invalid public or private key","key","[REDACTED]")}Dy.computePublicKey=rTe});var nTe=_(P9=>{"use strict";d();p();Object.defineProperty(P9,"__esModule",{value:!0});P9.version=void 0;P9.version="transactions/5.7.0"});var s0=_(vs=>{"use strict";d();p();var pHt=vs&&vs.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),hHt=vs&&vs.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),fHt=vs&&vs.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&pHt(e,r,t);return hHt(e,r),e};Object.defineProperty(vs,"__esModule",{value:!0});vs.parse=vs.serialize=vs.accessListify=vs.recoverAddress=vs.computeAddress=vs.TransactionTypes=void 0;var gC=Pd(),Mb=Os(),Vr=wr(),mHt=Vg(),r5=jl(),yHt=Aa(),Oy=fHt(u7()),aTe=yC(),P$=Zt(),gHt=nTe(),Yc=new P$.Logger(gHt.version),bHt;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(bHt=vs.TransactionTypes||(vs.TransactionTypes={}));function R$(r){return r==="0x"?null:(0,gC.getAddress)(r)}function $c(r){return r==="0x"?mHt.Zero:Mb.BigNumber.from(r)}var vHt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],wHt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function iTe(r){var e=(0,aTe.computePublicKey)(r);return(0,gC.getAddress)((0,Vr.hexDataSlice)((0,r5.keccak256)((0,Vr.hexDataSlice)(e,1)),12))}vs.computeAddress=iTe;function M$(r,e){return iTe((0,aTe.recoverPublicKey)((0,Vr.arrayify)(r),e))}vs.recoverAddress=M$;function $l(r,e){var t=(0,Vr.stripZeros)(Mb.BigNumber.from(r).toHexString());return t.length>32&&Yc.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function S$(r,e){return{address:(0,gC.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Vr.hexDataLength)(t)!==32&&Yc.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function R9(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&Yc.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),S$(t[0],t[1])):S$(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return S$(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}vs.accessListify=R9;function sTe(r){return R9(r).map(function(e){return[e.address,e.storageKeys]})}function oTe(r,e){if(r.gasPrice!=null){var t=Mb.BigNumber.from(r.gasPrice),n=Mb.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||Yc.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[$l(r.chainId||0,"chainId"),$l(r.nonce||0,"nonce"),$l(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),$l(r.maxFeePerGas||0,"maxFeePerGas"),$l(r.gasLimit||0,"gasLimit"),r.to!=null?(0,gC.getAddress)(r.to):"0x",$l(r.value||0,"value"),r.data||"0x",sTe(r.accessList||[])];if(e){var i=(0,Vr.splitSignature)(e);a.push($l(i.recoveryParam,"recoveryParam")),a.push((0,Vr.stripZeros)(i.r)),a.push((0,Vr.stripZeros)(i.s))}return(0,Vr.hexConcat)(["0x02",Oy.encode(a)])}function cTe(r,e){var t=[$l(r.chainId||0,"chainId"),$l(r.nonce||0,"nonce"),$l(r.gasPrice||0,"gasPrice"),$l(r.gasLimit||0,"gasLimit"),r.to!=null?(0,gC.getAddress)(r.to):"0x",$l(r.value||0,"value"),r.data||"0x",sTe(r.accessList||[])];if(e){var n=(0,Vr.splitSignature)(e);t.push($l(n.recoveryParam,"recoveryParam")),t.push((0,Vr.stripZeros)(n.r)),t.push((0,Vr.stripZeros)(n.s))}return(0,Vr.hexConcat)(["0x01",Oy.encode(t)])}function xHt(r,e){(0,yHt.checkProperties)(r,wHt);var t=[];vHt.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Vr.arrayify)((0,Vr.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&Yc.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Vr.stripZeros)(o),o.length>s.maxLength&&Yc.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Vr.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&Yc.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Vr.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Vr.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Oy.encode(t);var a=(0,Vr.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&Yc.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&Yc.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Vr.hexlify)(i)),t.push((0,Vr.stripZeros)((0,Vr.arrayify)(a.r))),t.push((0,Vr.stripZeros)((0,Vr.arrayify)(a.s))),Oy.encode(t)}function _Ht(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&Yc.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),xHt(r,e);switch(r.type){case 1:return cTe(r,e);case 2:return oTe(r,e);default:break}return Yc.throwError("unsupported transaction type: "+r.type,P$.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}vs.serialize=_Ht;function uTe(r,e,t){try{var n=$c(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{Yc.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Vr.hexZeroPad)(e[1],32),r.s=(0,Vr.hexZeroPad)(e[2],32);try{var a=(0,r5.keccak256)(t(r));r.from=M$(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function THt(r){var e=Oy.decode(r.slice(1));e.length!==9&&e.length!==12&&Yc.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Vr.hexlify)(r));var t=$c(e[2]),n=$c(e[3]),a={type:2,chainId:$c(e[0]).toNumber(),nonce:$c(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:$c(e[4]),to:R$(e[5]),value:$c(e[6]),data:e[7],accessList:R9(e[8])};return e.length===9||(a.hash=(0,r5.keccak256)(r),uTe(a,e.slice(9),oTe)),a}function EHt(r){var e=Oy.decode(r.slice(1));e.length!==8&&e.length!==11&&Yc.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Vr.hexlify)(r));var t={type:1,chainId:$c(e[0]).toNumber(),nonce:$c(e[1]).toNumber(),gasPrice:$c(e[2]),gasLimit:$c(e[3]),to:R$(e[4]),value:$c(e[5]),data:e[6],accessList:R9(e[7])};return e.length===8||(t.hash=(0,r5.keccak256)(r),uTe(t,e.slice(8),cTe)),t}function CHt(r){var e=Oy.decode(r);e.length!==9&&e.length!==6&&Yc.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:$c(e[0]).toNumber(),gasPrice:$c(e[1]),gasLimit:$c(e[2]),to:R$(e[3]),value:$c(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Mb.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Vr.hexZeroPad)(e[7],32),t.s=(0,Vr.hexZeroPad)(e[8],32),Mb.BigNumber.from(t.r).isZero()&&Mb.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Vr.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,r5.keccak256)(Oy.encode(a));try{t.from=M$(i,{r:(0,Vr.hexlify)(t.r),s:(0,Vr.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,r5.keccak256)(r)}return t.type=null,t}function IHt(r){var e=(0,Vr.arrayify)(r);if(e[0]>127)return CHt(e);switch(e[0]){case 1:return EHt(e);case 2:return THt(e);default:break}return Yc.throwError("unsupported transaction type: "+e[0],P$.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}vs.parse=IHt});var lTe=_(M9=>{"use strict";d();p();Object.defineProperty(M9,"__esModule",{value:!0});M9.version=void 0;M9.version="contracts/5.7.0"});var bTe=_(Jc=>{"use strict";d();p();var D9=Jc&&Jc.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),qy=Jc&&Jc.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Fy=Jc&&Jc.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var h=l[0];try{i[u]==null&&(0,ht.defineReadOnly)(i,u,i[h])}catch{}i.functions[u]==null&&(0,ht.defineReadOnly)(i.functions,u,i.functions[h]),i.callStatic[u]==null&&(0,ht.defineReadOnly)(i.callStatic,u,i.callStatic[h]),i.populateTransaction[u]==null&&(0,ht.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[h]),i.estimateGas[u]==null&&(0,ht.defineReadOnly)(i.estimateGas,u,i.estimateGas[h])}})}return r.getContractAddress=function(e){return(0,vC.getContractAddress)(e)},r.getInterface=function(e){return N9.Interface.isInterface(e)?e:new N9.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&Wa.throwError("contract not deployed",lc.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||Wa.throwError("sending a transactions require a signer",lc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,ht.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Wa.throwError("cannot override "+a,lc.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new N$.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,ht.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return N9.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new DHt);if(e==="event")return this._normalizeRunningEvent(new wC("event",null));if(e==="*")return this._normalizeRunningEvent(new hTe(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new pTe(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new pTe(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new wC(yTe(a),a))}return this._normalizeRunningEvent(new hTe(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,ht.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||Wa.throwError("events require a provider or a signer with a provider",lc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,kHt([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,ht.shallowCopy)(i.filter);return typeof t=="string"&&(0,Nb.isHexString)(t,32)?(n!=null&&Wa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();Jc.BaseContract=gTe;var B$=function(r){D9(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(gTe);Jc.Contract=B$;var OHt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,Nb.isBytes)(t)?i=(0,Nb.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,Nb.isHexString)(i)||i.length%2)&&Wa.throwArgumentError("invalid bytecode","bytecode",t),n&&!N$.Signer.isSigner(n)&&Wa.throwArgumentError("invalid signer","signer",n),(0,ht.defineReadOnly)(this,"bytecode",i),(0,ht.defineReadOnly)(this,"interface",(0,ht.getStatic)(a,"getInterface")(e)),(0,ht.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(Wy,"__esModule",{value:!0});Wy.Base58=Wy.Base32=Wy.BaseX=void 0;var vTe=wr(),L9=Aa(),D$=function(){function r(e){(0,L9.defineReadOnly)(this,"alphabet",e),(0,L9.defineReadOnly)(this,"base",e.length),(0,L9.defineReadOnly)(this,"_alphabetMap",{}),(0,L9.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";d();p();Object.defineProperty(xC,"__esModule",{value:!0});xC.SupportedAlgorithm=void 0;var FHt;(function(r){r.sha256="sha256",r.sha512="sha512"})(FHt=xC.SupportedAlgorithm||(xC.SupportedAlgorithm={}))});var wTe=_(F9=>{"use strict";d();p();Object.defineProperty(F9,"__esModule",{value:!0});F9.version=void 0;F9.version="sha2/5.7.0"});var _Te=_(Jd=>{"use strict";d();p();var WHt=Jd&&Jd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Jd,"__esModule",{value:!0});Jd.computeHmac=Jd.sha512=Jd.sha256=Jd.ripemd160=void 0;var _C=WHt(hC()),TC=wr(),UHt=O$(),xTe=Zt(),HHt=wTe(),jHt=new xTe.Logger(HHt.version);function zHt(r){return"0x"+_C.default.ripemd160().update((0,TC.arrayify)(r)).digest("hex")}Jd.ripemd160=zHt;function KHt(r){return"0x"+_C.default.sha256().update((0,TC.arrayify)(r)).digest("hex")}Jd.sha256=KHt;function VHt(r){return"0x"+_C.default.sha512().update((0,TC.arrayify)(r)).digest("hex")}Jd.sha512=VHt;function GHt(r,e,t){return UHt.SupportedAlgorithm[r]||jHt.throwError("unsupported algorithm "+r,xTe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+_C.default.hmac(_C.default[r],(0,TC.arrayify)(e)).update((0,TC.arrayify)(t)).digest("hex")}Jd.computeHmac=GHt});var Bb=_(Qd=>{"use strict";d();p();Object.defineProperty(Qd,"__esModule",{value:!0});Qd.SupportedAlgorithm=Qd.sha512=Qd.sha256=Qd.ripemd160=Qd.computeHmac=void 0;var W9=_Te();Object.defineProperty(Qd,"computeHmac",{enumerable:!0,get:function(){return W9.computeHmac}});Object.defineProperty(Qd,"ripemd160",{enumerable:!0,get:function(){return W9.ripemd160}});Object.defineProperty(Qd,"sha256",{enumerable:!0,get:function(){return W9.sha256}});Object.defineProperty(Qd,"sha512",{enumerable:!0,get:function(){return W9.sha512}});var $Ht=O$();Object.defineProperty(Qd,"SupportedAlgorithm",{enumerable:!0,get:function(){return $Ht.SupportedAlgorithm}})});var ETe=_(U9=>{"use strict";d();p();Object.defineProperty(U9,"__esModule",{value:!0});U9.pbkdf2=void 0;var n5=wr(),TTe=Bb();function YHt(r,e,t,n,a){r=(0,n5.arrayify)(r),e=(0,n5.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,h=1;h<=s;h++){c[e.length]=h>>24&255,c[e.length+1]=h>>16&255,c[e.length+2]=h>>8&255,c[e.length+3]=h&255;var f=(0,n5.arrayify)((0,TTe.computeHmac)(a,r,c));i||(i=f.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(f);for(var m=1;m{"use strict";d();p();Object.defineProperty(H9,"__esModule",{value:!0});H9.pbkdf2=void 0;var JHt=ETe();Object.defineProperty(H9,"pbkdf2",{enumerable:!0,get:function(){return JHt.pbkdf2}})});var CTe=_(z9=>{"use strict";d();p();Object.defineProperty(z9,"__esModule",{value:!0});z9.version=void 0;z9.version="wordlists/5.7.0"});var Df=_(Db=>{"use strict";d();p();Object.defineProperty(Db,"__esModule",{value:!0});Db.Wordlist=Db.logger=void 0;var QHt=!1,ZHt=Qg(),ITe=Aa(),XHt=Zt(),ejt=CTe();Db.logger=new XHt.Logger(ejt.version);var tjt=function(){function r(e){var t=this.constructor;Db.logger.checkAbstract(t,r),(0,ITe.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,ZHt.id)(t.join(` + `)+" "+t[1]:t[0]+e+" "+r.join(", ")+" "+t[1]}Lr.types=v2e();function E2e(r){return Array.isArray(r)}Lr.isArray=E2e;function zG(r){return typeof r=="boolean"}Lr.isBoolean=zG;function kR(r){return r===null}Lr.isNull=kR;function LBt(r){return r==null}Lr.isNullOrUndefined=LBt;function C2e(r){return typeof r=="number"}Lr.isNumber=C2e;function AR(r){return typeof r=="string"}Lr.isString=AR;function qBt(r){return typeof r=="symbol"}Lr.isSymbol=qBt;function fb(r){return r===void 0}Lr.isUndefined=fb;function GE(r){return W5(r)&&KG(r)==="[object RegExp]"}Lr.isRegExp=GE;Lr.types.isRegExp=GE;function W5(r){return typeof r=="object"&&r!==null}Lr.isObject=W5;function IR(r){return W5(r)&&KG(r)==="[object Date]"}Lr.isDate=IR;Lr.types.isDate=IR;function VE(r){return W5(r)&&(KG(r)==="[object Error]"||r instanceof Error)}Lr.isError=VE;Lr.types.isNativeError=VE;function ER(r){return typeof r=="function"}Lr.isFunction=ER;function FBt(r){return r===null||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="symbol"||typeof r>"u"}Lr.isPrimitive=FBt;Lr.isBuffer=_2e();function KG(r){return Object.prototype.toString.call(r)}function HG(r){return r<10?"0"+r.toString(10):r.toString(10)}var WBt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function UBt(){var r=new Date,e=[HG(r.getHours()),HG(r.getMinutes()),HG(r.getSeconds())].join(":");return[r.getDate(),WBt[r.getMonth()],e].join(" ")}Lr.log=function(){console.log("%s - %s",UBt(),Lr.format.apply(Lr,arguments))};Lr.inherits=_r();Lr._extend=function(r,e){if(!e||!W5(e))return r;for(var t=Object.keys(e),n=t.length;n--;)r[t[n]]=e[t[n]];return r};function I2e(r,e){return Object.prototype.hasOwnProperty.call(r,e)}var hb=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Lr.promisify=function(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');if(hb&&e[hb]){var t=e[hb];if(typeof t!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,hb,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var n,a,i=new Promise(function(c,u){n=c,a=u}),s=[],o=0;o{"use strict";d();p();function k2e(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),t.push.apply(t,n)}return t}function A2e(r){for(var e=1;e0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(t){var n={data:t,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(this.length===0)return"";for(var n=this.head,a=""+n.data;n=n.next;)a+=t+n.data;return a}},{key:"concat",value:function(t){if(this.length===0)return PR.alloc(0);for(var n=PR.allocUnsafe(t>>>0),a=this.head,i=0;a;)QBt(a.data,n,i),i+=a.data.length,a=a.next;return n}},{key:"consume",value:function(t,n){var a;return ts.length?s.length:t;if(o===s.length?i+=s:i+=s.slice(0,t),t-=o,t===0){o===s.length?(++a,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(o));break}++a}return this.length-=a,i}},{key:"_getBuffer",value:function(t){var n=PR.allocUnsafe(t),a=this.head,i=1;for(a.data.copy(n),t-=a.data.length;a=a.next;){var s=a.data,o=t>s.length?s.length:t;if(s.copy(n,n.length-t,0,o),t-=o,t===0){o===s.length?(++i,a.next?this.head=a.next:this.head=this.tail=null):(this.head=a,a.data=s.slice(o));break}++i}return this.length-=i,n}},{key:JBt,value:function(t,n){return GG(this,A2e(A2e({},n),{},{depth:0,customInspect:!1}))}}]),r}()});var $G=x((k6n,B2e)=>{"use strict";d();p();function ZBt(r,e){var t=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(e?e(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,g.nextTick(VG,this,r)):g.nextTick(VG,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(i){!e&&i?t._writableState?t._writableState.errorEmitted?g.nextTick(RR,t):(t._writableState.errorEmitted=!0,g.nextTick(N2e,t,i)):g.nextTick(N2e,t,i):e?(g.nextTick(RR,t),e(i)):g.nextTick(RR,t)}),this)}function N2e(r,e){VG(r,e),RR(r)}function RR(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function XBt(){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 VG(r,e){r.emit("error",e)}function eDt(r,e){var t=r._readableState,n=r._writableState;t&&t.autoDestroy||n&&n.autoDestroy?r.destroy(e):r.emit("error",e)}B2e.exports={destroy:ZBt,undestroy:XBt,errorOrDestroy:eDt}});var mb=x((P6n,L2e)=>{"use strict";d();p();function tDt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}var O2e={};function Ld(r,e,t){t||(t=Error);function n(i,s,o){return typeof e=="string"?e:e(i,s,o)}var a=function(i){tDt(s,i);function s(o,c,u){return i.call(this,n(o,c,u))||this}return s}(t);a.prototype.name=t.name,a.prototype.code=r,O2e[r]=a}function D2e(r,e){if(Array.isArray(r)){var t=r.length;return r=r.map(function(n){return String(n)}),t>2?"one of ".concat(e," ").concat(r.slice(0,t-1).join(", "),", or ")+r[t-1]:t===2?"one of ".concat(e," ").concat(r[0]," or ").concat(r[1]):"of ".concat(e," ").concat(r[0])}else return"of ".concat(e," ").concat(String(r))}function rDt(r,e,t){return r.substr(!t||t<0?0:+t,e.length)===e}function nDt(r,e,t){return(t===void 0||t>r.length)&&(t=r.length),r.substring(t-e.length,t)===e}function aDt(r,e,t){return typeof t!="number"&&(t=0),t+e.length>r.length?!1:r.indexOf(e,t)!==-1}Ld("ERR_INVALID_OPT_VALUE",function(r,e){return'The value "'+e+'" is invalid for option "'+r+'"'},TypeError);Ld("ERR_INVALID_ARG_TYPE",function(r,e,t){var n;typeof e=="string"&&rDt(e,"not ")?(n="must not be",e=e.replace(/^not /,"")):n="must be";var a;if(nDt(r," argument"))a="The ".concat(r," ").concat(n," ").concat(D2e(e,"type"));else{var i=aDt(r,".")?"property":"argument";a='The "'.concat(r,'" ').concat(i," ").concat(n," ").concat(D2e(e,"type"))}return a+=". Received type ".concat(typeof t),a},TypeError);Ld("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Ld("ERR_METHOD_NOT_IMPLEMENTED",function(r){return"The "+r+" method is not implemented"});Ld("ERR_STREAM_PREMATURE_CLOSE","Premature close");Ld("ERR_STREAM_DESTROYED",function(r){return"Cannot call "+r+" after a stream was destroyed"});Ld("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Ld("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Ld("ERR_STREAM_WRITE_AFTER_END","write after end");Ld("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Ld("ERR_UNKNOWN_ENCODING",function(r){return"Unknown encoding: "+r},TypeError);Ld("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");L2e.exports.codes=O2e});var YG=x((N6n,q2e)=>{"use strict";d();p();var iDt=mb().codes.ERR_INVALID_OPT_VALUE;function sDt(r,e,t){return r.highWaterMark!=null?r.highWaterMark:e?r[t]:null}function oDt(r,e,t,n){var a=sDt(e,n,t);if(a!=null){if(!(isFinite(a)&&Math.floor(a)===a)||a<0){var i=n?t:"highWaterMark";throw new iDt(i,a)}return Math.floor(a)}return r.objectMode?16:16*1024}q2e.exports={getHighWaterMark:oDt}});var W2e=x((O6n,F2e)=>{d();p();F2e.exports=cDt;function cDt(r,e){if(JG("noDeprecation"))return r;var t=!1;function n(){if(!t){if(JG("throwDeprecation"))throw new Error(e);JG("traceDeprecation")?console.trace(e):console.warn(e),t=!0}return r.apply(this,arguments)}return n}function JG(r){try{if(!global.localStorage)return!1}catch{return!1}var e=global.localStorage[r];return e==null?!1:String(e).toLowerCase()==="true"}});var BR=x((F6n,G2e)=>{"use strict";d();p();G2e.exports=ns;function H2e(r){var e=this;this.next=null,this.entry=null,this.finish=function(){DDt(e,r)}}var U5;ns.WritableState=YE;var uDt={deprecate:W2e()},j2e=gG(),NR=cc().Buffer,lDt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dDt(r){return NR.from(r)}function pDt(r){return NR.isBuffer(r)||r instanceof lDt}var ZG=$G(),hDt=YG(),fDt=hDt.getHighWaterMark,Py=mb().codes,mDt=Py.ERR_INVALID_ARG_TYPE,yDt=Py.ERR_METHOD_NOT_IMPLEMENTED,gDt=Py.ERR_MULTIPLE_CALLBACK,bDt=Py.ERR_STREAM_CANNOT_PIPE,vDt=Py.ERR_STREAM_DESTROYED,wDt=Py.ERR_STREAM_NULL_VALUES,_Dt=Py.ERR_STREAM_WRITE_AFTER_END,xDt=Py.ERR_UNKNOWN_ENCODING,H5=ZG.errorOrDestroy;_r()(ns,j2e);function TDt(){}function YE(r,e,t){U5=U5||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof U5),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.writableObjectMode),this.highWaterMark=fDt(this,r,"writableHighWaterMark",t),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=r.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=r.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(a){PDt(e,a)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new H2e(this)}YE.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t};(function(){try{Object.defineProperty(YE.prototype,"buffer",{get:uDt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var MR;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(MR=Function.prototype[Symbol.hasInstance],Object.defineProperty(ns,Symbol.hasInstance,{value:function(e){return MR.call(this,e)?!0:this!==ns?!1:e&&e._writableState instanceof YE}})):MR=function(e){return e instanceof this};function ns(r){U5=U5||Ry();var e=this instanceof U5;if(!e&&!MR.call(ns,this))return new ns(r);this._writableState=new YE(r,this,e),this.writable=!0,r&&(typeof r.write=="function"&&(this._write=r.write),typeof r.writev=="function"&&(this._writev=r.writev),typeof r.destroy=="function"&&(this._destroy=r.destroy),typeof r.final=="function"&&(this._final=r.final)),j2e.call(this)}ns.prototype.pipe=function(){H5(this,new bDt)};function EDt(r,e){var t=new _Dt;H5(r,t),g.nextTick(e,t)}function CDt(r,e,t,n){var a;return t===null?a=new wDt:typeof t!="string"&&!e.objectMode&&(a=new mDt("chunk",["string","Buffer"],t)),a?(H5(r,a),g.nextTick(n,a),!1):!0}ns.prototype.write=function(r,e,t){var n=this._writableState,a=!1,i=!n.objectMode&&pDt(r);return i&&!NR.isBuffer(r)&&(r=dDt(r)),typeof e=="function"&&(t=e,e=null),i?e="buffer":e||(e=n.defaultEncoding),typeof t!="function"&&(t=TDt),n.ending?EDt(this,t):(i||CDt(this,n,r,t))&&(n.pendingcb++,a=kDt(this,n,i,r,e,t)),a};ns.prototype.cork=function(){this._writableState.corked++};ns.prototype.uncork=function(){var r=this._writableState;r.corked&&(r.corked--,!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&z2e(this,r))};ns.prototype.setDefaultEncoding=function(e){if(typeof e=="string"&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new xDt(e);return this._writableState.defaultEncoding=e,this};Object.defineProperty(ns.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function IDt(r,e,t){return!r.objectMode&&r.decodeStrings!==!1&&typeof e=="string"&&(e=NR.from(e,t)),e}Object.defineProperty(ns.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function kDt(r,e,t,n,a,i){if(!t){var s=IDt(e,n,a);n!==s&&(t=!0,a="buffer",n=s)}var o=e.objectMode?1:n.length;e.length+=o;var c=e.length{"use strict";d();p();var ODt=Object.keys||function(r){var e=[];for(var t in r)e.push(t);return e};$2e.exports=If;var V2e=LR(),eV=BR();_r()(If,V2e);for(XG=ODt(eV.prototype),DR=0;DR{"use strict";d();p();var rV=Er().Buffer,Y2e=rV.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function FDt(r){if(!r)return"utf8";for(var e;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(e)return;r=(""+r).toLowerCase(),e=!0}}function WDt(r){var e=FDt(r);if(typeof e!="string"&&(rV.isEncoding===Y2e||!Y2e(r)))throw new Error("Unknown encoding: "+r);return e||r}J2e.StringDecoder=JE;function JE(r){this.encoding=WDt(r);var e;switch(this.encoding){case"utf16le":this.text=GDt,this.end=VDt,e=4;break;case"utf8":this.fillLast=jDt,e=4;break;case"base64":this.text=$Dt,this.end=YDt,e=3;break;default:this.write=JDt,this.end=QDt;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rV.allocUnsafe(e)}JE.prototype.write=function(r){if(r.length===0)return"";var e,t;if(this.lastNeed){if(e=this.fillLast(r),e===void 0)return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function UDt(r,e,t){var n=e.length-1;if(n=0?(a>0&&(r.lastNeed=a-1),a):--n=0?(a>0&&(r.lastNeed=a-2),a):--n=0?(a>0&&(a===2?a=0:r.lastNeed=a-3),a):0))}function HDt(r,e,t){if((e[0]&192)!==128)return r.lastNeed=0,"\uFFFD";if(r.lastNeed>1&&e.length>1){if((e[1]&192)!==128)return r.lastNeed=1,"\uFFFD";if(r.lastNeed>2&&e.length>2&&(e[2]&192)!==128)return r.lastNeed=2,"\uFFFD"}}function jDt(r){var e=this.lastTotal-this.lastNeed,t=HDt(this,r,e);if(t!==void 0)return t;if(this.lastNeed<=r.length)return r.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,e,0,r.length),this.lastNeed-=r.length}function zDt(r,e){var t=UDt(this,r,e);if(!this.lastNeed)return r.toString("utf8",e);this.lastTotal=t;var n=r.length-(t-this.lastNeed);return r.copy(this.lastChar,0,n),r.toString("utf8",e,n)}function KDt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+"\uFFFD":e}function GDt(r,e){if((r.length-e)%2===0){var t=r.toString("utf16le",e);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",e,r.length-1)}function VDt(r){var e=r&&r.length?this.write(r):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,t)}return e}function $Dt(r,e){var t=(r.length-e)%3;return t===0?r.toString("base64",e):(this.lastNeed=3-t,this.lastTotal=3,t===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",e,r.length-t))}function YDt(r){var e=r&&r.length?this.write(r):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function JDt(r){return r.toString(this.encoding)}function QDt(r){return r&&r.length?this.write(r):""}});var QE=x(($6n,X2e)=>{"use strict";d();p();var Q2e=mb().codes.ERR_STREAM_PREMATURE_CLOSE;function ZDt(r){var e=!1;return function(){if(!e){e=!0;for(var t=arguments.length,n=new Array(t),a=0;a{"use strict";d();p();var FR;function My(r,e,t){return e=tOt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function tOt(r){var e=rOt(r,"string");return typeof e=="symbol"?e:String(e)}function rOt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var nOt=QE(),Ny=Symbol("lastResolve"),yb=Symbol("lastReject"),ZE=Symbol("error"),WR=Symbol("ended"),gb=Symbol("lastPromise"),nV=Symbol("handlePromise"),bb=Symbol("stream");function By(r,e){return{value:r,done:e}}function aOt(r){var e=r[Ny];if(e!==null){var t=r[bb].read();t!==null&&(r[gb]=null,r[Ny]=null,r[yb]=null,e(By(t,!1)))}}function iOt(r){g.nextTick(aOt,r)}function sOt(r,e){return function(t,n){r.then(function(){if(e[WR]){t(By(void 0,!0));return}e[nV](t,n)},n)}}var oOt=Object.getPrototypeOf(function(){}),cOt=Object.setPrototypeOf((FR={get stream(){return this[bb]},next:function(){var e=this,t=this[ZE];if(t!==null)return Promise.reject(t);if(this[WR])return Promise.resolve(By(void 0,!0));if(this[bb].destroyed)return new Promise(function(s,o){g.nextTick(function(){e[ZE]?o(e[ZE]):s(By(void 0,!0))})});var n=this[gb],a;if(n)a=new Promise(sOt(n,this));else{var i=this[bb].read();if(i!==null)return Promise.resolve(By(i,!1));a=new Promise(this[nV])}return this[gb]=a,a}},My(FR,Symbol.asyncIterator,function(){return this}),My(FR,"return",function(){var e=this;return new Promise(function(t,n){e[bb].destroy(null,function(a){if(a){n(a);return}t(By(void 0,!0))})})}),FR),oOt),uOt=function(e){var t,n=Object.create(cOt,(t={},My(t,bb,{value:e,writable:!0}),My(t,Ny,{value:null,writable:!0}),My(t,yb,{value:null,writable:!0}),My(t,ZE,{value:null,writable:!0}),My(t,WR,{value:e._readableState.endEmitted,writable:!0}),My(t,nV,{value:function(i,s){var o=n[bb].read();o?(n[gb]=null,n[Ny]=null,n[yb]=null,i(By(o,!1))):(n[Ny]=i,n[yb]=s)},writable:!0}),t));return n[gb]=null,nOt(e,function(a){if(a&&a.code!=="ERR_STREAM_PREMATURE_CLOSE"){var i=n[yb];i!==null&&(n[gb]=null,n[Ny]=null,n[yb]=null,i(a)),n[ZE]=a;return}var s=n[Ny];s!==null&&(n[gb]=null,n[Ny]=null,n[yb]=null,s(By(void 0,!0))),n[WR]=!0}),e.on("readable",iOt.bind(null,n)),n};ewe.exports=uOt});var nwe=x((eEn,rwe)=>{d();p();rwe.exports=function(){throw new Error("Readable.from is not available in the browser")}});var LR=x((aEn,hwe)=>{"use strict";d();p();hwe.exports=cn;var j5;cn.ReadableState=owe;var nEn=Bu().EventEmitter,swe=function(e,t){return e.listeners(t).length},eC=gG(),UR=cc().Buffer,lOt=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function dOt(r){return UR.from(r)}function pOt(r){return UR.isBuffer(r)||r instanceof lOt}var aV=SR(),Pr;aV&&aV.debuglog?Pr=aV.debuglog("stream"):Pr=function(){};var hOt=M2e(),dV=$G(),fOt=YG(),mOt=fOt.getHighWaterMark,HR=mb().codes,yOt=HR.ERR_INVALID_ARG_TYPE,gOt=HR.ERR_STREAM_PUSH_AFTER_EOF,bOt=HR.ERR_METHOD_NOT_IMPLEMENTED,vOt=HR.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,z5,iV,sV;_r()(cn,eC);var XE=dV.errorOrDestroy,oV=["error","close","destroy","pause","resume"];function wOt(r,e,t){if(typeof r.prependListener=="function")return r.prependListener(e,t);!r._events||!r._events[e]?r.on(e,t):Array.isArray(r._events[e])?r._events[e].unshift(t):r._events[e]=[t,r._events[e]]}function owe(r,e,t){j5=j5||Ry(),r=r||{},typeof t!="boolean"&&(t=e instanceof j5),this.objectMode=!!r.objectMode,t&&(this.objectMode=this.objectMode||!!r.readableObjectMode),this.highWaterMark=mOt(this,r,"readableHighWaterMark",t),this.buffer=new hOt,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=r.emitClose!==!1,this.autoDestroy=!!r.autoDestroy,this.destroyed=!1,this.defaultEncoding=r.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,r.encoding&&(z5||(z5=qR().StringDecoder),this.decoder=new z5(r.encoding),this.encoding=r.encoding)}function cn(r){if(j5=j5||Ry(),!(this instanceof cn))return new cn(r);var e=this instanceof j5;this._readableState=new owe(r,this,e),this.readable=!0,r&&(typeof r.read=="function"&&(this._read=r.read),typeof r.destroy=="function"&&(this._destroy=r.destroy)),eC.call(this)}Object.defineProperty(cn.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){!this._readableState||(this._readableState.destroyed=e)}});cn.prototype.destroy=dV.destroy;cn.prototype._undestroy=dV.undestroy;cn.prototype._destroy=function(r,e){e(r)};cn.prototype.push=function(r,e){var t=this._readableState,n;return t.objectMode?n=!0:typeof r=="string"&&(e=e||t.defaultEncoding,e!==t.encoding&&(r=UR.from(r,e),e=""),n=!0),cwe(this,r,e,!1,n)};cn.prototype.unshift=function(r){return cwe(this,r,null,!0,!1)};function cwe(r,e,t,n,a){Pr("readableAddChunk",e);var i=r._readableState;if(e===null)i.reading=!1,TOt(r,i);else{var s;if(a||(s=_Ot(i,e)),s)XE(r,s);else if(i.objectMode||e&&e.length>0)if(typeof e!="string"&&!i.objectMode&&Object.getPrototypeOf(e)!==UR.prototype&&(e=dOt(e)),n)i.endEmitted?XE(r,new vOt):cV(r,i,e,!0);else if(i.ended)XE(r,new gOt);else{if(i.destroyed)return!1;i.reading=!1,i.decoder&&!t?(e=i.decoder.write(e),i.objectMode||e.length!==0?cV(r,i,e,!1):lV(r,i)):cV(r,i,e,!1)}else n||(i.reading=!1,lV(r,i))}return!i.ended&&(i.length=awe?r=awe:(r--,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r++),r}function iwe(r,e){return r<=0||e.length===0&&e.ended?0:e.objectMode?1:r!==r?e.flowing&&e.length?e.buffer.head.data.length:e.length:(r>e.highWaterMark&&(e.highWaterMark=xOt(r)),r<=e.length?r:e.ended?e.length:(e.needReadable=!0,0))}cn.prototype.read=function(r){Pr("read",r),r=parseInt(r,10);var e=this._readableState,t=r;if(r!==0&&(e.emittedReadable=!1),r===0&&e.needReadable&&((e.highWaterMark!==0?e.length>=e.highWaterMark:e.length>0)||e.ended))return Pr("read: emitReadable",e.length,e.ended),e.length===0&&e.ended?uV(this):jR(this),null;if(r=iwe(r,e),r===0&&e.ended)return e.length===0&&uV(this),null;var n=e.needReadable;Pr("need readable",n),(e.length===0||e.length-r0?a=dwe(r,e):a=null,a===null?(e.needReadable=e.length<=e.highWaterMark,r=0):(e.length-=r,e.awaitDrain=0),e.length===0&&(e.ended||(e.needReadable=!0),t!==r&&e.ended&&uV(this)),a!==null&&this.emit("data",a),a};function TOt(r,e){if(Pr("onEofChunk"),!e.ended){if(e.decoder){var t=e.decoder.end();t&&t.length&&(e.buffer.push(t),e.length+=e.objectMode?1:t.length)}e.ended=!0,e.sync?jR(r):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,uwe(r)))}}function jR(r){var e=r._readableState;Pr("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(Pr("emitReadable",e.flowing),e.emittedReadable=!0,g.nextTick(uwe,r))}function uwe(r){var e=r._readableState;Pr("emitReadable_",e.destroyed,e.length,e.ended),!e.destroyed&&(e.length||e.ended)&&(r.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,pV(r)}function lV(r,e){e.readingMore||(e.readingMore=!0,g.nextTick(EOt,r,e))}function EOt(r,e){for(;!e.reading&&!e.ended&&(e.length1&&pwe(n.pipes,r)!==-1)&&!u&&(Pr("false write response, pause",n.awaitDrain),n.awaitDrain++),t.pause())}function f(I){Pr("onerror",I),E(),r.removeListener("error",f),swe(r,"error")===0&&XE(r,I)}wOt(r,"error",f);function m(){r.removeListener("finish",y),E()}r.once("close",m);function y(){Pr("onfinish"),r.removeListener("close",m),E()}r.once("finish",y);function E(){Pr("unpipe"),t.unpipe(r)}return r.emit("pipe",t),n.flowing||(Pr("pipe resume"),t.resume()),r};function COt(r){return function(){var t=r._readableState;Pr("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&swe(r,"data")&&(t.flowing=!0,pV(r))}}cn.prototype.unpipe=function(r){var e=this._readableState,t={hasUnpiped:!1};if(e.pipesCount===0)return this;if(e.pipesCount===1)return r&&r!==e.pipes?this:(r||(r=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,r&&r.emit("unpipe",this,t),this);if(!r){var n=e.pipes,a=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i0,n.flowing!==!1&&this.resume()):r==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,Pr("on readable",n.length,n.reading),n.length?jR(this):n.reading||g.nextTick(IOt,this)),t};cn.prototype.addListener=cn.prototype.on;cn.prototype.removeListener=function(r,e){var t=eC.prototype.removeListener.call(this,r,e);return r==="readable"&&g.nextTick(lwe,this),t};cn.prototype.removeAllListeners=function(r){var e=eC.prototype.removeAllListeners.apply(this,arguments);return(r==="readable"||r===void 0)&&g.nextTick(lwe,this),e};function lwe(r){var e=r._readableState;e.readableListening=r.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:r.listenerCount("data")>0&&r.resume()}function IOt(r){Pr("readable nexttick read 0"),r.read(0)}cn.prototype.resume=function(){var r=this._readableState;return r.flowing||(Pr("resume"),r.flowing=!r.readableListening,kOt(this,r)),r.paused=!1,this};function kOt(r,e){e.resumeScheduled||(e.resumeScheduled=!0,g.nextTick(AOt,r,e))}function AOt(r,e){Pr("resume",e.reading),e.reading||r.read(0),e.resumeScheduled=!1,r.emit("resume"),pV(r),e.flowing&&!e.reading&&r.read(0)}cn.prototype.pause=function(){return Pr("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Pr("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pV(r){var e=r._readableState;for(Pr("flow",e.flowing);e.flowing&&r.read()!==null;);}cn.prototype.wrap=function(r){var e=this,t=this._readableState,n=!1;r.on("end",function(){if(Pr("wrapped end"),t.decoder&&!t.ended){var s=t.decoder.end();s&&s.length&&e.push(s)}e.push(null)}),r.on("data",function(s){if(Pr("wrapped data"),t.decoder&&(s=t.decoder.write(s)),!(t.objectMode&&s==null)&&!(!t.objectMode&&(!s||!s.length))){var o=e.push(s);o||(n=!0,r.pause())}});for(var a in r)this[a]===void 0&&typeof r[a]=="function"&&(this[a]=function(o){return function(){return r[o].apply(r,arguments)}}(a));for(var i=0;i=e.length?(e.decoder?t=e.buffer.join(""):e.buffer.length===1?t=e.buffer.first():t=e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(r,e.decoder),t}function uV(r){var e=r._readableState;Pr("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,g.nextTick(SOt,e,r))}function SOt(r,e){if(Pr("endReadableNT",r.endEmitted,r.length),!r.endEmitted&&r.length===0&&(r.endEmitted=!0,e.readable=!1,e.emit("end"),r.autoDestroy)){var t=e._writableState;(!t||t.autoDestroy&&t.finished)&&e.destroy()}}typeof Symbol=="function"&&(cn.from=function(r,e){return sV===void 0&&(sV=nwe()),sV(cn,r,e)});function pwe(r,e){for(var t=0,n=r.length;t{"use strict";d();p();mwe.exports=Xm;var zR=mb().codes,POt=zR.ERR_METHOD_NOT_IMPLEMENTED,ROt=zR.ERR_MULTIPLE_CALLBACK,MOt=zR.ERR_TRANSFORM_ALREADY_TRANSFORMING,NOt=zR.ERR_TRANSFORM_WITH_LENGTH_0,KR=Ry();_r()(Xm,KR);function BOt(r,e){var t=this._transformState;t.transforming=!1;var n=t.writecb;if(n===null)return this.emit("error",new ROt);t.writechunk=null,t.writecb=null,e!=null&&this.push(e),n(r);var a=this._readableState;a.reading=!1,(a.needReadable||a.length{"use strict";d();p();gwe.exports=tC;var ywe=GR();_r()(tC,ywe);function tC(r){if(!(this instanceof tC))return new tC(r);ywe.call(this,r)}tC.prototype._transform=function(r,e,t){t(null,r)}});var mV=x((hEn,_we)=>{"use strict";d();p();var fV;function OOt(r){var e=!1;return function(){e||(e=!0,r.apply(void 0,arguments))}}var wwe=mb().codes,LOt=wwe.ERR_MISSING_ARGS,qOt=wwe.ERR_STREAM_DESTROYED;function bwe(r){if(r)throw r}function FOt(r){return r.setHeader&&typeof r.abort=="function"}function WOt(r,e,t,n){n=OOt(n);var a=!1;r.on("close",function(){a=!0}),fV===void 0&&(fV=QE()),fV(r,{readable:e,writable:t},function(s){if(s)return n(s);a=!0,n()});var i=!1;return function(s){if(!a&&!i){if(i=!0,FOt(r))return r.abort();if(typeof r.destroy=="function")return r.destroy();n(s||new qOt("pipe"))}}}function vwe(r){r()}function UOt(r,e){return r.pipe(e)}function HOt(r){return!r.length||typeof r[r.length-1]!="function"?bwe:r.pop()}function jOt(){for(var r=arguments.length,e=new Array(r),t=0;t0;return WOt(s,c,u,function(l){a||(a=l),l&&i.forEach(vwe),!c&&(i.forEach(vwe),n(a))})});return e.reduce(UOt)}_we.exports=jOt});var rC=x((qd,xwe)=>{d();p();qd=xwe.exports=LR();qd.Stream=qd;qd.Readable=qd;qd.Writable=BR();qd.Duplex=Ry();qd.Transform=GR();qd.PassThrough=hV();qd.finished=QE();qd.pipeline=mV()});var yV=x((bEn,Ewe)=>{"use strict";d();p();var VR=Er().Buffer,Twe=rC().Transform,zOt=_r();function KOt(r,e){if(!VR.isBuffer(r)&&typeof r!="string")throw new TypeError(e+" must be a string or a buffer")}function Dy(r){Twe.call(this),this._block=VR.allocUnsafe(r),this._blockSize=r,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}zOt(Dy,Twe);Dy.prototype._transform=function(r,e,t){var n=null;try{this.update(r,e)}catch(a){n=a}t(n)};Dy.prototype._flush=function(r){var e=null;try{this.push(this.digest())}catch(t){e=t}r(e)};Dy.prototype.update=function(r,e){if(KOt(r,"Data"),this._finalized)throw new Error("Digest already called");VR.isBuffer(r)||(r=VR.from(r,e));for(var t=this._block,n=0;this._blockOffset+r.length-n>=this._blockSize;){for(var a=this._blockOffset;a0;++i)this._length[i]+=s,s=this._length[i]/4294967296|0,s>0&&(this._length[i]-=4294967296*s);return this};Dy.prototype._update=function(){throw new Error("_update is not implemented")};Dy.prototype.digest=function(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();r!==void 0&&(e=e.toString(r)),this._block.fill(0),this._blockOffset=0;for(var t=0;t<4;++t)this._length[t]=0;return e};Dy.prototype._digest=function(){throw new Error("_digest is not implemented")};Ewe.exports=Dy});var JR=x((_En,Iwe)=>{"use strict";d();p();var GOt=_r(),Cwe=yV(),VOt=Er().Buffer,$Ot=new Array(16);function $R(){Cwe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}GOt($R,Cwe);$R.prototype._update=function(){for(var r=$Ot,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);var t=this._a,n=this._b,a=this._c,i=this._d;t=Gc(t,n,a,i,r[0],3614090360,7),i=Gc(i,t,n,a,r[1],3905402710,12),a=Gc(a,i,t,n,r[2],606105819,17),n=Gc(n,a,i,t,r[3],3250441966,22),t=Gc(t,n,a,i,r[4],4118548399,7),i=Gc(i,t,n,a,r[5],1200080426,12),a=Gc(a,i,t,n,r[6],2821735955,17),n=Gc(n,a,i,t,r[7],4249261313,22),t=Gc(t,n,a,i,r[8],1770035416,7),i=Gc(i,t,n,a,r[9],2336552879,12),a=Gc(a,i,t,n,r[10],4294925233,17),n=Gc(n,a,i,t,r[11],2304563134,22),t=Gc(t,n,a,i,r[12],1804603682,7),i=Gc(i,t,n,a,r[13],4254626195,12),a=Gc(a,i,t,n,r[14],2792965006,17),n=Gc(n,a,i,t,r[15],1236535329,22),t=Vc(t,n,a,i,r[1],4129170786,5),i=Vc(i,t,n,a,r[6],3225465664,9),a=Vc(a,i,t,n,r[11],643717713,14),n=Vc(n,a,i,t,r[0],3921069994,20),t=Vc(t,n,a,i,r[5],3593408605,5),i=Vc(i,t,n,a,r[10],38016083,9),a=Vc(a,i,t,n,r[15],3634488961,14),n=Vc(n,a,i,t,r[4],3889429448,20),t=Vc(t,n,a,i,r[9],568446438,5),i=Vc(i,t,n,a,r[14],3275163606,9),a=Vc(a,i,t,n,r[3],4107603335,14),n=Vc(n,a,i,t,r[8],1163531501,20),t=Vc(t,n,a,i,r[13],2850285829,5),i=Vc(i,t,n,a,r[2],4243563512,9),a=Vc(a,i,t,n,r[7],1735328473,14),n=Vc(n,a,i,t,r[12],2368359562,20),t=$c(t,n,a,i,r[5],4294588738,4),i=$c(i,t,n,a,r[8],2272392833,11),a=$c(a,i,t,n,r[11],1839030562,16),n=$c(n,a,i,t,r[14],4259657740,23),t=$c(t,n,a,i,r[1],2763975236,4),i=$c(i,t,n,a,r[4],1272893353,11),a=$c(a,i,t,n,r[7],4139469664,16),n=$c(n,a,i,t,r[10],3200236656,23),t=$c(t,n,a,i,r[13],681279174,4),i=$c(i,t,n,a,r[0],3936430074,11),a=$c(a,i,t,n,r[3],3572445317,16),n=$c(n,a,i,t,r[6],76029189,23),t=$c(t,n,a,i,r[9],3654602809,4),i=$c(i,t,n,a,r[12],3873151461,11),a=$c(a,i,t,n,r[15],530742520,16),n=$c(n,a,i,t,r[2],3299628645,23),t=Yc(t,n,a,i,r[0],4096336452,6),i=Yc(i,t,n,a,r[7],1126891415,10),a=Yc(a,i,t,n,r[14],2878612391,15),n=Yc(n,a,i,t,r[5],4237533241,21),t=Yc(t,n,a,i,r[12],1700485571,6),i=Yc(i,t,n,a,r[3],2399980690,10),a=Yc(a,i,t,n,r[10],4293915773,15),n=Yc(n,a,i,t,r[1],2240044497,21),t=Yc(t,n,a,i,r[8],1873313359,6),i=Yc(i,t,n,a,r[15],4264355552,10),a=Yc(a,i,t,n,r[6],2734768916,15),n=Yc(n,a,i,t,r[13],1309151649,21),t=Yc(t,n,a,i,r[4],4149444226,6),i=Yc(i,t,n,a,r[11],3174756917,10),a=Yc(a,i,t,n,r[2],718787259,15),n=Yc(n,a,i,t,r[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+n|0,this._c=this._c+a|0,this._d=this._d+i|0};$R.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=VOt.allocUnsafe(16);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r};function YR(r,e){return r<>>32-e}function Gc(r,e,t,n,a,i,s){return YR(r+(e&t|~e&n)+a+i|0,s)+e|0}function Vc(r,e,t,n,a,i,s){return YR(r+(e&n|t&~n)+a+i|0,s)+e|0}function $c(r,e,t,n,a,i,s){return YR(r+(e^t^n)+a+i|0,s)+e|0}function Yc(r,e,t,n,a,i,s){return YR(r+(t^(e|~n))+a+i|0,s)+e|0}Iwe.exports=$R});var ZR=x((EEn,Nwe)=>{"use strict";d();p();var gV=cc().Buffer,YOt=_r(),Mwe=yV(),JOt=new Array(16),nC=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],aC=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],iC=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sC=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],oC=[0,1518500249,1859775393,2400959708,2840853838],cC=[1352829926,1548603684,1836072691,2053994217,0];function QR(){Mwe.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}YOt(QR,Mwe);QR.prototype._update=function(){for(var r=JOt,e=0;e<16;++e)r[e]=this._block.readInt32LE(e*4);for(var t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._a|0,c=this._b|0,u=this._c|0,l=this._d|0,h=this._e|0,f=0;f<80;f+=1){var m,y;f<16?(m=kwe(t,n,a,i,s,r[nC[f]],oC[0],iC[f]),y=Rwe(o,c,u,l,h,r[aC[f]],cC[0],sC[f])):f<32?(m=Awe(t,n,a,i,s,r[nC[f]],oC[1],iC[f]),y=Pwe(o,c,u,l,h,r[aC[f]],cC[1],sC[f])):f<48?(m=Swe(t,n,a,i,s,r[nC[f]],oC[2],iC[f]),y=Swe(o,c,u,l,h,r[aC[f]],cC[2],sC[f])):f<64?(m=Pwe(t,n,a,i,s,r[nC[f]],oC[3],iC[f]),y=Awe(o,c,u,l,h,r[aC[f]],cC[3],sC[f])):(m=Rwe(t,n,a,i,s,r[nC[f]],oC[4],iC[f]),y=kwe(o,c,u,l,h,r[aC[f]],cC[4],sC[f])),t=s,s=i,i=vb(a,10),a=n,n=m,o=h,h=l,l=vb(u,10),u=c,c=y}var E=this._b+a+l|0;this._b=this._c+i+h|0,this._c=this._d+s+o|0,this._d=this._e+t+c|0,this._e=this._a+n+u|0,this._a=E};QR.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var r=gV.alloc?gV.alloc(20):new gV(20);return r.writeInt32LE(this._a,0),r.writeInt32LE(this._b,4),r.writeInt32LE(this._c,8),r.writeInt32LE(this._d,12),r.writeInt32LE(this._e,16),r};function vb(r,e){return r<>>32-e}function kwe(r,e,t,n,a,i,s,o){return vb(r+(e^t^n)+i+s|0,o)+a|0}function Awe(r,e,t,n,a,i,s,o){return vb(r+(e&t|~e&n)+i+s|0,o)+a|0}function Swe(r,e,t,n,a,i,s,o){return vb(r+((e|~t)^n)+i+s|0,o)+a|0}function Pwe(r,e,t,n,a,i,s,o){return vb(r+(e&n|t&~n)+i+s|0,o)+a|0}function Rwe(r,e,t,n,a,i,s,o){return vb(r+(e^(t|~n))+i+s|0,o)+a|0}Nwe.exports=QR});var wb=x((kEn,Dwe)=>{d();p();var Bwe=Er().Buffer;function XR(r,e){this._block=Bwe.alloc(r),this._finalSize=e,this._blockSize=r,this._len=0}XR.prototype.update=function(r,e){typeof r=="string"&&(e=e||"utf8",r=Bwe.from(r,e));for(var t=this._block,n=this._blockSize,a=r.length,i=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var t=this._len*8;if(t<=4294967295)this._block.writeUInt32BE(t,this._blockSize-4);else{var n=(t&4294967295)>>>0,a=(t-n)/4294967296;this._block.writeUInt32BE(a,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var i=this._hash();return r?i.toString(r):i};XR.prototype._update=function(){throw new Error("_update must be implemented by subclass")};Dwe.exports=XR});var qwe=x((PEn,Lwe)=>{d();p();var QOt=_r(),Owe=wb(),ZOt=Er().Buffer,XOt=[1518500249,1859775393,-1894007588,-899497514],eLt=new Array(80);function uC(){this.init(),this._w=eLt,Owe.call(this,64,56)}QOt(uC,Owe);uC.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function tLt(r){return r<<5|r>>>27}function rLt(r){return r<<30|r>>>2}function nLt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}uC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=e[o-3]^e[o-8]^e[o-14]^e[o-16];for(var c=0;c<80;++c){var u=~~(c/20),l=tLt(t)+nLt(u,n,a,i)+s+e[c]+XOt[u]|0;s=i,i=a,a=rLt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};uC.prototype._hash=function(){var r=ZOt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Lwe.exports=uC});var Uwe=x((NEn,Wwe)=>{d();p();var aLt=_r(),Fwe=wb(),iLt=Er().Buffer,sLt=[1518500249,1859775393,-1894007588,-899497514],oLt=new Array(80);function lC(){this.init(),this._w=oLt,Fwe.call(this,64,56)}aLt(lC,Fwe);lC.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function cLt(r){return r<<1|r>>>31}function uLt(r){return r<<5|r>>>27}function lLt(r){return r<<30|r>>>2}function dLt(r,e,t,n){return r===0?e&t|~e&n:r===2?e&t|e&n|t&n:e^t^n}lC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=0;o<16;++o)e[o]=r.readInt32BE(o*4);for(;o<80;++o)e[o]=cLt(e[o-3]^e[o-8]^e[o-14]^e[o-16]);for(var c=0;c<80;++c){var u=~~(c/20),l=uLt(t)+dLt(u,n,a,i)+s+e[c]+sLt[u]|0;s=i,i=a,a=lLt(n),n=t,t=l}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0};lC.prototype._hash=function(){var r=iLt.allocUnsafe(20);return r.writeInt32BE(this._a|0,0),r.writeInt32BE(this._b|0,4),r.writeInt32BE(this._c|0,8),r.writeInt32BE(this._d|0,12),r.writeInt32BE(this._e|0,16),r};Wwe.exports=lC});var bV=x((OEn,jwe)=>{d();p();var pLt=_r(),Hwe=wb(),hLt=Er().Buffer,fLt=[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],mLt=new Array(64);function dC(){this.init(),this._w=mLt,Hwe.call(this,64,56)}pLt(dC,Hwe);dC.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 yLt(r,e,t){return t^r&(e^t)}function gLt(r,e,t){return r&e|t&(r|e)}function bLt(r){return(r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10)}function vLt(r){return(r>>>6|r<<26)^(r>>>11|r<<21)^(r>>>25|r<<7)}function wLt(r){return(r>>>7|r<<25)^(r>>>18|r<<14)^r>>>3}function _Lt(r){return(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10}dC.prototype._update=function(r){for(var e=this._w,t=this._a|0,n=this._b|0,a=this._c|0,i=this._d|0,s=this._e|0,o=this._f|0,c=this._g|0,u=this._h|0,l=0;l<16;++l)e[l]=r.readInt32BE(l*4);for(;l<64;++l)e[l]=_Lt(e[l-2])+e[l-7]+wLt(e[l-15])+e[l-16]|0;for(var h=0;h<64;++h){var f=u+vLt(s)+yLt(s,o,c)+fLt[h]+e[h]|0,m=bLt(t)+gLt(t,n,a)|0;u=c,c=o,o=s,s=i+f|0,i=a,a=n,n=t,t=f+m|0}this._a=t+this._a|0,this._b=n+this._b|0,this._c=a+this._c|0,this._d=i+this._d|0,this._e=s+this._e|0,this._f=o+this._f|0,this._g=c+this._g|0,this._h=u+this._h|0};dC.prototype._hash=function(){var r=hLt.allocUnsafe(32);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r.writeInt32BE(this._h,28),r};jwe.exports=dC});var Kwe=x((FEn,zwe)=>{d();p();var xLt=_r(),TLt=bV(),ELt=wb(),CLt=Er().Buffer,ILt=new Array(64);function e9(){this.init(),this._w=ILt,ELt.call(this,64,56)}xLt(e9,TLt);e9.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};e9.prototype._hash=function(){var r=CLt.allocUnsafe(28);return r.writeInt32BE(this._a,0),r.writeInt32BE(this._b,4),r.writeInt32BE(this._c,8),r.writeInt32BE(this._d,12),r.writeInt32BE(this._e,16),r.writeInt32BE(this._f,20),r.writeInt32BE(this._g,24),r};zwe.exports=e9});var vV=x((HEn,Zwe)=>{d();p();var kLt=_r(),Qwe=wb(),ALt=Er().Buffer,Gwe=[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],SLt=new Array(160);function pC(){this.init(),this._w=SLt,Qwe.call(this,128,112)}kLt(pC,Qwe);pC.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 Vwe(r,e,t){return t^r&(e^t)}function $we(r,e,t){return r&e|t&(r|e)}function Ywe(r,e){return(r>>>28|e<<4)^(e>>>2|r<<30)^(e>>>7|r<<25)}function Jwe(r,e){return(r>>>14|e<<18)^(r>>>18|e<<14)^(e>>>9|r<<23)}function PLt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^r>>>7}function RLt(r,e){return(r>>>1|e<<31)^(r>>>8|e<<24)^(r>>>7|e<<25)}function MLt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^r>>>6}function NLt(r,e){return(r>>>19|e<<13)^(e>>>29|r<<3)^(r>>>6|e<<26)}function No(r,e){return r>>>0>>0?1:0}pC.prototype._update=function(r){for(var e=this._w,t=this._ah|0,n=this._bh|0,a=this._ch|0,i=this._dh|0,s=this._eh|0,o=this._fh|0,c=this._gh|0,u=this._hh|0,l=this._al|0,h=this._bl|0,f=this._cl|0,m=this._dl|0,y=this._el|0,E=this._fl|0,I=this._gl|0,S=this._hl|0,L=0;L<32;L+=2)e[L]=r.readInt32BE(L*4),e[L+1]=r.readInt32BE(L*4+4);for(;L<160;L+=2){var F=e[L-30],W=e[L-15*2+1],V=PLt(F,W),K=RLt(W,F);F=e[L-2*2],W=e[L-2*2+1];var H=MLt(F,W),G=NLt(W,F),J=e[L-7*2],q=e[L-7*2+1],T=e[L-16*2],P=e[L-16*2+1],A=K+q|0,v=V+J+No(A,K)|0;A=A+G|0,v=v+H+No(A,G)|0,A=A+P|0,v=v+T+No(A,P)|0,e[L]=v,e[L+1]=A}for(var k=0;k<160;k+=2){v=e[k],A=e[k+1];var O=$we(t,n,a),D=$we(l,h,f),B=Ywe(t,l),_=Ywe(l,t),N=Jwe(s,y),U=Jwe(y,s),C=Gwe[k],z=Gwe[k+1],ee=Vwe(s,o,c),j=Vwe(y,E,I),X=S+U|0,ie=u+N+No(X,S)|0;X=X+j|0,ie=ie+ee+No(X,j)|0,X=X+z|0,ie=ie+C+No(X,z)|0,X=X+A|0,ie=ie+v+No(X,A)|0;var ue=_+D|0,he=B+O+No(ue,_)|0;u=c,S=I,c=o,I=E,o=s,E=y,y=m+X|0,s=i+ie+No(y,m)|0,i=a,m=f,a=n,f=h,n=t,h=l,l=X+ue|0,t=ie+he+No(l,X)|0}this._al=this._al+l|0,this._bl=this._bl+h|0,this._cl=this._cl+f|0,this._dl=this._dl+m|0,this._el=this._el+y|0,this._fl=this._fl+E|0,this._gl=this._gl+I|0,this._hl=this._hl+S|0,this._ah=this._ah+t+No(this._al,l)|0,this._bh=this._bh+n+No(this._bl,h)|0,this._ch=this._ch+a+No(this._cl,f)|0,this._dh=this._dh+i+No(this._dl,m)|0,this._eh=this._eh+s+No(this._el,y)|0,this._fh=this._fh+o+No(this._fl,E)|0,this._gh=this._gh+c+No(this._gl,I)|0,this._hh=this._hh+u+No(this._hl,S)|0};pC.prototype._hash=function(){var r=ALt.allocUnsafe(64);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),r};Zwe.exports=pC});var e5e=x((KEn,Xwe)=>{d();p();var BLt=_r(),DLt=vV(),OLt=wb(),LLt=Er().Buffer,qLt=new Array(160);function t9(){this.init(),this._w=qLt,OLt.call(this,128,112)}BLt(t9,DLt);t9.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};t9.prototype._hash=function(){var r=LLt.allocUnsafe(48);function e(t,n,a){r.writeInt32BE(t,a),r.writeInt32BE(n,a+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),r};Xwe.exports=t9});var hC=x((e0,t5e)=>{d();p();var e0=t5e.exports=function(e){e=e.toLowerCase();var t=e0[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};e0.sha=qwe();e0.sha1=Uwe();e0.sha224=Kwe();e0.sha256=bV();e0.sha384=e5e();e0.sha512=vV()});var n5e=x((JEn,r5e)=>{d();p();r5e.exports=Fd;var wV=Bu().EventEmitter,FLt=_r();FLt(Fd,wV);Fd.Readable=LR();Fd.Writable=BR();Fd.Duplex=Ry();Fd.Transform=GR();Fd.PassThrough=hV();Fd.finished=QE();Fd.pipeline=mV();Fd.Stream=Fd;function Fd(){wV.call(this)}Fd.prototype.pipe=function(r,e){var t=this;function n(l){r.writable&&r.write(l)===!1&&t.pause&&t.pause()}t.on("data",n);function a(){t.readable&&t.resume&&t.resume()}r.on("drain",a),!r._isStdio&&(!e||e.end!==!1)&&(t.on("end",s),t.on("close",o));var i=!1;function s(){i||(i=!0,r.end())}function o(){i||(i=!0,typeof r.destroy=="function"&&r.destroy())}function c(l){if(u(),wV.listenerCount(this,"error")===0)throw l}t.on("error",c),r.on("error",c);function u(){t.removeListener("data",n),r.removeListener("drain",a),t.removeListener("end",s),t.removeListener("close",o),t.removeListener("error",c),r.removeListener("error",c),t.removeListener("end",u),t.removeListener("close",u),r.removeListener("close",u)}return t.on("end",u),t.on("close",u),r.on("close",u),r.emit("pipe",t),r}});var t0=x((XEn,s5e)=>{d();p();var a5e=Er().Buffer,i5e=n5e().Transform,WLt=qR().StringDecoder,ULt=_r();function ih(r){i5e.call(this),this.hashMode=typeof r=="string",this.hashMode?this[r]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}ULt(ih,i5e);ih.prototype.update=function(r,e,t){typeof r=="string"&&(r=a5e.from(r,e));var n=this._update(r);return this.hashMode?this:(t&&(n=this._toString(n,t)),n)};ih.prototype.setAutoPadding=function(){};ih.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};ih.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};ih.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};ih.prototype._transform=function(r,e,t){var n;try{this.hashMode?this._update(r):this.push(this._update(r))}catch(a){n=a}finally{t(n)}};ih.prototype._flush=function(r){var e;try{this.push(this.__final())}catch(t){e=t}r(e)};ih.prototype._finalOrDigest=function(r){var e=this.__final()||a5e.alloc(0);return r&&(e=this._toString(e,r,!0)),e};ih.prototype._toString=function(r,e,t){if(this._decoder||(this._decoder=new WLt(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var n=this._decoder.write(r);return t&&(n+=this._decoder.end()),n};s5e.exports=ih});var K5=x((rCn,c5e)=>{"use strict";d();p();var HLt=_r(),jLt=JR(),zLt=ZR(),KLt=hC(),o5e=t0();function r9(r){o5e.call(this,"digest"),this._hash=r}HLt(r9,o5e);r9.prototype._update=function(r){this._hash.update(r)};r9.prototype._final=function(){return this._hash.digest()};c5e.exports=function(e){return e=e.toLowerCase(),e==="md5"?new jLt:e==="rmd160"||e==="ripemd160"?new zLt:new r9(KLt(e))}});var d5e=x((iCn,l5e)=>{"use strict";d();p();var GLt=_r(),_b=Er().Buffer,u5e=t0(),VLt=_b.alloc(128),G5=64;function n9(r,e){u5e.call(this,"digest"),typeof e=="string"&&(e=_b.from(e)),this._alg=r,this._key=e,e.length>G5?e=r(e):e.length{d();p();var $Lt=JR();p5e.exports=function(r){return new $Lt().update(r).digest()}});var EV=x((dCn,f5e)=>{"use strict";d();p();var YLt=_r(),JLt=d5e(),h5e=t0(),fC=Er().Buffer,QLt=_V(),xV=ZR(),TV=hC(),ZLt=fC.alloc(128);function mC(r,e){h5e.call(this,"digest"),typeof e=="string"&&(e=fC.from(e));var t=r==="sha512"||r==="sha384"?128:64;if(this._alg=r,this._key=e,e.length>t){var n=r==="rmd160"?new xV:TV(r);e=n.update(e).digest()}else e.length{XLt.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}});var y5e=x((mCn,m5e)=>{d();p();m5e.exports=CV()});var IV=x((bCn,g5e)=>{d();p();var eqt=Math.pow(2,30)-1;g5e.exports=function(r,e){if(typeof r!="number")throw new TypeError("Iterations not a number");if(r<0)throw new TypeError("Bad iterations");if(typeof e!="number")throw new TypeError("Key length not a number");if(e<0||e>eqt||e!==e)throw new TypeError("Bad key length")}});var kV=x((_Cn,v5e)=>{d();p();var a9;global.process&&global.process.browser?a9="utf-8":global.process&&global.process.version?(b5e=parseInt(g.version.split(".")[0].slice(1),10),a9=b5e>=6?"utf-8":"binary"):a9="utf-8";var b5e;v5e.exports=a9});var SV=x((ECn,w5e)=>{d();p();var AV=Er().Buffer;w5e.exports=function(r,e,t){if(AV.isBuffer(r))return r;if(typeof r=="string")return AV.from(r,e);if(ArrayBuffer.isView(r))return AV.from(r.buffer);throw new TypeError(t+" must be a string, a Buffer, a typed array or a DataView")}});var PV=x((kCn,E5e)=>{d();p();var tqt=_V(),rqt=ZR(),nqt=hC(),xb=Er().Buffer,aqt=IV(),_5e=kV(),x5e=SV(),iqt=xb.alloc(128),i9={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function T5e(r,e,t){var n=sqt(r),a=r==="sha512"||r==="sha384"?128:64;e.length>a?e=n(e):e.length{d();p();var A5e=Er().Buffer,cqt=IV(),C5e=kV(),I5e=PV(),k5e=SV(),s9,yC=global.crypto&&global.crypto.subtle,uqt={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},RV=[];function lqt(r){if(global.process&&!global.process.browser||!yC||!yC.importKey||!yC.deriveBits)return Promise.resolve(!1);if(RV[r]!==void 0)return RV[r];s9=s9||A5e.alloc(8);var e=S5e(s9,s9,10,128,r).then(function(){return!0}).catch(function(){return!1});return RV[r]=e,e}var Tb;function MV(){return Tb||(global.process&&global.process.nextTick?Tb=global.process.nextTick:global.queueMicrotask?Tb=global.queueMicrotask:global.setImmediate?Tb=global.setImmediate:Tb=global.setTimeout,Tb)}function S5e(r,e,t,n,a){return yC.importKey("raw",r,{name:"PBKDF2"},!1,["deriveBits"]).then(function(i){return yC.deriveBits({name:"PBKDF2",salt:e,iterations:t,hash:{name:a}},i,n<<3)}).then(function(i){return A5e.from(i)})}function dqt(r,e){r.then(function(t){MV()(function(){e(null,t)})},function(t){MV()(function(){e(t)})})}P5e.exports=function(r,e,t,n,a,i){typeof a=="function"&&(i=a,a=void 0),a=a||"sha1";var s=uqt[a.toLowerCase()];if(!s||typeof global.Promise!="function"){MV()(function(){var o;try{o=I5e(r,e,t,n,a)}catch(c){return i(c)}i(null,o)});return}if(cqt(t,n),r=k5e(r,C5e,"Password"),e=k5e(e,C5e,"Salt"),typeof i!="function")throw new Error("No callback provided to pbkdf2");dqt(lqt(s).then(function(o){return o?S5e(r,e,t,n,s):I5e(r,e,t,n,a)}),i)}});var BV=x(NV=>{d();p();NV.pbkdf2=R5e();NV.pbkdf2Sync=PV()});var DV=x(Wd=>{"use strict";d();p();Wd.readUInt32BE=function(e,t){var n=e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t];return n>>>0};Wd.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=t&255};Wd.ip=function(e,t,n,a){for(var i=0,s=0,o=6;o>=0;o-=2){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>>c+o&1}for(var o=6;o>=0;o-=2){for(var c=1;c<=25;c+=8)s<<=1,s|=t>>>c+o&1;for(var c=1;c<=25;c+=8)s<<=1,s|=e>>>c+o&1}n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.rip=function(e,t,n,a){for(var i=0,s=0,o=0;o<4;o++)for(var c=24;c>=0;c-=8)i<<=1,i|=t>>>c+o&1,i<<=1,i|=e>>>c+o&1;for(var o=4;o<8;o++)for(var c=24;c>=0;c-=8)s<<=1,s|=t>>>c+o&1,s<<=1,s|=e>>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.pc1=function(e,t,n,a){for(var i=0,s=0,o=7;o>=5;o--){for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var c=0;c<=24;c+=8)i<<=1,i|=e>>c+o&1}for(var c=0;c<=24;c+=8)i<<=1,i|=t>>c+o&1;for(var o=1;o<=3;o++){for(var c=0;c<=24;c+=8)s<<=1,s|=t>>c+o&1;for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1}for(var c=0;c<=24;c+=8)s<<=1,s|=e>>c+o&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.r28shl=function(e,t){return e<>>28-t};var o9=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];Wd.pc2=function(e,t,n,a){for(var i=0,s=0,o=o9.length>>>1,c=0;c>>o9[c]&1;for(var c=o;c>>o9[c]&1;n[a+0]=i>>>0,n[a+1]=s>>>0};Wd.expand=function(e,t,n){var a=0,i=0;a=(e&1)<<5|e>>>27;for(var s=23;s>=15;s-=4)a<<=6,a|=e>>>s&63;for(var s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(e&31)<<1|e>>>31,t[n+0]=a>>>0,t[n+1]=i>>>0};var M5e=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];Wd.substitute=function(e,t){for(var n=0,a=0;a<4;a++){var i=e>>>18-a*6&63,s=M5e[a*64+i];n<<=4,n|=s}for(var a=0;a<4;a++){var i=t>>>18-a*6&63,s=M5e[4*64+a*64+i];n<<=4,n|=s}return n>>>0};var N5e=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];Wd.permute=function(e){for(var t=0,n=0;n>>N5e[n]&1;return t>>>0};Wd.padSplit=function(e,t,n){for(var a=e.toString(2);a.length{"use strict";d();p();var pqt=Gl();function Ud(r){this.options=r,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}B5e.exports=Ud;Ud.prototype._init=function(){};Ud.prototype.update=function(e){return e.length===0?[]:this.type==="decrypt"?this._updateDecrypt(e):this._updateEncrypt(e)};Ud.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),a=0;a0;a--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i};Ud.prototype.final=function(e){var t;e&&(t=this.update(e));var n;return this.type==="encrypt"?n=this._finalEncrypt():n=this._finalDecrypt(),t?t.concat(n):n};Ud.prototype._pad=function(e,t){if(t===0)return!1;for(;t{"use strict";d();p();var D5e=Gl(),hqt=_r(),uo=DV(),O5e=c9();function fqt(){this.tmp=new Array(2),this.keys=null}function kf(r){O5e.call(this,r);var e=new fqt;this._desState=e,this.deriveKeys(e,r.key)}hqt(kf,O5e);L5e.exports=kf;kf.create=function(e){return new kf(e)};var mqt=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];kf.prototype.deriveKeys=function(e,t){e.keys=new Array(16*2),D5e.equal(t.length,this.blockSize,"Invalid key length");var n=uo.readUInt32BE(t,0),a=uo.readUInt32BE(t,4);uo.pc1(n,a,e.tmp,0),n=e.tmp[0],a=e.tmp[1];for(var i=0;i>>1];n=uo.r28shl(n,s),a=uo.r28shl(a,s),uo.pc2(n,a,e.keys,i)}};kf.prototype._update=function(e,t,n,a){var i=this._desState,s=uo.readUInt32BE(e,t),o=uo.readUInt32BE(e,t+4);uo.ip(s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],this.type==="encrypt"?this._encrypt(i,s,o,i.tmp,0):this._decrypt(i,s,o,i.tmp,0),s=i.tmp[0],o=i.tmp[1],uo.writeUInt32BE(n,s,a),uo.writeUInt32BE(n,o,a+4)};kf.prototype._pad=function(e,t){for(var n=e.length-t,a=t;a>>0,s=m}uo.rip(o,s,a,i)};kf.prototype._decrypt=function(e,t,n,a,i){for(var s=n,o=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],l=e.keys[c+1];uo.expand(s,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var h=uo.substitute(u,l),f=uo.permute(h),m=s;s=(o^f)>>>0,o=m}uo.rip(s,o,a,i)}});var F5e=x(q5e=>{"use strict";d();p();var yqt=Gl(),gqt=_r(),u9={};function bqt(r){yqt.equal(r.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e{"use strict";d();p();var wqt=Gl(),_qt=_r(),W5e=c9(),Oy=OV();function xqt(r,e){wqt.equal(e.length,24,"Invalid key length");var t=e.slice(0,8),n=e.slice(8,16),a=e.slice(16,24);r==="encrypt"?this.ciphers=[Oy.create({type:"encrypt",key:t}),Oy.create({type:"decrypt",key:n}),Oy.create({type:"encrypt",key:a})]:this.ciphers=[Oy.create({type:"decrypt",key:a}),Oy.create({type:"encrypt",key:n}),Oy.create({type:"decrypt",key:t})]}function Eb(r){W5e.call(this,r);var e=new xqt(this.type,this.options.key);this._edeState=e}_qt(Eb,W5e);U5e.exports=Eb;Eb.create=function(e){return new Eb(e)};Eb.prototype._update=function(e,t,n,a){var i=this._edeState;i.ciphers[0]._update(e,t,n,a),i.ciphers[1]._update(n,a,n,a),i.ciphers[2]._update(n,a,n,a)};Eb.prototype._pad=Oy.prototype._pad;Eb.prototype._unpad=Oy.prototype._unpad});var j5e=x(V5=>{"use strict";d();p();V5.utils=DV();V5.Cipher=c9();V5.DES=OV();V5.CBC=F5e();V5.EDE=H5e()});var G5e=x((e4n,K5e)=>{d();p();var z5e=t0(),r0=j5e(),Tqt=_r(),Cb=Er().Buffer,gC={"des-ede3-cbc":r0.CBC.instantiate(r0.EDE),"des-ede3":r0.EDE,"des-ede-cbc":r0.CBC.instantiate(r0.EDE),"des-ede":r0.EDE,"des-cbc":r0.CBC.instantiate(r0.DES),"des-ecb":r0.DES};gC.des=gC["des-cbc"];gC.des3=gC["des-ede3-cbc"];K5e.exports=l9;Tqt(l9,z5e);function l9(r){z5e.call(this);var e=r.mode.toLowerCase(),t=gC[e],n;r.decrypt?n="decrypt":n="encrypt";var a=r.key;Cb.isBuffer(a)||(a=Cb.from(a)),(e==="des-ede"||e==="des-ede-cbc")&&(a=Cb.concat([a,a.slice(0,8)]));var i=r.iv;Cb.isBuffer(i)||(i=Cb.from(i)),this._des=t.create({key:a,iv:i,type:n})}l9.prototype._update=function(r){return Cb.from(this._des.update(r))};l9.prototype._final=function(){return Cb.from(this._des.final())}});var V5e=x(LV=>{d();p();LV.encrypt=function(r,e){return r._cipher.encryptBlock(e)};LV.decrypt=function(r,e){return r._cipher.decryptBlock(e)}});var $5=x((s4n,$5e)=>{d();p();$5e.exports=function(e,t){for(var n=Math.min(e.length,t.length),a=new b.Buffer(n),i=0;i{d();p();var Y5e=$5();qV.encrypt=function(r,e){var t=Y5e(e,r._prev);return r._prev=r._cipher.encryptBlock(t),r._prev};qV.decrypt=function(r,e){var t=r._prev;r._prev=e;var n=r._cipher.decryptBlock(e);return Y5e(n,t)}});var X5e=x(Z5e=>{d();p();var bC=Er().Buffer,Eqt=$5();function Q5e(r,e,t){var n=e.length,a=Eqt(e,r._cache);return r._cache=r._cache.slice(n),r._prev=bC.concat([r._prev,t?e:a]),a}Z5e.encrypt=function(r,e,t){for(var n=bC.allocUnsafe(0),a;e.length;)if(r._cache.length===0&&(r._cache=r._cipher.encryptBlock(r._prev),r._prev=bC.allocUnsafe(0)),r._cache.length<=e.length)a=r._cache.length,n=bC.concat([n,Q5e(r,e.slice(0,a),t)]),e=e.slice(a);else{n=bC.concat([n,Q5e(r,e,t)]);break}return n}});var t3e=x(e3e=>{d();p();var FV=Er().Buffer;function Cqt(r,e,t){var n=r._cipher.encryptBlock(r._prev),a=n[0]^e;return r._prev=FV.concat([r._prev.slice(1),FV.from([t?e:a])]),a}e3e.encrypt=function(r,e,t){for(var n=e.length,a=FV.allocUnsafe(n),i=-1;++i{d();p();var d9=Er().Buffer;function Iqt(r,e,t){for(var n,a=-1,i=8,s=0,o,c;++a>a%8,r._prev=kqt(r._prev,t?o:c);return s}function kqt(r,e){var t=r.length,n=-1,a=d9.allocUnsafe(r.length);for(r=d9.concat([r,d9.from([e])]);++n>7;return a}r3e.encrypt=function(r,e,t){for(var n=e.length,a=d9.allocUnsafe(n),i=-1;++i{d();p();var Aqt=$5();function Sqt(r){return r._prev=r._cipher.encryptBlock(r._prev),r._prev}a3e.encrypt=function(r,e){for(;r._cache.length{d();p();function Pqt(r){for(var e=r.length,t;e--;)if(t=r.readUInt8(e),t===255)r.writeUInt8(0,e);else{t++,r.writeUInt8(t,e);break}}s3e.exports=Pqt});var HV=x(c3e=>{d();p();var Rqt=$5(),o3e=Er().Buffer,Mqt=WV();function Nqt(r){var e=r._cipher.encryptBlockRaw(r._prev);return Mqt(r._prev),e}var UV=16;c3e.encrypt=function(r,e){var t=Math.ceil(e.length/UV),n=r._cache.length;r._cache=o3e.concat([r._cache,o3e.allocUnsafe(t*UV)]);for(var a=0;a{Bqt.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}});var h9=x((R4n,u3e)=>{d();p();var Dqt={ECB:V5e(),CBC:J5e(),CFB:X5e(),CFB8:t3e(),CFB1:n3e(),OFB:i3e(),CTR:HV(),GCM:HV()},p9=jV();for(zV in p9)p9[zV].module=Dqt[p9[zV].mode];var zV;u3e.exports=p9});var vC=x((B4n,d3e)=>{d();p();var f9=Er().Buffer;function GV(r){f9.isBuffer(r)||(r=f9.from(r));for(var e=r.length/4|0,t=new Array(e),n=0;n>>24]^s[l>>>16&255]^o[h>>>8&255]^c[f&255]^e[S++],y=i[l>>>24]^s[h>>>16&255]^o[f>>>8&255]^c[u&255]^e[S++],E=i[h>>>24]^s[f>>>16&255]^o[u>>>8&255]^c[l&255]^e[S++],I=i[f>>>24]^s[u>>>16&255]^o[l>>>8&255]^c[h&255]^e[S++],u=m,l=y,h=E,f=I;return m=(n[u>>>24]<<24|n[l>>>16&255]<<16|n[h>>>8&255]<<8|n[f&255])^e[S++],y=(n[l>>>24]<<24|n[h>>>16&255]<<16|n[f>>>8&255]<<8|n[u&255])^e[S++],E=(n[h>>>24]<<24|n[f>>>16&255]<<16|n[u>>>8&255]<<8|n[l&255])^e[S++],I=(n[f>>>24]<<24|n[u>>>16&255]<<16|n[l>>>8&255]<<8|n[h&255])^e[S++],m=m>>>0,y=y>>>0,E=E>>>0,I=I>>>0,[m,y,E,I]}var Oqt=[0,1,2,4,8,16,32,64,128,27,54],Us=function(){for(var r=new Array(256),e=0;e<256;e++)e<128?r[e]=e<<1:r[e]=e<<1^283;for(var t=[],n=[],a=[[],[],[],[]],i=[[],[],[],[]],s=0,o=0,c=0;c<256;++c){var u=o^o<<1^o<<2^o<<3^o<<4;u=u>>>8^u&255^99,t[s]=u,n[u]=s;var l=r[s],h=r[l],f=r[h],m=r[u]*257^u*16843008;a[0][s]=m<<24|m>>>8,a[1][s]=m<<16|m>>>16,a[2][s]=m<<8|m>>>24,a[3][s]=m,m=f*16843009^h*65537^l*257^s*16843008,i[0][u]=m<<24|m>>>8,i[1][u]=m<<16|m>>>16,i[2][u]=m<<8|m>>>24,i[3][u]=m,s===0?s=o=1:(s=l^r[r[r[f^l]]],o^=r[r[o]])}return{SBOX:t,INV_SBOX:n,SUB_MIX:a,INV_SUB_MIX:i}}();function Hd(r){this._key=GV(r),this._reset()}Hd.blockSize=4*4;Hd.keySize=256/8;Hd.prototype.blockSize=Hd.blockSize;Hd.prototype.keySize=Hd.keySize;Hd.prototype._reset=function(){for(var r=this._key,e=r.length,t=e+6,n=(t+1)*4,a=[],i=0;i>>24,s=Us.SBOX[s>>>24]<<24|Us.SBOX[s>>>16&255]<<16|Us.SBOX[s>>>8&255]<<8|Us.SBOX[s&255],s^=Oqt[i/e|0]<<24):e>6&&i%e===4&&(s=Us.SBOX[s>>>24]<<24|Us.SBOX[s>>>16&255]<<16|Us.SBOX[s>>>8&255]<<8|Us.SBOX[s&255]),a[i]=a[i-e]^s}for(var o=[],c=0;c>>24]]^Us.INV_SUB_MIX[1][Us.SBOX[l>>>16&255]]^Us.INV_SUB_MIX[2][Us.SBOX[l>>>8&255]]^Us.INV_SUB_MIX[3][Us.SBOX[l&255]]}this._nRounds=t,this._keySchedule=a,this._invKeySchedule=o};Hd.prototype.encryptBlockRaw=function(r){return r=GV(r),l3e(r,this._keySchedule,Us.SUB_MIX,Us.SBOX,this._nRounds)};Hd.prototype.encryptBlock=function(r){var e=this.encryptBlockRaw(r),t=f9.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t};Hd.prototype.decryptBlock=function(r){r=GV(r);var e=r[1];r[1]=r[3],r[3]=e;var t=l3e(r,this._invKeySchedule,Us.INV_SUB_MIX,Us.INV_SBOX,this._nRounds),n=f9.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[3],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[1],12),n};Hd.prototype.scrub=function(){KV(this._keySchedule),KV(this._invKeySchedule),KV(this._key)};d3e.exports.AES=Hd});var f3e=x((L4n,h3e)=>{d();p();var Y5=Er().Buffer,Lqt=Y5.alloc(16,0);function qqt(r){return[r.readUInt32BE(0),r.readUInt32BE(4),r.readUInt32BE(8),r.readUInt32BE(12)]}function p3e(r){var e=Y5.allocUnsafe(16);return e.writeUInt32BE(r[0]>>>0,0),e.writeUInt32BE(r[1]>>>0,4),e.writeUInt32BE(r[2]>>>0,8),e.writeUInt32BE(r[3]>>>0,12),e}function wC(r){this.h=r,this.state=Y5.alloc(16,0),this.cache=Y5.allocUnsafe(0)}wC.prototype.ghash=function(r){for(var e=-1;++e0;t--)r[t]=r[t]>>>1|(r[t-1]&1)<<31;r[0]=r[0]>>>1,a&&(r[0]=r[0]^225<<24)}this.state=p3e(e)};wC.prototype.update=function(r){this.cache=Y5.concat([this.cache,r]);for(var e;this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)};wC.prototype.final=function(r,e){return this.cache.length&&this.ghash(Y5.concat([this.cache,Lqt],16)),this.ghash(p3e([0,r,0,e])),this.state};h3e.exports=wC});var VV=x((W4n,g3e)=>{d();p();var Fqt=vC(),dl=Er().Buffer,m3e=t0(),Wqt=_r(),y3e=f3e(),Uqt=$5(),Hqt=WV();function jqt(r,e){var t=0;r.length!==e.length&&t++;for(var n=Math.min(r.length,e.length),a=0;a{d();p();var Kqt=vC(),$V=Er().Buffer,b3e=t0(),Gqt=_r();function m9(r,e,t,n){b3e.call(this),this._cipher=new Kqt.AES(e),this._prev=$V.from(t),this._cache=$V.allocUnsafe(0),this._secCache=$V.allocUnsafe(0),this._decrypt=n,this._mode=r}Gqt(m9,b3e);m9.prototype._update=function(r){return this._mode.encrypt(this,r,this._decrypt)};m9.prototype._final=function(){this._cipher.scrub()};v3e.exports=m9});var _C=x((G4n,w3e)=>{d();p();var kb=Er().Buffer,Vqt=JR();function $qt(r,e,t,n){if(kb.isBuffer(r)||(r=kb.from(r,"binary")),e&&(kb.isBuffer(e)||(e=kb.from(e,"binary")),e.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=t/8,i=kb.alloc(a),s=kb.alloc(n||0),o=kb.alloc(0);a>0||n>0;){var c=new Vqt;c.update(o),c.update(r),e&&c.update(e),o=c.digest();var u=0;if(a>0){var l=i.length-a;u=Math.min(a,o.length),o.copy(i,l,0,u),a-=u}if(u0){var h=s.length-n,f=Math.min(n,o.length-u);o.copy(s,h,u,u+f),n-=f}}return o.fill(0),{key:i,iv:s}}w3e.exports=$qt});var E3e=x(JV=>{d();p();var _3e=h9(),Yqt=VV(),n0=Er().Buffer,Jqt=YV(),x3e=t0(),Qqt=vC(),Zqt=_C(),Xqt=_r();function xC(r,e,t){x3e.call(this),this._cache=new y9,this._cipher=new Qqt.AES(e),this._prev=n0.from(t),this._mode=r,this._autopadding=!0}Xqt(xC,x3e);xC.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get();)t=this._mode.encrypt(this,e),n.push(t);return n0.concat(n)};var eFt=n0.alloc(16,16);xC.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return r=this._mode.encrypt(this,r),this._cipher.scrub(),r;if(!r.equals(eFt))throw this._cipher.scrub(),new Error("data not multiple of block length")};xC.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function y9(){this.cache=n0.allocUnsafe(0)}y9.prototype.add=function(r){this.cache=n0.concat([this.cache,r])};y9.prototype.get=function(){if(this.cache.length>15){var r=this.cache.slice(0,16);return this.cache=this.cache.slice(16),r}return null};y9.prototype.flush=function(){for(var r=16-this.cache.length,e=n0.allocUnsafe(r),t=-1;++t{d();p();var rFt=VV(),J5=Er().Buffer,C3e=h9(),nFt=YV(),I3e=t0(),aFt=vC(),iFt=_C(),sFt=_r();function TC(r,e,t){I3e.call(this),this._cache=new g9,this._last=void 0,this._cipher=new aFt.AES(e),this._prev=J5.from(t),this._mode=r,this._autopadding=!0}sFt(TC,I3e);TC.prototype._update=function(r){this._cache.add(r);for(var e,t,n=[];e=this._cache.get(this._autopadding);)t=this._mode.decrypt(this,e),n.push(t);return J5.concat(n)};TC.prototype._final=function(){var r=this._cache.flush();if(this._autopadding)return oFt(this._mode.decrypt(this,r));if(r)throw new Error("data not multiple of block length")};TC.prototype.setAutoPadding=function(r){return this._autopadding=!!r,this};function g9(){this.cache=J5.allocUnsafe(0)}g9.prototype.add=function(r){this.cache=J5.concat([this.cache,r])};g9.prototype.get=function(r){var e;if(r){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null};g9.prototype.flush=function(){if(this.cache.length)return this.cache};function oFt(r){var e=r[15];if(e<1||e>16)throw new Error("unable to decrypt data");for(var t=-1;++t{d();p();var S3e=E3e(),P3e=A3e(),uFt=jV();function lFt(){return Object.keys(uFt)}sh.createCipher=sh.Cipher=S3e.createCipher;sh.createCipheriv=sh.Cipheriv=S3e.createCipheriv;sh.createDecipher=sh.Decipher=P3e.createDecipher;sh.createDecipheriv=sh.Decipheriv=P3e.createDecipheriv;sh.listCiphers=sh.getCiphers=lFt});var R3e=x(a0=>{d();p();a0["des-ecb"]={key:8,iv:0};a0["des-cbc"]=a0.des={key:8,iv:8};a0["des-ede3-cbc"]=a0.des3={key:24,iv:8};a0["des-ede3"]={key:24,iv:0};a0["des-ede-cbc"]={key:16,iv:8};a0["des-ede"]={key:16,iv:0}});var O3e=x(oh=>{d();p();var M3e=G5e(),ZV=b9(),Ly=h9(),i0=R3e(),N3e=_C();function dFt(r,e){r=r.toLowerCase();var t,n;if(Ly[r])t=Ly[r].key,n=Ly[r].iv;else if(i0[r])t=i0[r].key*8,n=i0[r].iv;else throw new TypeError("invalid suite type");var a=N3e(e,!1,t,n);return B3e(r,a.key,a.iv)}function pFt(r,e){r=r.toLowerCase();var t,n;if(Ly[r])t=Ly[r].key,n=Ly[r].iv;else if(i0[r])t=i0[r].key*8,n=i0[r].iv;else throw new TypeError("invalid suite type");var a=N3e(e,!1,t,n);return D3e(r,a.key,a.iv)}function B3e(r,e,t){if(r=r.toLowerCase(),Ly[r])return ZV.createCipheriv(r,e,t);if(i0[r])return new M3e({key:e,iv:t,mode:r});throw new TypeError("invalid suite type")}function D3e(r,e,t){if(r=r.toLowerCase(),Ly[r])return ZV.createDecipheriv(r,e,t);if(i0[r])return new M3e({key:e,iv:t,mode:r,decrypt:!0});throw new TypeError("invalid suite type")}function hFt(){return Object.keys(i0).concat(ZV.getCiphers())}oh.createCipher=oh.Cipher=dFt;oh.createCipheriv=oh.Cipheriv=B3e;oh.createDecipher=oh.Decipher=pFt;oh.createDecipheriv=oh.Decipheriv=D3e;oh.listCiphers=oh.getCiphers=hFt});var XV=x((l8n,L3e)=>{d();p();var Ab=co(),fFt=v9();function Sb(r){this.rand=r||new fFt.Rand}L3e.exports=Sb;Sb.create=function(e){return new Sb(e)};Sb.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do var a=new Ab(this.rand.generate(n));while(a.cmp(e)>=0);return a};Sb.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))};Sb.prototype.test=function(e,t,n){var a=e.bitLength(),i=Ab.mont(e),s=new Ab(1).toRed(i);t||(t=Math.max(1,a/48|0));for(var o=e.subn(1),c=0;!o.testn(c);c++);for(var u=e.shrn(c),l=o.toRed(i),h=!0;t>0;t--){var f=this._randrange(new Ab(2),o);n&&n(f);var m=f.toRed(i).redPow(u);if(!(m.cmp(s)===0||m.cmp(l)===0)){for(var y=1;y0;t--){var l=this._randrange(new Ab(2),s),h=e.gcd(l);if(h.cmpn(1)!==0)return h;var f=l.toRed(a).redPow(c);if(!(f.cmp(i)===0||f.cmp(u)===0)){for(var m=1;m{d();p();var mFt=ub();W3e.exports=a$;a$.simpleSieve=r$;a$.fermatTest=n$;var dc=co(),yFt=new dc(24),gFt=XV(),q3e=new gFt,bFt=new dc(1),t$=new dc(2),vFt=new dc(5),h8n=new dc(16),f8n=new dc(8),wFt=new dc(10),_Ft=new dc(3),m8n=new dc(7),xFt=new dc(11),F3e=new dc(4),y8n=new dc(12),e$=null;function TFt(){if(e$!==null)return e$;var r=1048576,e=[];e[0]=2;for(var t=1,n=3;nr;)t.ishrn(1);if(t.isEven()&&t.iadd(bFt),t.testn(1)||t.iadd(t$),e.cmp(t$)){if(!e.cmp(vFt))for(;t.mod(wFt).cmp(_Ft);)t.iadd(F3e)}else for(;t.mod(yFt).cmp(xFt);)t.iadd(F3e);if(n=t.shrn(1),r$(n)&&r$(t)&&n$(n)&&n$(t)&&q3e.test(n)&&q3e.test(t))return t}}});var U3e=x((w8n,EFt)=>{EFt.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}});var K3e=x((_8n,z3e)=>{d();p();var jd=co(),CFt=XV(),H3e=new CFt,IFt=new jd(24),kFt=new jd(11),AFt=new jd(10),SFt=new jd(3),PFt=new jd(7),j3e=i$(),RFt=ub();z3e.exports=s0;function MFt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._pub=new jd(r),this}function NFt(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this._priv=new jd(r),this}var w9={};function BFt(r,e){var t=e.toString("hex"),n=[t,r.toString(16)].join("_");if(n in w9)return w9[n];var a=0;if(r.isEven()||!j3e.simpleSieve||!j3e.fermatTest(r)||!H3e.test(r))return a+=1,t==="02"||t==="05"?a+=8:a+=4,w9[n]=a,a;H3e.test(r.shrn(1))||(a+=2);var i;switch(t){case"02":r.mod(IFt).cmp(kFt)&&(a+=8);break;case"05":i=r.mod(AFt),i.cmp(SFt)&&i.cmp(PFt)&&(a+=8);break;default:a+=4}return w9[n]=a,a}function s0(r,e,t){this.setGenerator(e),this.__prime=new jd(r),this._prime=jd.mont(this.__prime),this._primeLen=r.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,t?(this.setPublicKey=MFt,this.setPrivateKey=NFt):this._primeCode=8}Object.defineProperty(s0.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=BFt(this.__prime,this.__gen)),this._primeCode}});s0.prototype.generateKeys=function(){return this._priv||(this._priv=new jd(RFt(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()};s0.prototype.computeSecret=function(r){r=new jd(r),r=r.toRed(this._prime);var e=r.redPow(this._priv).fromRed(),t=new b.Buffer(e.toArray()),n=this.getPrime();if(t.length{d();p();var DFt=i$(),G3e=U3e(),s$=K3e();function OFt(r){var e=new b.Buffer(G3e[r].prime,"hex"),t=new b.Buffer(G3e[r].gen,"hex");return new s$(e,t)}var LFt={binary:!0,hex:!0,base64:!0};function V3e(r,e,t,n){return b.Buffer.isBuffer(e)||LFt[e]===void 0?V3e(r,"binary",e,t):(e=e||"binary",n=n||"binary",t=t||new b.Buffer([2]),b.Buffer.isBuffer(t)||(t=new b.Buffer(t,n)),typeof r=="number"?new s$(DFt(r,t),t,!0):(b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),new s$(r,t,!0)))}Q5.DiffieHellmanGroup=Q5.createDiffieHellmanGroup=Q5.getDiffieHellman=OFt;Q5.createDiffieHellman=Q5.DiffieHellman=V3e});var x9=x((k8n,Q3e)=>{d();p();var Z5=Ir(),qFt=ub();function FFt(r){var e=Y3e(r),t=e.toRed(Z5.mont(r.modulus)).redPow(new Z5(r.publicExponent)).fromRed();return{blinder:t,unblinder:e.invm(r.modulus)}}function Y3e(r){var e=r.modulus.byteLength(),t;do t=new Z5(qFt(e));while(t.cmp(r.modulus)>=0||!t.umod(r.prime1)||!t.umod(r.prime2));return t}function J3e(r,e){var t=FFt(e),n=e.modulus.byteLength(),a=new Z5(r).mul(t.blinder).umod(e.modulus),i=a.toRed(Z5.mont(e.prime1)),s=a.toRed(Z5.mont(e.prime2)),o=e.coefficient,c=e.prime1,u=e.prime2,l=i.redPow(e.exponent1).fromRed(),h=s.redPow(e.exponent2).fromRed(),f=l.isub(h).imul(o).umod(c).imul(u);return h.iadd(f).imul(t.unblinder).umod(e.modulus).toArrayLike(b.Buffer,"be",n)}J3e.getr=Y3e;Q3e.exports=J3e});var E9=x((P8n,Z3e)=>{"use strict";d();p();var T9=cc(),X5=T9.Buffer,zd={},Kd;for(Kd in T9)!T9.hasOwnProperty(Kd)||Kd==="SlowBuffer"||Kd==="Buffer"||(zd[Kd]=T9[Kd]);var e3=zd.Buffer={};for(Kd in X5)!X5.hasOwnProperty(Kd)||Kd==="allocUnsafe"||Kd==="allocUnsafeSlow"||(e3[Kd]=X5[Kd]);zd.Buffer.prototype=X5.prototype;(!e3.from||e3.from===Uint8Array.from)&&(e3.from=function(r,e,t){if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof r);if(r&&typeof r.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);return X5(r,e,t)});e3.alloc||(e3.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof r);if(r<0||r>=2*(1<<30))throw new RangeError('The value "'+r+'" is invalid for option "size"');var n=X5(r);return!e||e.length===0?n.fill(0):typeof t=="string"?n.fill(e,t):n.fill(e),n});if(!zd.kStringMaxLength)try{zd.kStringMaxLength=g.binding("buffer").kStringMaxLength}catch{}zd.constants||(zd.constants={MAX_LENGTH:zd.kMaxLength},zd.kStringMaxLength&&(zd.constants.MAX_STRING_LENGTH=zd.kStringMaxLength));Z3e.exports=zd});var C9=x(X3e=>{"use strict";d();p();var WFt=_r();function Gd(r){this._reporterState={obj:null,path:[],options:r||{},errors:[]}}X3e.Reporter=Gd;Gd.prototype.isError=function(e){return e instanceof t3};Gd.prototype.save=function(){let e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}};Gd.prototype.restore=function(e){let t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)};Gd.prototype.enterKey=function(e){return this._reporterState.path.push(e)};Gd.prototype.exitKey=function(e){let t=this._reporterState;t.path=t.path.slice(0,e-1)};Gd.prototype.leaveKey=function(e,t,n){let a=this._reporterState;this.exitKey(e),a.obj!==null&&(a.obj[t]=n)};Gd.prototype.path=function(){return this._reporterState.path.join("/")};Gd.prototype.enterObject=function(){let e=this._reporterState,t=e.obj;return e.obj={},t};Gd.prototype.leaveObject=function(e){let t=this._reporterState,n=t.obj;return t.obj=e,n};Gd.prototype.error=function(e){let t,n=this._reporterState,a=e instanceof t3;if(a?t=e:t=new t3(n.path.map(function(i){return"["+JSON.stringify(i)+"]"}).join(""),e.message||e,e.stack),!n.options.partial)throw t;return a||n.errors.push(t),t};Gd.prototype.wrapResult=function(e){let t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e};function t3(r,e){this.path=r,this.rethrow(e)}WFt(t3,Error);t3.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,t3),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}});var a3=x(o$=>{"use strict";d();p();var UFt=_r(),I9=C9().Reporter,r3=E9().Buffer;function Vd(r,e){if(I9.call(this,e),!r3.isBuffer(r)){this.error("Input not Buffer");return}this.base=r,this.offset=0,this.length=r.length}UFt(Vd,I9);o$.DecoderBuffer=Vd;Vd.isDecoderBuffer=function(e){return e instanceof Vd?!0:typeof e=="object"&&r3.isBuffer(e.base)&&e.constructor.name==="DecoderBuffer"&&typeof e.offset=="number"&&typeof e.length=="number"&&typeof e.save=="function"&&typeof e.restore=="function"&&typeof e.isEmpty=="function"&&typeof e.readUInt8=="function"&&typeof e.skip=="function"&&typeof e.raw=="function"};Vd.prototype.save=function(){return{offset:this.offset,reporter:I9.prototype.save.call(this)}};Vd.prototype.restore=function(e){let t=new Vd(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,I9.prototype.restore.call(this,e.reporter),t};Vd.prototype.isEmpty=function(){return this.offset===this.length};Vd.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")};Vd.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");let n=new Vd(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n};Vd.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)};function n3(r,e){if(Array.isArray(r))this.length=0,this.value=r.map(function(t){return n3.isEncoderBuffer(t)||(t=new n3(t,e)),this.length+=t.length,t},this);else if(typeof r=="number"){if(!(0<=r&&r<=255))return e.error("non-byte EncoderBuffer value");this.value=r,this.length=1}else if(typeof r=="string")this.value=r,this.length=r3.byteLength(r);else if(r3.isBuffer(r))this.value=r,this.length=r.length;else return e.error("Unsupported type: "+typeof r)}o$.EncoderBuffer=n3;n3.isEncoderBuffer=function(e){return e instanceof n3?!0:typeof e=="object"&&e.constructor.name==="EncoderBuffer"&&typeof e.length=="number"&&typeof e.join=="function"};n3.prototype.join=function(e,t){return e||(e=r3.alloc(this.length)),t||(t=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(n){n.join(e,t),t+=n.length}):(typeof this.value=="number"?e[t]=this.value:typeof this.value=="string"?e.write(this.value,t):r3.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}});var k9=x((F8n,t_e)=>{"use strict";d();p();var HFt=C9().Reporter,jFt=a3().EncoderBuffer,zFt=a3().DecoderBuffer,Du=Gl(),e_e=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],KFt=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(e_e),GFt=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Fa(r,e,t){let n={};this._baseState=n,n.name=t,n.enc=r,n.parent=e||null,n.children=null,n.tag=null,n.args=null,n.reverseArgs=null,n.choice=null,n.optional=!1,n.any=!1,n.obj=!1,n.use=null,n.useDecoder=null,n.key=null,n.default=null,n.explicit=null,n.implicit=null,n.contains=null,n.parent||(n.children=[],this._wrap())}t_e.exports=Fa;var VFt=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Fa.prototype.clone=function(){let e=this._baseState,t={};VFt.forEach(function(a){t[a]=e[a]});let n=new this.constructor(t.parent);return n._baseState=t,n};Fa.prototype._wrap=function(){let e=this._baseState;KFt.forEach(function(t){this[t]=function(){let a=new this.constructor(this);return e.children.push(a),a[t].apply(a,arguments)}},this)};Fa.prototype._init=function(e){let t=this._baseState;Du(t.parent===null),e.call(this),t.children=t.children.filter(function(n){return n._baseState.parent===this},this),Du.equal(t.children.length,1,"Root node can have only one child")};Fa.prototype._useArgs=function(e){let t=this._baseState,n=e.filter(function(a){return a instanceof this.constructor},this);e=e.filter(function(a){return!(a instanceof this.constructor)},this),n.length!==0&&(Du(t.children===null),t.children=n,n.forEach(function(a){a._baseState.parent=this},this)),e.length!==0&&(Du(t.args===null),t.args=e,t.reverseArgs=e.map(function(a){if(typeof a!="object"||a.constructor!==Object)return a;let i={};return Object.keys(a).forEach(function(s){s==(s|0)&&(s|=0);let o=a[s];i[o]=s}),i}))};GFt.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState;throw new Error(r+" not implemented for encoding: "+t.enc)}});e_e.forEach(function(r){Fa.prototype[r]=function(){let t=this._baseState,n=Array.prototype.slice.call(arguments);return Du(t.tag===null),t.tag=r,this._useArgs(n),this}});Fa.prototype.use=function(e){Du(e);let t=this._baseState;return Du(t.use===null),t.use=e,this};Fa.prototype.optional=function(){let e=this._baseState;return e.optional=!0,this};Fa.prototype.def=function(e){let t=this._baseState;return Du(t.default===null),t.default=e,t.optional=!0,this};Fa.prototype.explicit=function(e){let t=this._baseState;return Du(t.explicit===null&&t.implicit===null),t.explicit=e,this};Fa.prototype.implicit=function(e){let t=this._baseState;return Du(t.explicit===null&&t.implicit===null),t.implicit=e,this};Fa.prototype.obj=function(){let e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,t.length!==0&&this._useArgs(t),this};Fa.prototype.key=function(e){let t=this._baseState;return Du(t.key===null),t.key=e,this};Fa.prototype.any=function(){let e=this._baseState;return e.any=!0,this};Fa.prototype.choice=function(e){let t=this._baseState;return Du(t.choice===null),t.choice=e,this._useArgs(Object.keys(e).map(function(n){return e[n]})),this};Fa.prototype.contains=function(e){let t=this._baseState;return Du(t.use===null),t.contains=e,this};Fa.prototype._decode=function(e,t){let n=this._baseState;if(n.parent===null)return e.wrapResult(n.children[0]._decode(e,t));let a=n.default,i=!0,s=null;if(n.key!==null&&(s=e.enterKey(n.key)),n.optional){let c=null;if(n.explicit!==null?c=n.explicit:n.implicit!==null?c=n.implicit:n.tag!==null&&(c=n.tag),c===null&&!n.any){let u=e.save();try{n.choice===null?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),i=!0}catch{i=!1}e.restore(u)}else if(i=this._peekTag(e,c,n.any),e.isError(i))return i}let o;if(n.obj&&i&&(o=e.enterObject()),i){if(n.explicit!==null){let u=this._decodeTag(e,n.explicit);if(e.isError(u))return u;e=u}let c=e.offset;if(n.use===null&&n.choice===null){let u;n.any&&(u=e.save());let l=this._decodeTag(e,n.implicit!==null?n.implicit:n.tag,n.any);if(e.isError(l))return l;n.any?a=e.raw(u):e=l}if(t&&t.track&&n.tag!==null&&t.track(e.path(),c,e.length,"tagged"),t&&t.track&&n.tag!==null&&t.track(e.path(),e.offset,e.length,"content"),n.any||(n.choice===null?a=this._decodeGeneric(n.tag,e,t):a=this._decodeChoice(e,t)),e.isError(a))return a;if(!n.any&&n.choice===null&&n.children!==null&&n.children.forEach(function(l){l._decode(e,t)}),n.contains&&(n.tag==="octstr"||n.tag==="bitstr")){let u=new zFt(a);a=this._getUse(n.contains,e._reporterState.obj)._decode(u,t)}}return n.obj&&i&&(a=e.leaveObject(o)),n.key!==null&&(a!==null||i===!0)?e.leaveKey(s,n.key,a):s!==null&&e.exitKey(s),a};Fa.prototype._decodeGeneric=function(e,t,n){let a=this._baseState;return e==="seq"||e==="set"?null:e==="seqof"||e==="setof"?this._decodeList(t,e,a.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):e==="objid"&&a.args?this._decodeObjid(t,a.args[0],a.args[1],n):e==="objid"?this._decodeObjid(t,null,null,n):e==="gentime"||e==="utctime"?this._decodeTime(t,e,n):e==="null_"?this._decodeNull(t,n):e==="bool"?this._decodeBool(t,n):e==="objDesc"?this._decodeStr(t,e,n):e==="int"||e==="enum"?this._decodeInt(t,a.args&&a.args[0],n):a.use!==null?this._getUse(a.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)};Fa.prototype._getUse=function(e,t){let n=this._baseState;return n.useDecoder=this._use(e,t),Du(n.useDecoder._baseState.parent===null),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder};Fa.prototype._decodeChoice=function(e,t){let n=this._baseState,a=null,i=!1;return Object.keys(n.choice).some(function(s){let o=e.save(),c=n.choice[s];try{let u=c._decode(e,t);if(e.isError(u))return!1;a={type:s,value:u},i=!0}catch{return e.restore(o),!1}return!0},this),i?a:e.error("Choice not matched")};Fa.prototype._createEncoderBuffer=function(e){return new jFt(e,this.reporter)};Fa.prototype._encode=function(e,t,n){let a=this._baseState;if(a.default!==null&&a.default===e)return;let i=this._encodeValue(e,t,n);if(i!==void 0&&!this._skipDefault(i,t,n))return i};Fa.prototype._encodeValue=function(e,t,n){let a=this._baseState;if(a.parent===null)return a.children[0]._encode(e,t||new HFt);let i=null;if(this.reporter=t,a.optional&&e===void 0)if(a.default!==null)e=a.default;else return;let s=null,o=!1;if(a.any)i=this._createEncoderBuffer(e);else if(a.choice)i=this._encodeChoice(e,t);else if(a.contains)s=this._getUse(a.contains,n)._encode(e,t),o=!0;else if(a.children)s=a.children.map(function(c){if(c._baseState.tag==="null_")return c._encode(null,t,e);if(c._baseState.key===null)return t.error("Child should have a key");let u=t.enterKey(c._baseState.key);if(typeof e!="object")return t.error("Child expected, but input is not object");let l=c._encode(e[c._baseState.key],t,e);return t.leaveKey(u),l},this).filter(function(c){return c}),s=this._createEncoderBuffer(s);else if(a.tag==="seqof"||a.tag==="setof"){if(!(a.args&&a.args.length===1))return t.error("Too many args for : "+a.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");let c=this.clone();c._baseState.implicit=null,s=this._createEncoderBuffer(e.map(function(u){let l=this._baseState;return this._getUse(l.args[0],e)._encode(u,t)},c))}else a.use!==null?i=this._getUse(a.use,n)._encode(e,t):(s=this._encodePrimitive(a.tag,e),o=!0);if(!a.any&&a.choice===null){let c=a.implicit!==null?a.implicit:a.tag,u=a.implicit===null?"universal":"context";c===null?a.use===null&&t.error("Tag could be omitted only for .use()"):a.use===null&&(i=this._encodeComposite(c,o,u,s))}return a.explicit!==null&&(i=this._encodeComposite(a.explicit,!1,"context",i)),i};Fa.prototype._encodeChoice=function(e,t){let n=this._baseState,a=n.choice[e.type];return a||Du(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),a._encode(e.value,t)};Fa.prototype._encodePrimitive=function(e,t){let n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if(e==="objid"&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if(e==="objid")return this._encodeObjid(t,null,null);if(e==="gentime"||e==="utctime")return this._encodeTime(t,e);if(e==="null_")return this._encodeNull();if(e==="int"||e==="enum")return this._encodeInt(t,n.args&&n.reverseArgs[0]);if(e==="bool")return this._encodeBool(t);if(e==="objDesc")return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)};Fa.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)};Fa.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}});var A9=x(Pb=>{"use strict";d();p();function r_e(r){let e={};return Object.keys(r).forEach(function(t){(t|0)==t&&(t=t|0);let n=r[t];e[n]=t}),e}Pb.tagClass={0:"universal",1:"application",2:"context",3:"private"};Pb.tagClassByName=r_e(Pb.tagClass);Pb.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"};Pb.tagByName=r_e(Pb.tag)});var u$=x((K8n,i_e)=>{"use strict";d();p();var $Ft=_r(),o0=E9().Buffer,n_e=k9(),c$=A9();function a_e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new ch,this.tree._init(r.body)}i_e.exports=a_e;a_e.prototype.encode=function(e,t){return this.tree._encode(e,t).join()};function ch(r){n_e.call(this,"der",r)}$Ft(ch,n_e);ch.prototype._encodeComposite=function(e,t,n,a){let i=YFt(e,t,n,this.reporter);if(a.length<128){let c=o0.alloc(2);return c[0]=i,c[1]=a.length,this._createEncoderBuffer([c,a])}let s=1;for(let c=a.length;c>=256;c>>=8)s++;let o=o0.alloc(1+1+s);o[0]=i,o[1]=128|s;for(let c=1+s,u=a.length;u>0;c--,u>>=8)o[c]=u&255;return this._createEncoderBuffer([o,a])};ch.prototype._encodeStr=function(e,t){if(t==="bitstr")return this._createEncoderBuffer([e.unused|0,e.data]);if(t==="bmpstr"){let n=o0.alloc(e.length*2);for(let a=0;a=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,e[0]*40+e[1])}let a=0;for(let o=0;o=128;c>>=7)a++}let i=o0.alloc(a),s=i.length-1;for(let o=e.length-1;o>=0;o--){let c=e[o];for(i[s--]=c&127;(c>>=7)>0;)i[s--]=128|c&127}return this._createEncoderBuffer(i)};function $d(r){return r<10?"0"+r:r}ch.prototype._encodeTime=function(e,t){let n,a=new Date(e);return t==="gentime"?n=[$d(a.getUTCFullYear()),$d(a.getUTCMonth()+1),$d(a.getUTCDate()),$d(a.getUTCHours()),$d(a.getUTCMinutes()),$d(a.getUTCSeconds()),"Z"].join(""):t==="utctime"?n=[$d(a.getUTCFullYear()%100),$d(a.getUTCMonth()+1),$d(a.getUTCDate()),$d(a.getUTCHours()),$d(a.getUTCMinutes()),$d(a.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")};ch.prototype._encodeNull=function(){return this._createEncoderBuffer("")};ch.prototype._encodeInt=function(e,t){if(typeof e=="string"){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if(typeof e!="number"&&!o0.isBuffer(e)){let i=e.toArray();!e.sign&&i[0]&128&&i.unshift(0),e=o0.from(i)}if(o0.isBuffer(e)){let i=e.length;e.length===0&&i++;let s=o0.alloc(i);return e.copy(s),e.length===0&&(s[0]=0),this._createEncoderBuffer(s)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let i=e;i>=256;i>>=8)n++;let a=new Array(n);for(let i=a.length-1;i>=0;i--)a[i]=e&255,e>>=8;return a[0]&128&&a.unshift(0),this._createEncoderBuffer(o0.from(a))};ch.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)};ch.prototype._use=function(e,t){return typeof e=="function"&&(e=e(t)),e._getEncoder("der").tree};ch.prototype._skipDefault=function(e,t,n){let a=this._baseState,i;if(a.default===null)return!1;let s=e.join();if(a.defaultBuffer===void 0&&(a.defaultBuffer=this._encodeValue(a.default,t,n).join()),s.length!==a.defaultBuffer.length)return!1;for(i=0;i=31?n.error("Multi-octet tag encoding unsupported"):(e||(a|=32),a|=c$.tagClassByName[t||"universal"]<<6,a)}});var o_e=x(($8n,s_e)=>{"use strict";d();p();var JFt=_r(),l$=u$();function d$(r){l$.call(this,r),this.enc="pem"}JFt(d$,l$);s_e.exports=d$;d$.prototype.encode=function(e,t){let a=l$.prototype.encode.call(this,e).toString("base64"),i=["-----BEGIN "+t.label+"-----"];for(let s=0;s{"use strict";d();p();var c_e=u_e;c_e.der=u$();c_e.pem=o_e()});var f$=x((eIn,m_e)=>{"use strict";d();p();var QFt=_r(),ZFt=co(),l_e=a3().DecoderBuffer,p_e=k9(),d_e=A9();function h_e(r){this.enc="der",this.name=r.name,this.entity=r,this.tree=new $l,this.tree._init(r.body)}m_e.exports=h_e;h_e.prototype.decode=function(e,t){return l_e.isDecoderBuffer(e)||(e=new l_e(e,t)),this.tree._decode(e,t)};function $l(r){p_e.call(this,"der",r)}QFt($l,p_e);$l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;let a=e.save(),i=h$(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(a),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)};$l.prototype._decodeTag=function(e,t,n){let a=h$(e,'Failed to decode tag of "'+t+'"');if(e.isError(a))return a;let i=f_e(e,a.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&a.tag!==t&&a.tagStr!==t&&a.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(a.primitive||i!==null)return e.skip(i,'Failed to match body of: "'+t+'"');let s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))};$l.prototype._skipUntilEnd=function(e,t){for(;;){let n=h$(e,t);if(e.isError(n))return n;let a=f_e(e,n.primitive,t);if(e.isError(a))return a;let i;if(n.primitive||a!==null?i=e.skip(a):i=this._skipUntilEnd(e,t),e.isError(i))return i;if(n.tagStr==="end")break}};$l.prototype._decodeList=function(e,t,n,a){let i=[];for(;!e.isEmpty();){let s=this._peekTag(e,"end");if(e.isError(s))return s;let o=n.decode(e,"der",a);if(e.isError(o)&&s)break;i.push(o)}return i};$l.prototype._decodeStr=function(e,t){if(t==="bitstr"){let n=e.readUInt8();return e.isError(n)?n:{unused:n,data:e.raw()}}else if(t==="bmpstr"){let n=e.raw();if(n.length%2===1)return e.error("Decoding of string type: bmpstr length mismatch");let a="";for(let i=0;i>6],a=(t&32)===0;if((t&31)===31){let s=t;for(t=0;(s&128)===128;){if(s=r.readUInt8(e),r.isError(s))return s;t<<=7,t|=s&127}}else t&=31;let i=d_e.tag[t];return{cls:n,primitive:a,tag:t,tagStr:i}}function f_e(r,e,t){let n=r.readUInt8(t);if(r.isError(n))return n;if(!e&&n===128)return null;if((n&128)===0)return n;let a=n&127;if(a>4)return r.error("length octect is too long");n=0;for(let i=0;i{"use strict";d();p();var XFt=_r(),eWt=E9().Buffer,m$=f$();function y$(r){m$.call(this,r),this.enc="pem"}XFt(y$,m$);y_e.exports=y$;y$.prototype.decode=function(e,t){let n=e.toString().split(/[\r\n]+/g),a=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,o=-1;for(let l=0;l{"use strict";d();p();var b_e=v_e;b_e.der=f$();b_e.pem=g_e()});var __e=x(w_e=>{"use strict";d();p();var tWt=p$(),rWt=g$(),nWt=_r(),aWt=w_e;aWt.define=function(e,t){return new i3(e,t)};function i3(r,e){this.name=r,this.body=e,this.decoders={},this.encoders={}}i3.prototype._createNamed=function(e){let t=this.name;function n(a){this._initNamed(a,t)}return nWt(n,e),n.prototype._initNamed=function(i,s){e.call(this,i,s)},new n(this)};i3.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(rWt[e])),this.decoders[e]};i3.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)};i3.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(tWt[e])),this.encoders[e]};i3.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}});var T_e=x(x_e=>{"use strict";d();p();var S9=x_e;S9.Reporter=C9().Reporter;S9.DecoderBuffer=a3().DecoderBuffer;S9.EncoderBuffer=a3().EncoderBuffer;S9.Node=k9()});var I_e=x(C_e=>{"use strict";d();p();var E_e=C_e;E_e._reverse=function(e){let t={};return Object.keys(e).forEach(function(n){(n|0)==n&&(n=n|0);let a=e[n];t[a]=n}),t};E_e.der=A9()});var b$=x(k_e=>{"use strict";d();p();var s3=k_e;s3.bignum=co();s3.define=__e().define;s3.base=T_e();s3.constants=I_e();s3.decoders=g$();s3.encoders=p$()});var R_e=x((_In,P_e)=>{"use strict";d();p();var uh=b$(),A_e=uh.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),iWt=uh.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),v$=uh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),sWt=uh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(v$),this.key("subjectPublicKey").bitstr())}),oWt=uh.define("RelativeDistinguishedName",function(){this.setof(iWt)}),cWt=uh.define("RDNSequence",function(){this.seqof(oWt)}),S_e=uh.define("Name",function(){this.choice({rdnSequence:this.use(cWt)})}),uWt=uh.define("Validity",function(){this.seq().obj(this.key("notBefore").use(A_e),this.key("notAfter").use(A_e))}),lWt=uh.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),dWt=uh.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(v$),this.key("issuer").use(S_e),this.key("validity").use(uWt),this.key("subject").use(S_e),this.key("subjectPublicKeyInfo").use(sWt),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(lWt).optional())}),pWt=uh.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(dWt),this.key("signatureAlgorithm").use(v$),this.key("signatureValue").bitstr())});P_e.exports=pWt});var N_e=x(dh=>{"use strict";d();p();var lh=b$();dh.certificate=R_e();var hWt=lh.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});dh.RSAPrivateKey=hWt;var fWt=lh.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});dh.RSAPublicKey=fWt;var mWt=lh.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M_e),this.key("subjectPublicKey").bitstr())});dh.PublicKey=mWt;var M_e=lh.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),yWt=lh.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(M_e),this.key("subjectPrivateKey").octstr())});dh.PrivateKey=yWt;var gWt=lh.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});dh.EncryptedPrivateKey=gWt;var bWt=lh.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});dh.DSAPrivateKey=bWt;dh.DSAparam=lh.define("DSAparam",function(){this.int()});var vWt=lh.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(wWt),this.key("publicKey").optional().explicit(1).bitstr())});dh.ECPrivateKey=vWt;var wWt=lh.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});dh.signature=lh.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})});var B_e=x((kIn,_Wt)=>{_Wt.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}});var O_e=x((AIn,D_e)=>{d();p();var xWt=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,TWt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,EWt=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,CWt=_C(),IWt=b9(),P9=Er().Buffer;D_e.exports=function(r,e){var t=r.toString(),n=t.match(xWt),a;if(n){var s="aes"+n[1],o=P9.from(n[2],"hex"),c=P9.from(n[3].replace(/[\r\n]/g,""),"base64"),u=CWt(e,o.slice(0,8),parseInt(n[1],10)).key,l=[],h=IWt.createDecipheriv(s,u,o);l.push(h.update(c)),l.push(h.final()),a=P9.concat(l)}else{var i=t.match(EWt);a=P9.from(i[2].replace(/[\r\n]/g,""),"base64")}var f=t.match(TWt)[1];return{tag:f,data:a}}});var EC=x((RIn,q_e)=>{d();p();var pl=N_e(),kWt=B_e(),AWt=O_e(),SWt=b9(),PWt=BV(),w$=Er().Buffer;q_e.exports=L_e;function L_e(r){var e;typeof r=="object"&&!w$.isBuffer(r)&&(e=r.passphrase,r=r.key),typeof r=="string"&&(r=w$.from(r));var t=AWt(r,e),n=t.tag,a=t.data,i,s;switch(n){case"CERTIFICATE":s=pl.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(s||(s=pl.PublicKey.decode(a,"der")),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return pl.RSAPublicKey.decode(s.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return s.subjectPrivateKey=s.subjectPublicKey,{type:"ec",data:s};case"1.2.840.10040.4.1":return s.algorithm.params.pub_key=pl.DSAparam.decode(s.subjectPublicKey.data,"der"),{type:"dsa",data:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"ENCRYPTED PRIVATE KEY":a=pl.EncryptedPrivateKey.decode(a,"der"),a=RWt(a,e);case"PRIVATE KEY":switch(s=pl.PrivateKey.decode(a,"der"),i=s.algorithm.algorithm.join("."),i){case"1.2.840.113549.1.1.1":return pl.RSAPrivateKey.decode(s.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:s.algorithm.curve,privateKey:pl.ECPrivateKey.decode(s.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return s.algorithm.params.priv_key=pl.DSAparam.decode(s.subjectPrivateKey,"der"),{type:"dsa",params:s.algorithm.params};default:throw new Error("unknown key id "+i)}case"RSA PUBLIC KEY":return pl.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return pl.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:pl.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return a=pl.ECPrivateKey.decode(a,"der"),{curve:a.parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+n)}}L_e.signature=pl.signature;function RWt(r,e){var t=r.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(r.algorithm.decrypt.kde.kdeparams.iters.toString(),10),a=kWt[r.algorithm.decrypt.cipher.algo.join(".")],i=r.algorithm.decrypt.cipher.iv,s=r.subjectPrivateKey,o=parseInt(a.split("-")[1],10)/8,c=PWt.pbkdf2Sync(e,t,n,o,"sha1"),u=SWt.createDecipheriv(a,c,i),l=[];return l.push(u.update(s)),l.push(u.final()),w$.concat(l)}});var _$=x((BIn,MWt)=>{MWt.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}});var U_e=x((DIn,M9)=>{d();p();var Jc=Er().Buffer,Rb=EV(),NWt=x9(),BWt=CC().ec,R9=Ir(),DWt=EC(),OWt=_$();function LWt(r,e,t,n,a){var i=DWt(e);if(i.curve){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");return qWt(r,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong private key type");return FWt(r,i,t)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong private key type");r=Jc.concat([a,r]);for(var s=i.modulus.byteLength(),o=[0,1];r.length+o.length+10&&t.ishrn(n),t}function UWt(r,e){r=x$(r,e),r=r.mod(e);var t=Jc.from(r.toArray());if(t.length{d();p();var T$=Er().Buffer,IC=Ir(),jWt=CC().ec,j_e=EC(),zWt=_$();function KWt(r,e,t,n,a){var i=j_e(t);if(i.type==="ec"){if(n!=="ecdsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");return GWt(r,e,i)}else if(i.type==="dsa"){if(n!=="dsa")throw new Error("wrong public key type");return VWt(r,e,i)}else if(n!=="rsa"&&n!=="ecdsa/rsa")throw new Error("wrong public key type");e=T$.concat([a,e]);for(var s=i.modulus.byteLength(),o=[1],c=0;e.length+o.length+2=e)throw new Error("invalid sig")}z_e.exports=KWt});var Q_e=x((UIn,J_e)=>{d();p();var N9=Er().Buffer,$_e=K5(),B9=rC(),Y_e=_r(),$Wt=U_e(),YWt=K_e(),Mb=CV();Object.keys(Mb).forEach(function(r){Mb[r].id=N9.from(Mb[r].id,"hex"),Mb[r.toLowerCase()]=Mb[r]});function kC(r){B9.Writable.call(this);var e=Mb[r];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=$_e(e.hash),this._tag=e.id,this._signType=e.sign}Y_e(kC,B9.Writable);kC.prototype._write=function(e,t,n){this._hash.update(e),n()};kC.prototype.update=function(e,t){return typeof e=="string"&&(e=N9.from(e,t)),this._hash.update(e),this};kC.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),a=$Wt(n,e,this._hashType,this._signType,this._tag);return t?a.toString(t):a};function AC(r){B9.Writable.call(this);var e=Mb[r];if(!e)throw new Error("Unknown message digest");this._hash=$_e(e.hash),this._tag=e.id,this._signType=e.sign}Y_e(AC,B9.Writable);AC.prototype._write=function(e,t,n){this._hash.update(e),n()};AC.prototype.update=function(e,t){return typeof e=="string"&&(e=N9.from(e,t)),this._hash.update(e),this};AC.prototype.verify=function(e,t,n){typeof t=="string"&&(t=N9.from(t,n)),this.end();var a=this._hash.digest();return YWt(t,a,e,this._signType,this._tag)};function G_e(r){return new kC(r)}function V_e(r){return new AC(r)}J_e.exports={Sign:G_e,Verify:V_e,createSign:G_e,createVerify:V_e}});var X_e=x((zIn,Z_e)=>{d();p();var JWt=CC(),QWt=co();Z_e.exports=function(e){return new Nb(e)};var Yl={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Yl.p224=Yl.secp224r1;Yl.p256=Yl.secp256r1=Yl.prime256v1;Yl.p192=Yl.secp192r1=Yl.prime192v1;Yl.p384=Yl.secp384r1;Yl.p521=Yl.secp521r1;function Nb(r){this.curveType=Yl[r],this.curveType||(this.curveType={name:r}),this.curve=new JWt.ec(this.curveType.name),this.keys=void 0}Nb.prototype.generateKeys=function(r,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(r,e)};Nb.prototype.computeSecret=function(r,e,t){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var n=this.curve.keyFromPublic(r).getPublic(),a=n.mul(this.keys.getPrivate()).getX();return E$(a,t,this.curveType.byteLength)};Nb.prototype.getPublicKey=function(r,e){var t=this.keys.getPublic(e==="compressed",!0);return e==="hybrid"&&(t[t.length-1]%2?t[0]=7:t[0]=6),E$(t,r)};Nb.prototype.getPrivateKey=function(r){return E$(this.keys.getPrivate(),r)};Nb.prototype.setPublicKey=function(r,e){return e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e)),this.keys._importPublic(r),this};Nb.prototype.setPrivateKey=function(r,e){e=e||"utf8",b.Buffer.isBuffer(r)||(r=new b.Buffer(r,e));var t=new QWt(r);return t=t.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this};function E$(r,e,t){Array.isArray(r)||(r=r.toArray());var n=new b.Buffer(r);if(t&&n.length{d();p();var ZWt=K5(),C$=Er().Buffer;exe.exports=function(r,e){for(var t=C$.alloc(0),n=0,a;t.length{d();p();txe.exports=function(e,t){for(var n=e.length,a=-1;++a{d();p();var rxe=co(),eUt=Er().Buffer;function tUt(r,e){return eUt.from(r.toRed(rxe.mont(e.modulus)).redPow(new rxe(e.publicExponent)).fromRed().toArray())}nxe.exports=tUt});var oxe=x((rkn,sxe)=>{d();p();var rUt=EC(),S$=ub(),nUt=K5(),axe=I$(),ixe=k$(),P$=co(),aUt=A$(),iUt=x9(),ph=Er().Buffer;sxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=rUt(e),s;if(a===4)s=sUt(i,t);else if(a===1)s=oUt(i,t,n);else if(a===3){if(s=new P$(t),s.cmp(i.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return n?iUt(s,i):aUt(s,i)};function sUt(r,e){var t=r.modulus.byteLength(),n=e.length,a=nUt("sha1").update(ph.alloc(0)).digest(),i=a.length,s=2*i;if(n>t-s-2)throw new Error("message too long");var o=ph.alloc(t-n-s-2),c=t-i-1,u=S$(i),l=ixe(ph.concat([a,o,ph.alloc(1,1),e],c),axe(u,c)),h=ixe(u,axe(l,i));return new P$(ph.concat([ph.alloc(1),h,l],t))}function oUt(r,e,t){var n=e.length,a=r.modulus.byteLength();if(n>a-11)throw new Error("message too long");var i;return t?i=ph.alloc(a-n-3,255):i=cUt(a-n-3),new P$(ph.concat([ph.from([0,t?1:2]),i,ph.alloc(1),e],a))}function cUt(r){for(var e=ph.allocUnsafe(r),t=0,n=S$(r*2),a=0,i;t{d();p();var uUt=EC(),cxe=I$(),uxe=k$(),lxe=co(),lUt=x9(),dUt=K5(),pUt=A$(),SC=Er().Buffer;dxe.exports=function(e,t,n){var a;e.padding?a=e.padding:n?a=1:a=4;var i=uUt(e),s=i.modulus.byteLength();if(t.length>s||new lxe(t).cmp(i.modulus)>=0)throw new Error("decryption error");var o;n?o=pUt(new lxe(t),i):o=lUt(t,i);var c=SC.alloc(s-o.length);if(o=SC.concat([c,o],s),a===4)return hUt(i,o);if(a===1)return fUt(i,o,n);if(a===3)return o;throw new Error("unknown padding")};function hUt(r,e){var t=r.modulus.byteLength(),n=dUt("sha1").update(SC.alloc(0)).digest(),a=n.length;if(e[0]!==0)throw new Error("decryption error");var i=e.slice(1,a+1),s=e.slice(a+1),o=uxe(i,cxe(s,a)),c=uxe(s,cxe(o,t-a-1));if(mUt(n,c.slice(0,a)))throw new Error("decryption error");for(var u=a;c[u]===0;)u++;if(c[u++]!==1)throw new Error("decryption error");return c.slice(u)}function fUt(r,e,t){for(var n=e.slice(0,2),a=2,i=0;e[a++]!==0;)if(a>=e.length){i++;break}var s=e.slice(2,a-1);if((n.toString("hex")!=="0002"&&!t||n.toString("hex")!=="0001"&&t)&&i++,s.length<8&&i++,i)throw new Error("decryption error");return e.slice(a)}function mUt(r,e){r=SC.from(r),e=SC.from(e);var t=0,n=r.length;r.length!==e.length&&(t++,n=Math.min(r.length,e.length));for(var a=-1;++a{d();p();Bb.publicEncrypt=oxe();Bb.privateDecrypt=pxe();Bb.privateEncrypt=function(e,t){return Bb.publicEncrypt(e,t,!0)};Bb.publicDecrypt=function(e,t){return Bb.privateDecrypt(e,t,!0)}});var Txe=x(PC=>{"use strict";d();p();function fxe(){throw new Error(`secure random number generation not supported by this browser +use chrome, FireFox or Internet Explorer 11`)}var yxe=Er(),mxe=ub(),gxe=yxe.Buffer,bxe=yxe.kMaxLength,R$=global.crypto||global.msCrypto,vxe=Math.pow(2,32)-1;function wxe(r,e){if(typeof r!="number"||r!==r)throw new TypeError("offset must be a number");if(r>vxe||r<0)throw new TypeError("offset must be a uint32");if(r>bxe||r>e)throw new RangeError("offset out of range")}function _xe(r,e,t){if(typeof r!="number"||r!==r)throw new TypeError("size must be a number");if(r>vxe||r<0)throw new TypeError("size must be a uint32");if(r+e>t||r>bxe)throw new RangeError("buffer too small")}R$&&R$.getRandomValues||!g.browser?(PC.randomFill=yUt,PC.randomFillSync=gUt):(PC.randomFill=fxe,PC.randomFillSync=fxe);function yUt(r,e,t,n){if(!gxe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof e=="function")n=e,e=0,t=r.length;else if(typeof t=="function")n=t,t=r.length-e;else if(typeof n!="function")throw new TypeError('"cb" argument must be a function');return wxe(e,r.length),_xe(t,e,r.length),xxe(r,e,t,n)}function xxe(r,e,t,n){if(g.browser){var a=r.buffer,i=new Uint8Array(a,e,t);if(R$.getRandomValues(i),n){g.nextTick(function(){n(null,r)});return}return r}if(n){mxe(t,function(o,c){if(o)return n(o);c.copy(r,e),n(null,r)});return}var s=mxe(t);return s.copy(r,e),r}function gUt(r,e,t){if(typeof e>"u"&&(e=0),!gxe.isBuffer(r)&&!(r instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return wxe(e,r.length),t===void 0&&(t=r.length-e),_xe(t,e,r.length),xxe(r,e,t)}});var M$=x(Cr=>{"use strict";d();p();Cr.randomBytes=Cr.rng=Cr.pseudoRandomBytes=Cr.prng=ub();Cr.createHash=Cr.Hash=K5();Cr.createHmac=Cr.Hmac=EV();var bUt=y5e(),vUt=Object.keys(bUt),wUt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(vUt);Cr.getHashes=function(){return wUt};var Exe=BV();Cr.pbkdf2=Exe.pbkdf2;Cr.pbkdf2Sync=Exe.pbkdf2Sync;var Af=O3e();Cr.Cipher=Af.Cipher;Cr.createCipher=Af.createCipher;Cr.Cipheriv=Af.Cipheriv;Cr.createCipheriv=Af.createCipheriv;Cr.Decipher=Af.Decipher;Cr.createDecipher=Af.createDecipher;Cr.Decipheriv=Af.Decipheriv;Cr.createDecipheriv=Af.createDecipheriv;Cr.getCiphers=Af.getCiphers;Cr.listCiphers=Af.listCiphers;var RC=$3e();Cr.DiffieHellmanGroup=RC.DiffieHellmanGroup;Cr.createDiffieHellmanGroup=RC.createDiffieHellmanGroup;Cr.getDiffieHellman=RC.getDiffieHellman;Cr.createDiffieHellman=RC.createDiffieHellman;Cr.DiffieHellman=RC.DiffieHellman;var D9=Q_e();Cr.createSign=D9.createSign;Cr.Sign=D9.Sign;Cr.createVerify=D9.createVerify;Cr.Verify=D9.Verify;Cr.createECDH=X_e();var O9=hxe();Cr.publicEncrypt=O9.publicEncrypt;Cr.privateEncrypt=O9.privateEncrypt;Cr.publicDecrypt=O9.publicDecrypt;Cr.privateDecrypt=O9.privateDecrypt;var Cxe=Txe();Cr.randomFill=Cxe.randomFill;Cr.randomFillSync=Cxe.randomFillSync;Cr.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))};Cr.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}});var v9=x((gkn,D$)=>{d();p();var N$;D$.exports=function(e){return N$||(N$=new qy(null)),N$.generate(e)};function qy(r){this.rand=r}D$.exports.Rand=qy;qy.prototype.generate=function(e){return this._rand(e)};qy.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();var Db=co(),MC=Vl(),L9=MC.getNAF,_Ut=MC.getJSF,q9=MC.assert;function Fy(r,e){this.type=r,this.p=new Db(e.p,16),this.red=e.prime?Db.red(e.prime):Db.mont(this.p),this.zero=new Db(0).toRed(this.red),this.one=new Db(1).toRed(this.red),this.two=new Db(2).toRed(this.red),this.n=e.n&&new Db(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var t=this.n&&this.p.div(this.n);!t||t.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Ixe.exports=Fy;Fy.prototype.point=function(){throw new Error("Not implemented")};Fy.prototype.validate=function(){throw new Error("Not implemented")};Fy.prototype._fixedNafMul=function(e,t){q9(e.precomputed);var n=e._getDoubles(),a=L9(t,1,this._bitLength),i=(1<=o;u--)c=(c<<1)+a[u];s.push(c)}for(var l=this.jpoint(null,null,null),h=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o=0;c--){for(var u=0;c>=0&&s[c]===0;c--)u++;if(c>=0&&u++,o=o.dblp(u),c<0)break;var l=s[c];q9(l!==0),e.type==="affine"?l>0?o=o.mixedAdd(i[l-1>>1]):o=o.mixedAdd(i[-l-1>>1].neg()):l>0?o=o.add(i[l-1>>1]):o=o.add(i[-l-1>>1].neg())}return e.type==="affine"?o.toP():o};Fy.prototype._wnafMulAdd=function(e,t,n,a,i){var s=this._wnafT1,o=this._wnafT2,c=this._wnafT3,u=0,l,h,f;for(l=0;l=1;l-=2){var y=l-1,E=l;if(s[y]!==1||s[E]!==1){c[y]=L9(n[y],s[y],this._bitLength),c[E]=L9(n[E],s[E],this._bitLength),u=Math.max(c[y].length,u),u=Math.max(c[E].length,u);continue}var I=[t[y],null,null,t[E]];t[y].y.cmp(t[E].y)===0?(I[1]=t[y].add(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg())):t[y].y.cmp(t[E].y.redNeg())===0?(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].add(t[E].neg())):(I[1]=t[y].toJ().mixedAdd(t[E]),I[2]=t[y].toJ().mixedAdd(t[E].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],L=_Ut(n[y],n[E]);for(u=Math.max(L[0].length,u),c[y]=new Array(u),c[E]=new Array(u),h=0;h=0;l--){for(var H=0;l>=0;){var G=!0;for(h=0;h=0&&H++,V=V.dblp(H),l<0)break;for(h=0;h0?f=o[h][J-1>>1]:J<0&&(f=o[h][-J-1>>1].neg()),f.type==="affine"?V=V.mixedAdd(f):V=V.add(f))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step):!1};Yd.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],a=this,i=0;i{"use strict";d();p();var xUt=Vl(),as=co(),O$=_r(),o3=NC(),TUt=xUt.assert;function Jd(r){o3.call(this,"short",r),this.a=new as(r.a,16).toRed(this.red),this.b=new as(r.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(r),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}O$(Jd,o3);kxe.exports=Jd;Jd.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var t,n;if(e.beta)t=new as(e.beta,16).toRed(this.red);else{var a=this._getEndoRoots(this.p);t=a[0].cmp(a[1])<0?a[0]:a[1],t=t.toRed(this.red)}if(e.lambda)n=new as(e.lambda,16);else{var i=this._getEndoRoots(this.n);this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))===0?n=i[0]:(n=i[1],TUt(this.g.mul(n).x.cmp(this.g.x.redMul(t))===0))}var s;return e.basis?s=e.basis.map(function(o){return{a:new as(o.a,16),b:new as(o.b,16)}}):s=this._getEndoBasis(n),{beta:t,lambda:n,basis:s}}};Jd.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:as.mont(e),n=new as(2).toRed(t).redInvm(),a=n.redNeg(),i=new as(3).toRed(t).redNeg().redSqrt().redMul(n),s=a.redAdd(i).fromRed(),o=a.redSub(i).fromRed();return[s,o]};Jd.prototype._getEndoBasis=function(e){for(var t=this.n.ushrn(Math.floor(this.n.bitLength()/2)),n=e,a=this.n.clone(),i=new as(1),s=new as(0),o=new as(0),c=new as(1),u,l,h,f,m,y,E,I=0,S,L;n.cmpn(0)!==0;){var F=a.div(n);S=a.sub(F.mul(n)),L=o.sub(F.mul(i));var W=c.sub(F.mul(s));if(!h&&S.cmp(t)<0)u=E.neg(),l=i,h=S.neg(),f=L;else if(h&&++I===2)break;E=S,a=n,n=S,o=i,i=L,c=s,s=W}m=S.neg(),y=L;var V=h.sqr().add(f.sqr()),K=m.sqr().add(y.sqr());return K.cmp(V)>=0&&(m=u,y=l),h.negative&&(h=h.neg(),f=f.neg()),m.negative&&(m=m.neg(),y=y.neg()),[{a:h,b:f},{a:m,b:y}]};Jd.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],a=t[1],i=a.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),c=s.mul(a.a),u=i.mul(n.b),l=s.mul(a.b),h=e.sub(o).sub(c),f=u.add(l).neg();return{k1:h,k2:f}};Jd.prototype.pointFromX=function(e,t){e=new as(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),a=n.redSqrt();if(a.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var i=a.fromRed().isOdd();return(t&&!i||!t&&i)&&(a=a.redNeg()),this.point(e,a)};Jd.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,a=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(a).redIAdd(this.b);return n.redSqr().redISub(i).cmpn(0)===0};Jd.prototype._endoWnafMulAdd=function(e,t,n){for(var a=this._endoWnafT1,i=this._endoWnafT2,s=0;s":""};Bo.prototype.isInfinity=function(){return this.inf};Bo.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var t=this.y.redSub(e.y);t.cmpn(0)!==0&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),a=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,a)};Bo.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),a=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(a),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)};Bo.prototype.getX=function(){return this.x.fromRed()};Bo.prototype.getY=function(){return this.y.fromRed()};Bo.prototype.mul=function(e){return e=new as(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};Bo.prototype.mulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i):this.curve._wnafMulAdd(1,a,i,2)};Bo.prototype.jmulAdd=function(e,t,n){var a=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(a,i,!0):this.curve._wnafMulAdd(1,a,i,2,!0)};Bo.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};Bo.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,a=function(i){return i.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(a)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(a)}}}return t};Bo.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function pc(r,e,t,n){o3.BasePoint.call(this,r,"jacobian"),e===null&&t===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new as(0)):(this.x=new as(e,16),this.y=new as(t,16),this.z=new as(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}O$(pc,o3.BasePoint);Jd.prototype.jpoint=function(e,t,n){return new pc(this,e,t,n)};pc.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),a=this.y.redMul(t).redMul(e);return this.curve.point(n,a)};pc.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};pc.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),a=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),c=a.redSub(i),u=s.redSub(o);if(c.cmpn(0)===0)return u.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var l=c.redSqr(),h=l.redMul(c),f=a.redMul(l),m=u.redSqr().redIAdd(h).redISub(f).redISub(f),y=u.redMul(f.redISub(m)).redISub(s.redMul(h)),E=this.z.redMul(e.z).redMul(c);return this.curve.jpoint(m,y,E)};pc.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,a=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(a),c=i.redSub(s);if(o.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var u=o.redSqr(),l=u.redMul(o),h=n.redMul(u),f=c.redSqr().redIAdd(l).redISub(h).redISub(h),m=c.redMul(h.redISub(f)).redISub(i.redMul(l)),y=this.z.redMul(o);return this.curve.jpoint(f,m,y)};pc.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t=0)return!1;if(n.redIAdd(i),this.x.cmp(n)===0)return!0}};pc.prototype.inspect=function(){return this.isInfinity()?"":""};pc.prototype.isInfinity=function(){return this.z.cmpn(0)===0}});var Rxe=x((Ikn,Pxe)=>{"use strict";d();p();var c3=co(),Sxe=_r(),F9=NC(),EUt=Vl();function u3(r){F9.call(this,"mont",r),this.a=new c3(r.a,16).toRed(this.red),this.b=new c3(r.b,16).toRed(this.red),this.i4=new c3(4).toRed(this.red).redInvm(),this.two=new c3(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Sxe(u3,F9);Pxe.exports=u3;u3.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),a=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t),i=a.redSqrt();return i.redSqr().cmp(a)===0};function Do(r,e,t){F9.BasePoint.call(this,r,"projective"),e===null&&t===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new c3(e,16),this.z=new c3(t,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Sxe(Do,F9.BasePoint);u3.prototype.decodePoint=function(e,t){return this.point(EUt.toArray(e,t),1)};u3.prototype.point=function(e,t){return new Do(this,e,t)};u3.prototype.pointFromJSON=function(e){return Do.fromJSON(this,e)};Do.prototype.precompute=function(){};Do.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Do.fromJSON=function(e,t){return new Do(e,t[0],t[1]||e.one)};Do.prototype.inspect=function(){return this.isInfinity()?"":""};Do.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Do.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),n=this.x.redSub(this.z),a=n.redSqr(),i=t.redSub(a),s=t.redMul(a),o=i.redMul(a.redAdd(this.curve.a24.redMul(i)));return this.curve.point(s,o)};Do.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),a=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z),o=s.redMul(n),c=i.redMul(a),u=t.z.redMul(o.redAdd(c).redSqr()),l=t.x.redMul(o.redISub(c).redSqr());return this.curve.point(u,l)};Do.prototype.mul=function(e){for(var t=e.clone(),n=this,a=this.curve.point(null,null),i=this,s=[];t.cmpn(0)!==0;t.iushrn(1))s.push(t.andln(1));for(var o=s.length-1;o>=0;o--)s[o]===0?(n=n.diffAdd(a,i),a=a.dbl()):(a=n.diffAdd(a,i),n=n.dbl());return a};Do.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Do.prototype.eq=function(e){return this.getX().cmp(e.getX())===0};Do.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Do.prototype.getX=function(){return this.normalize(),this.x.fromRed()}});var Bxe=x((Skn,Nxe)=>{"use strict";d();p();var CUt=Vl(),c0=co(),Mxe=_r(),W9=NC(),IUt=CUt.assert;function Sf(r){this.twisted=(r.a|0)!==1,this.mOneA=this.twisted&&(r.a|0)===-1,this.extended=this.mOneA,W9.call(this,"edwards",r),this.a=new c0(r.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new c0(r.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new c0(r.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),IUt(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(r.c|0)===1}Mxe(Sf,W9);Nxe.exports=Sf;Sf.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)};Sf.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)};Sf.prototype.jpoint=function(e,t,n,a){return this.point(e,t,n,a)};Sf.prototype.pointFromX=function(e,t){e=new c0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=this.c2.redSub(this.a.redMul(n)),i=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=a.redMul(i.redInvm()),o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");var c=o.fromRed().isOdd();return(t&&!c||!t&&c)&&(o=o.redNeg()),this.point(e,o)};Sf.prototype.pointFromY=function(e,t){e=new c0(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr(),a=n.redSub(this.c2),i=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=a.redMul(i.redInvm());if(s.cmp(this.zero)===0){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var o=s.redSqrt();if(o.redSqr().redSub(s).cmp(this.zero)!==0)throw new Error("invalid point");return o.fromRed().isOdd()!==t&&(o=o.redNeg()),this.point(o,e)};Sf.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),a=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return a.cmp(i)===0};function ti(r,e,t,n,a){W9.BasePoint.call(this,r,"projective"),e===null&&t===null&&n===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new c0(e,16),this.y=new c0(t,16),this.z=n?new c0(n,16):this.curve.one,this.t=a&&new c0(a,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Mxe(ti,W9.BasePoint);Sf.prototype.pointFromJSON=function(e){return ti.fromJSON(this,e)};Sf.prototype.point=function(e,t,n,a){return new ti(this,e,t,n,a)};ti.fromJSON=function(e,t){return new ti(e,t[0],t[1],t[2])};ti.prototype.inspect=function(){return this.isInfinity()?"":""};ti.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};ti.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var a=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=a.redAdd(t),o=s.redSub(n),c=a.redSub(t),u=i.redMul(o),l=s.redMul(c),h=i.redMul(c),f=o.redMul(s);return this.curve.point(u,l,f,h)};ti.prototype._projDbl=function(){var e=this.x.redAdd(this.y).redSqr(),t=this.x.redSqr(),n=this.y.redSqr(),a,i,s,o,c,u;if(this.curve.twisted){o=this.curve._mulA(t);var l=o.redAdd(n);this.zOne?(a=e.redSub(t).redSub(n).redMul(l.redSub(this.curve.two)),i=l.redMul(o.redSub(n)),s=l.redSqr().redSub(l).redSub(l)):(c=this.z.redSqr(),u=l.redSub(c).redISub(c),a=e.redSub(t).redISub(n).redMul(u),i=l.redMul(o.redSub(n)),s=l.redMul(u))}else o=t.redAdd(n),c=this.curve._mulC(this.z).redSqr(),u=o.redSub(c).redSub(c),a=this.curve._mulC(e.redISub(o)).redMul(u),i=this.curve._mulC(o).redMul(t.redISub(n)),s=o.redMul(u);return this.curve.point(a,i,s)};ti.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};ti.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),a=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(a),c=i.redAdd(a),u=n.redAdd(t),l=s.redMul(o),h=c.redMul(u),f=s.redMul(u),m=o.redMul(c);return this.curve.point(l,h,m,f)};ti.prototype._projAdd=function(e){var t=this.z.redMul(e.z),n=t.redSqr(),a=this.x.redMul(e.x),i=this.y.redMul(e.y),s=this.curve.d.redMul(a).redMul(i),o=n.redSub(s),c=n.redAdd(s),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(a).redISub(i),l=t.redMul(o).redMul(u),h,f;return this.curve.twisted?(h=t.redMul(c).redMul(i.redSub(this.curve._mulA(a))),f=o.redMul(c)):(h=t.redMul(c).redMul(i.redSub(a)),f=this.curve._mulC(o).redMul(c)),this.curve.point(l,h,f)};ti.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)};ti.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)};ti.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)};ti.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)};ti.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this};ti.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};ti.prototype.getX=function(){return this.normalize(),this.x.fromRed()};ti.prototype.getY=function(){return this.normalize(),this.y.fromRed()};ti.prototype.eq=function(e){return this===e||this.getX().cmp(e.getX())===0&&this.getY().cmp(e.getY())===0};ti.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(t)===0)return!0;for(var n=e.clone(),a=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(a),this.x.cmp(t)===0)return!0}};ti.prototype.toP=ti.prototype.normalize;ti.prototype.mixedAdd=ti.prototype.add});var L$=x(Dxe=>{"use strict";d();p();var U9=Dxe;U9.base=NC();U9.short=Axe();U9.mont=Rxe();U9.edwards=Bxe()});var hh=x(Va=>{"use strict";d();p();var kUt=Gl(),AUt=_r();Va.inherits=AUt;function SUt(r,e){return(r.charCodeAt(e)&64512)!==55296||e<0||e+1>=r.length?!1:(r.charCodeAt(e+1)&64512)===56320}function PUt(r,e){if(Array.isArray(r))return r.slice();if(!r)return[];var t=[];if(typeof r=="string")if(e){if(e==="hex")for(r=r.replace(/[^a-z0-9]+/ig,""),r.length%2!==0&&(r="0"+r),a=0;a>6|192,t[n++]=i&63|128):SUt(r,a)?(i=65536+((i&1023)<<10)+(r.charCodeAt(++a)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}else for(a=0;a>>24|r>>>8&65280|r<<8&16711680|(r&255)<<24;return e>>>0}Va.htonl=Oxe;function MUt(r,e){for(var t="",n=0;n>>0}return i}Va.join32=NUt;function BUt(r,e){for(var t=new Array(r.length*4),n=0,a=0;n>>24,t[a+1]=i>>>16&255,t[a+2]=i>>>8&255,t[a+3]=i&255):(t[a+3]=i>>>24,t[a+2]=i>>>16&255,t[a+1]=i>>>8&255,t[a]=i&255)}return t}Va.split32=BUt;function DUt(r,e){return r>>>e|r<<32-e}Va.rotr32=DUt;function OUt(r,e){return r<>>32-e}Va.rotl32=OUt;function LUt(r,e){return r+e>>>0}Va.sum32=LUt;function qUt(r,e,t){return r+e+t>>>0}Va.sum32_3=qUt;function FUt(r,e,t,n){return r+e+t+n>>>0}Va.sum32_4=FUt;function WUt(r,e,t,n,a){return r+e+t+n+a>>>0}Va.sum32_5=WUt;function UUt(r,e,t,n){var a=r[e],i=r[e+1],s=n+i>>>0,o=(s>>0,r[e+1]=s}Va.sum64=UUt;function HUt(r,e,t,n){var a=e+n>>>0,i=(a>>0}Va.sum64_hi=HUt;function jUt(r,e,t,n){var a=e+n;return a>>>0}Va.sum64_lo=jUt;function zUt(r,e,t,n,a,i,s,o){var c=0,u=e;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}Va.sum64_4_hi=zUt;function KUt(r,e,t,n,a,i,s,o){var c=e+n+i+o;return c>>>0}Va.sum64_4_lo=KUt;function GUt(r,e,t,n,a,i,s,o,c,u){var l=0,h=e;h=h+n>>>0,l+=h>>0,l+=h>>0,l+=h>>0,l+=h>>0}Va.sum64_5_hi=GUt;function VUt(r,e,t,n,a,i,s,o,c,u){var l=e+n+i+o+u;return l>>>0}Va.sum64_5_lo=VUt;function $Ut(r,e,t){var n=e<<32-t|r>>>t;return n>>>0}Va.rotr64_hi=$Ut;function YUt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Va.rotr64_lo=YUt;function JUt(r,e,t){return r>>>t}Va.shr64_hi=JUt;function QUt(r,e,t){var n=r<<32-t|e>>>t;return n>>>0}Va.shr64_lo=QUt});var l3=x(Wxe=>{"use strict";d();p();var Fxe=hh(),ZUt=Gl();function H9(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}Wxe.BlockHash=H9;H9.prototype.update=function(e,t){if(e=Fxe.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=Fxe.join32(e,0,e.length-n,this.endian);for(var a=0;a>>24&255,a[i++]=e>>>16&255,a[i++]=e>>>8&255,a[i++]=e&255}else for(a[i++]=e&255,a[i++]=e>>>8&255,a[i++]=e>>>16&255,a[i++]=e>>>24&255,a[i++]=0,a[i++]=0,a[i++]=0,a[i++]=0,s=8;s{"use strict";d();p();var XUt=hh(),Pf=XUt.rotr32;function eHt(r,e,t,n){if(r===0)return Uxe(e,t,n);if(r===1||r===3)return jxe(e,t,n);if(r===2)return Hxe(e,t,n)}u0.ft_1=eHt;function Uxe(r,e,t){return r&e^~r&t}u0.ch32=Uxe;function Hxe(r,e,t){return r&e^r&t^e&t}u0.maj32=Hxe;function jxe(r,e,t){return r^e^t}u0.p32=jxe;function tHt(r){return Pf(r,2)^Pf(r,13)^Pf(r,22)}u0.s0_256=tHt;function rHt(r){return Pf(r,6)^Pf(r,11)^Pf(r,25)}u0.s1_256=rHt;function nHt(r){return Pf(r,7)^Pf(r,18)^r>>>3}u0.g0_256=nHt;function aHt(r){return Pf(r,17)^Pf(r,19)^r>>>10}u0.g1_256=aHt});var Gxe=x((zkn,Kxe)=>{"use strict";d();p();var d3=hh(),iHt=l3(),sHt=q$(),F$=d3.rotl32,BC=d3.sum32,oHt=d3.sum32_5,cHt=sHt.ft_1,zxe=iHt.BlockHash,uHt=[1518500249,1859775393,2400959708,3395469782];function Rf(){if(!(this instanceof Rf))return new Rf;zxe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}d3.inherits(Rf,zxe);Kxe.exports=Rf;Rf.blockSize=512;Rf.outSize=160;Rf.hmacStrength=80;Rf.padLength=64;Rf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var p3=hh(),lHt=l3(),h3=q$(),dHt=Gl(),fh=p3.sum32,pHt=p3.sum32_4,hHt=p3.sum32_5,fHt=h3.ch32,mHt=h3.maj32,yHt=h3.s0_256,gHt=h3.s1_256,bHt=h3.g0_256,vHt=h3.g1_256,Vxe=lHt.BlockHash,wHt=[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 Mf(){if(!(this instanceof Mf))return new Mf;Vxe.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=wHt,this.W=new Array(64)}p3.inherits(Mf,Vxe);$xe.exports=Mf;Mf.blockSize=512;Mf.outSize=256;Mf.hmacStrength=192;Mf.padLength=64;Mf.prototype._update=function(e,t){for(var n=this.W,a=0;a<16;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var U$=hh(),Yxe=W$();function l0(){if(!(this instanceof l0))return new l0;Yxe.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}U$.inherits(l0,Yxe);Jxe.exports=l0;l0.blockSize=512;l0.outSize=224;l0.hmacStrength=192;l0.padLength=64;l0.prototype._digest=function(e){return e==="hex"?U$.toHex32(this.h.slice(0,7),"big"):U$.split32(this.h.slice(0,7),"big")}});var z$=x((Xkn,tTe)=>{"use strict";d();p();var hl=hh(),_Ht=l3(),xHt=Gl(),Nf=hl.rotr64_hi,Bf=hl.rotr64_lo,Zxe=hl.shr64_hi,Xxe=hl.shr64_lo,Wy=hl.sum64,H$=hl.sum64_hi,j$=hl.sum64_lo,THt=hl.sum64_4_hi,EHt=hl.sum64_4_lo,CHt=hl.sum64_5_hi,IHt=hl.sum64_5_lo,eTe=_Ht.BlockHash,kHt=[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 mh(){if(!(this instanceof mh))return new mh;eTe.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=kHt,this.W=new Array(160)}hl.inherits(mh,eTe);tTe.exports=mh;mh.blockSize=1024;mh.outSize=512;mh.hmacStrength=192;mh.padLength=128;mh.prototype._prepareBlock=function(e,t){for(var n=this.W,a=0;a<32;a++)n[a]=e[t+a];for(;a{"use strict";d();p();var K$=hh(),rTe=z$();function d0(){if(!(this instanceof d0))return new d0;rTe.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}K$.inherits(d0,rTe);nTe.exports=d0;d0.blockSize=1024;d0.outSize=384;d0.hmacStrength=192;d0.padLength=128;d0.prototype._digest=function(e){return e==="hex"?K$.toHex32(this.h.slice(0,12),"big"):K$.split32(this.h.slice(0,12),"big")}});var iTe=x(f3=>{"use strict";d();p();f3.sha1=Gxe();f3.sha224=Qxe();f3.sha256=W$();f3.sha384=aTe();f3.sha512=z$()});var dTe=x(lTe=>{"use strict";d();p();var Ob=hh(),WHt=l3(),j9=Ob.rotl32,sTe=Ob.sum32,DC=Ob.sum32_3,oTe=Ob.sum32_4,uTe=WHt.BlockHash;function Df(){if(!(this instanceof Df))return new Df;uTe.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Ob.inherits(Df,uTe);lTe.ripemd160=Df;Df.blockSize=512;Df.outSize=160;Df.hmacStrength=192;Df.padLength=64;Df.prototype._update=function(e,t){for(var n=this.h[0],a=this.h[1],i=this.h[2],s=this.h[3],o=this.h[4],c=n,u=a,l=i,h=s,f=o,m=0;m<80;m++){var y=sTe(j9(oTe(n,cTe(m,a,i,s),e[jHt[m]+t],UHt(m)),KHt[m]),o);n=o,o=s,s=j9(i,10),i=a,a=y,y=sTe(j9(oTe(c,cTe(79-m,u,l,h),e[zHt[m]+t],HHt(m)),GHt[m]),f),c=f,f=h,h=j9(l,10),l=u,u=y}y=DC(this.h[1],i,h),this.h[1]=DC(this.h[2],s,f),this.h[2]=DC(this.h[3],o,c),this.h[3]=DC(this.h[4],n,u),this.h[4]=DC(this.h[0],a,l),this.h[0]=y};Df.prototype._digest=function(e){return e==="hex"?Ob.toHex32(this.h,"little"):Ob.split32(this.h,"little")};function cTe(r,e,t,n){return r<=15?e^t^n:r<=31?e&t|~e&n:r<=47?(e|~t)^n:r<=63?e&n|t&~n:e^(t|~n)}function UHt(r){return r<=15?0:r<=31?1518500249:r<=47?1859775393:r<=63?2400959708:2840853838}function HHt(r){return r<=15?1352829926:r<=31?1548603684:r<=47?1836072691:r<=63?2053994217:0}var jHt=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zHt=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],KHt=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],GHt=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]});var hTe=x((dAn,pTe)=>{"use strict";d();p();var VHt=hh(),$Ht=Gl();function m3(r,e,t){if(!(this instanceof m3))return new m3(r,e,t);this.Hash=r,this.blockSize=r.blockSize/8,this.outSize=r.outSize/8,this.inner=null,this.outer=null,this._init(VHt.toArray(e,t))}pTe.exports=m3;m3.prototype._init=function(e){e.length>this.blockSize&&(e=new this.Hash().update(e).digest()),$Ht(e.length<=this.blockSize);for(var t=e.length;t{d();p();var hc=fTe;hc.utils=hh();hc.common=l3();hc.sha=iTe();hc.ripemd=dTe();hc.hmac=hTe();hc.sha1=hc.sha.sha1;hc.sha256=hc.sha.sha256;hc.sha224=hc.sha.sha224;hc.sha384=hc.sha.sha384;hc.sha512=hc.sha.sha512;hc.ripemd160=hc.ripemd.ripemd160});var yTe=x((gAn,mTe)=>{d();p();mTe.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}});var z9=x(vTe=>{"use strict";d();p();var V$=vTe,Uy=OC(),G$=L$(),YHt=Vl(),gTe=YHt.assert;function bTe(r){r.type==="short"?this.curve=new G$.short(r):r.type==="edwards"?this.curve=new G$.edwards(r):this.curve=new G$.mont(r),this.g=this.curve.g,this.n=this.curve.n,this.hash=r.hash,gTe(this.g.validate(),"Invalid curve"),gTe(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}V$.PresetCurve=bTe;function Hy(r,e){Object.defineProperty(V$,r,{configurable:!0,enumerable:!0,get:function(){var t=new bTe(e);return Object.defineProperty(V$,r,{configurable:!0,enumerable:!0,value:t}),t}})}Hy("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Uy.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]});Hy("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Uy.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]});Hy("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Uy.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]});Hy("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Uy.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]});Hy("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Uy.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]});Hy("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Uy.sha256,gRed:!1,g:["9"]});Hy("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Uy.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var $$;try{$$=yTe()}catch{$$=void 0}Hy("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Uy.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",$$]})});var xTe=x((TAn,_Te)=>{"use strict";d();p();var JHt=OC(),Lb=dG(),wTe=Gl();function jy(r){if(!(this instanceof jy))return new jy(r);this.hash=r.hash,this.predResist=!!r.predResist,this.outLen=this.hash.outSize,this.minEntropy=r.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Lb.toArray(r.entropy,r.entropyEnc||"hex"),t=Lb.toArray(r.nonce,r.nonceEnc||"hex"),n=Lb.toArray(r.pers,r.persEnc||"hex");wTe(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,t,n)}_Te.exports=jy;jy.prototype._init=function(e,t,n){var a=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};jy.prototype.generate=function(e,t,n,a){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof t!="string"&&(a=n,n=t,t=null),n&&(n=Lb.toArray(n,a||"hex"),this._update(n));for(var i=[];i.length{"use strict";d();p();var QHt=co(),ZHt=Vl(),Y$=ZHt.assert;function Qc(r,e){this.ec=r,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}TTe.exports=Qc;Qc.fromPublic=function(e,t,n){return t instanceof Qc?t:new Qc(e,{pub:t,pubEnc:n})};Qc.fromPrivate=function(e,t,n){return t instanceof Qc?t:new Qc(e,{priv:t,privEnc:n})};Qc.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Qc.prototype.getPublic=function(e,t){return typeof e=="string"&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub};Qc.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Qc.prototype._importPrivate=function(e,t){this.priv=new QHt(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)};Qc.prototype._importPublic=function(e,t){if(e.x||e.y){this.ec.curve.type==="mont"?Y$(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Y$(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)};Qc.prototype.derive=function(e){return e.validate()||Y$(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Qc.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)};Qc.prototype.verify=function(e,t){return this.ec.verify(e,t,this)};Qc.prototype.inspect=function(){return""}});var kTe=x((SAn,ITe)=>{"use strict";d();p();var K9=co(),Z$=Vl(),XHt=Z$.assert;function G9(r,e){if(r instanceof G9)return r;this._importDER(r,e)||(XHt(r.r&&r.s,"Signature without r or s"),this.r=new K9(r.r,16),this.s=new K9(r.s,16),r.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=r.recoveryParam)}ITe.exports=G9;function ejt(){this.place=0}function J$(r,e){var t=r[e.place++];if(!(t&128))return t;var n=t&15;if(n===0||n>4)return!1;for(var a=0,i=0,s=e.place;i>>=0;return a<=127?!1:(e.place=s,a)}function CTe(r){for(var e=0,t=r.length-1;!r[e]&&!(r[e+1]&128)&&e>>3);for(r.push(t|128);--t;)r.push(e>>>(t<<3)&255);r.push(e)}G9.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(t[0]&128&&(t=[0].concat(t)),n[0]&128&&(n=[0].concat(n)),t=CTe(t),n=CTe(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var a=[2];Q$(a,t.length),a=a.concat(t),a.push(2),Q$(a,n.length);var i=a.concat(n),s=[48];return Q$(s,i.length),s=s.concat(i),Z$.encode(s,e)}});var RTe=x((MAn,PTe)=>{"use strict";d();p();var qb=co(),ATe=xTe(),tjt=Vl(),X$=z9(),rjt=v9(),STe=tjt.assert,eY=ETe(),V9=kTe();function Qd(r){if(!(this instanceof Qd))return new Qd(r);typeof r=="string"&&(STe(Object.prototype.hasOwnProperty.call(X$,r),"Unknown curve "+r),r=X$[r]),r instanceof X$.PresetCurve&&(r={curve:r}),this.curve=r.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=r.curve.g,this.g.precompute(r.curve.n.bitLength()+1),this.hash=r.hash||r.curve.hash}PTe.exports=Qd;Qd.prototype.keyPair=function(e){return new eY(this,e)};Qd.prototype.keyFromPrivate=function(e,t){return eY.fromPrivate(this,e,t)};Qd.prototype.keyFromPublic=function(e,t){return eY.fromPublic(this,e,t)};Qd.prototype.genKeyPair=function(e){e||(e={});for(var t=new ATe({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||rjt(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),a=this.n.sub(new qb(2));;){var i=new qb(t.generate(n));if(!(i.cmp(a)>0))return i.iaddn(1),this.keyFromPrivate(i)}};Qd.prototype._truncateToN=function(e,t){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e};Qd.prototype.sign=function(e,t,n,a){typeof n=="object"&&(a=n,n=null),a||(a={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new qb(e,16));for(var i=this.n.byteLength(),s=t.getPrivate().toArray("be",i),o=e.toArray("be",i),c=new ATe({hash:this.hash,entropy:s,nonce:o,pers:a.pers,persEnc:a.persEnc||"utf8"}),u=this.n.sub(new qb(1)),l=0;;l++){var h=a.k?a.k(l):new qb(c.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(u)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),y=m.umod(this.n);if(y.cmpn(0)!==0){var E=h.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(E=E.umod(this.n),E.cmpn(0)!==0){var I=(f.getY().isOdd()?1:0)|(m.cmp(y)!==0?2:0);return a.canonical&&E.cmp(this.nh)>0&&(E=this.n.sub(E),I^=1),new V9({r:y,s:E,recoveryParam:I})}}}}}};Qd.prototype.verify=function(e,t,n,a){e=this._truncateToN(new qb(e,16)),n=this.keyFromPublic(n,a),t=new V9(t,"hex");var i=t.r,s=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var o=s.invm(this.n),c=o.mul(e).umod(this.n),u=o.mul(i).umod(this.n),l;return this.curve._maxwellTrick?(l=this.g.jmulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.eqXToP(i)):(l=this.g.mulAdd(c,n.getPublic(),u),l.isInfinity()?!1:l.getX().umod(this.n).cmp(i)===0)};Qd.prototype.recoverPubKey=function(r,e,t,n){STe((3&t)===t,"The recovery param is more than two bits"),e=new V9(e,n);var a=this.n,i=new qb(r),s=e.r,o=e.s,c=t&1,u=t>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&u)throw new Error("Unable to find sencond key candinate");u?s=this.curve.pointFromX(s.add(this.curve.n),c):s=this.curve.pointFromX(s,c);var l=e.r.invm(a),h=a.sub(i).mul(l).umod(a),f=o.mul(l).umod(a);return this.g.mulAdd(h,s,f)};Qd.prototype.getKeyRecoveryParam=function(r,e,t,n){if(e=new V9(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var a=0;a<4;a++){var i;try{i=this.recoverPubKey(r,e,a)}catch{continue}if(i.eq(t))return a}throw new Error("Unable to find valid recovery factor")}});var DTe=x((DAn,BTe)=>{"use strict";d();p();var LC=Vl(),NTe=LC.assert,MTe=LC.parseBytes,y3=LC.cachedProperty;function Oo(r,e){this.eddsa=r,this._secret=MTe(e.secret),r.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=MTe(e.pub)}Oo.fromPublic=function(e,t){return t instanceof Oo?t:new Oo(e,{pub:t})};Oo.fromSecret=function(e,t){return t instanceof Oo?t:new Oo(e,{secret:t})};Oo.prototype.secret=function(){return this._secret};y3(Oo,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});y3(Oo,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});y3(Oo,"privBytes",function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,a=t.slice(0,e.encodingLength);return a[0]&=248,a[n]&=127,a[n]|=64,a});y3(Oo,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});y3(Oo,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});y3(Oo,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});Oo.prototype.sign=function(e){return NTe(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)};Oo.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)};Oo.prototype.getSecret=function(e){return NTe(this._secret,"KeyPair is public only"),LC.encode(this.secret(),e)};Oo.prototype.getPublic=function(e){return LC.encode(this.pubBytes(),e)};BTe.exports=Oo});var LTe=x((qAn,OTe)=>{"use strict";d();p();var njt=co(),$9=Vl(),ajt=$9.assert,Y9=$9.cachedProperty,ijt=$9.parseBytes;function Fb(r,e){this.eddsa=r,typeof e!="object"&&(e=ijt(e)),Array.isArray(e)&&(e={R:e.slice(0,r.encodingLength),S:e.slice(r.encodingLength)}),ajt(e.R&&e.S,"Signature without R or S"),r.isPoint(e.R)&&(this._R=e.R),e.S instanceof njt&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}Y9(Fb,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});Y9(Fb,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});Y9(Fb,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});Y9(Fb,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Fb.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Fb.prototype.toHex=function(){return $9.encode(this.toBytes(),"hex").toUpperCase()};OTe.exports=Fb});var HTe=x((UAn,UTe)=>{"use strict";d();p();var sjt=OC(),ojt=z9(),g3=Vl(),cjt=g3.assert,FTe=g3.parseBytes,WTe=DTe(),qTe=LTe();function fl(r){if(cjt(r==="ed25519","only tested with ed25519 so far"),!(this instanceof fl))return new fl(r);r=ojt[r].curve,this.curve=r,this.g=r.g,this.g.precompute(r.n.bitLength()+1),this.pointClass=r.point().constructor,this.encodingLength=Math.ceil(r.n.bitLength()/8),this.hash=sjt.sha512}UTe.exports=fl;fl.prototype.sign=function(e,t){e=FTe(e);var n=this.keyFromSecret(t),a=this.hashInt(n.messagePrefix(),e),i=this.g.mul(a),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=a.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})};fl.prototype.verify=function(e,t,n){e=FTe(e),t=this.makeSignature(t);var a=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),a.pubBytes(),e),s=this.g.mul(t.S()),o=t.R().add(a.pub().mul(i));return o.eq(s)};fl.prototype.hashInt=function(){for(var e=this.hash(),t=0;t{"use strict";d();p();var Wb=jTe;Wb.version=jbe().version;Wb.utils=Vl();Wb.rand=v9();Wb.curve=L$();Wb.curves=z9();Wb.ec=RTe();Wb.eddsa=HTe()});var zTe=x(b3=>{"use strict";d();p();var ujt=b3&&b3.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(b3,"__esModule",{value:!0});b3.EC=void 0;var ljt=ujt(CC()),djt=ljt.default.ec;b3.EC=djt});var KTe=x(J9=>{"use strict";d();p();Object.defineProperty(J9,"__esModule",{value:!0});J9.version=void 0;J9.version="signing-key/5.7.0"});var FC=x(zy=>{"use strict";d();p();Object.defineProperty(zy,"__esModule",{value:!0});zy.computePublicKey=zy.recoverPublicKey=zy.SigningKey=void 0;var pjt=zTe(),Hs=wr(),qC=Aa(),hjt=Zt(),fjt=KTe(),rY=new hjt.Logger(fjt.version),tY=null;function Of(){return tY||(tY=new pjt.EC("secp256k1")),tY}var GTe=function(){function r(e){(0,qC.defineReadOnly)(this,"curve","secp256k1"),(0,qC.defineReadOnly)(this,"privateKey",(0,Hs.hexlify)(e)),(0,Hs.hexDataLength)(this.privateKey)!==32&&rY.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=Of().keyFromPrivate((0,Hs.arrayify)(this.privateKey));(0,qC.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,qC.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,qC.defineReadOnly)(this,"_isSigningKey",!0)}return r.prototype._addPoint=function(e){var t=Of().keyFromPublic((0,Hs.arrayify)(this.publicKey)),n=Of().keyFromPublic((0,Hs.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")},r.prototype.signDigest=function(e){var t=Of().keyFromPrivate((0,Hs.arrayify)(this.privateKey)),n=(0,Hs.arrayify)(e);n.length!==32&&rY.throwArgumentError("bad digest length","digest",e);var a=t.sign(n,{canonical:!0});return(0,Hs.splitSignature)({recoveryParam:a.recoveryParam,r:(0,Hs.hexZeroPad)("0x"+a.r.toString(16),32),s:(0,Hs.hexZeroPad)("0x"+a.s.toString(16),32)})},r.prototype.computeSharedSecret=function(e){var t=Of().keyFromPrivate((0,Hs.arrayify)(this.privateKey)),n=Of().keyFromPublic((0,Hs.arrayify)(VTe(e)));return(0,Hs.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)},r.isSigningKey=function(e){return!!(e&&e._isSigningKey)},r}();zy.SigningKey=GTe;function mjt(r,e){var t=(0,Hs.splitSignature)(e),n={r:(0,Hs.arrayify)(t.r),s:(0,Hs.arrayify)(t.s)};return"0x"+Of().recoverPubKey((0,Hs.arrayify)(r),n,t.recoveryParam).encode("hex",!1)}zy.recoverPublicKey=mjt;function VTe(r,e){var t=(0,Hs.arrayify)(r);if(t.length===32){var n=new GTe(t);return e?"0x"+Of().keyFromPrivate(t).getPublic(!0,"hex"):n.publicKey}else{if(t.length===33)return e?(0,Hs.hexlify)(t):"0x"+Of().keyFromPublic(t).getPublic(!1,"hex");if(t.length===65)return e?"0x"+Of().keyFromPublic(t).getPublic(!0,"hex"):(0,Hs.hexlify)(t)}return rY.throwArgumentError("invalid public or private key","key","[REDACTED]")}zy.computePublicKey=VTe});var $Te=x(Q9=>{"use strict";d();p();Object.defineProperty(Q9,"__esModule",{value:!0});Q9.version=void 0;Q9.version="transactions/5.7.0"});var p0=x(_s=>{"use strict";d();p();var yjt=_s&&_s.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),gjt=_s&&_s.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),bjt=_s&&_s.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&yjt(e,r,t);return gjt(e,r),e};Object.defineProperty(_s,"__esModule",{value:!0});_s.parse=_s.serialize=_s.accessListify=_s.recoverAddress=_s.computeAddress=_s.TransactionTypes=void 0;var WC=Md(),Ub=qs(),Kr=wr(),vjt=tb(),v3=Kl(),wjt=Aa(),Ky=bjt(P7()),YTe=FC(),aY=Zt(),_jt=$Te(),Xc=new aY.Logger(_jt.version),xjt;(function(r){r[r.legacy=0]="legacy",r[r.eip2930=1]="eip2930",r[r.eip1559=2]="eip1559"})(xjt=_s.TransactionTypes||(_s.TransactionTypes={}));function iY(r){return r==="0x"?null:(0,WC.getAddress)(r)}function Zc(r){return r==="0x"?vjt.Zero:Ub.BigNumber.from(r)}var Tjt=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],Ejt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function JTe(r){var e=(0,YTe.computePublicKey)(r);return(0,WC.getAddress)((0,Kr.hexDataSlice)((0,v3.keccak256)((0,Kr.hexDataSlice)(e,1)),12))}_s.computeAddress=JTe;function sY(r,e){return JTe((0,YTe.recoverPublicKey)((0,Kr.arrayify)(r),e))}_s.recoverAddress=sY;function Jl(r,e){var t=(0,Kr.stripZeros)(Ub.BigNumber.from(r).toHexString());return t.length>32&&Xc.throwArgumentError("invalid length for "+e,"transaction:"+e,r),t}function nY(r,e){return{address:(0,WC.getAddress)(r),storageKeys:(e||[]).map(function(t,n){return(0,Kr.hexDataLength)(t)!==32&&Xc.throwArgumentError("invalid access list storageKey","accessList["+r+":"+n+"]",t),t.toLowerCase()})}}function Z9(r){if(Array.isArray(r))return r.map(function(t,n){return Array.isArray(t)?(t.length>2&&Xc.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+n+"]",t),nY(t[0],t[1])):nY(t.address,t.storageKeys)});var e=Object.keys(r).map(function(t){var n=r[t].reduce(function(a,i){return a[i]=!0,a},{});return nY(t,Object.keys(n).sort())});return e.sort(function(t,n){return t.address.localeCompare(n.address)}),e}_s.accessListify=Z9;function QTe(r){return Z9(r).map(function(e){return[e.address,e.storageKeys]})}function ZTe(r,e){if(r.gasPrice!=null){var t=Ub.BigNumber.from(r.gasPrice),n=Ub.BigNumber.from(r.maxFeePerGas||0);t.eq(n)||Xc.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:n})}var a=[Jl(r.chainId||0,"chainId"),Jl(r.nonce||0,"nonce"),Jl(r.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Jl(r.maxFeePerGas||0,"maxFeePerGas"),Jl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,WC.getAddress)(r.to):"0x",Jl(r.value||0,"value"),r.data||"0x",QTe(r.accessList||[])];if(e){var i=(0,Kr.splitSignature)(e);a.push(Jl(i.recoveryParam,"recoveryParam")),a.push((0,Kr.stripZeros)(i.r)),a.push((0,Kr.stripZeros)(i.s))}return(0,Kr.hexConcat)(["0x02",Ky.encode(a)])}function XTe(r,e){var t=[Jl(r.chainId||0,"chainId"),Jl(r.nonce||0,"nonce"),Jl(r.gasPrice||0,"gasPrice"),Jl(r.gasLimit||0,"gasLimit"),r.to!=null?(0,WC.getAddress)(r.to):"0x",Jl(r.value||0,"value"),r.data||"0x",QTe(r.accessList||[])];if(e){var n=(0,Kr.splitSignature)(e);t.push(Jl(n.recoveryParam,"recoveryParam")),t.push((0,Kr.stripZeros)(n.r)),t.push((0,Kr.stripZeros)(n.s))}return(0,Kr.hexConcat)(["0x01",Ky.encode(t)])}function Cjt(r,e){(0,wjt.checkProperties)(r,Ejt);var t=[];Tjt.forEach(function(s){var o=r[s.name]||[],c={};s.numeric&&(c.hexPad="left"),o=(0,Kr.arrayify)((0,Kr.hexlify)(o,c)),s.length&&o.length!==s.length&&o.length>0&&Xc.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o),s.maxLength&&(o=(0,Kr.stripZeros)(o),o.length>s.maxLength&&Xc.throwArgumentError("invalid length for "+s.name,"transaction:"+s.name,o)),t.push((0,Kr.hexlify)(o))});var n=0;if(r.chainId!=null?(n=r.chainId,typeof n!="number"&&Xc.throwArgumentError("invalid transaction.chainId","transaction",r)):e&&!(0,Kr.isBytesLike)(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(t.push((0,Kr.hexlify)(n)),t.push("0x"),t.push("0x")),!e)return Ky.encode(t);var a=(0,Kr.splitSignature)(e),i=27+a.recoveryParam;return n!==0?(t.pop(),t.pop(),t.pop(),i+=n*2+8,a.v>28&&a.v!==i&&Xc.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):a.v!==i&&Xc.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),t.push((0,Kr.hexlify)(i)),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.r))),t.push((0,Kr.stripZeros)((0,Kr.arrayify)(a.s))),Ky.encode(t)}function Ijt(r,e){if(r.type==null||r.type===0)return r.accessList!=null&&Xc.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",r),Cjt(r,e);switch(r.type){case 1:return XTe(r,e);case 2:return ZTe(r,e);default:break}return Xc.throwError("unsupported transaction type: "+r.type,aY.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:r.type})}_s.serialize=Ijt;function e6e(r,e,t){try{var n=Zc(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");r.v=n}catch{Xc.throwArgumentError("invalid v for transaction type: 1","v",e[0])}r.r=(0,Kr.hexZeroPad)(e[1],32),r.s=(0,Kr.hexZeroPad)(e[2],32);try{var a=(0,v3.keccak256)(t(r));r.from=sY(a,{r:r.r,s:r.s,recoveryParam:r.v})}catch{}}function kjt(r){var e=Ky.decode(r.slice(1));e.length!==9&&e.length!==12&&Xc.throwArgumentError("invalid component count for transaction type: 2","payload",(0,Kr.hexlify)(r));var t=Zc(e[2]),n=Zc(e[3]),a={type:2,chainId:Zc(e[0]).toNumber(),nonce:Zc(e[1]).toNumber(),maxPriorityFeePerGas:t,maxFeePerGas:n,gasPrice:null,gasLimit:Zc(e[4]),to:iY(e[5]),value:Zc(e[6]),data:e[7],accessList:Z9(e[8])};return e.length===9||(a.hash=(0,v3.keccak256)(r),e6e(a,e.slice(9),ZTe)),a}function Ajt(r){var e=Ky.decode(r.slice(1));e.length!==8&&e.length!==11&&Xc.throwArgumentError("invalid component count for transaction type: 1","payload",(0,Kr.hexlify)(r));var t={type:1,chainId:Zc(e[0]).toNumber(),nonce:Zc(e[1]).toNumber(),gasPrice:Zc(e[2]),gasLimit:Zc(e[3]),to:iY(e[4]),value:Zc(e[5]),data:e[6],accessList:Z9(e[7])};return e.length===8||(t.hash=(0,v3.keccak256)(r),e6e(t,e.slice(8),XTe)),t}function Sjt(r){var e=Ky.decode(r);e.length!==9&&e.length!==6&&Xc.throwArgumentError("invalid raw transaction","rawTransaction",r);var t={nonce:Zc(e[0]).toNumber(),gasPrice:Zc(e[1]),gasLimit:Zc(e[2]),to:iY(e[3]),value:Zc(e[4]),data:e[5],chainId:0};if(e.length===6)return t;try{t.v=Ub.BigNumber.from(e[6]).toNumber()}catch{return t}if(t.r=(0,Kr.hexZeroPad)(e[7],32),t.s=(0,Kr.hexZeroPad)(e[8],32),Ub.BigNumber.from(t.r).isZero()&&Ub.BigNumber.from(t.s).isZero())t.chainId=t.v,t.v=0;else{t.chainId=Math.floor((t.v-35)/2),t.chainId<0&&(t.chainId=0);var n=t.v-27,a=e.slice(0,6);t.chainId!==0&&(a.push((0,Kr.hexlify)(t.chainId)),a.push("0x"),a.push("0x"),n-=t.chainId*2+8);var i=(0,v3.keccak256)(Ky.encode(a));try{t.from=sY(i,{r:(0,Kr.hexlify)(t.r),s:(0,Kr.hexlify)(t.s),recoveryParam:n})}catch{}t.hash=(0,v3.keccak256)(r)}return t.type=null,t}function Pjt(r){var e=(0,Kr.arrayify)(r);if(e[0]>127)return Sjt(e);switch(e[0]){case 1:return Ajt(e);case 2:return kjt(e);default:break}return Xc.throwError("unsupported transaction type: "+e[0],aY.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}_s.parse=Pjt});var t6e=x(X9=>{"use strict";d();p();Object.defineProperty(X9,"__esModule",{value:!0});X9.version=void 0;X9.version="contracts/5.7.0"});var u6e=x(eu=>{"use strict";d();p();var rM=eu&&eu.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Vy=eu&&eu.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},$y=eu&&eu.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]1)){u=u.substring(1);var h=l[0];try{i[u]==null&&(0,ht.defineReadOnly)(i,u,i[h])}catch{}i.functions[u]==null&&(0,ht.defineReadOnly)(i.functions,u,i.functions[h]),i.callStatic[u]==null&&(0,ht.defineReadOnly)(i.callStatic,u,i.callStatic[h]),i.populateTransaction[u]==null&&(0,ht.defineReadOnly)(i.populateTransaction,u,i.populateTransaction[h]),i.estimateGas[u]==null&&(0,ht.defineReadOnly)(i.estimateGas,u,i.estimateGas[h])}})}return r.getContractAddress=function(e){return(0,HC.getContractAddress)(e)},r.getInterface=function(e){return eM.Interface.isInterface(e)?e:new eM.Interface(e)},r.prototype.deployed=function(){return this._deployed()},r.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(function(){return t}):this._deployedPromise=this.provider.getCode(this.address,e).then(function(n){return n==="0x"&&Wa.throwError("contract not deployed",fc.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t})),this._deployedPromise},r.prototype.fallback=function(e){var t=this;this.signer||Wa.throwError("sending a transactions require a signer",fc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,ht.shallowCopy)(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Wa.throwError("cannot override "+a,fc.Logger.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(function(){return t.signer.sendTransaction(n)})},r.prototype.connect=function(e){typeof e=="string"&&(e=new oY.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,ht.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},r.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},r.isIndexed=function(e){return eM.Indexed.isIndexed(e)},r.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},r.prototype._getRunningEvent=function(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new Fjt);if(e==="event")return this._normalizeRunningEvent(new jC("event",null));if(e==="*")return this._normalizeRunningEvent(new a6e(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new n6e(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");var t=this.interface.getEvent(n);return this._normalizeRunningEvent(new n6e(this.address,this.interface,t,e.topics))}catch{}var a={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new jC(o6e(a),a))}return this._normalizeRunningEvent(new a6e(this.address,this.interface))},r.prototype._checkRunningEvents=function(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},r.prototype._wrapEvent=function(e,t,n){var a=this,i=(0,ht.deepCopy)(t);return i.removeListener=function(){!n||(e.removeListener(n),a._checkRunningEvents(e))},i.getBlock=function(){return a.provider.getBlock(t.blockHash)},i.getTransaction=function(){return a.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return a.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i},r.prototype._addEventListener=function(e,t,n){var a=this;if(this.provider||Wa.throwError("events require a provider or a signer with a provider",fc.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var i=function(s){var o=a._wrapEvent(e,s,t);if(o.decodeError==null)try{var c=e.getEmit(o);a.emit.apply(a,Rjt([e.filter],c,!1))}catch(u){o.decodeError=u.error}e.filter!=null&&a.emit("event",o),o.decodeError!=null&&a.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}},r.prototype.queryFilter=function(e,t,n){var a=this,i=this._getRunningEvent(e),s=(0,ht.shallowCopy)(i.filter);return typeof t=="string"&&(0,Hb.isHexString)(t,32)?(n!=null&&Wa.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=t):(s.fromBlock=t??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(function(o){return o.map(function(c){return a._wrapEvent(i,c,null)})})},r.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},r.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},r.prototype.emit=function(e){for(var t=[],n=1;n0;return this._checkRunningEvents(a),i},r.prototype.listenerCount=function(e){var t=this;return this.provider?e==null?Object.keys(this._runningEvents).reduce(function(n,a){return n+t._runningEvents[a].listenerCount()},0):this._getRunningEvent(e).listenerCount():0},r.prototype.listeners=function(e){if(!this.provider)return[];if(e==null){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach(function(a){t.push(a)});return t}return this._getRunningEvent(e).listeners()},r.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(e==null){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var a=this._getRunningEvent(e);return a.removeAllListeners(),this._checkRunningEvents(a),this},r.prototype.off=function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this},r.prototype.removeListener=function(e,t){return this.off(e,t)},r}();eu.BaseContract=c6e;var cY=function(r){rM(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(c6e);eu.Contract=cY;var Wjt=function(){function r(e,t,n){var a=this.constructor,i=null;typeof t=="string"?i=t:(0,Hb.isBytes)(t)?i=(0,Hb.hexlify)(t):t&&typeof t.object=="string"?i=t.object:i="!",i.substring(0,2)!=="0x"&&(i="0x"+i),(!(0,Hb.isHexString)(i)||i.length%2)&&Wa.throwArgumentError("invalid bytecode","bytecode",t),n&&!oY.Signer.isSigner(n)&&Wa.throwArgumentError("invalid signer","signer",n),(0,ht.defineReadOnly)(this,"bytecode",i),(0,ht.defineReadOnly)(this,"interface",(0,ht.getStatic)(a,"getInterface")(e)),(0,ht.defineReadOnly)(this,"signer",n||null)}return r.prototype.getDeployTransaction=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(Yy,"__esModule",{value:!0});Yy.Base58=Yy.Base32=Yy.BaseX=void 0;var l6e=wr(),aM=Aa(),uY=function(){function r(e){(0,aM.defineReadOnly)(this,"alphabet",e),(0,aM.defineReadOnly)(this,"base",e.length),(0,aM.defineReadOnly)(this,"_alphabetMap",{}),(0,aM.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t0;)n.push(i%this.base),i=i/this.base|0}for(var o="",c=0;t[c]===0&&c=0;--u)o+=this.alphabet[n[u]];return o},r.prototype.decode=function(e){if(typeof e!="string")throw new TypeError("Expected String");var t=[];if(e.length===0)return new Uint8Array(t);t.push(0);for(var n=0;n>=8;for(;i>0;)t.push(i&255),i>>=8}for(var o=0;e[o]===this._leader&&o{"use strict";d();p();Object.defineProperty(zC,"__esModule",{value:!0});zC.SupportedAlgorithm=void 0;var jjt;(function(r){r.sha256="sha256",r.sha512="sha512"})(jjt=zC.SupportedAlgorithm||(zC.SupportedAlgorithm={}))});var d6e=x(sM=>{"use strict";d();p();Object.defineProperty(sM,"__esModule",{value:!0});sM.version=void 0;sM.version="sha2/5.7.0"});var h6e=x(Zd=>{"use strict";d();p();var zjt=Zd&&Zd.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Zd,"__esModule",{value:!0});Zd.computeHmac=Zd.sha512=Zd.sha256=Zd.ripemd160=void 0;var KC=zjt(OC()),GC=wr(),Kjt=lY(),p6e=Zt(),Gjt=d6e(),Vjt=new p6e.Logger(Gjt.version);function $jt(r){return"0x"+KC.default.ripemd160().update((0,GC.arrayify)(r)).digest("hex")}Zd.ripemd160=$jt;function Yjt(r){return"0x"+KC.default.sha256().update((0,GC.arrayify)(r)).digest("hex")}Zd.sha256=Yjt;function Jjt(r){return"0x"+KC.default.sha512().update((0,GC.arrayify)(r)).digest("hex")}Zd.sha512=Jjt;function Qjt(r,e,t){return Kjt.SupportedAlgorithm[r]||Vjt.throwError("unsupported algorithm "+r,p6e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:r}),"0x"+KC.default.hmac(KC.default[r],(0,GC.arrayify)(e)).update((0,GC.arrayify)(t)).digest("hex")}Zd.computeHmac=Qjt});var jb=x(Xd=>{"use strict";d();p();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.SupportedAlgorithm=Xd.sha512=Xd.sha256=Xd.ripemd160=Xd.computeHmac=void 0;var oM=h6e();Object.defineProperty(Xd,"computeHmac",{enumerable:!0,get:function(){return oM.computeHmac}});Object.defineProperty(Xd,"ripemd160",{enumerable:!0,get:function(){return oM.ripemd160}});Object.defineProperty(Xd,"sha256",{enumerable:!0,get:function(){return oM.sha256}});Object.defineProperty(Xd,"sha512",{enumerable:!0,get:function(){return oM.sha512}});var Zjt=lY();Object.defineProperty(Xd,"SupportedAlgorithm",{enumerable:!0,get:function(){return Zjt.SupportedAlgorithm}})});var m6e=x(cM=>{"use strict";d();p();Object.defineProperty(cM,"__esModule",{value:!0});cM.pbkdf2=void 0;var w3=wr(),f6e=jb();function Xjt(r,e,t,n,a){r=(0,w3.arrayify)(r),e=(0,w3.arrayify)(e);var i,s=1,o=new Uint8Array(n),c=new Uint8Array(e.length+4);c.set(e);for(var u,l,h=1;h<=s;h++){c[e.length]=h>>24&255,c[e.length+1]=h>>16&255,c[e.length+2]=h>>8&255,c[e.length+3]=h&255;var f=(0,w3.arrayify)((0,f6e.computeHmac)(a,r,c));i||(i=f.length,l=new Uint8Array(i),s=Math.ceil(n/i),u=n-(s-1)*i),l.set(f);for(var m=1;m{"use strict";d();p();Object.defineProperty(uM,"__esModule",{value:!0});uM.pbkdf2=void 0;var ezt=m6e();Object.defineProperty(uM,"pbkdf2",{enumerable:!0,get:function(){return ezt.pbkdf2}})});var y6e=x(dM=>{"use strict";d();p();Object.defineProperty(dM,"__esModule",{value:!0});dM.version=void 0;dM.version="wordlists/5.7.0"});var Lf=x(zb=>{"use strict";d();p();Object.defineProperty(zb,"__esModule",{value:!0});zb.Wordlist=zb.logger=void 0;var tzt=!1,rzt=sb(),g6e=Aa(),nzt=Zt(),azt=y6e();zb.logger=new nzt.Logger(azt.version);var izt=function(){function r(e){var t=this.constructor;zb.logger.checkAbstract(t,r),(0,g6e.defineReadOnly)(this,"locale",e)}return r.prototype.split=function(e){return e.toLowerCase().split(/ +/g)},r.prototype.join=function(e){return e.join(" ")},r.check=function(e){for(var t=[],n=0;n<2048;n++){var a=e.getWord(n);if(n!==e.getWordIndex(a))return"0x";t.push(a)}return(0,rzt.id)(t.join(` `)+` -`)},r.register=function(e,t){if(t||(t=e.locale),QHt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,ITe.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();Db.Wordlist=tjt});var STe=_(a5=>{"use strict";d();p();var rjt=a5&&a5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(a5,"__esModule",{value:!0});a5.langCz=void 0;var L$=Df(),njt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",EC=null;function kTe(r){if(EC==null&&(EC=njt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),L$.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw EC=null,new Error("BIP39 Wordlist for en (English) FAILED")}var ajt=function(r){rjt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return kTe(this),EC[t]},e.prototype.getWordIndex=function(t){return kTe(this),EC.indexOf(t)},e}(L$.Wordlist),ATe=new ajt;a5.langCz=ATe;L$.Wordlist.register(ATe)});var MTe=_(i5=>{"use strict";d();p();var ijt=i5&&i5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i5,"__esModule",{value:!0});i5.langEn=void 0;var q$=Df(),sjt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",CC=null;function PTe(r){if(CC==null&&(CC=sjt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),q$.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw CC=null,new Error("BIP39 Wordlist for en (English) FAILED")}var ojt=function(r){ijt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return PTe(this),CC[t]},e.prototype.getWordIndex=function(t){return PTe(this),CC.indexOf(t)},e}(q$.Wordlist),RTe=new ojt;i5.langEn=RTe;q$.Wordlist.register(RTe)});var LTe=_(s5=>{"use strict";d();p();var cjt=s5&&s5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(s5,"__esModule",{value:!0});s5.langEs=void 0;var K9=qs(),V9=Df(),ujt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",BTe={},IC=null;function DTe(r){return V9.logger.checkNormalize(),(0,K9.toUtf8String)(Array.prototype.filter.call((0,K9.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function ljt(r){var e=[];return Array.prototype.forEach.call((0,K9.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,K9.toUtf8String)(e)}function NTe(r){if(IC==null&&(IC=ujt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return ljt(e)}),IC.forEach(function(e,t){BTe[DTe(e)]=t}),V9.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw IC=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var djt=function(r){cjt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return NTe(this),IC[t]},e.prototype.getWordIndex=function(t){return NTe(this),BTe[DTe(t)]},e}(V9.Wordlist),OTe=new djt;s5.langEs=OTe;V9.Wordlist.register(OTe)});var HTe=_(o5=>{"use strict";d();p();var pjt=o5&&o5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(o5,"__esModule",{value:!0});o5.langFr=void 0;var G9=qs(),$9=Df(),hjt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",kC=null,FTe={};function WTe(r){return $9.logger.checkNormalize(),(0,G9.toUtf8String)(Array.prototype.filter.call((0,G9.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function fjt(r){var e=[];return Array.prototype.forEach.call((0,G9.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,G9.toUtf8String)(e)}function qTe(r){if(kC==null&&(kC=hjt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return fjt(e)}),kC.forEach(function(e,t){FTe[WTe(e)]=t}),$9.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw kC=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var mjt=function(r){pjt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return qTe(this),kC[t]},e.prototype.getWordIndex=function(t){return qTe(this),FTe[WTe(t)]},e}($9.Wordlist),UTe=new mjt;o5.langFr=UTe;$9.Wordlist.register(UTe)});var VTe=_(c5=>{"use strict";d();p();var yjt=c5&&c5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(c5,"__esModule",{value:!0});c5.langJa=void 0;var gjt=wr(),Zd=qs(),Y9=Df(),bjt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],vjt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",Yl=null;function jTe(r){return(0,gjt.hexlify)((0,Zd.toUtf8Bytes)(r))}var wjt="0xe3818de38284e3818f",xjt="0xe3818de38283e3818f";function zTe(r){if(Yl!==null)return;Yl=[];var e={};e[(0,Zd.toUtf8String)([227,130,154])]=!1,e[(0,Zd.toUtf8String)([227,130,153])]=!1,e[(0,Zd.toUtf8String)([227,130,133])]=(0,Zd.toUtf8String)([227,130,134]),e[(0,Zd.toUtf8String)([227,129,163])]=(0,Zd.toUtf8String)([227,129,164]),e[(0,Zd.toUtf8String)([227,130,131])]=(0,Zd.toUtf8String)([227,130,132]),e[(0,Zd.toUtf8String)([227,130,135])]=(0,Zd.toUtf8String)([227,130,136]);function t(h){for(var f="",m=0;mf?1:0}for(var a=3;a<=9;a++)for(var i=bjt[a-3],s=0;s{"use strict";d();p();var Tjt=u5&&u5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(u5,"__esModule",{value:!0});u5.langKo=void 0;var Ejt=qs(),F$=Df(),Cjt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],Ijt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function kjt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,Ejt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var Ob=null;function GTe(r){if(Ob==null&&(Ob=[],Cjt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";d();p();var Sjt=l5&&l5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(l5,"__esModule",{value:!0});l5.langIt=void 0;var W$=Df(),Pjt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",AC=null;function JTe(r){if(AC==null&&(AC=Pjt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),W$.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw AC=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var Rjt=function(r){Sjt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return JTe(this),AC[t]},e.prototype.getWordIndex=function(t){return JTe(this),AC.indexOf(t)},e}(W$.Wordlist),QTe=new Rjt;l5.langIt=QTe;W$.Wordlist.register(QTe)});var r6e=_(Uy=>{"use strict";d();p();var Mjt=Uy&&Uy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Uy,"__esModule",{value:!0});Uy.langZhTw=Uy.langZhCn=void 0;var Njt=qs(),SC=Df(),U$="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function XTe(r){if(d5[r.locale]===null){d5[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=Ojt.indexOf(U$[t*3]),a=[228+(n>>2),128+H$.indexOf(U$[t*3+1]),128+H$.indexOf(U$[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=H$.indexOf(Bjt[e++])+(s==0?228:128);d5[r.locale].push((0,Njt.toUtf8String)(a))}if(SC.Wordlist.check(r)!==Djt[r.locale])throw d5[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var e6e=function(r){Mjt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return XTe(this),d5[this.locale][t]},e.prototype.getWordIndex=function(t){return XTe(this),d5[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(SC.Wordlist),j$=new e6e("cn");Uy.langZhCn=j$;SC.Wordlist.register(j$);SC.Wordlist.register(j$,"zh");var t6e=new e6e("tw");Uy.langZhTw=t6e;SC.Wordlist.register(t6e)});var n6e=_(J9=>{"use strict";d();p();Object.defineProperty(J9,"__esModule",{value:!0});J9.wordlists=void 0;var Ljt=STe(),qjt=MTe(),Fjt=LTe(),Wjt=HTe(),Ujt=VTe(),Hjt=YTe(),jjt=ZTe(),z$=r6e();J9.wordlists={cz:Ljt.langCz,en:qjt.langEn,es:Fjt.langEs,fr:Wjt.langFr,it:jjt.langIt,ja:Ujt.langJa,ko:Hjt.langKo,zh:z$.langZhCn,zh_cn:z$.langZhCn,zh_tw:z$.langZhTw}});var K$=_(Hy=>{"use strict";d();p();Object.defineProperty(Hy,"__esModule",{value:!0});Hy.wordlists=Hy.Wordlist=Hy.logger=void 0;var a6e=Df();Object.defineProperty(Hy,"logger",{enumerable:!0,get:function(){return a6e.logger}});Object.defineProperty(Hy,"Wordlist",{enumerable:!0,get:function(){return a6e.Wordlist}});var zjt=n6e();Object.defineProperty(Hy,"wordlists",{enumerable:!0,get:function(){return zjt.wordlists}})});var i6e=_(Q9=>{"use strict";d();p();Object.defineProperty(Q9,"__esModule",{value:!0});Q9.version=void 0;Q9.version="hdnode/5.7.0"});var X9=_(Zc=>{"use strict";d();p();Object.defineProperty(Zc,"__esModule",{value:!0});Zc.getAccountPath=Zc.isValidMnemonic=Zc.entropyToMnemonic=Zc.mnemonicToEntropy=Zc.mnemonicToSeed=Zc.HDNode=Zc.defaultPath=void 0;var u6e=q9(),Ua=wr(),l6e=Os(),PC=qs(),Kjt=j9(),Qc=Aa(),s6e=yC(),Of=Bb(),Vjt=s0(),o6e=K$(),Gjt=Zt(),$jt=i6e(),RC=new Gjt.Logger($jt.version),Yjt=l6e.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Jjt=(0,PC.toUtf8Bytes)("Bitcoin seed"),h5=2147483648;function d6e(r){return(1<=256)throw new Error("Depth too large!");return c6e((0,Ua.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Ua.hexlify)(this.depth),this.parentFingerprint,(0,Ua.hexZeroPad)((0,Ua.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Ua.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(p5,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~h5));var n=new Uint8Array(37);if(e&h5){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Ua.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Ua.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,Ua.arrayify)((0,Of.computeHmac)(Of.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=Z9(l6e.BigNumber.from(s).add(this.privateKey).mod(Yjt));else{var l=new s6e.SigningKey((0,Ua.hexlify)(s));u=l._addPoint(this.publicKey)}var h=t,f=this.mnemonic;return f&&(h=Object.freeze({phrase:f.phrase,path:t,locale:f.locale||"en"})),new r(p5,c,u,this.fingerprint,Z9(o),e,this.depth+1,h)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=h5)throw new Error("invalid path index - "+i);n=n._derive(h5+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=h5)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,Ua.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,Ua.arrayify)((0,Of.computeHmac)(Of.SupportedAlgorithm.sha512,Jjt,n));return new r(p5,Z9(a.slice(0,32)),null,"0x00000000",Z9(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=V$(n),e=h6e(G$(e,n),n),r._fromSeed(p6e(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=u6e.Base58.decode(e);(t.length!==82||c6e(t.slice(0,78))!==e)&&RC.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,Ua.hexlify)(t.slice(5,9)),i=parseInt((0,Ua.hexlify)(t.slice(9,13)).substring(2),16),s=(0,Ua.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,Ua.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(p5,null,(0,Ua.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(p5,(0,Ua.hexlify)(o.slice(1)),null,a,s,i,n,null)}return RC.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();Zc.HDNode=Zjt;function p6e(r,e){e||(e="");var t=(0,PC.toUtf8Bytes)("mnemonic"+e,PC.UnicodeNormalizationForm.NFKD);return(0,Kjt.pbkdf2)((0,PC.toUtf8Bytes)(r,PC.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}Zc.mnemonicToSeed=p6e;function G$(r,e){e=V$(e),RC.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Ua.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=d6e(u),h=(0,Ua.arrayify)((0,Of.sha256)(n.slice(0,c/8)))[0]&l;if(h!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,Ua.hexlify)(n.slice(0,c/8))}Zc.mnemonicToEntropy=G$;function h6e(r,e){if(e=V$(e),r=(0,Ua.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&Qjt(8-n)),n+=3);var i=r.length/4,s=(0,Ua.arrayify)((0,Of.sha256)(r))[0]&d6e(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}Zc.entropyToMnemonic=h6e;function Xjt(r,e){try{return G$(r,e),!0}catch{}return!1}Zc.isValidMnemonic=Xjt;function ezt(r){return(typeof r!="number"||r<0||r>=h5||r%1)&&RC.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}Zc.getAccountPath=ezt});var f6e=_(eM=>{"use strict";d();p();Object.defineProperty(eM,"__esModule",{value:!0});eM.version=void 0;eM.version="random/5.7.0"});var g6e=_(rM=>{"use strict";d();p();Object.defineProperty(rM,"__esModule",{value:!0});rM.randomBytes=void 0;var tzt=wr(),y6e=Zt(),rzt=f6e(),$$=new y6e.Logger(rzt.version);function nzt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var m6e=nzt(),tM=m6e.crypto||m6e.msCrypto;(!tM||!tM.getRandomValues)&&($$.warn("WARNING: Missing strong random number source"),tM={getRandomValues:function(r){return $$.throwError("no secure random source avaialble",y6e.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function azt(r){(r<=0||r>1024||r%1||r!=r)&&$$.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return tM.getRandomValues(e),(0,tzt.arrayify)(e)}rM.randomBytes=azt});var b6e=_(nM=>{"use strict";d();p();Object.defineProperty(nM,"__esModule",{value:!0});nM.shuffled=void 0;function izt(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}nM.shuffled=izt});var MC=_(f5=>{"use strict";d();p();Object.defineProperty(f5,"__esModule",{value:!0});f5.shuffled=f5.randomBytes=void 0;var szt=g6e();Object.defineProperty(f5,"randomBytes",{enumerable:!0,get:function(){return szt.randomBytes}});var ozt=b6e();Object.defineProperty(f5,"shuffled",{enumerable:!0,get:function(){return ozt.shuffled}})});var J$=_((Y$,v6e)=>{"use strict";d();p();(function(r){function e(x){return parseInt(x)===x}function t(x){if(!e(x.length))return!1;for(var N=0;N255)return!1;return!0}function n(x,N){if(x.buffer&&ArrayBuffer.isView(x)&&x.name==="Uint8Array")return N&&(x.slice?x=x.slice():x=Array.prototype.slice.call(x)),x;if(Array.isArray(x)){if(!t(x))throw new Error("Array contains invalid value: "+x);return new Uint8Array(x)}if(e(x.length)&&t(x))return new Uint8Array(x);throw new Error("unsupported array-like object")}function a(x){return new Uint8Array(x)}function i(x,N,U,C,z){(C!=null||z!=null)&&(x.slice?x=x.slice(C,z):x=Array.prototype.slice.call(x,C,z)),N.set(x,U)}var s=function(){function x(U){var C=[],z=0;for(U=encodeURI(U);z191&&ee<224?(C.push(String.fromCharCode((ee&31)<<6|U[z+1]&63)),z+=2):(C.push(String.fromCharCode((ee&15)<<12|(U[z+1]&63)<<6|U[z+2]&63)),z+=3)}return C.join("")}return{toBytes:x,fromBytes:N}}(),o=function(){function x(C){for(var z=[],ee=0;ee>4]+N[j&15])}return z.join("")}return{toBytes:x,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],E=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],I=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],S=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],G=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function V(x){for(var N=[],U=0;U>2,this._Ke[ee][N%4]=z[N],this._Kd[x-ee][N%4]=z[N];for(var j=0,X=C,ie;X>16&255]<<24^l[ie>>8&255]<<16^l[ie&255]<<8^l[ie>>24&255]^u[j]<<24,j+=1,C!=8)for(var N=1;N>8&255]<<8^l[ie>>16&255]<<16^l[ie>>24&255]<<24;for(var N=C/2+1;N>2,he=X%4,this._Ke[ue][he]=z[N],this._Kd[x-ue][he]=z[N++],X++}for(var ue=1;ue>24&255]^G[ie>>16&255]^K[ie>>8&255]^H[ie&255]},J.prototype.encrypt=function(x){if(x.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],C=V(x),z=0;z<4;z++)C[z]^=this._Ke[0][z];for(var ee=1;ee>24&255]^m[C[(z+1)%4]>>16&255]^y[C[(z+2)%4]>>8&255]^E[C[(z+3)%4]&255]^this._Ke[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Ke[N][z],j[4*z]=(l[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(l[C[(z+1)%4]>>16&255]^X>>16)&255,j[4*z+2]=(l[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(l[C[(z+3)%4]&255]^X)&255;return j},J.prototype.decrypt=function(x){if(x.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],C=V(x),z=0;z<4;z++)C[z]^=this._Kd[0][z];for(var ee=1;ee>24&255]^S[C[(z+3)%4]>>16&255]^L[C[(z+2)%4]>>8&255]^F[C[(z+1)%4]&255]^this._Kd[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Kd[N][z],j[4*z]=(h[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(h[C[(z+3)%4]>>16&255]^X>>16)&255,j[4*z+2]=(h[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(h[C[(z+1)%4]&255]^X)&255;return j};var q=function(x){if(!(this instanceof q))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new J(x)};q.prototype.encrypt=function(x){if(x=n(x),x.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(x.length),U=a(16),C=0;C=0;--N)this._counter[N]=x%256,x=x>>8},v.prototype.setBytes=function(x){if(x=n(x,!0),x.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=x},v.prototype.increment=function(){for(var x=15;x>=0;x--)if(this._counter[x]===255)this._counter[x]=0;else{this._counter[x]++;break}};var k=function(x,N){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof v||(N=new v(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new J(x)};k.prototype.encrypt=function(x){for(var N=n(x,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=x.length-N,C=0;C{"use strict";d();p();Object.defineProperty(aM,"__esModule",{value:!0});aM.version=void 0;aM.version="json-wallets/5.7.0"});var Z$=_(Xd=>{"use strict";d();p();Object.defineProperty(Xd,"__esModule",{value:!0});Xd.uuidV4=Xd.searchPath=Xd.getPassword=Xd.zpad=Xd.looseArrayify=void 0;var iM=wr(),w6e=qs();function czt(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,iM.arrayify)(r)}Xd.looseArrayify=czt;function uzt(r,e){for(r=String(r);r.length{"use strict";d();p();var hzt=Lf&&Lf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fzt=Lf&&Lf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Lf,"__esModule",{value:!0});Lf.decrypt=Lf.CrowdsaleAccount=void 0;var x6e=fzt(J$()),mzt=Pd(),_6e=wr(),yzt=jl(),gzt=j9(),bzt=qs(),vzt=Aa(),wzt=Zt(),xzt=Q$(),_zt=new wzt.Logger(xzt.version),sM=Z$(),T6e=function(r){hzt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(vzt.Description);Lf.CrowdsaleAccount=T6e;function Tzt(r,e){var t=JSON.parse(r);e=(0,sM.getPassword)(e);var n=(0,mzt.getAddress)((0,sM.searchPath)(t,"ethaddr")),a=(0,sM.looseArrayify)((0,sM.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&_zt.throwArgumentError("invalid encseed","json",r);for(var i=(0,_6e.arrayify)((0,gzt.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new x6e.default.ModeOfOperation.cbc(i,s),u=x6e.default.padding.pkcs7.strip((0,_6e.arrayify)(c.decrypt(o))),l="",h=0;h{"use strict";d();p();Object.defineProperty(jy,"__esModule",{value:!0});jy.getJsonWalletAddress=jy.isKeystoreWallet=jy.isCrowdsaleWallet=void 0;var C6e=Pd();function I6e(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}jy.isCrowdsaleWallet=I6e;function k6e(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}jy.isKeystoreWallet=k6e;function Ezt(r){if(I6e(r))try{return(0,C6e.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(k6e(r))try{return(0,C6e.getAddress)(JSON.parse(r).address)}catch{return null}return null}jy.getJsonWalletAddress=Ezt});var P6e=_((X$,S6e)=>{"use strict";d();p();(function(r){function t(m){let y=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]),E=1779033703,I=3144134277,S=1013904242,L=2773480762,F=1359893119,W=2600822924,G=528734635,K=1541459225,H=new Uint32Array(64);function V(k){let O=0,D=k.length;for(;D>=64;){let B=E,x=I,N=S,U=L,C=F,z=W,ee=G,j=K,X,ie,ue,he,ke;for(ie=0;ie<16;ie++)ue=O+ie*4,H[ie]=(k[ue]&255)<<24|(k[ue+1]&255)<<16|(k[ue+2]&255)<<8|k[ue+3]&255;for(ie=16;ie<64;ie++)X=H[ie-2],he=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=H[ie-15],ke=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,H[ie]=(he+H[ie-7]|0)+(ke+H[ie-16]|0)|0;for(ie=0;ie<64;ie++)he=(((C>>>6|C<<32-6)^(C>>>11|C<<32-11)^(C>>>25|C<<32-25))+(C&z^~C&ee)|0)+(j+(y[ie]+H[ie]|0)|0)|0,ke=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&x^B&N^x&N)|0,j=ee,ee=z,z=C,C=U+he|0,U=N,N=x,x=B,B=he+ke|0;E=E+B|0,I=I+x|0,S=S+N|0,L=L+U|0,F=F+C|0,W=W+z|0,G=G+ee|0,K=K+j|0,O+=64,D-=64}}V(m);let J,q=m.length%64,T=m.length/536870912|0,P=m.length<<3,A=q<56?56:120,v=m.slice(m.length-q,m.length);for(v.push(128),J=q+1;J>>24&255),v.push(T>>>16&255),v.push(T>>>8&255),v.push(T>>>0&255),v.push(P>>>24&255),v.push(P>>>16&255),v.push(P>>>8&255),v.push(P>>>0&255),V(v),[E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,I>>>24&255,I>>>16&255,I>>>8&255,I>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,G>>>24&255,G>>>16&255,G>>>8&255,G>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(m,y,E){m=m.length<=64?m:t(m);let I=64+y.length+4,S=new Array(I),L=new Array(64),F,W=[];for(F=0;F<64;F++)S[F]=54;for(F=0;F=I-4;K--){if(S[K]++,S[K]<=255)return;S[K]=0}}for(;E>=32;)G(),W=W.concat(t(L.concat(t(S)))),E-=32;return E>0&&(G(),W=W.concat(t(L.concat(t(S))).slice(0,E))),W}function a(m,y,E,I,S){let L;for(c(m,(2*E-1)*16,S,0,16),L=0;L<2*E;L++)o(m,L*16,S,16),s(S,I),c(S,0,m,y+L*16,16);for(L=0;L>>32-y}function s(m,y){c(m,0,y,0,16);for(let E=8;E>0;E-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let E=0;E<16;++E)m[E]+=y[E]}function o(m,y,E,I){for(let S=0;S=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function h(m,y,E,I,S,L,F){if(E=l(E,"N"),I=l(I,"r"),S=l(S,"p"),L=l(L,"dkLen"),E===0||(E&E-1)!==0)throw new Error("N must be power of 2");if(E>2147483647/128/I)throw new Error("N too large");if(I>2147483647/128/S)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,S*128*I),G=new Uint32Array(S*32*I);for(let C=0;Cx&&(C=x);for(let ee=0;eex&&(C=x);for(let ee=0;ee>0&255),W.push(G[ee]>>8&255),W.push(G[ee]>>16&255),W.push(G[ee]>>24&255);let z=n(m,W,L);return F&&F(null,1,z),z}F&&N(U)};if(!F)for(;;){let C=U();if(C!=null)return C}U()}let f={scrypt:function(m,y,E,I,S,L,F){return new Promise(function(W,G){let K=0;F&&F(0),h(m,y,E,I,S,L,function(H,V,J){if(H)G(H);else if(J)F&&K!==1&&F(1),W(new Uint8Array(J));else if(F&&V!==K)return K=V,F(V)})})},syncScrypt:function(m,y,E,I,S,L){return new Uint8Array(h(m,y,E,I,S,L))}};typeof X$<"u"?S6e.exports=f:typeof define=="function"&&define.amd?define(f):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=f)})(X$)});var W6e=_(Do=>{"use strict";d();p();var Czt=Do&&Do.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Izt=Do&&Do.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},kzt=Do&&Do.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(Hs,"__esModule",{value:!0});Hs.decryptJsonWalletSync=Hs.decryptJsonWallet=Hs.getJsonWalletAddress=Hs.isKeystoreWallet=Hs.isCrowdsaleWallet=Hs.encryptKeystore=Hs.decryptKeystoreSync=Hs.decryptKeystore=Hs.decryptCrowdsale=void 0;var nY=E6e();Object.defineProperty(Hs,"decryptCrowdsale",{enumerable:!0,get:function(){return nY.decrypt}});var qb=A6e();Object.defineProperty(Hs,"getJsonWalletAddress",{enumerable:!0,get:function(){return qb.getJsonWalletAddress}});Object.defineProperty(Hs,"isCrowdsaleWallet",{enumerable:!0,get:function(){return qb.isCrowdsaleWallet}});Object.defineProperty(Hs,"isKeystoreWallet",{enumerable:!0,get:function(){return qb.isKeystoreWallet}});var NC=W6e();Object.defineProperty(Hs,"decryptKeystore",{enumerable:!0,get:function(){return NC.decrypt}});Object.defineProperty(Hs,"decryptKeystoreSync",{enumerable:!0,get:function(){return NC.decryptSync}});Object.defineProperty(Hs,"encryptKeystore",{enumerable:!0,get:function(){return NC.encrypt}});function Ozt(r,e,t){if((0,qb.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,nY.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,qb.isKeystoreWallet)(r)?(0,NC.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}Hs.decryptJsonWallet=Ozt;function Lzt(r,e){if((0,qb.isCrowdsaleWallet)(r))return(0,nY.decrypt)(r,e);if((0,qb.isKeystoreWallet)(r))return(0,NC.decryptSync)(r,e);throw new Error("invalid JSON wallet")}Hs.decryptJsonWalletSync=Lzt});var U6e=_(cM=>{"use strict";d();p();Object.defineProperty(cM,"__esModule",{value:!0});cM.version=void 0;cM.version="wallet/5.7.0"});var oY=_(dl=>{"use strict";d();p();var qzt=dl&&dl.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),H6e=dl&&dl.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},j6e=dl&&dl.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(uM,"__esModule",{value:!0});uM.version=void 0;uM.version="networks/5.7.1"});var cY=_(pM=>{"use strict";d();p();Object.defineProperty(pM,"__esModule",{value:!0});pM.getNetwork=void 0;var $zt=Zt(),Yzt=G6e(),$6e=new $zt.Logger(Yzt.version);function Jzt(r){return r&&typeof r.renetwork=="function"}function o0(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return o0(t)},e}function dM(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return dM(r,n)},t}var Y6e={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:o0("homestead")},J6e={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:o0("ropsten")},Q6e={chainId:63,name:"classicMordor",_defaultProvider:dM("https://www.ethercluster.com/mordor","classicMordor")},lM={unspecified:{chainId:0,name:"unspecified"},homestead:Y6e,mainnet:Y6e,morden:{chainId:2,name:"morden"},ropsten:J6e,testnet:J6e,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:o0("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:o0("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:o0("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:o0("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:dM("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Q6e,classicTestnet:Q6e,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:dM("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:o0("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:o0("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Qzt(r){if(r==null)return null;if(typeof r=="number"){for(var e in lM){var t=lM[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=lM[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=lM[r.name];if(!a)return typeof r.chainId!="number"&&$6e.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&$6e.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(Jzt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}pM.getNetwork=Qzt});var Z6e=_(hM=>{"use strict";d();p();Object.defineProperty(hM,"__esModule",{value:!0});hM.version=void 0;hM.version="web/5.7.1"});var X6e=_(Ky=>{"use strict";d();p();var Zzt=Ky&&Ky.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},Xzt=Ky&&Ky.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var rKt=ep&&ep.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},nKt=ep&&ep.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;fh.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,h=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&fh.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(h=r.timeout),r.headers)for(var f in r.headers)o[f.toLowerCase()]={key:f,value:String(r.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&fh.throwError("basic authentication requires a secure https url",c0.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,eEe.encode)((0,OC.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,fM.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),E=c?c.match(y):null;if(E)try{var I={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]||"text/plain"},body:E[2]?(0,eEe.decode)(E[3]):sKt(E[3])},S=I.body;return t&&(S=t(I.body,I)),Promise.resolve(S)}catch(G){fh.throwError("processing response error",c0.Logger.errors.SERVER_ERROR,{body:Vy(E[1],E[2]),error:G,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var L={};Object.keys(o).forEach(function(G){var K=o[G];L[K.key]=K.value}),u.headers=L;var F=function(){var G=null,K=new Promise(function(V,J){h&&(G=setTimeout(function(){G!=null&&(G=null,J(fh.makeError("timeout",c0.Logger.errors.TIMEOUT,{requestBody:Vy(u.body,L["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),H=function(){G!=null&&(clearTimeout(G),G=null)};return{promise:K,cancel:H}}(),W=function(){return rKt(this,void 0,void 0,function(){var G,K,H,v,V,J,q,T,P,A,v,k;return nKt(this,function(O){switch(O.label){case 0:G=0,O.label=1;case 1:if(!(G=300)&&(F.cancel(),fh.throwError("bad response",c0.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:Vy(T,K.headers?K.headers["content-type"]:null),requestBody:Vy(u.body,L["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(T,K)];case 12:return P=O.sent(),F.cancel(),[2,P];case 13:return A=O.sent(),A.throttleRetry&&Go){s()&&n(new Error("retry limit reached"));return}var h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));he.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(l){s()&&n(l)})}u()})}ep.poll=cKt});var oEe=_((cPn,sEe)=>{"use strict";d();p();var yM="qpzry9x8gf2tvdw0s3jn54khce6mua7l",uY={};for(LC=0;LC>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function aEe(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=g5(e)^n>>5}for(e=g5(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=aEe(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=g5(n)^s,a+=yM.charAt(s)}for(i=0;i<6;++i)n=g5(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=yM.charAt(o)}return a}function iEe(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=aEe(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(h)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function lKt(){var r=iEe.apply(null,arguments);if(typeof r=="object")return r}function dKt(r){var e=iEe.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function gM(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";d();p();Object.defineProperty(bM,"__esModule",{value:!0});bM.version=void 0;bM.version="providers/5.7.2"});var Gy=_(Wf=>{"use strict";d();p();Object.defineProperty(Wf,"__esModule",{value:!0});Wf.showThrottleMessage=Wf.isCommunityResource=Wf.isCommunityResourcable=Wf.Formatter=void 0;var lY=Pd(),u0=Os(),Ff=wr(),yKt=Vg(),gKt=Aa(),cEe=s0(),bKt=Zt(),vKt=dc(),qC=new bKt.Logger(vKt.version),wKt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),h=function(f){return e.data(f,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(h),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,gKt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,cEe.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:u0.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:u0.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return u0.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,Ff.isHexString)(e))?e.toLowerCase():qC.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,lY.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,Ff.isHexString)(e,32))return null;var t=(0,lY.getAddress)((0,Ff.hexDataSlice)(e,12));return t===yKt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,lY.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,Ff.isHexString)(e))return(0,Ff.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,Ff.hexDataLength)(n)!==32?qC.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=u0.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,Ff.isHexString)(e))throw new Error("invalid uint256");return(0,Ff.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:u0.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&u0.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,Ff.isHexString)(n)&&(n=u0.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,Ff.isHexString)(n)&&(n=u0.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,cEe.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=u0.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&qC.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):qC.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&qC.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();Wf.Formatter=wKt;function lEe(r){return r&&typeof r.isCommunityResource=="function"}Wf.isCommunityResourcable=lEe;function xKt(r){return lEe(r)&&r.isCommunityResource()}Wf.isCommunityResource=xKt;var uEe=!1;function _Kt(){uEe||(uEe=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}Wf.showThrottleMessage=_Kt});var HC=_(eu=>{"use strict";d();p();var TKt=eu&&eu.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=eu&&eu.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},fr=eu&&eu.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[fEe(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return fEe(e)}).join("&")}function PKt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function b5(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,ir.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+mEe(r);if(wEe.ForkEvent.isForkEvent(r))throw Rr.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+mEe(r.topics||[])}throw new Error("invalid event - "+r)}function FC(){return new Date().getTime()}function yEe(r){return new Promise(function(e){setTimeout(e,r)})}var RKt=["block","network","pending","poll"],xEe=function(){function r(e,t,n){(0,ws.defineReadOnly)(this,"tag",e),(0,ws.defineReadOnly)(this,"listener",t),(0,ws.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=PKt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||RKt.indexOf(this.tag)>=0},r}();eu.Event=xEe;var MKt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function dY(r){return(0,ir.hexZeroPad)(Xc.BigNumber.from(r).toHexString(),32)}function gEe(r){return fY.Base58.encode((0,ir.concat)([r,(0,ir.hexDataSlice)((0,dEe.sha256)((0,dEe.sha256)(r)),0,4)]))}var _Ee=new RegExp("^(ipfs)://(.*)$","i"),bEe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),_Ee,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function vM(r,e){try{return(0,mY.toUtf8String)(UC(r,e))}catch{}return null}function UC(r,e){if(r==="0x")return null;var t=Xc.BigNumber.from((0,ir.hexDataSlice)(r,e,e+32)).toNumber(),n=Xc.BigNumber.from((0,ir.hexDataSlice)(r,t,t+32)).toNumber();return(0,ir.hexDataSlice)(r,t+32,t+32+n)}function pY(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):Rr.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function vEe(r){var e=(0,ir.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function NKt(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function TEe(r){for(var e=[],t=0,n=0;n=1&&s<=75)return gEe((0,ir.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return gEe((0,ir.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var h=pEe.default.toWords(a.slice(2));return h.unshift(l),pEe.default.encode(n.prefix,h)}}return null},r.prototype.getAddress=function(e){return hr(this,void 0,void 0,function(){var t,n,a,i;return fr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===IKt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===qr.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",dY(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&Rr.throwError("invalid or unsupported coin data",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return hr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I,S,L,F,W,G,K,H,V,J;return fr(this,function(q){switch(q.label){case 0:e=[{type:"name",content:this.name}],q.label=1;case 1:return q.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=q.sent(),t==null)return[2,null];n=0,q.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,v5.fetchJson)({url:l,errorPassThrough:!0},h,function(E,I){return E.status=I.statusCode,E})]):[3,4];case 2:if(f=y.sent(),f.data)return[2,f.data];if(m=f.message||"unknown error",f.status>=400&&f.status<500)return[2,Rr.throwError("response not found during CCIP fetch: "+m,qr.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,Rr.throwError("error encountered during CCIP fetch: "+o.map(function(E){return JSON.stringify(E)}).join(", "),qr.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return fr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),FC()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=FC(),o=(0,ws.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var h=l.blockNumber,f=l.networkError;if(f)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),f;var m=FC();return h=Xc.BigNumber.from(h).toNumber(),h1e3)Rr.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",Rr.makeError("network block skew detected",qr.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,h=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(h);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var f=u.filter;f.fromBlock=u._lastBlockNumber+1,f.toBlock=a;var m=f.toBlock-o._maxFilterBlockRange;m>f.fromBlock&&(f.fromBlock=m),f.fromBlock<0&&(f.fromBlock=0);var h=o.getLogs(f).then(function(E){u._inflight=!1,E.length!==0&&E.forEach(function(I){I.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=I.blockNumber),o._emitted["b:"+I.blockHash]=I.blockNumber,o._emitted["t:"+I.transactionHash]=I.blockNumber,o.emit(f,I)})}).catch(function(E){o.emit("error",E),u._inflight=!1});n.push(h)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,Rr.throwError("provider does not support network detection",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return hr(this,void 0,void 0,function(){var t,n,a;return fr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,yEe(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=Rr.makeError("underlying network changed",qr.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=FC();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return hr(this,void 0,void 0,function(){return fr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return hr(this,void 0,void 0,function(){var s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var h=[],f=!1,m=function(){return f?!0:(f=!0,h.forEach(function(F){F()}),!1)},y=function(F){F.confirmations0){var L=setTimeout(function(){m()||l(Rr.makeError("timeout exceeded",qr.Logger.errors.TIMEOUT,{timeout:a}))},a);L.unref&&L.unref(),h.push(function(){clearTimeout(L)})}})]}})})},e.prototype.getBlockNumber=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return hr(this,void 0,void 0,function(){var t;return fr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,Xc.BigNumber.from(t)]}catch(a){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,Xc.BigNumber.from(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,Xc.BigNumber.from(i).toNumber()]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,ir.hexlify)(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s;return fr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,ws.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,ir.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,ir.hexlify)(s)]}catch(c){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,ir.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&Rr.throwError("Transaction hash mismatch from Provider.sendTransaction.",qr.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return hr(i,void 0,void 0,function(){var u,l;return fr(this,function(h){switch(h.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=h.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Rr.throwError("transaction failed",qr.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o;return fr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,ir.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?Xc.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,ir.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,ws.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s=this;return fr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,ws.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f,m,y,E,I,S,L,F,W;return fr(this,function(G){switch(G.label){case 0:return a>=SKt&&Rr.throwError("CCIP read exceeded maximum redirections",qr.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=G.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,ir.hexDataLength)(s)%32===4))return[3,5];G.label=2;case 2:for(G.trys.push([2,4,,5]),o=(0,ir.hexDataSlice)(s,4),c=(0,ir.hexDataSlice)(o,0,32),Xc.BigNumber.from(c).eq(i)||Rr.throwError("CCIP Read sender did not match",qr.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=Xc.BigNumber.from((0,ir.hexDataSlice)(o,32,64)).toNumber(),h=Xc.BigNumber.from((0,ir.hexDataSlice)(o,l,l+32)).toNumber(),f=(0,ir.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];h=null,f=0,S.label=2;case 2:return f0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new xEe(b5(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";d();p();var vY=tp&&tp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),l0=tp&&tp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},d0=tp&&tp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&js.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",co.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function IEe(r){return new Promise(function(e){setTimeout(e,r)})}function UKt(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function jC(r){return r&&r.toLowerCase()}var bY={},wY=function(r){vY(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==bY)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,xs.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,xs.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,xs.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,xs.defineReadOnly)(i,"_index",a),(0,xs.defineReadOnly)(i,"_address",null)):js.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return js.throwError("cannot alter JSON-RPC Signer connection",co.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new HKt(bY,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&js.throwError("unknown account #"+t._index,co.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,xs.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,xs.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return l0(n,void 0,void 0,function(){var o;return d0(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&js.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,xs.resolveProperties)({tx:(0,xs.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&js.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&js.throwError("user rejected transaction",co.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),AEe("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return js.throwError("signing transactions is unsupported",co.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return l0(this,void 0,void 0,function(){var n,a,i,s=this;return d0(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,kEe.poll)(function(){return l0(s,void 0,void 0,function(){var c;return d0(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return l0(this,void 0,void 0,function(){var n,a,i;return d0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,CEe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,w5.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",co.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return l0(this,void 0,void 0,function(){var n,a,i;return d0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,CEe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,w5.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&js.throwError("user rejected signing",co.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return l0(this,void 0,void 0,function(){var i,s,o,c=this;return d0(this,function(u){switch(u.label){case 0:return[4,EEe._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(EEe._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&js.throwError("user rejected signing",co.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return l0(this,void 0,void 0,function(){var n,a;return d0(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(OKt.Signer);tp.JsonRpcSigner=wY;var HKt=function(r){vY(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}(wY),jKt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},zKt=function(r){vY(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,xs.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,xs.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,xs.defineReadOnly)(a,"connection",Object.freeze((0,xs.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return l0(this,void 0,void 0,function(){var t,n,a,i;return d0(this,function(s){switch(s.label){case 0:return[4,IEe(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,xs.getStatic)(this.constructor,"getNetwork");try{return[2,i(gY.BigNumber.from(t).toNumber())]}catch(o){return[2,js.throwError("could not detect network",co.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,js.throwError("could not detect network",co.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new wY(bY,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,xs.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,kEe.fetchJson)(this.connection,JSON.stringify(i),UKt).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[jC(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[jC(n.address),n.blockTag]];case"getCode":return["eth_getCode",[jC(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[jC(n.address),(0,w5.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,xs.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=jC(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return l0(this,void 0,void 0,function(){var a,i,s,o;return d0(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&gY.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,xs.shallowCopy)(n),n.transaction=(0,xs.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&js.throwError(t+" not implemented",co.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,AEe(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return IEe(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,xs.shallowCopy)(jKt);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,xs.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,w5.hexValue)(gY.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,w5.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,LKt.accessListify)(t.accessList)),s},e}(FKt.BaseProvider);tp.JsonRpcProvider=zKt});var REe=_(_5=>{"use strict";d();p();Object.defineProperty(_5,"__esModule",{value:!0});_5.WebSocket=void 0;var SEe=Zt(),KKt=dc(),wM=null;_5.WebSocket=wM;try{if(_5.WebSocket=wM=WebSocket,wM==null)throw new Error("inject please")}catch{PEe=new SEe.Logger(KKt.version),_5.WebSocket=wM=function(){PEe.throwError("WebSockets not supported in this environment",SEe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var PEe});var _M=_(Uf=>{"use strict";d();p();var VKt=Uf&&Uf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xY=Uf&&Uf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},_Y=Uf&&Uf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var NEe=rp&&rp.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ZKt=rp&&rp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},XKt=rp&&rp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var OEe=Jy&&Jy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.AlchemyProvider=Jy.AlchemyWebSocketProvider=void 0;var nVt=Aa(),aVt=Gy(),iVt=_M(),sVt=Zt(),oVt=dc(),DEe=new sVt.Logger(oVt.version),cVt=Yy(),EM="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",LEe=function(r){OEe(e,r);function e(t,n){var a=this,i=new qEe(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,nVt.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===EM},e}(iVt.WebSocketProvider);Jy.AlchemyWebSocketProvider=LEe;var qEe=function(r){OEe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new LEe(t,n)},e.getApiKey=function(t){return t==null?EM:(t&&typeof t!="string"&&DEe.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:DEe.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===EM&&(0,aVt.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===EM},e}(cVt.UrlJsonRpcProvider);Jy.AlchemyProvider=qEe});var WEe=_(E5=>{"use strict";d();p();var uVt=E5&&E5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E5,"__esModule",{value:!0});E5.AnkrProvider=void 0;var lVt=Gy(),dVt=Yy(),pVt=Zt(),hVt=dc(),fVt=new pVt.Logger(hVt.version),CM="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function mVt(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return fVt.throwArgumentError("unsupported network","name",r)}var yVt=function(r){uVt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===CM},e.getApiKey=function(t){return t??CM},e.getUrl=function(t,n){n==null&&(n=CM);var a={allowGzip:!0,url:"https://"+mVt(t.name)+n,throttleCallback:function(i,s){return n.apiKey===CM&&(0,lVt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(dVt.UrlJsonRpcProvider);E5.AnkrProvider=yVt});var HEe=_(Hf=>{"use strict";d();p();var gVt=Hf&&Hf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bVt=Hf&&Hf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},vVt=Hf&&Hf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var EVt=zf&&zf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),IM=zf&&zf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},kM=zf&&zf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function zEe(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function KEe(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function EY(r,e,t){if(r==="call"&&e.code===jf.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,AM.isHexString)(a))return a;Qy.throwError("missing revert data in call exception",jf.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===jf.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&Qy.throwError("insufficient funds for intrinsic transaction cost",jf.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Qy.throwError("nonce has already been used",jf.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&Qy.throwError("replacement fee too low",jf.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&Qy.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",jf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var RVt=function(r){EVt(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,TY.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,TY.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return Qy.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return IM(this,void 0,void 0,function(){var i,s,o,c,u,l,h=this;return kM(this,function(f){switch(f.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?zEe:PVt,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return h.isCommunityResource()&&(0,kVt.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,IVt.fetchJson)(c,u,o||zEe)];case 1:return l=f.sent(),this.emit("debug",{action:"response",request:i,response:(0,TY.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return IM(this,void 0,void 0,function(){return kM(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return IM(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,h,f,m,y,E;return kM(this,function(I){switch(I.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(S){return EY("sendTransaction",S,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=jEe(n.transaction),s.module="proxy",s.action="eth_call",I.label=12;case 12:return I.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,I.sent()];case 14:return i=I.sent(),[2,EY("call",i,n.transaction)];case 15:s=jEe(n.transaction),s.module="proxy",s.action="eth_estimateGas",I.label=16;case 16:return I.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,I.sent()];case 18:return o=I.sent(),[2,EY("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=KEe(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=KEe(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&Qy.throwError("unsupported topic count",jf.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&Qy.throwError("unsupported topic format",jf.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=I.sent(),h={},f=0,I.label=21;case 21:return f{"use strict";d();p();var MVt=Vf&&Vf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),RM=Vf&&Vf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},$C=Vf&&Vf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function I5(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(BVt.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return I5(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=I5(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var FVt=1;function JEe(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var WVt=[Zy.Logger.errors.CALL_EXCEPTION,Zy.Logger.errors.INSUFFICIENT_FUNDS,Zy.Logger.errors.NONCE_EXPIRED,Zy.Logger.errors.REPLACEMENT_UNDERPRICED,Zy.Logger.errors.UNPREDICTABLE_GAS_LIMIT],UVt=["address","args","errorArgs","errorSignature","method","transaction"];function PM(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function HVt(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function jVt(r,e,t){var n=I5;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=YEe(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return YEe(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.confirmations=-1,I5(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,Kf.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,Kf.shallowCopy)(i),i.confirmations=-1,i}),I5(a))}:n=function(a){return a==null?null:I5(a)};break;default:throw new Error("unknown method: "+e)}return HVt(n,r.quorum)}function GC(r,e){return RM(this,void 0,void 0,function(){var t;return $C(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,OVt.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function zVt(r,e,t,n){return RM(this,void 0,void 0,function(){var a,i,s;return $C(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,C5.isHexString)(n.blockTag)?[4,GC(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,C5.isHexString)(n.blockTag)?[4,GC(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,C5.isHexString)(n.blockTag)?[4,GC(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,C5.isHexString)(n.blockTag)?[4,GC(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,C5.isHexString)(s.fromBlock)||s.toBlock&&(0,C5.isHexString)(s.toBlock)?[4,GC(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,Ub.throwError("unknown method error",Zy.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var KVt=function(r){MVt(e,r);function e(t,n){var a=this;t.length===0&&Ub.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(NVt.Provider.isProvider(c)){var l=(0,GEe.isCommunityResource)(c)?2e3:750,h=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:h})}var f=(0,Kf.shallowCopy)(c);f.priority==null&&(f.priority=1),f.stallTimeout==null&&(f.stallTimeout=(0,GEe.isCommunityResource)(c)?2e3:750),f.weight==null&&(f.weight=1);var m=f.weight;return(m%1||m>512||m<1)&&Ub.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(f)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&Ub.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=$Ee(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,Kf.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,Kf.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return RM(this,void 0,void 0,function(){var t;return $C(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,$Ee(t)]}})})},e.prototype.perform=function(t,n){return RM(this,void 0,void 0,function(){var a,i,s,o,c,u,l,h,f,m,y,E=this;return $C(this,function(I){switch(I.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(S){return S.provider.sendTransaction(n.signedTransaction).then(function(L){return L.hash},function(L){return L})}))];case 1:for(a=I.sent(),i=0;i=m.quorum?(K=o(G),K!==void 0?(c.forEach(function(J){J.staller&&J.staller.cancel(),J.cancelled=!0}),[2,{value:K}]):h?[3,4]:[4,JEe(100).getPromise()]):[3,5];case 3:V.sent(),V.label=4;case 4:h=!1,V.label=5;case 5:return H=c.reduce(function(J,q){if(!q.done||q.error==null)return J;var T=q.error.code;return WVt.indexOf(T)>=0&&(J[T]||(J[T]={error:q.error,weight:0}),J[T].weight+=q.weight),J},{}),Object.keys(H).forEach(function(J){var q=H[J];if(!(q.weight{"use strict";d();p();Object.defineProperty(MM,"__esModule",{value:!0});MM.IpcProvider=void 0;var VVt=null;MM.IpcProvider=VVt});var rCe=_(Xy=>{"use strict";d();p();var XEe=Xy&&Xy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xy,"__esModule",{value:!0});Xy.InfuraProvider=Xy.InfuraWebSocketProvider=void 0;var CY=Aa(),GVt=_M(),$Vt=Gy(),IY=Zt(),YVt=dc(),NM=new IY.Logger(YVt.version),JVt=Yy(),YC="84842078b09946638c03157f83405213",eCe=function(r){XEe(e,r);function e(t,n){var a=this,i=new tCe(t,n),s=i.connection;s.password&&NM.throwError("INFURA WebSocket project secrets unsupported",IY.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,CY.defineReadOnly)(a,"apiKey",i.projectId),(0,CY.defineReadOnly)(a,"projectId",i.projectId),(0,CY.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===YC},e}(GVt.WebSocketProvider);Xy.InfuraWebSocketProvider=eCe;var tCe=function(r){XEe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new eCe(t,n)},e.getApiKey=function(t){var n={apiKey:YC,projectId:YC,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(NM.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),NM.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:NM.throwError("unsupported network",IY.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===YC&&(0,$Vt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===YC},e}(JVt.UrlJsonRpcProvider);Xy.InfuraProvider=tCe});var nCe=_(k5=>{"use strict";d();p();var QVt=k5&&k5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(k5,"__esModule",{value:!0});k5.JsonRpcBatchProvider=void 0;var ZVt=Aa(),XVt=Wb(),eGt=x5(),tGt=function(r){QVt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,ZVt.deepCopy)(u),provider:a}),(0,XVt.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(h,f){var m=l[f];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,h.reject(y)}else h.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(h){h.reject(l)})})},10)),o},e}(eGt.JsonRpcProvider);k5.JsonRpcBatchProvider=tGt});var aCe=_(A5=>{"use strict";d();p();var rGt=A5&&A5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(A5,"__esModule",{value:!0});A5.NodesmithProvider=void 0;var nGt=Yy(),aGt=Zt(),iGt=dc(),kY=new aGt.Logger(iGt.version),sGt="ETHERS_JS_SHARED",oGt=function(r){rGt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&kY.throwArgumentError("invalid apiKey","apiKey",t),t||sGt},e.getUrl=function(t,n){kY.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:kY.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(nGt.UrlJsonRpcProvider);A5.NodesmithProvider=oGt});var cCe=_(S5=>{"use strict";d();p();var cGt=S5&&S5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(S5,"__esModule",{value:!0});S5.PocketProvider=void 0;var oCe=Zt(),uGt=dc(),iCe=new oCe.Logger(uGt.version),lGt=Yy(),sCe="62e1ad51b37b8e00394bda3b",dGt=function(r){cGt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=sCe:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:iCe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:iCe.throwError("unsupported network",oCe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===sCe},e}(lGt.UrlJsonRpcProvider);S5.PocketProvider=dGt});var dCe=_(P5=>{"use strict";d();p();var pGt=P5&&P5.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(P5,"__esModule",{value:!0});P5.Web3Provider=void 0;var BM=Aa(),hGt=Zt(),fGt=dc(),uCe=new hGt.Logger(fGt.version),mGt=x5(),yGt=1;function lCe(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:yGt++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,BM.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var h=new Error(l.error.message);return h.code=l.error.code,h.data=l.error.data,c(h)}o(l.result)})})}}function gGt(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,BM.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var bGt=function(r){pGt(e,r);function e(t,n){var a=this;t==null&&uCe.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=gGt(t)):t.sendAsync?s=lCe(t,t.sendAsync.bind(t)):t.send?s=lCe(t,t.send.bind(t)):uCe.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,BM.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,BM.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(mGt.JsonRpcProvider);P5.Web3Provider=bGt});var PY=_(ft=>{"use strict";d();p();Object.defineProperty(ft,"__esModule",{value:!0});ft.Formatter=ft.showThrottleMessage=ft.isCommunityResourcable=ft.isCommunityResource=ft.getNetwork=ft.getDefaultProvider=ft.JsonRpcSigner=ft.IpcProvider=ft.WebSocketProvider=ft.Web3Provider=ft.StaticJsonRpcProvider=ft.PocketProvider=ft.NodesmithProvider=ft.JsonRpcBatchProvider=ft.JsonRpcProvider=ft.InfuraWebSocketProvider=ft.InfuraProvider=ft.EtherscanProvider=ft.CloudflareProvider=ft.AnkrProvider=ft.AlchemyWebSocketProvider=ft.AlchemyProvider=ft.FallbackProvider=ft.UrlJsonRpcProvider=ft.Resolver=ft.BaseProvider=ft.Provider=void 0;var vGt=f3();Object.defineProperty(ft,"Provider",{enumerable:!0,get:function(){return vGt.Provider}});var hCe=cY();Object.defineProperty(ft,"getNetwork",{enumerable:!0,get:function(){return hCe.getNetwork}});var fCe=HC();Object.defineProperty(ft,"BaseProvider",{enumerable:!0,get:function(){return fCe.BaseProvider}});Object.defineProperty(ft,"Resolver",{enumerable:!0,get:function(){return fCe.Resolver}});var AY=FEe();Object.defineProperty(ft,"AlchemyProvider",{enumerable:!0,get:function(){return AY.AlchemyProvider}});Object.defineProperty(ft,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return AY.AlchemyWebSocketProvider}});var mCe=WEe();Object.defineProperty(ft,"AnkrProvider",{enumerable:!0,get:function(){return mCe.AnkrProvider}});var yCe=HEe();Object.defineProperty(ft,"CloudflareProvider",{enumerable:!0,get:function(){return yCe.CloudflareProvider}});var gCe=VEe();Object.defineProperty(ft,"EtherscanProvider",{enumerable:!0,get:function(){return gCe.EtherscanProvider}});var bCe=QEe();Object.defineProperty(ft,"FallbackProvider",{enumerable:!0,get:function(){return bCe.FallbackProvider}});var vCe=ZEe();Object.defineProperty(ft,"IpcProvider",{enumerable:!0,get:function(){return vCe.IpcProvider}});var SY=rCe();Object.defineProperty(ft,"InfuraProvider",{enumerable:!0,get:function(){return SY.InfuraProvider}});Object.defineProperty(ft,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return SY.InfuraWebSocketProvider}});var DM=x5();Object.defineProperty(ft,"JsonRpcProvider",{enumerable:!0,get:function(){return DM.JsonRpcProvider}});Object.defineProperty(ft,"JsonRpcSigner",{enumerable:!0,get:function(){return DM.JsonRpcSigner}});var wGt=nCe();Object.defineProperty(ft,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return wGt.JsonRpcBatchProvider}});var wCe=aCe();Object.defineProperty(ft,"NodesmithProvider",{enumerable:!0,get:function(){return wCe.NodesmithProvider}});var xCe=cCe();Object.defineProperty(ft,"PocketProvider",{enumerable:!0,get:function(){return xCe.PocketProvider}});var _Ce=Yy();Object.defineProperty(ft,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return _Ce.StaticJsonRpcProvider}});Object.defineProperty(ft,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return _Ce.UrlJsonRpcProvider}});var TCe=dCe();Object.defineProperty(ft,"Web3Provider",{enumerable:!0,get:function(){return TCe.Web3Provider}});var ECe=_M();Object.defineProperty(ft,"WebSocketProvider",{enumerable:!0,get:function(){return ECe.WebSocketProvider}});var OM=Gy();Object.defineProperty(ft,"Formatter",{enumerable:!0,get:function(){return OM.Formatter}});Object.defineProperty(ft,"isCommunityResourcable",{enumerable:!0,get:function(){return OM.isCommunityResourcable}});Object.defineProperty(ft,"isCommunityResource",{enumerable:!0,get:function(){return OM.isCommunityResource}});Object.defineProperty(ft,"showThrottleMessage",{enumerable:!0,get:function(){return OM.showThrottleMessage}});var CCe=Zt(),xGt=dc(),pCe=new CCe.Logger(xGt.version);function _Gt(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new DM.JsonRpcProvider(r);case"ws":case"wss":return new ECe.WebSocketProvider(r);default:pCe.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,hCe.getNetwork)(r);return(!n||!n._defaultProvider)&&pCe.throwError("unsupported getDefaultProvider network",CCe.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:bCe.FallbackProvider,AlchemyProvider:AY.AlchemyProvider,AnkrProvider:mCe.AnkrProvider,CloudflareProvider:yCe.CloudflareProvider,EtherscanProvider:gCe.EtherscanProvider,InfuraProvider:SY.InfuraProvider,JsonRpcProvider:DM.JsonRpcProvider,NodesmithProvider:wCe.NodesmithProvider,PocketProvider:xCe.PocketProvider,Web3Provider:TCe.Web3Provider,IpcProvider:vCe.IpcProvider},e)}ft.getDefaultProvider=_Gt});var ICe=_(LM=>{"use strict";d();p();Object.defineProperty(LM,"__esModule",{value:!0});LM.version=void 0;LM.version="solidity/5.7.0"});var ACe=_(e1=>{"use strict";d();p();Object.defineProperty(e1,"__esModule",{value:!0});e1.sha256=e1.keccak256=e1.pack=void 0;var TGt=Os(),mh=wr(),EGt=jl(),CGt=Bb(),IGt=qs(),kGt=new RegExp("^bytes([0-9]+)$"),AGt=new RegExp("^(u?int)([0-9]*)$"),SGt=new RegExp("^(.*)\\[([0-9]*)\\]$"),PGt="0000000000000000000000000000000000000000000000000000000000000000",RGt=Zt(),MGt=ICe(),R5=new RGt.Logger(MGt.version);function kCe(r,e,t){switch(r){case"address":return t?(0,mh.zeroPad)(e,32):(0,mh.arrayify)(e);case"string":return(0,IGt.toUtf8Bytes)(e);case"bytes":return(0,mh.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,mh.zeroPad)(e,32):(0,mh.arrayify)(e)}var n=r.match(AGt);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&R5.throwArgumentError("invalid number type","type",r),t&&(a=256),e=TGt.BigNumber.from(e).toTwos(a),(0,mh.zeroPad)(e,a/8)}if(n=r.match(kGt),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&R5.throwArgumentError("invalid bytes type","type",r),(0,mh.arrayify)(e).byteLength!==a&&R5.throwArgumentError("invalid value for "+r,"value",e),t?(0,mh.arrayify)((e+PGt).substring(0,66)):e}if(n=r.match(SGt),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&R5.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(kCe(i,c,!0))}),(0,mh.concat)(o)}return R5.throwArgumentError("invalid type","type",r)}function RY(r,e){r.length!=e.length&&R5.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(kCe(n,e[a]))}),(0,mh.hexlify)((0,mh.concat)(t))}e1.pack=RY;function NGt(r,e){return(0,EGt.keccak256)(RY(r,e))}e1.keccak256=NGt;function BGt(r,e){return(0,CGt.sha256)(RY(r,e))}e1.sha256=BGt});var SCe=_(qM=>{"use strict";d();p();Object.defineProperty(qM,"__esModule",{value:!0});qM.version=void 0;qM.version="units/5.7.0"});var DCe=_(np=>{"use strict";d();p();Object.defineProperty(np,"__esModule",{value:!0});np.parseEther=np.formatEther=np.parseUnits=np.formatUnits=np.commify=void 0;var PCe=Os(),DGt=Zt(),OGt=SCe(),RCe=new DGt.Logger(OGt.version),MCe=["wei","kwei","mwei","gwei","szabo","finney","ether"];function LGt(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&RCe.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}np.commify=LGt;function NCe(r,e){if(typeof e=="string"){var t=MCe.indexOf(e);t!==-1&&(e=3*t)}return(0,PCe.formatFixed)(r,e??18)}np.formatUnits=NCe;function BCe(r,e){if(typeof r!="string"&&RCe.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=MCe.indexOf(e);t!==-1&&(e=3*t)}return(0,PCe.parseFixed)(r,e??18)}np.parseUnits=BCe;function qGt(r){return NCe(r,18)}np.formatEther=qGt;function FGt(r){return BCe(r,18)}np.parseEther=FGt});var Hr=_(le=>{"use strict";d();p();var WGt=le&&le.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),UGt=le&&le.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),OCe=le&&le.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&WGt(e,r,t);return UGt(e,r),e};Object.defineProperty(le,"__esModule",{value:!0});le.formatBytes32String=le.Utf8ErrorFuncs=le.toUtf8String=le.toUtf8CodePoints=le.toUtf8Bytes=le._toEscapedUtf8String=le.nameprep=le.hexDataSlice=le.hexDataLength=le.hexZeroPad=le.hexValue=le.hexStripZeros=le.hexConcat=le.isHexString=le.hexlify=le.base64=le.base58=le.TransactionDescription=le.LogDescription=le.Interface=le.SigningKey=le.HDNode=le.defaultPath=le.isBytesLike=le.isBytes=le.zeroPad=le.stripZeros=le.concat=le.arrayify=le.shallowCopy=le.resolveProperties=le.getStatic=le.defineReadOnly=le.deepCopy=le.checkProperties=le.poll=le.fetchJson=le._fetchData=le.RLP=le.Logger=le.checkResultErrors=le.FormatTypes=le.ParamType=le.FunctionFragment=le.EventFragment=le.ErrorFragment=le.ConstructorFragment=le.Fragment=le.defaultAbiCoder=le.AbiCoder=void 0;le.Indexed=le.Utf8ErrorReason=le.UnicodeNormalizationForm=le.SupportedAlgorithm=le.mnemonicToSeed=le.isValidMnemonic=le.entropyToMnemonic=le.mnemonicToEntropy=le.getAccountPath=le.verifyTypedData=le.verifyMessage=le.recoverPublicKey=le.computePublicKey=le.recoverAddress=le.computeAddress=le.getJsonWalletAddress=le.TransactionTypes=le.serializeTransaction=le.parseTransaction=le.accessListify=le.joinSignature=le.splitSignature=le.soliditySha256=le.solidityKeccak256=le.solidityPack=le.shuffled=le.randomBytes=le.sha512=le.sha256=le.ripemd160=le.keccak256=le.computeHmac=le.commify=le.parseUnits=le.formatUnits=le.parseEther=le.formatEther=le.isAddress=le.getCreate2Address=le.getContractAddress=le.getIcapAddress=le.getAddress=le._TypedDataEncoder=le.id=le.isValidName=le.namehash=le.hashMessage=le.dnsEncode=le.parseBytes32String=void 0;var pl=BK();Object.defineProperty(le,"AbiCoder",{enumerable:!0,get:function(){return pl.AbiCoder}});Object.defineProperty(le,"checkResultErrors",{enumerable:!0,get:function(){return pl.checkResultErrors}});Object.defineProperty(le,"ConstructorFragment",{enumerable:!0,get:function(){return pl.ConstructorFragment}});Object.defineProperty(le,"defaultAbiCoder",{enumerable:!0,get:function(){return pl.defaultAbiCoder}});Object.defineProperty(le,"ErrorFragment",{enumerable:!0,get:function(){return pl.ErrorFragment}});Object.defineProperty(le,"EventFragment",{enumerable:!0,get:function(){return pl.EventFragment}});Object.defineProperty(le,"FormatTypes",{enumerable:!0,get:function(){return pl.FormatTypes}});Object.defineProperty(le,"Fragment",{enumerable:!0,get:function(){return pl.Fragment}});Object.defineProperty(le,"FunctionFragment",{enumerable:!0,get:function(){return pl.FunctionFragment}});Object.defineProperty(le,"Indexed",{enumerable:!0,get:function(){return pl.Indexed}});Object.defineProperty(le,"Interface",{enumerable:!0,get:function(){return pl.Interface}});Object.defineProperty(le,"LogDescription",{enumerable:!0,get:function(){return pl.LogDescription}});Object.defineProperty(le,"ParamType",{enumerable:!0,get:function(){return pl.ParamType}});Object.defineProperty(le,"TransactionDescription",{enumerable:!0,get:function(){return pl.TransactionDescription}});var JC=Pd();Object.defineProperty(le,"getAddress",{enumerable:!0,get:function(){return JC.getAddress}});Object.defineProperty(le,"getCreate2Address",{enumerable:!0,get:function(){return JC.getCreate2Address}});Object.defineProperty(le,"getContractAddress",{enumerable:!0,get:function(){return JC.getContractAddress}});Object.defineProperty(le,"getIcapAddress",{enumerable:!0,get:function(){return JC.getIcapAddress}});Object.defineProperty(le,"isAddress",{enumerable:!0,get:function(){return JC.isAddress}});var HGt=OCe(hE());le.base64=HGt;var jGt=q9();Object.defineProperty(le,"base58",{enumerable:!0,get:function(){return jGt.Base58}});var tu=wr();Object.defineProperty(le,"arrayify",{enumerable:!0,get:function(){return tu.arrayify}});Object.defineProperty(le,"concat",{enumerable:!0,get:function(){return tu.concat}});Object.defineProperty(le,"hexConcat",{enumerable:!0,get:function(){return tu.hexConcat}});Object.defineProperty(le,"hexDataSlice",{enumerable:!0,get:function(){return tu.hexDataSlice}});Object.defineProperty(le,"hexDataLength",{enumerable:!0,get:function(){return tu.hexDataLength}});Object.defineProperty(le,"hexlify",{enumerable:!0,get:function(){return tu.hexlify}});Object.defineProperty(le,"hexStripZeros",{enumerable:!0,get:function(){return tu.hexStripZeros}});Object.defineProperty(le,"hexValue",{enumerable:!0,get:function(){return tu.hexValue}});Object.defineProperty(le,"hexZeroPad",{enumerable:!0,get:function(){return tu.hexZeroPad}});Object.defineProperty(le,"isBytes",{enumerable:!0,get:function(){return tu.isBytes}});Object.defineProperty(le,"isBytesLike",{enumerable:!0,get:function(){return tu.isBytesLike}});Object.defineProperty(le,"isHexString",{enumerable:!0,get:function(){return tu.isHexString}});Object.defineProperty(le,"joinSignature",{enumerable:!0,get:function(){return tu.joinSignature}});Object.defineProperty(le,"zeroPad",{enumerable:!0,get:function(){return tu.zeroPad}});Object.defineProperty(le,"splitSignature",{enumerable:!0,get:function(){return tu.splitSignature}});Object.defineProperty(le,"stripZeros",{enumerable:!0,get:function(){return tu.stripZeros}});var M5=Qg();Object.defineProperty(le,"_TypedDataEncoder",{enumerable:!0,get:function(){return M5._TypedDataEncoder}});Object.defineProperty(le,"dnsEncode",{enumerable:!0,get:function(){return M5.dnsEncode}});Object.defineProperty(le,"hashMessage",{enumerable:!0,get:function(){return M5.hashMessage}});Object.defineProperty(le,"id",{enumerable:!0,get:function(){return M5.id}});Object.defineProperty(le,"isValidName",{enumerable:!0,get:function(){return M5.isValidName}});Object.defineProperty(le,"namehash",{enumerable:!0,get:function(){return M5.namehash}});var Hb=X9();Object.defineProperty(le,"defaultPath",{enumerable:!0,get:function(){return Hb.defaultPath}});Object.defineProperty(le,"entropyToMnemonic",{enumerable:!0,get:function(){return Hb.entropyToMnemonic}});Object.defineProperty(le,"getAccountPath",{enumerable:!0,get:function(){return Hb.getAccountPath}});Object.defineProperty(le,"HDNode",{enumerable:!0,get:function(){return Hb.HDNode}});Object.defineProperty(le,"isValidMnemonic",{enumerable:!0,get:function(){return Hb.isValidMnemonic}});Object.defineProperty(le,"mnemonicToEntropy",{enumerable:!0,get:function(){return Hb.mnemonicToEntropy}});Object.defineProperty(le,"mnemonicToSeed",{enumerable:!0,get:function(){return Hb.mnemonicToSeed}});var zGt=aY();Object.defineProperty(le,"getJsonWalletAddress",{enumerable:!0,get:function(){return zGt.getJsonWalletAddress}});var KGt=jl();Object.defineProperty(le,"keccak256",{enumerable:!0,get:function(){return KGt.keccak256}});var VGt=Zt();Object.defineProperty(le,"Logger",{enumerable:!0,get:function(){return VGt.Logger}});var FM=Bb();Object.defineProperty(le,"computeHmac",{enumerable:!0,get:function(){return FM.computeHmac}});Object.defineProperty(le,"ripemd160",{enumerable:!0,get:function(){return FM.ripemd160}});Object.defineProperty(le,"sha256",{enumerable:!0,get:function(){return FM.sha256}});Object.defineProperty(le,"sha512",{enumerable:!0,get:function(){return FM.sha512}});var MY=ACe();Object.defineProperty(le,"solidityKeccak256",{enumerable:!0,get:function(){return MY.keccak256}});Object.defineProperty(le,"solidityPack",{enumerable:!0,get:function(){return MY.pack}});Object.defineProperty(le,"soliditySha256",{enumerable:!0,get:function(){return MY.sha256}});var LCe=MC();Object.defineProperty(le,"randomBytes",{enumerable:!0,get:function(){return LCe.randomBytes}});Object.defineProperty(le,"shuffled",{enumerable:!0,get:function(){return LCe.shuffled}});var N5=Aa();Object.defineProperty(le,"checkProperties",{enumerable:!0,get:function(){return N5.checkProperties}});Object.defineProperty(le,"deepCopy",{enumerable:!0,get:function(){return N5.deepCopy}});Object.defineProperty(le,"defineReadOnly",{enumerable:!0,get:function(){return N5.defineReadOnly}});Object.defineProperty(le,"getStatic",{enumerable:!0,get:function(){return N5.getStatic}});Object.defineProperty(le,"resolveProperties",{enumerable:!0,get:function(){return N5.resolveProperties}});Object.defineProperty(le,"shallowCopy",{enumerable:!0,get:function(){return N5.shallowCopy}});var GGt=OCe(u7());le.RLP=GGt;var NY=yC();Object.defineProperty(le,"computePublicKey",{enumerable:!0,get:function(){return NY.computePublicKey}});Object.defineProperty(le,"recoverPublicKey",{enumerable:!0,get:function(){return NY.recoverPublicKey}});Object.defineProperty(le,"SigningKey",{enumerable:!0,get:function(){return NY.SigningKey}});var t1=qs();Object.defineProperty(le,"formatBytes32String",{enumerable:!0,get:function(){return t1.formatBytes32String}});Object.defineProperty(le,"nameprep",{enumerable:!0,get:function(){return t1.nameprep}});Object.defineProperty(le,"parseBytes32String",{enumerable:!0,get:function(){return t1.parseBytes32String}});Object.defineProperty(le,"_toEscapedUtf8String",{enumerable:!0,get:function(){return t1._toEscapedUtf8String}});Object.defineProperty(le,"toUtf8Bytes",{enumerable:!0,get:function(){return t1.toUtf8Bytes}});Object.defineProperty(le,"toUtf8CodePoints",{enumerable:!0,get:function(){return t1.toUtf8CodePoints}});Object.defineProperty(le,"toUtf8String",{enumerable:!0,get:function(){return t1.toUtf8String}});Object.defineProperty(le,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return t1.Utf8ErrorFuncs}});var B5=s0();Object.defineProperty(le,"accessListify",{enumerable:!0,get:function(){return B5.accessListify}});Object.defineProperty(le,"computeAddress",{enumerable:!0,get:function(){return B5.computeAddress}});Object.defineProperty(le,"parseTransaction",{enumerable:!0,get:function(){return B5.parse}});Object.defineProperty(le,"recoverAddress",{enumerable:!0,get:function(){return B5.recoverAddress}});Object.defineProperty(le,"serializeTransaction",{enumerable:!0,get:function(){return B5.serialize}});Object.defineProperty(le,"TransactionTypes",{enumerable:!0,get:function(){return B5.TransactionTypes}});var QC=DCe();Object.defineProperty(le,"commify",{enumerable:!0,get:function(){return QC.commify}});Object.defineProperty(le,"formatEther",{enumerable:!0,get:function(){return QC.formatEther}});Object.defineProperty(le,"parseEther",{enumerable:!0,get:function(){return QC.parseEther}});Object.defineProperty(le,"formatUnits",{enumerable:!0,get:function(){return QC.formatUnits}});Object.defineProperty(le,"parseUnits",{enumerable:!0,get:function(){return QC.parseUnits}});var qCe=oY();Object.defineProperty(le,"verifyMessage",{enumerable:!0,get:function(){return qCe.verifyMessage}});Object.defineProperty(le,"verifyTypedData",{enumerable:!0,get:function(){return qCe.verifyTypedData}});var BY=Wb();Object.defineProperty(le,"_fetchData",{enumerable:!0,get:function(){return BY._fetchData}});Object.defineProperty(le,"fetchJson",{enumerable:!0,get:function(){return BY.fetchJson}});Object.defineProperty(le,"poll",{enumerable:!0,get:function(){return BY.poll}});var $Gt=Bb();Object.defineProperty(le,"SupportedAlgorithm",{enumerable:!0,get:function(){return $Gt.SupportedAlgorithm}});var FCe=qs();Object.defineProperty(le,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return FCe.UnicodeNormalizationForm}});Object.defineProperty(le,"Utf8ErrorReason",{enumerable:!0,get:function(){return FCe.Utf8ErrorReason}})});var WCe=_(WM=>{"use strict";d();p();Object.defineProperty(WM,"__esModule",{value:!0});WM.version=void 0;WM.version="ethers/5.7.2"});var LY=_(br=>{"use strict";d();p();var YGt=br&&br.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),JGt=br&&br.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),DY=br&&br.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&YGt(e,r,t);return JGt(e,r),e};Object.defineProperty(br,"__esModule",{value:!0});br.Wordlist=br.version=br.wordlists=br.utils=br.logger=br.errors=br.constants=br.FixedNumber=br.BigNumber=br.ContractFactory=br.Contract=br.BaseContract=br.providers=br.getDefaultProvider=br.VoidSigner=br.Wallet=br.Signer=void 0;var OY=bTe();Object.defineProperty(br,"BaseContract",{enumerable:!0,get:function(){return OY.BaseContract}});Object.defineProperty(br,"Contract",{enumerable:!0,get:function(){return OY.Contract}});Object.defineProperty(br,"ContractFactory",{enumerable:!0,get:function(){return OY.ContractFactory}});var UCe=Os();Object.defineProperty(br,"BigNumber",{enumerable:!0,get:function(){return UCe.BigNumber}});Object.defineProperty(br,"FixedNumber",{enumerable:!0,get:function(){return UCe.FixedNumber}});var HCe=yE();Object.defineProperty(br,"Signer",{enumerable:!0,get:function(){return HCe.Signer}});Object.defineProperty(br,"VoidSigner",{enumerable:!0,get:function(){return HCe.VoidSigner}});var QGt=oY();Object.defineProperty(br,"Wallet",{enumerable:!0,get:function(){return QGt.Wallet}});var ZGt=DY(Vg());br.constants=ZGt;var XGt=DY(PY());br.providers=XGt;var e$t=PY();Object.defineProperty(br,"getDefaultProvider",{enumerable:!0,get:function(){return e$t.getDefaultProvider}});var jCe=K$();Object.defineProperty(br,"Wordlist",{enumerable:!0,get:function(){return jCe.Wordlist}});Object.defineProperty(br,"wordlists",{enumerable:!0,get:function(){return jCe.wordlists}});var t$t=DY(Hr());br.utils=t$t;var zCe=Zt();Object.defineProperty(br,"errors",{enumerable:!0,get:function(){return zCe.ErrorCode}});var KCe=WCe();Object.defineProperty(br,"version",{enumerable:!0,get:function(){return KCe.version}});var r$t=new zCe.Logger(KCe.version);br.logger=r$t});var Ge=_(mr=>{"use strict";d();p();var n$t=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),a$t=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),i$t=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&n$t(e,r,t);return a$t(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.Wordlist=mr.version=mr.wordlists=mr.utils=mr.logger=mr.errors=mr.constants=mr.FixedNumber=mr.BigNumber=mr.ContractFactory=mr.Contract=mr.BaseContract=mr.providers=mr.getDefaultProvider=mr.VoidSigner=mr.Wallet=mr.Signer=mr.ethers=void 0;var VCe=i$t(LY());mr.ethers=VCe;try{qY=window,qY._ethers==null&&(qY._ethers=VCe)}catch{}var qY,pc=LY();Object.defineProperty(mr,"Signer",{enumerable:!0,get:function(){return pc.Signer}});Object.defineProperty(mr,"Wallet",{enumerable:!0,get:function(){return pc.Wallet}});Object.defineProperty(mr,"VoidSigner",{enumerable:!0,get:function(){return pc.VoidSigner}});Object.defineProperty(mr,"getDefaultProvider",{enumerable:!0,get:function(){return pc.getDefaultProvider}});Object.defineProperty(mr,"providers",{enumerable:!0,get:function(){return pc.providers}});Object.defineProperty(mr,"BaseContract",{enumerable:!0,get:function(){return pc.BaseContract}});Object.defineProperty(mr,"Contract",{enumerable:!0,get:function(){return pc.Contract}});Object.defineProperty(mr,"ContractFactory",{enumerable:!0,get:function(){return pc.ContractFactory}});Object.defineProperty(mr,"BigNumber",{enumerable:!0,get:function(){return pc.BigNumber}});Object.defineProperty(mr,"FixedNumber",{enumerable:!0,get:function(){return pc.FixedNumber}});Object.defineProperty(mr,"constants",{enumerable:!0,get:function(){return pc.constants}});Object.defineProperty(mr,"errors",{enumerable:!0,get:function(){return pc.errors}});Object.defineProperty(mr,"logger",{enumerable:!0,get:function(){return pc.logger}});Object.defineProperty(mr,"utils",{enumerable:!0,get:function(){return pc.utils}});Object.defineProperty(mr,"wordlists",{enumerable:!0,get:function(){return pc.wordlists}});Object.defineProperty(mr,"version",{enumerable:!0,get:function(){return pc.version}});Object.defineProperty(mr,"Wordlist",{enumerable:!0,get:function(){return pc.Wordlist}})});var WY=_(FY=>{"use strict";d();p();Object.defineProperty(FY,"__esModule",{value:!0});FY.default=o$t;var UM,s$t=new Uint8Array(16);function o$t(){if(!UM&&(UM=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!UM))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return UM(s$t)}});var GCe=_(HM=>{"use strict";d();p();Object.defineProperty(HM,"__esModule",{value:!0});HM.default=void 0;var c$t=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;HM.default=c$t});var ZC=_(jM=>{"use strict";d();p();Object.defineProperty(jM,"__esModule",{value:!0});jM.default=void 0;var u$t=l$t(GCe());function l$t(r){return r&&r.__esModule?r:{default:r}}function d$t(r){return typeof r=="string"&&u$t.default.test(r)}var p$t=d$t;jM.default=p$t});var e4=_(XC=>{"use strict";d();p();Object.defineProperty(XC,"__esModule",{value:!0});XC.default=void 0;XC.unsafeStringify=$Ce;var h$t=f$t(ZC());function f$t(r){return r&&r.__esModule?r:{default:r}}var hc=[];for(let r=0;r<256;++r)hc.push((r+256).toString(16).slice(1));function $Ce(r,e=0){return(hc[r[e+0]]+hc[r[e+1]]+hc[r[e+2]]+hc[r[e+3]]+"-"+hc[r[e+4]]+hc[r[e+5]]+"-"+hc[r[e+6]]+hc[r[e+7]]+"-"+hc[r[e+8]]+hc[r[e+9]]+"-"+hc[r[e+10]]+hc[r[e+11]]+hc[r[e+12]]+hc[r[e+13]]+hc[r[e+14]]+hc[r[e+15]]).toLowerCase()}function m$t(r,e=0){let t=$Ce(r,e);if(!(0,h$t.default)(t))throw TypeError("Stringified UUID is invalid");return t}var y$t=m$t;XC.default=y$t});var JCe=_(zM=>{"use strict";d();p();Object.defineProperty(zM,"__esModule",{value:!0});zM.default=void 0;var g$t=v$t(WY()),b$t=e4();function v$t(r){return r&&r.__esModule?r:{default:r}}var YCe,UY,HY=0,jY=0;function w$t(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||YCe,s=r.clockseq!==void 0?r.clockseq:UY;if(i==null||s==null){let f=r.random||(r.rng||g$t.default)();i==null&&(i=YCe=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),s==null&&(s=UY=(f[6]<<8|f[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:jY+1,u=o-HY+(c-jY)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>HY)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");HY=o,jY=c,UY=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let h=o/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let f=0;f<6;++f)a[n+f]=i[f];return e||(0,b$t.unsafeStringify)(a)}var x$t=w$t;zM.default=x$t});var zY=_(KM=>{"use strict";d();p();Object.defineProperty(KM,"__esModule",{value:!0});KM.default=void 0;var _$t=T$t(ZC());function T$t(r){return r&&r.__esModule?r:{default:r}}function E$t(r){if(!(0,_$t.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var C$t=E$t;KM.default=C$t});var KY=_(jb=>{"use strict";d();p();Object.defineProperty(jb,"__esModule",{value:!0});jb.URL=jb.DNS=void 0;jb.default=P$t;var I$t=e4(),k$t=A$t(zY());function A$t(r){return r&&r.__esModule?r:{default:r}}function S$t(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";d();p();Object.defineProperty(GM,"__esModule",{value:!0});GM.default=void 0;function R$t(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function XCe(r){return(r+64>>>9<<4)+14+1}function N$t(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function D$t(r,e){return r<>>32-e}function VM(r,e,t,n,a,i){return r1(D$t(r1(r1(e,r),r1(n,i)),a),t)}function ru(r,e,t,n,a,i,s){return VM(e&t|~e&n,r,e,a,i,s)}function nu(r,e,t,n,a,i,s){return VM(e&n|t&~n,r,e,a,i,s)}function au(r,e,t,n,a,i,s){return VM(e^t^n,r,e,a,i,s)}function iu(r,e,t,n,a,i,s){return VM(t^(e|~n),r,e,a,i,s)}var O$t=R$t;GM.default=O$t});var r4e=_($M=>{"use strict";d();p();Object.defineProperty($M,"__esModule",{value:!0});$M.default=void 0;var L$t=t4e(KY()),q$t=t4e(e4e());function t4e(r){return r&&r.__esModule?r:{default:r}}var F$t=(0,L$t.default)("v3",48,q$t.default),W$t=F$t;$M.default=W$t});var n4e=_(YM=>{"use strict";d();p();Object.defineProperty(YM,"__esModule",{value:!0});YM.default=void 0;var U$t=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),H$t={randomUUID:U$t};YM.default=H$t});var s4e=_(JM=>{"use strict";d();p();Object.defineProperty(JM,"__esModule",{value:!0});JM.default=void 0;var a4e=i4e(n4e()),j$t=i4e(WY()),z$t=e4();function i4e(r){return r&&r.__esModule?r:{default:r}}function K$t(r,e,t){if(a4e.default.randomUUID&&!e&&!r)return a4e.default.randomUUID();r=r||{};let n=r.random||(r.rng||j$t.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,z$t.unsafeStringify)(n)}var V$t=K$t;JM.default=V$t});var o4e=_(QM=>{"use strict";d();p();Object.defineProperty(QM,"__esModule",{value:!0});QM.default=void 0;function G$t(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function VY(r,e){return r<>>32-e}function $$t(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;f=h,h=l,l=VY(u,30)>>>0,u=c,c=E}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var Y$t=$$t;QM.default=Y$t});var u4e=_(ZM=>{"use strict";d();p();Object.defineProperty(ZM,"__esModule",{value:!0});ZM.default=void 0;var J$t=c4e(KY()),Q$t=c4e(o4e());function c4e(r){return r&&r.__esModule?r:{default:r}}var Z$t=(0,J$t.default)("v5",80,Q$t.default),X$t=Z$t;ZM.default=X$t});var l4e=_(XM=>{"use strict";d();p();Object.defineProperty(XM,"__esModule",{value:!0});XM.default=void 0;var eYt="00000000-0000-0000-0000-000000000000";XM.default=eYt});var d4e=_(eN=>{"use strict";d();p();Object.defineProperty(eN,"__esModule",{value:!0});eN.default=void 0;var tYt=rYt(ZC());function rYt(r){return r&&r.__esModule?r:{default:r}}function nYt(r){if(!(0,tYt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var aYt=nYt;eN.default=aYt});var Fr=_(yh=>{"use strict";d();p();Object.defineProperty(yh,"__esModule",{value:!0});Object.defineProperty(yh,"NIL",{enumerable:!0,get:function(){return uYt.default}});Object.defineProperty(yh,"parse",{enumerable:!0,get:function(){return hYt.default}});Object.defineProperty(yh,"stringify",{enumerable:!0,get:function(){return pYt.default}});Object.defineProperty(yh,"v1",{enumerable:!0,get:function(){return iYt.default}});Object.defineProperty(yh,"v3",{enumerable:!0,get:function(){return sYt.default}});Object.defineProperty(yh,"v4",{enumerable:!0,get:function(){return oYt.default}});Object.defineProperty(yh,"v5",{enumerable:!0,get:function(){return cYt.default}});Object.defineProperty(yh,"validate",{enumerable:!0,get:function(){return dYt.default}});Object.defineProperty(yh,"version",{enumerable:!0,get:function(){return lYt.default}});var iYt=p0(JCe()),sYt=p0(r4e()),oYt=p0(s4e()),cYt=p0(u4e()),uYt=p0(l4e()),lYt=p0(d4e()),dYt=p0(ZC()),pYt=p0(e4()),hYt=p0(zY());function p0(r){return r&&r.__esModule?r:{default:r}}});var t4=_(Ha=>{"use strict";d();p();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getParsedType=Ha.ZodParsedType=Ha.objectUtil=Ha.util=void 0;var p4e;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(p4e=Ha.util||(Ha.util={}));var fYt;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(fYt=Ha.objectUtil||(Ha.objectUtil={}));Ha.ZodParsedType=p4e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var mYt=r=>{switch(typeof r){case"undefined":return Ha.ZodParsedType.undefined;case"string":return Ha.ZodParsedType.string;case"number":return isNaN(r)?Ha.ZodParsedType.nan:Ha.ZodParsedType.number;case"boolean":return Ha.ZodParsedType.boolean;case"function":return Ha.ZodParsedType.function;case"bigint":return Ha.ZodParsedType.bigint;case"symbol":return Ha.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ha.ZodParsedType.array:r===null?Ha.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ha.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ha.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ha.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ha.ZodParsedType.date:Ha.ZodParsedType.object;default:return Ha.ZodParsedType.unknown}};Ha.getParsedType=mYt});var tN=_(n1=>{"use strict";d();p();Object.defineProperty(n1,"__esModule",{value:!0});n1.ZodError=n1.quotelessJson=n1.ZodIssueCode=void 0;var h4e=t4();n1.ZodIssueCode=h4e.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var yYt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");n1.quotelessJson=yYt;var r4=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};n1.ZodError=r4;r4.create=r=>new r4(r)});var $Y=_(GY=>{"use strict";d();p();Object.defineProperty(GY,"__esModule",{value:!0});var zb=t4(),su=tN(),gYt=(r,e)=>{let t;switch(r.code){case su.ZodIssueCode.invalid_type:r.received===zb.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case su.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,zb.util.jsonStringifyReplacer)}`;break;case su.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${zb.util.joinValues(r.keys,", ")}`;break;case su.ZodIssueCode.invalid_union:t="Invalid input";break;case su.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${zb.util.joinValues(r.options)}`;break;case su.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${zb.util.joinValues(r.options)}, received '${r.received}'`;break;case su.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case su.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case su.ZodIssueCode.invalid_date:t="Invalid date";break;case su.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:zb.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case su.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case su.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case su.ZodIssueCode.custom:t="Invalid input";break;case su.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case su.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case su.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,zb.util.assertNever(r)}return{message:t}};GY.default=gYt});var rN=_(Gf=>{"use strict";d();p();var bYt=Gf&&Gf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getErrorMap=Gf.setErrorMap=Gf.defaultErrorMap=void 0;var f4e=bYt($Y());Gf.defaultErrorMap=f4e.default;var m4e=f4e.default;function vYt(r){m4e=r}Gf.setErrorMap=vYt;function wYt(){return m4e}Gf.getErrorMap=wYt});var YY=_(Pa=>{"use strict";d();p();var xYt=Pa&&Pa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.isAsync=Pa.isValid=Pa.isDirty=Pa.isAborted=Pa.OK=Pa.DIRTY=Pa.INVALID=Pa.ParseStatus=Pa.addIssueToContext=Pa.EMPTY_PATH=Pa.makeIssue=void 0;var _Yt=rN(),TYt=xYt($Y()),EYt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};Pa.makeIssue=EYt;Pa.EMPTY_PATH=[];function CYt(r,e){let t=(0,Pa.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,_Yt.getErrorMap)(),TYt.default].filter(n=>!!n)});r.common.issues.push(t)}Pa.addIssueToContext=CYt;var n4=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return Pa.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return n4.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return Pa.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};Pa.ParseStatus=n4;Pa.INVALID=Object.freeze({status:"aborted"});var IYt=r=>({status:"dirty",value:r});Pa.DIRTY=IYt;var kYt=r=>({status:"valid",value:r});Pa.OK=kYt;var AYt=r=>r.status==="aborted";Pa.isAborted=AYt;var SYt=r=>r.status==="dirty";Pa.isDirty=SYt;var PYt=r=>r.status==="valid";Pa.isValid=PYt;var RYt=r=>typeof Promise<"u"&&r instanceof Promise;Pa.isAsync=RYt});var g4e=_(y4e=>{"use strict";d();p();Object.defineProperty(y4e,"__esModule",{value:!0})});var b4e=_(a4=>{"use strict";d();p();Object.defineProperty(a4,"__esModule",{value:!0});a4.errorUtil=void 0;var MYt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(MYt=a4.errorUtil||(a4.errorUtil={}))});var C4e=_(fe=>{"use strict";d();p();Object.defineProperty(fe,"__esModule",{value:!0});fe.discriminatedUnion=fe.date=fe.boolean=fe.bigint=fe.array=fe.any=fe.coerce=fe.ZodFirstPartyTypeKind=fe.late=fe.ZodSchema=fe.Schema=fe.custom=fe.ZodPipeline=fe.ZodBranded=fe.BRAND=fe.ZodNaN=fe.ZodCatch=fe.ZodDefault=fe.ZodNullable=fe.ZodOptional=fe.ZodTransformer=fe.ZodEffects=fe.ZodPromise=fe.ZodNativeEnum=fe.ZodEnum=fe.ZodLiteral=fe.ZodLazy=fe.ZodFunction=fe.ZodSet=fe.ZodMap=fe.ZodRecord=fe.ZodTuple=fe.ZodIntersection=fe.ZodDiscriminatedUnion=fe.ZodUnion=fe.ZodObject=fe.ZodArray=fe.ZodVoid=fe.ZodNever=fe.ZodUnknown=fe.ZodAny=fe.ZodNull=fe.ZodUndefined=fe.ZodSymbol=fe.ZodDate=fe.ZodBoolean=fe.ZodBigInt=fe.ZodNumber=fe.ZodString=fe.ZodType=void 0;fe.NEVER=fe.void=fe.unknown=fe.union=fe.undefined=fe.tuple=fe.transformer=fe.symbol=fe.string=fe.strictObject=fe.set=fe.record=fe.promise=fe.preprocess=fe.pipeline=fe.ostring=fe.optional=fe.onumber=fe.oboolean=fe.object=fe.number=fe.nullable=fe.null=fe.never=fe.nativeEnum=fe.nan=fe.map=fe.literal=fe.lazy=fe.intersection=fe.instanceof=fe.function=fe.enum=fe.effect=void 0;var nN=rN(),zt=b4e(),ye=YY(),qe=t4(),Le=tN(),ap=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},v4e=(r,e)=>{if((0,ye.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Le.ZodError(r.common.issues);return this._error=t,this._error}}};function _r(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var Tr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,qe.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ye.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ye.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return v4e(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ye.isAsync)(a)?a:Promise.resolve(a));return v4e(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:Le.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new Zl({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return gh.create(this,this._def)}nullable(){return y0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ql.create(this,this._def)}promise(){return s1.create(this,this._def)}or(e){return $b.create([this,e],this._def)}and(e){return Yb.create(this,e,this._def)}transform(e){return new Zl({..._r(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new ev({..._r(this._def),innerType:this,defaultValue:t,typeName:sr.ZodDefault})}brand(){return new iN({typeName:sr.ZodBranded,type:this,..._r(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new W5({..._r(this._def),innerType:this,catchValue:t,typeName:sr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return tv.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};fe.ZodType=Tr;fe.Schema=Tr;fe.ZodSchema=Tr;var NYt=/^c[^\s-]{8,}$/i,BYt=/^[a-z][a-z0-9]*$/,DYt=/[0-9A-HJKMNP-TV-Z]{26}/,OYt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,LYt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,qYt=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,FYt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,WYt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,UYt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function HYt(r,e){return!!((e==="v4"||!e)&&FYt.test(r)||(e==="v6"||!e)&&WYt.test(r))}var Jl=class extends Tr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Le.ZodIssueCode.invalid_string,...zt.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,zt.errorUtil.errToObj(e)),this.trim=()=>new Jl({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Jl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Jl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qe.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.string,received:i.parsedType}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...zt.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...zt.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...zt.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...zt.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...zt.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...zt.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...zt.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...zt.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Jl({checks:[],typeName:sr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};function jYt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var $f=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qe.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.number,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="int"?qe.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?jYt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_finite,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new $f({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new $f({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:zt.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:zt.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:zt.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:zt.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&qe.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew $f({checks:[],typeName:sr.ZodNumber,coerce:r?.coerce||!1,..._r(r)});var Yf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==qe.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.bigint,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Yf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Yf({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Yf({checks:[],typeName:sr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,..._r(r)})};var Kb=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==qe.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.boolean,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodBoolean=Kb;Kb.create=r=>new Kb({typeName:sr.ZodBoolean,coerce:r?.coerce||!1,..._r(r)});var f0=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qe.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.date,received:i.parsedType}),ye.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_date}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):qe.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new f0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:zt.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:zt.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew f0({checks:[],coerce:r?.coerce||!1,typeName:sr.ZodDate,..._r(r)});var O5=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.symbol,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodSymbol=O5;O5.create=r=>new O5({typeName:sr.ZodSymbol,..._r(r)});var Vb=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.undefined,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodUndefined=Vb;Vb.create=r=>new Vb({typeName:sr.ZodUndefined,..._r(r)});var Gb=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.null,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodNull=Gb;Gb.create=r=>new Gb({typeName:sr.ZodNull,..._r(r)});var i1=class extends Tr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodAny=i1;i1.create=r=>new i1({typeName:sr.ZodAny,..._r(r)});var h0=class extends Tr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodUnknown=h0;h0.create=r=>new h0({typeName:sr.ZodUnknown,..._r(r)});var bh=class extends Tr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.never,received:t.parsedType}),ye.INVALID}};fe.ZodNever=bh;bh.create=r=>new bh({typeName:sr.ZodNever,..._r(r)});var L5=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.void,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodVoid=L5;L5.create=r=>new L5({typeName:sr.ZodVoid,..._r(r)});var Ql=class extends Tr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:t.parsedType}),ye.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new ap(t,s,t.path,o)))).then(s=>ye.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new ap(t,s,t.path,o)));return ye.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Ql({...this._def,minLength:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new Ql({...this._def,maxLength:{value:e,message:zt.errorUtil.toString(t)}})}length(e,t){return new Ql({...this._def,exactLength:{value:e,message:zt.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};fe.ZodArray=Ql;Ql.create=(r,e)=>new Ql({type:r,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,..._r(e)});function D5(r){if(r instanceof li){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=gh.create(D5(n))}return new li({...r._def,shape:()=>e})}else return r instanceof Ql?new Ql({...r._def,type:D5(r.element)}):r instanceof gh?gh.create(D5(r.unwrap())):r instanceof y0?y0.create(D5(r.unwrap())):r instanceof ip?ip.create(r.items.map(e=>D5(e))):r}var li=class extends Tr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=qe.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==qe.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(u,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:u.parsedType}),ye.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof bh&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new ap(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof bh){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let h=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new ap(a,h,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let h=await l.key;u.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>ye.ParseStatus.mergeObjectSync(n,u)):ye.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return zt.errorUtil.errToObj,new li({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=zt.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new li({...this._def,unknownKeys:"strip"})}passthrough(){return new li({...this._def,unknownKeys:"passthrough"})}extend(e){return new li({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new li({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:sr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new li({...this._def,catchall:e})}pick(e){let t={};return qe.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new li({...this._def,shape:()=>t})}omit(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new li({...this._def,shape:()=>t})}deepPartial(){return D5(this)}partial(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new li({...this._def,shape:()=>t})}required(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof gh;)i=i._def.innerType;t[n]=i}}),new li({...this._def,shape:()=>t})}keyof(){return w4e(qe.util.objectKeys(this.shape))}};fe.ZodObject=li;li.create=(r,e)=>new li({shape:()=>r,unknownKeys:"strip",catchall:bh.create(),typeName:sr.ZodObject,..._r(e)});li.strictCreate=(r,e)=>new li({shape:()=>r,unknownKeys:"strict",catchall:bh.create(),typeName:sr.ZodObject,..._r(e)});li.lazycreate=(r,e)=>new li({shape:r,unknownKeys:"strip",catchall:bh.create(),typeName:sr.ZodObject,..._r(e)});var $b=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new Le.ZodError(o.ctx.common.issues));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:s}),ye.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new Le.ZodError(c));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:o}),ye.INVALID}}get options(){return this._def.options}};fe.ZodUnion=$b;$b.create=(r,e)=>new $b({options:r,typeName:sr.ZodUnion,..._r(e)});var aN=r=>r instanceof Qb?aN(r.schema):r instanceof Zl?aN(r.innerType()):r instanceof Zb?[r.value]:r instanceof Jf?r.options:r instanceof Xb?Object.keys(r.enum):r instanceof ev?aN(r._def.innerType):r instanceof Vb?[void 0]:r instanceof Gb?[null]:null,q5=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:t.parsedType}),ye.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ye.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=aN(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new q5({typeName:sr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,..._r(n)})}};fe.ZodDiscriminatedUnion=q5;function JY(r,e){let t=(0,qe.getParsedType)(r),n=(0,qe.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===qe.ZodParsedType.object&&n===qe.ZodParsedType.object){let a=qe.util.objectKeys(e),i=qe.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=JY(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===qe.ZodParsedType.array&&n===qe.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ye.isAborted)(i)||(0,ye.isAborted)(s))return ye.INVALID;let o=JY(i.value,s.value);return o.valid?(((0,ye.isDirty)(i)||(0,ye.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_intersection_types}),ye.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fe.ZodIntersection=Yb;Yb.create=(r,e,t)=>new Yb({left:r,right:e,typeName:sr.ZodIntersection,..._r(t)});var ip=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:n.parsedType}),ye.INVALID;if(n.data.lengththis._def.items.length&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new ap(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ye.ParseStatus.mergeArray(t,s)):ye.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new ip({...this._def,rest:e})}};fe.ZodTuple=ip;ip.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ip({items:r,typeName:sr.ZodTuple,rest:null,..._r(e)})};var Jb=class extends Tr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:n.parsedType}),ye.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new ap(n,o,n.path,o)),value:s._parse(new ap(n,n.data[o],n.path,o))});return n.common.async?ye.ParseStatus.mergeObjectAsync(t,a):ye.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof Tr?new Jb({keyType:e,valueType:t,typeName:sr.ZodRecord,..._r(n)}):new Jb({keyType:Jl.create(),valueType:e,typeName:sr.ZodRecord,..._r(t)})}};fe.ZodRecord=Jb;var F5=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.map)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.map,received:n.parsedType}),ye.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new ap(n,o,n.path,[u,"key"])),value:i._parse(new ap(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};fe.ZodMap=F5;F5.create=(r,e,t)=>new F5({valueType:e,keyType:r,typeName:sr.ZodMap,..._r(t)});var m0=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.set)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.set,received:n.parsedType}),ye.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ye.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new ap(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new m0({...this._def,minSize:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new m0({...this._def,maxSize:{value:e,message:zt.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};fe.ZodSet=m0;m0.create=(r,e)=>new m0({valueType:r,minSize:null,maxSize:null,typeName:sr.ZodSet,..._r(e)});var a1=class extends Tr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.function)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.function,received:t.parsedType}),ye.INVALID;function n(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,nN.getErrorMap)(),nN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,nN.getErrorMap)(),nN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof s1?(0,ye.OK)(async(...o)=>{let c=new Le.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(f=>{throw c.addIssue(n(o,f)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(f=>{throw c.addIssue(a(l,f)),c})}):(0,ye.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new Le.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new Le.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new a1({...this._def,args:ip.create(e).rest(h0.create())})}returns(e){return new a1({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new a1({args:e||ip.create([]).rest(h0.create()),returns:t||h0.create(),typeName:sr.ZodFunction,..._r(n)})}};fe.ZodFunction=a1;var Qb=class extends Tr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};fe.ZodLazy=Qb;Qb.create=(r,e)=>new Qb({getter:r,typeName:sr.ZodLazy,..._r(e)});var Zb=class extends Tr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_literal,expected:this._def.value}),ye.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};fe.ZodLiteral=Zb;Zb.create=(r,e)=>new Zb({value:r,typeName:sr.ZodLiteral,..._r(e)});function w4e(r,e){return new Jf({values:r,typeName:sr.ZodEnum,..._r(e)})}var Jf=class extends Tr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{expected:qe.util.joinValues(n),received:t.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_enum_value,options:n}),ye.INVALID}return(0,ye.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return Jf.create(e)}exclude(e){return Jf.create(this.options.filter(t=>!e.includes(t)))}};fe.ZodEnum=Jf;Jf.create=w4e;var Xb=class extends Tr{_parse(e){let t=qe.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qe.ZodParsedType.string&&n.parsedType!==qe.ZodParsedType.number){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{expected:qe.util.joinValues(a),received:n.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(t.indexOf(e.data)===-1){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{received:n.data,code:Le.ZodIssueCode.invalid_enum_value,options:a}),ye.INVALID}return(0,ye.OK)(e.data)}get enum(){return this._def.values}};fe.ZodNativeEnum=Xb;Xb.create=(r,e)=>new Xb({values:r,typeName:sr.ZodNativeEnum,..._r(e)});var s1=class extends Tr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.promise&&t.common.async===!1)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.promise,received:t.parsedType}),ye.INVALID;let n=t.parsedType===qe.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ye.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};fe.ZodPromise=s1;s1.create=(r,e)=>new s1({type:r,typeName:sr.ZodPromise,..._r(e)});var Zl=class extends Tr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ye.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ye.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ye.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);qe.util.assertNever(a)}};fe.ZodEffects=Zl;fe.ZodTransformer=Zl;Zl.create=(r,e,t)=>new Zl({schema:r,typeName:sr.ZodEffects,effect:e,..._r(t)});Zl.createWithPreprocess=(r,e,t)=>new Zl({schema:e,effect:{type:"preprocess",transform:r},typeName:sr.ZodEffects,..._r(t)});var gh=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.undefined?(0,ye.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodOptional=gh;gh.create=(r,e)=>new gh({innerType:r,typeName:sr.ZodOptional,..._r(e)});var y0=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.null?(0,ye.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodNullable=y0;y0.create=(r,e)=>new y0({innerType:r,typeName:sr.ZodNullable,..._r(e)});var ev=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===qe.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fe.ZodDefault=ev;ev.create=(r,e)=>new ev({innerType:r,typeName:sr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,..._r(e)});var W5=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,ye.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fe.ZodCatch=W5;W5.create=(r,e)=>new W5({innerType:r,typeName:sr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,..._r(e)});var U5=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.nan,received:n.parsedType}),ye.INVALID}return{status:"valid",value:e.data}}};fe.ZodNaN=U5;U5.create=r=>new U5({typeName:sr.ZodNaN,..._r(r)});fe.BRAND=Symbol("zod_brand");var iN=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};fe.ZodBranded=iN;var tv=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ye.INVALID:i.status==="dirty"?(t.dirty(),(0,ye.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ye.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new tv({in:e,out:t,typeName:sr.ZodPipeline})}};fe.ZodPipeline=tv;var zYt=(r,e={},t)=>r?i1.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):i1.create();fe.custom=zYt;fe.late={object:li.lazycreate};var sr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(sr=fe.ZodFirstPartyTypeKind||(fe.ZodFirstPartyTypeKind={}));var KYt=(r,e={message:`Input not instance of ${r.name}`})=>(0,fe.custom)(t=>t instanceof r,e);fe.instanceof=KYt;var x4e=Jl.create;fe.string=x4e;var _4e=$f.create;fe.number=_4e;var VYt=U5.create;fe.nan=VYt;var GYt=Yf.create;fe.bigint=GYt;var T4e=Kb.create;fe.boolean=T4e;var $Yt=f0.create;fe.date=$Yt;var YYt=O5.create;fe.symbol=YYt;var JYt=Vb.create;fe.undefined=JYt;var QYt=Gb.create;fe.null=QYt;var ZYt=i1.create;fe.any=ZYt;var XYt=h0.create;fe.unknown=XYt;var eJt=bh.create;fe.never=eJt;var tJt=L5.create;fe.void=tJt;var rJt=Ql.create;fe.array=rJt;var nJt=li.create;fe.object=nJt;var aJt=li.strictCreate;fe.strictObject=aJt;var iJt=$b.create;fe.union=iJt;var sJt=q5.create;fe.discriminatedUnion=sJt;var oJt=Yb.create;fe.intersection=oJt;var cJt=ip.create;fe.tuple=cJt;var uJt=Jb.create;fe.record=uJt;var lJt=F5.create;fe.map=lJt;var dJt=m0.create;fe.set=dJt;var pJt=a1.create;fe.function=pJt;var hJt=Qb.create;fe.lazy=hJt;var fJt=Zb.create;fe.literal=fJt;var mJt=Jf.create;fe.enum=mJt;var yJt=Xb.create;fe.nativeEnum=yJt;var gJt=s1.create;fe.promise=gJt;var E4e=Zl.create;fe.effect=E4e;fe.transformer=E4e;var bJt=gh.create;fe.optional=bJt;var vJt=y0.create;fe.nullable=vJt;var wJt=Zl.createWithPreprocess;fe.preprocess=wJt;var xJt=tv.create;fe.pipeline=xJt;var _Jt=()=>x4e().optional();fe.ostring=_Jt;var TJt=()=>_4e().optional();fe.onumber=TJt;var EJt=()=>T4e().optional();fe.oboolean=EJt;fe.coerce={string:r=>Jl.create({...r,coerce:!0}),number:r=>$f.create({...r,coerce:!0}),boolean:r=>Kb.create({...r,coerce:!0}),bigint:r=>Yf.create({...r,coerce:!0}),date:r=>f0.create({...r,coerce:!0})};fe.NEVER=ye.INVALID});var QY=_(sp=>{"use strict";d();p();var CJt=sp&&sp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),H5=sp&&sp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&CJt(e,r,t)};Object.defineProperty(sp,"__esModule",{value:!0});H5(rN(),sp);H5(YY(),sp);H5(g4e(),sp);H5(t4(),sp);H5(C4e(),sp);H5(tN(),sp)});var kr=_(hl=>{"use strict";d();p();var I4e=hl&&hl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),IJt=hl&&hl.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),kJt=hl&&hl.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&I4e(e,r,t);return IJt(e,r),e},AJt=hl&&hl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&I4e(e,r,t)};Object.defineProperty(hl,"__esModule",{value:!0});hl.z=void 0;var k4e=kJt(QY());hl.z=k4e;AJt(QY(),hl);hl.default=k4e});var L4e=_(Bu=>{"use strict";d();p();var A4e=Ge(),S4e=Fr(),We=kr();function SJt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function PJt(r){var e=SJt(r,"string");return typeof e=="symbol"?e:String(e)}function XY(r,e,t){return e=PJt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var RJt=We.z.string().refine(r=>A4e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),sN=We.z.date().transform(r=>A4e.BigNumber.from(Math.floor(r.getTime()/1e3))),P4e=We.z.union([We.z.literal("evm"),We.z.literal("solana")]),MJt=We.z.union([We.z.string(),We.z.number(),We.z.boolean(),We.z.null()]),oN=We.z.lazy(()=>We.z.union([MJt,We.z.array(oN),We.z.record(oN)]),{invalid_type_error:"Provided value was not valid JSON"}),R4e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),nonce:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),resources:We.z.array(We.z.string()).optional()}).optional(),cN=We.z.object({type:P4e,domain:We.z.string(),address:We.z.string(),statement:We.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:We.z.string().optional(),version:We.z.string().default("1"),chain_id:We.z.string().optional(),nonce:We.z.string().default(S4e.v4()),issued_at:We.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:We.z.date().transform(r=>r.toISOString()),invalid_before:We.z.date().default(new Date).transform(r=>r.toISOString()),resources:We.z.array(We.z.string()).optional()}),M4e=We.z.object({payload:cN,signature:We.z.string()}),N4e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),validateNonce:We.z.function().args(We.z.string()).optional(),resources:We.z.array(We.z.string()).optional()}),B4e=N4e.optional(),D4e=We.z.object({domain:We.z.string().optional(),tokenId:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),session:We.z.union([oN,We.z.function().args(We.z.string())]).optional(),verifyOptions:N4e.omit({domain:!0}).optional()}).optional(),tJ=We.z.object({iss:We.z.string(),sub:We.z.string(),aud:We.z.string(),exp:sN.transform(r=>r.toNumber()),nbf:sN.transform(r=>r.toNumber()),iat:sN.transform(r=>r.toNumber()),jti:We.z.string().default(S4e.v4()),ctx:oN.optional()}),NJt=We.z.object({payload:tJ,signature:We.z.string()}),O4e=We.z.object({domain:We.z.string().optional(),validateTokenId:We.z.function().args(We.z.string()).optional()}).optional(),BJt=M4e.extend({payload:cN.extend({issued_at:We.z.string(),expiration_time:We.z.string(),invalid_before:We.z.string()})}),ZY=()=>typeof window<"u",eJ=class{constructor(e,t){XY(this,"domain",void 0),XY(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=R4e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=cN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(ZY()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=B4e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(ZY())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=D4e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=tJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(ZY())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=O4e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)},r.register=function(e,t){if(t||(t=e.locale),tzt)try{var n=window;n._ethers&&n._ethers.wordlists&&(n._ethers.wordlists[t]||(0,g6e.defineReadOnly)(n._ethers.wordlists,t,e))}catch{}},r}();zb.Wordlist=izt});var w6e=x(_3=>{"use strict";d();p();var szt=_3&&_3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_3,"__esModule",{value:!0});_3.langCz=void 0;var dY=Lf(),ozt="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk",VC=null;function b6e(r){if(VC==null&&(VC=ozt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),dY.Wordlist.check(r)!=="0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"))throw VC=null,new Error("BIP39 Wordlist for en (English) FAILED")}var czt=function(r){szt(e,r);function e(){return r.call(this,"cz")||this}return e.prototype.getWord=function(t){return b6e(this),VC[t]},e.prototype.getWordIndex=function(t){return b6e(this),VC.indexOf(t)},e}(dY.Wordlist),v6e=new czt;_3.langCz=v6e;dY.Wordlist.register(v6e)});var T6e=x(x3=>{"use strict";d();p();var uzt=x3&&x3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x3,"__esModule",{value:!0});x3.langEn=void 0;var pY=Lf(),lzt="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo",$C=null;function _6e(r){if($C==null&&($C=lzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),pY.Wordlist.check(r)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw $C=null,new Error("BIP39 Wordlist for en (English) FAILED")}var dzt=function(r){uzt(e,r);function e(){return r.call(this,"en")||this}return e.prototype.getWord=function(t){return _6e(this),$C[t]},e.prototype.getWordIndex=function(t){return _6e(this),$C.indexOf(t)},e}(pY.Wordlist),x6e=new dzt;x3.langEn=x6e;pY.Wordlist.register(x6e)});var A6e=x(T3=>{"use strict";d();p();var pzt=T3&&T3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(T3,"__esModule",{value:!0});T3.langEs=void 0;var pM=Ws(),hM=Lf(),hzt="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo",C6e={},YC=null;function I6e(r){return hM.logger.checkNormalize(),(0,pM.toUtf8String)(Array.prototype.filter.call((0,pM.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function fzt(r){var e=[];return Array.prototype.forEach.call((0,pM.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===126?(e.push(110),e.push(204),e.push(131)):e.push(t)}),(0,pM.toUtf8String)(e)}function E6e(r){if(YC==null&&(YC=hzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return fzt(e)}),YC.forEach(function(e,t){C6e[I6e(e)]=t}),hM.Wordlist.check(r)!=="0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"))throw YC=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var mzt=function(r){pzt(e,r);function e(){return r.call(this,"es")||this}return e.prototype.getWord=function(t){return E6e(this),YC[t]},e.prototype.getWordIndex=function(t){return E6e(this),C6e[I6e(t)]},e}(hM.Wordlist),k6e=new mzt;T3.langEs=k6e;hM.Wordlist.register(k6e)});var N6e=x(E3=>{"use strict";d();p();var yzt=E3&&E3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E3,"__esModule",{value:!0});E3.langFr=void 0;var fM=Ws(),mM=Lf(),gzt="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie",JC=null,P6e={};function R6e(r){return mM.logger.checkNormalize(),(0,fM.toUtf8String)(Array.prototype.filter.call((0,fM.toUtf8Bytes)(r.normalize("NFD").toLowerCase()),function(e){return e>=65&&e<=90||e>=97&&e<=123}))}function bzt(r){var e=[];return Array.prototype.forEach.call((0,fM.toUtf8Bytes)(r),function(t){t===47?(e.push(204),e.push(129)):t===45?(e.push(204),e.push(128)):e.push(t)}),(0,fM.toUtf8String)(e)}function S6e(r){if(JC==null&&(JC=gzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map(function(e){return bzt(e)}),JC.forEach(function(e,t){P6e[R6e(e)]=t}),mM.Wordlist.check(r)!=="0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"))throw JC=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var vzt=function(r){yzt(e,r);function e(){return r.call(this,"fr")||this}return e.prototype.getWord=function(t){return S6e(this),JC[t]},e.prototype.getWordIndex=function(t){return S6e(this),P6e[R6e(t)]},e}(mM.Wordlist),M6e=new vzt;E3.langFr=M6e;mM.Wordlist.register(M6e)});var L6e=x(C3=>{"use strict";d();p();var wzt=C3&&C3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C3,"__esModule",{value:!0});C3.langJa=void 0;var _zt=wr(),ep=Ws(),yM=Lf(),xzt=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],Tzt="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt",Ql=null;function B6e(r){return(0,_zt.hexlify)((0,ep.toUtf8Bytes)(r))}var Ezt="0xe3818de38284e3818f",Czt="0xe3818de38283e3818f";function D6e(r){if(Ql!==null)return;Ql=[];var e={};e[(0,ep.toUtf8String)([227,130,154])]=!1,e[(0,ep.toUtf8String)([227,130,153])]=!1,e[(0,ep.toUtf8String)([227,130,133])]=(0,ep.toUtf8String)([227,130,134]),e[(0,ep.toUtf8String)([227,129,163])]=(0,ep.toUtf8String)([227,129,164]),e[(0,ep.toUtf8String)([227,130,131])]=(0,ep.toUtf8String)([227,130,132]),e[(0,ep.toUtf8String)([227,130,135])]=(0,ep.toUtf8String)([227,130,136]);function t(h){for(var f="",m=0;mf?1:0}for(var a=3;a<=9;a++)for(var i=xzt[a-3],s=0;s{"use strict";d();p();var kzt=I3&&I3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(I3,"__esModule",{value:!0});I3.langKo=void 0;var Azt=Ws(),hY=Lf(),Szt=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"],Pzt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";function Rzt(r){return r>=40?r=r+168-40:r>=19&&(r=r+97-19),(0,Azt.toUtf8String)([225,(r>>6)+132,(r&63)+128])}var Kb=null;function q6e(r){if(Kb==null&&(Kb=[],Szt.forEach(function(e,t){t+=4;for(var n=0;n{"use strict";d();p();var Nzt=k3&&k3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(k3,"__esModule",{value:!0});k3.langIt=void 0;var fY=Lf(),Bzt="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa",QC=null;function U6e(r){if(QC==null&&(QC=Bzt.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),fY.Wordlist.check(r)!=="0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"))throw QC=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var Dzt=function(r){Nzt(e,r);function e(){return r.call(this,"it")||this}return e.prototype.getWord=function(t){return U6e(this),QC[t]},e.prototype.getWordIndex=function(t){return U6e(this),QC.indexOf(t)},e}(fY.Wordlist),H6e=new Dzt;k3.langIt=H6e;fY.Wordlist.register(H6e)});var V6e=x(Jy=>{"use strict";d();p();var Ozt=Jy&&Jy.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jy,"__esModule",{value:!0});Jy.langZhTw=Jy.langZhCn=void 0;var Lzt=Ws(),ZC=Lf(),mY="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN?";function z6e(r){if(A3[r.locale]===null){A3[r.locale]=[];for(var e=0,t=0;t<2048;t++){var n=Wzt.indexOf(mY[t*3]),a=[228+(n>>2),128+yY.indexOf(mY[t*3+1]),128+yY.indexOf(mY[t*3+2])];if(r.locale==="zh_tw")for(var i=n%4,s=i;s<3;s++)a[s]=yY.indexOf(qzt[e++])+(s==0?228:128);A3[r.locale].push((0,Lzt.toUtf8String)(a))}if(ZC.Wordlist.check(r)!==Fzt[r.locale])throw A3[r.locale]=null,new Error("BIP39 Wordlist for "+r.locale+" (Chinese) FAILED")}}var K6e=function(r){Ozt(e,r);function e(t){return r.call(this,"zh_"+t)||this}return e.prototype.getWord=function(t){return z6e(this),A3[this.locale][t]},e.prototype.getWordIndex=function(t){return z6e(this),A3[this.locale].indexOf(t)},e.prototype.split=function(t){return t=t.replace(/(?:\u3000| )+/g,""),t.split("")},e}(ZC.Wordlist),gY=new K6e("cn");Jy.langZhCn=gY;ZC.Wordlist.register(gY);ZC.Wordlist.register(gY,"zh");var G6e=new K6e("tw");Jy.langZhTw=G6e;ZC.Wordlist.register(G6e)});var $6e=x(gM=>{"use strict";d();p();Object.defineProperty(gM,"__esModule",{value:!0});gM.wordlists=void 0;var Uzt=w6e(),Hzt=T6e(),jzt=A6e(),zzt=N6e(),Kzt=L6e(),Gzt=W6e(),Vzt=j6e(),bY=V6e();gM.wordlists={cz:Uzt.langCz,en:Hzt.langEn,es:jzt.langEs,fr:zzt.langFr,it:Vzt.langIt,ja:Kzt.langJa,ko:Gzt.langKo,zh:bY.langZhCn,zh_cn:bY.langZhCn,zh_tw:bY.langZhTw}});var vY=x(Qy=>{"use strict";d();p();Object.defineProperty(Qy,"__esModule",{value:!0});Qy.wordlists=Qy.Wordlist=Qy.logger=void 0;var Y6e=Lf();Object.defineProperty(Qy,"logger",{enumerable:!0,get:function(){return Y6e.logger}});Object.defineProperty(Qy,"Wordlist",{enumerable:!0,get:function(){return Y6e.Wordlist}});var $zt=$6e();Object.defineProperty(Qy,"wordlists",{enumerable:!0,get:function(){return $zt.wordlists}})});var J6e=x(bM=>{"use strict";d();p();Object.defineProperty(bM,"__esModule",{value:!0});bM.version=void 0;bM.version="hdnode/5.7.0"});var wM=x(ru=>{"use strict";d();p();Object.defineProperty(ru,"__esModule",{value:!0});ru.getAccountPath=ru.isValidMnemonic=ru.entropyToMnemonic=ru.mnemonicToEntropy=ru.mnemonicToSeed=ru.HDNode=ru.defaultPath=void 0;var eEe=iM(),Ua=wr(),tEe=qs(),XC=Ws(),Yzt=lM(),tu=Aa(),Q6e=FC(),qf=jb(),Jzt=p0(),Z6e=vY(),Qzt=Zt(),Zzt=J6e(),e4=new Qzt.Logger(Zzt.version),Xzt=tEe.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),eKt=(0,XC.toUtf8Bytes)("Bitcoin seed"),P3=2147483648;function rEe(r){return(1<=256)throw new Error("Depth too large!");return X6e((0,Ua.concat)([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",(0,Ua.hexlify)(this.depth),this.parentFingerprint,(0,Ua.hexZeroPad)((0,Ua.hexlify)(this.index),4),this.chainCode,this.privateKey!=null?(0,Ua.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),r.prototype.neuter=function(){return new r(S3,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},r.prototype._derive=function(e){if(e>4294967295)throw new Error("invalid index - "+String(e));var t=this.path;t&&(t+="/"+(e&~P3));var n=new Uint8Array(37);if(e&P3){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,Ua.arrayify)(this.privateKey),1),t&&(t+="'")}else n.set((0,Ua.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=e>>24-a&255;var i=(0,Ua.arrayify)((0,qf.computeHmac)(qf.SupportedAlgorithm.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32),c=null,u=null;if(this.privateKey)c=vM(tEe.BigNumber.from(s).add(this.privateKey).mod(Xzt));else{var l=new Q6e.SigningKey((0,Ua.hexlify)(s));u=l._addPoint(this.publicKey)}var h=t,f=this.mnemonic;return f&&(h=Object.freeze({phrase:f.phrase,path:t,locale:f.locale||"en"})),new r(S3,c,u,this.fingerprint,vM(o),e,this.depth+1,h)},r.prototype.derivePath=function(e){var t=e.split("/");if(t.length===0||t[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);t[0]==="m"&&t.shift();for(var n=this,a=0;a=P3)throw new Error("invalid path index - "+i);n=n._derive(P3+s)}else if(i.match(/^[0-9]+$/)){var s=parseInt(i);if(s>=P3)throw new Error("invalid path index - "+i);n=n._derive(s)}else throw new Error("invalid path component - "+i)}return n},r._fromSeed=function(e,t){var n=(0,Ua.arrayify)(e);if(n.length<16||n.length>64)throw new Error("invalid seed");var a=(0,Ua.arrayify)((0,qf.computeHmac)(qf.SupportedAlgorithm.sha512,eKt,n));return new r(S3,vM(a.slice(0,32)),null,"0x00000000",vM(a.slice(32)),0,0,t)},r.fromMnemonic=function(e,t,n){return n=wY(n),e=aEe(_Y(e,n),n),r._fromSeed(nEe(e,t),{phrase:e,path:"m",locale:n.locale})},r.fromSeed=function(e){return r._fromSeed(e,null)},r.fromExtendedKey=function(e){var t=eEe.Base58.decode(e);(t.length!==82||X6e(t.slice(0,78))!==e)&&e4.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=t[4],a=(0,Ua.hexlify)(t.slice(5,9)),i=parseInt((0,Ua.hexlify)(t.slice(9,13)).substring(2),16),s=(0,Ua.hexlify)(t.slice(13,45)),o=t.slice(45,78);switch((0,Ua.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new r(S3,null,(0,Ua.hexlify)(o),a,s,i,n,null);case"0x0488ade4":case"0x04358394 ":if(o[0]!==0)break;return new r(S3,(0,Ua.hexlify)(o.slice(1)),null,a,s,i,n,null)}return e4.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},r}();ru.HDNode=rKt;function nEe(r,e){e||(e="");var t=(0,XC.toUtf8Bytes)("mnemonic"+e,XC.UnicodeNormalizationForm.NFKD);return(0,Yzt.pbkdf2)((0,XC.toUtf8Bytes)(r,XC.UnicodeNormalizationForm.NFKD),t,2048,64,"sha512")}ru.mnemonicToSeed=nEe;function _Y(r,e){e=wY(e),e4.checkNormalize();var t=e.split(r);if(t.length%3!==0)throw new Error("invalid mnemonic");for(var n=(0,Ua.arrayify)(new Uint8Array(Math.ceil(11*t.length/8))),a=0,i=0;i>3]|=1<<7-a%8),a++}var c=32*t.length/3,u=t.length/3,l=rEe(u),h=(0,Ua.arrayify)((0,qf.sha256)(n.slice(0,c/8)))[0]&l;if(h!==(n[n.length-1]&l))throw new Error("invalid checksum");return(0,Ua.hexlify)(n.slice(0,c/8))}ru.mnemonicToEntropy=_Y;function aEe(r,e){if(e=wY(e),r=(0,Ua.arrayify)(r),r.length%4!==0||r.length<16||r.length>32)throw new Error("invalid entropy");for(var t=[0],n=11,a=0;a8?(t[t.length-1]<<=8,t[t.length-1]|=r[a],n-=8):(t[t.length-1]<<=n,t[t.length-1]|=r[a]>>8-n,t.push(r[a]&tKt(8-n)),n+=3);var i=r.length/4,s=(0,Ua.arrayify)((0,qf.sha256)(r))[0]&rEe(i);return t[t.length-1]<<=i,t[t.length-1]|=s>>8-i,e.join(t.map(function(o){return e.getWord(o)}))}ru.entropyToMnemonic=aEe;function nKt(r,e){try{return _Y(r,e),!0}catch{}return!1}ru.isValidMnemonic=nKt;function aKt(r){return(typeof r!="number"||r<0||r>=P3||r%1)&&e4.throwArgumentError("invalid account index","index",r),"m/44'/60'/"+r+"'/0/0"}ru.getAccountPath=aKt});var iEe=x(_M=>{"use strict";d();p();Object.defineProperty(_M,"__esModule",{value:!0});_M.version=void 0;_M.version="random/5.7.0"});var cEe=x(TM=>{"use strict";d();p();Object.defineProperty(TM,"__esModule",{value:!0});TM.randomBytes=void 0;var iKt=wr(),oEe=Zt(),sKt=iEe(),xY=new oEe.Logger(sKt.version);function oKt(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}var sEe=oKt(),xM=sEe.crypto||sEe.msCrypto;(!xM||!xM.getRandomValues)&&(xY.warn("WARNING: Missing strong random number source"),xM={getRandomValues:function(r){return xY.throwError("no secure random source avaialble",oEe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function cKt(r){(r<=0||r>1024||r%1||r!=r)&&xY.throwArgumentError("invalid length","length",r);var e=new Uint8Array(r);return xM.getRandomValues(e),(0,iKt.arrayify)(e)}TM.randomBytes=cKt});var uEe=x(EM=>{"use strict";d();p();Object.defineProperty(EM,"__esModule",{value:!0});EM.shuffled=void 0;function uKt(r){r=r.slice();for(var e=r.length-1;e>0;e--){var t=Math.floor(Math.random()*(e+1)),n=r[e];r[e]=r[t],r[t]=n}return r}EM.shuffled=uKt});var t4=x(R3=>{"use strict";d();p();Object.defineProperty(R3,"__esModule",{value:!0});R3.shuffled=R3.randomBytes=void 0;var lKt=cEe();Object.defineProperty(R3,"randomBytes",{enumerable:!0,get:function(){return lKt.randomBytes}});var dKt=uEe();Object.defineProperty(R3,"shuffled",{enumerable:!0,get:function(){return dKt.shuffled}})});var EY=x((TY,lEe)=>{"use strict";d();p();(function(r){function e(_){return parseInt(_)===_}function t(_){if(!e(_.length))return!1;for(var N=0;N<_.length;N++)if(!e(_[N])||_[N]<0||_[N]>255)return!1;return!0}function n(_,N){if(_.buffer&&ArrayBuffer.isView(_)&&_.name==="Uint8Array")return N&&(_.slice?_=_.slice():_=Array.prototype.slice.call(_)),_;if(Array.isArray(_)){if(!t(_))throw new Error("Array contains invalid value: "+_);return new Uint8Array(_)}if(e(_.length)&&t(_))return new Uint8Array(_);throw new Error("unsupported array-like object")}function a(_){return new Uint8Array(_)}function i(_,N,U,C,z){(C!=null||z!=null)&&(_.slice?_=_.slice(C,z):_=Array.prototype.slice.call(_,C,z)),N.set(_,U)}var s=function(){function _(U){var C=[],z=0;for(U=encodeURI(U);z191&&ee<224?(C.push(String.fromCharCode((ee&31)<<6|U[z+1]&63)),z+=2):(C.push(String.fromCharCode((ee&15)<<12|(U[z+1]&63)<<6|U[z+2]&63)),z+=3)}return C.join("")}return{toBytes:_,fromBytes:N}}(),o=function(){function _(C){for(var z=[],ee=0;ee>4]+N[j&15])}return z.join("")}return{toBytes:_,fromBytes:U}}(),c={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],l=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],f=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],m=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],y=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],E=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],I=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],S=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],L=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],F=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],W=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],V=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],K=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],H=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function G(_){for(var N=[],U=0;U<_.length;U+=4)N.push(_[U]<<24|_[U+1]<<16|_[U+2]<<8|_[U+3]);return N}var J=function(_){if(!(this instanceof J))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:n(_,!0)}),this._prepare()};J.prototype._prepare=function(){var _=c[this.key.length];if(_==null)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var N=0;N<=_;N++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);for(var U=(_+1)*4,C=this.key.length/4,z=G(this.key),ee,N=0;N>2,this._Ke[ee][N%4]=z[N],this._Kd[_-ee][N%4]=z[N];for(var j=0,X=C,ie;X>16&255]<<24^l[ie>>8&255]<<16^l[ie&255]<<8^l[ie>>24&255]^u[j]<<24,j+=1,C!=8)for(var N=1;N>8&255]<<8^l[ie>>16&255]<<16^l[ie>>24&255]<<24;for(var N=C/2+1;N>2,he=X%4,this._Ke[ue][he]=z[N],this._Kd[_-ue][he]=z[N++],X++}for(var ue=1;ue<_;ue++)for(var he=0;he<4;he++)ie=this._Kd[ue][he],this._Kd[ue][he]=W[ie>>24&255]^V[ie>>16&255]^K[ie>>8&255]^H[ie&255]},J.prototype.encrypt=function(_){if(_.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var N=this._Ke.length-1,U=[0,0,0,0],C=G(_),z=0;z<4;z++)C[z]^=this._Ke[0][z];for(var ee=1;ee>24&255]^m[C[(z+1)%4]>>16&255]^y[C[(z+2)%4]>>8&255]^E[C[(z+3)%4]&255]^this._Ke[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Ke[N][z],j[4*z]=(l[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(l[C[(z+1)%4]>>16&255]^X>>16)&255,j[4*z+2]=(l[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(l[C[(z+3)%4]&255]^X)&255;return j},J.prototype.decrypt=function(_){if(_.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var N=this._Kd.length-1,U=[0,0,0,0],C=G(_),z=0;z<4;z++)C[z]^=this._Kd[0][z];for(var ee=1;ee>24&255]^S[C[(z+3)%4]>>16&255]^L[C[(z+2)%4]>>8&255]^F[C[(z+1)%4]&255]^this._Kd[ee][z];C=U.slice()}for(var j=a(16),X,z=0;z<4;z++)X=this._Kd[N][z],j[4*z]=(h[C[z]>>24&255]^X>>24)&255,j[4*z+1]=(h[C[(z+3)%4]>>16&255]^X>>16)&255,j[4*z+2]=(h[C[(z+2)%4]>>8&255]^X>>8)&255,j[4*z+3]=(h[C[(z+1)%4]&255]^X)&255;return j};var q=function(_){if(!(this instanceof q))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new J(_)};q.prototype.encrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16)i(_,U,0,C,C+16),U=this._aes.encrypt(U),i(U,N,C);return N},q.prototype.decrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16)i(_,U,0,C,C+16),U=this._aes.decrypt(U),i(U,N,C);return N};var T=function(_,N){if(!(this instanceof T))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",!N)N=a(16);else if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 bytes)");this._lastCipherblock=n(N,!0),this._aes=new J(_)};T.prototype.encrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16){i(_,U,0,C,C+16);for(var z=0;z<16;z++)U[z]^=this._lastCipherblock[z];this._lastCipherblock=this._aes.encrypt(U),i(this._lastCipherblock,N,C)}return N},T.prototype.decrypt=function(_){if(_=n(_),_.length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var N=a(_.length),U=a(16),C=0;C<_.length;C+=16){i(_,U,0,C,C+16),U=this._aes.decrypt(U);for(var z=0;z<16;z++)N[C+z]=U[z]^this._lastCipherblock[z];i(_,this._lastCipherblock,0,C,C+16)}return N};var P=function(_,N,U){if(!(this instanceof P))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",!N)N=a(16);else if(N.length!=16)throw new Error("invalid initialation vector size (must be 16 size)");U||(U=1),this.segmentSize=U,this._shiftRegister=n(N,!0),this._aes=new J(_)};P.prototype.encrypt=function(_){if(_.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var N=n(_,!0),U,C=0;C=0;--N)this._counter[N]=_%256,_=_>>8},v.prototype.setBytes=function(_){if(_=n(_,!0),_.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=_},v.prototype.increment=function(){for(var _=15;_>=0;_--)if(this._counter[_]===255)this._counter[_]=0;else{this._counter[_]++;break}};var k=function(_,N){if(!(this instanceof k))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",N instanceof v||(N=new v(N)),this._counter=N,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new J(_)};k.prototype.encrypt=function(_){for(var N=n(_,!0),U=0;U16)throw new Error("PKCS#7 padding byte out of range");for(var U=_.length-N,C=0;C{"use strict";d();p();Object.defineProperty(CM,"__esModule",{value:!0});CM.version=void 0;CM.version="json-wallets/5.7.0"});var IY=x(tp=>{"use strict";d();p();Object.defineProperty(tp,"__esModule",{value:!0});tp.uuidV4=tp.searchPath=tp.getPassword=tp.zpad=tp.looseArrayify=void 0;var IM=wr(),dEe=Ws();function pKt(r){return typeof r=="string"&&r.substring(0,2)!=="0x"&&(r="0x"+r),(0,IM.arrayify)(r)}tp.looseArrayify=pKt;function hKt(r,e){for(r=String(r);r.length{"use strict";d();p();var gKt=Ff&&Ff.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bKt=Ff&&Ff.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ff,"__esModule",{value:!0});Ff.decrypt=Ff.CrowdsaleAccount=void 0;var pEe=bKt(EY()),vKt=Md(),hEe=wr(),wKt=Kl(),_Kt=lM(),xKt=Ws(),TKt=Aa(),EKt=Zt(),CKt=CY(),IKt=new EKt.Logger(CKt.version),kM=IY(),fEe=function(r){gKt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCrowdsaleAccount=function(t){return!!(t&&t._isCrowdsaleAccount)},e}(TKt.Description);Ff.CrowdsaleAccount=fEe;function kKt(r,e){var t=JSON.parse(r);e=(0,kM.getPassword)(e);var n=(0,vKt.getAddress)((0,kM.searchPath)(t,"ethaddr")),a=(0,kM.looseArrayify)((0,kM.searchPath)(t,"encseed"));(!a||a.length%16!==0)&&IKt.throwArgumentError("invalid encseed","json",r);for(var i=(0,hEe.arrayify)((0,_Kt.pbkdf2)(e,e,2e3,32,"sha256")).slice(0,16),s=a.slice(0,16),o=a.slice(16),c=new pEe.default.ModeOfOperation.cbc(i,s),u=pEe.default.padding.pkcs7.strip((0,hEe.arrayify)(c.decrypt(o))),l="",h=0;h{"use strict";d();p();Object.defineProperty(Zy,"__esModule",{value:!0});Zy.getJsonWalletAddress=Zy.isKeystoreWallet=Zy.isCrowdsaleWallet=void 0;var yEe=Md();function gEe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return e.encseed&&e.ethaddr}Zy.isCrowdsaleWallet=gEe;function bEe(r){var e=null;try{e=JSON.parse(r)}catch{return!1}return!(!e.version||parseInt(e.version)!==e.version||parseInt(e.version)!==3)}Zy.isKeystoreWallet=bEe;function AKt(r){if(gEe(r))try{return(0,yEe.getAddress)(JSON.parse(r).ethaddr)}catch{return null}if(bEe(r))try{return(0,yEe.getAddress)(JSON.parse(r).address)}catch{return null}return null}Zy.getJsonWalletAddress=AKt});var _Ee=x((kY,wEe)=>{"use strict";d();p();(function(r){function t(m){let y=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]),E=1779033703,I=3144134277,S=1013904242,L=2773480762,F=1359893119,W=2600822924,V=528734635,K=1541459225,H=new Uint32Array(64);function G(k){let O=0,D=k.length;for(;D>=64;){let B=E,_=I,N=S,U=L,C=F,z=W,ee=V,j=K,X,ie,ue,he,ke;for(ie=0;ie<16;ie++)ue=O+ie*4,H[ie]=(k[ue]&255)<<24|(k[ue+1]&255)<<16|(k[ue+2]&255)<<8|k[ue+3]&255;for(ie=16;ie<64;ie++)X=H[ie-2],he=(X>>>17|X<<32-17)^(X>>>19|X<<32-19)^X>>>10,X=H[ie-15],ke=(X>>>7|X<<32-7)^(X>>>18|X<<32-18)^X>>>3,H[ie]=(he+H[ie-7]|0)+(ke+H[ie-16]|0)|0;for(ie=0;ie<64;ie++)he=(((C>>>6|C<<32-6)^(C>>>11|C<<32-11)^(C>>>25|C<<32-25))+(C&z^~C&ee)|0)+(j+(y[ie]+H[ie]|0)|0)|0,ke=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&_^B&N^_&N)|0,j=ee,ee=z,z=C,C=U+he|0,U=N,N=_,_=B,B=he+ke|0;E=E+B|0,I=I+_|0,S=S+N|0,L=L+U|0,F=F+C|0,W=W+z|0,V=V+ee|0,K=K+j|0,O+=64,D-=64}}G(m);let J,q=m.length%64,T=m.length/536870912|0,P=m.length<<3,A=q<56?56:120,v=m.slice(m.length-q,m.length);for(v.push(128),J=q+1;J>>24&255),v.push(T>>>16&255),v.push(T>>>8&255),v.push(T>>>0&255),v.push(P>>>24&255),v.push(P>>>16&255),v.push(P>>>8&255),v.push(P>>>0&255),G(v),[E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,I>>>24&255,I>>>16&255,I>>>8&255,I>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255,W>>>24&255,W>>>16&255,W>>>8&255,W>>>0&255,V>>>24&255,V>>>16&255,V>>>8&255,V>>>0&255,K>>>24&255,K>>>16&255,K>>>8&255,K>>>0&255]}function n(m,y,E){m=m.length<=64?m:t(m);let I=64+y.length+4,S=new Array(I),L=new Array(64),F,W=[];for(F=0;F<64;F++)S[F]=54;for(F=0;F=I-4;K--){if(S[K]++,S[K]<=255)return;S[K]=0}}for(;E>=32;)V(),W=W.concat(t(L.concat(t(S)))),E-=32;return E>0&&(V(),W=W.concat(t(L.concat(t(S))).slice(0,E))),W}function a(m,y,E,I,S){let L;for(c(m,(2*E-1)*16,S,0,16),L=0;L<2*E;L++)o(m,L*16,S,16),s(S,I),c(S,0,m,y+L*16,16);for(L=0;L>>32-y}function s(m,y){c(m,0,y,0,16);for(let E=8;E>0;E-=2)y[4]^=i(y[0]+y[12],7),y[8]^=i(y[4]+y[0],9),y[12]^=i(y[8]+y[4],13),y[0]^=i(y[12]+y[8],18),y[9]^=i(y[5]+y[1],7),y[13]^=i(y[9]+y[5],9),y[1]^=i(y[13]+y[9],13),y[5]^=i(y[1]+y[13],18),y[14]^=i(y[10]+y[6],7),y[2]^=i(y[14]+y[10],9),y[6]^=i(y[2]+y[14],13),y[10]^=i(y[6]+y[2],18),y[3]^=i(y[15]+y[11],7),y[7]^=i(y[3]+y[15],9),y[11]^=i(y[7]+y[3],13),y[15]^=i(y[11]+y[7],18),y[1]^=i(y[0]+y[3],7),y[2]^=i(y[1]+y[0],9),y[3]^=i(y[2]+y[1],13),y[0]^=i(y[3]+y[2],18),y[6]^=i(y[5]+y[4],7),y[7]^=i(y[6]+y[5],9),y[4]^=i(y[7]+y[6],13),y[5]^=i(y[4]+y[7],18),y[11]^=i(y[10]+y[9],7),y[8]^=i(y[11]+y[10],9),y[9]^=i(y[8]+y[11],13),y[10]^=i(y[9]+y[8],18),y[12]^=i(y[15]+y[14],7),y[13]^=i(y[12]+y[15],9),y[14]^=i(y[13]+y[12],13),y[15]^=i(y[14]+y[13],18);for(let E=0;E<16;++E)m[E]+=y[E]}function o(m,y,E,I){for(let S=0;S=256)return!1}return!0}function l(m,y){if(typeof m!="number"||m%1)throw new Error("invalid "+y);return m}function h(m,y,E,I,S,L,F){if(E=l(E,"N"),I=l(I,"r"),S=l(S,"p"),L=l(L,"dkLen"),E===0||(E&E-1)!==0)throw new Error("N must be power of 2");if(E>2147483647/128/I)throw new Error("N too large");if(I>2147483647/128/S)throw new Error("r too large");if(!u(m))throw new Error("password must be an array or buffer");if(m=Array.prototype.slice.call(m),!u(y))throw new Error("salt must be an array or buffer");y=Array.prototype.slice.call(y);let W=n(m,y,S*128*I),V=new Uint32Array(S*32*I);for(let C=0;C_&&(C=_);for(let ee=0;ee_&&(C=_);for(let ee=0;ee>0&255),W.push(V[ee]>>8&255),W.push(V[ee]>>16&255),W.push(V[ee]>>24&255);let z=n(m,W,L);return F&&F(null,1,z),z}F&&N(U)};if(!F)for(;;){let C=U();if(C!=null)return C}U()}let f={scrypt:function(m,y,E,I,S,L,F){return new Promise(function(W,V){let K=0;F&&F(0),h(m,y,E,I,S,L,function(H,G,J){if(H)V(H);else if(J)F&&K!==1&&F(1),W(new Uint8Array(J));else if(F&&G!==K)return K=G,F(G)})})},syncScrypt:function(m,y,E,I,S,L){return new Uint8Array(h(m,y,E,I,S,L))}};typeof kY<"u"?wEe.exports=f:typeof define=="function"&&define.amd?define(f):r&&(r.scrypt&&(r._scrypt=r.scrypt),r.scrypt=f)})(kY)});var REe=x(Lo=>{"use strict";d();p();var SKt=Lo&&Lo.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),PKt=Lo&&Lo.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},RKt=Lo&&Lo.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(zs,"__esModule",{value:!0});zs.decryptJsonWalletSync=zs.decryptJsonWallet=zs.getJsonWalletAddress=zs.isKeystoreWallet=zs.isCrowdsaleWallet=zs.encryptKeystore=zs.decryptKeystoreSync=zs.decryptKeystore=zs.decryptCrowdsale=void 0;var RY=mEe();Object.defineProperty(zs,"decryptCrowdsale",{enumerable:!0,get:function(){return RY.decrypt}});var Vb=vEe();Object.defineProperty(zs,"getJsonWalletAddress",{enumerable:!0,get:function(){return Vb.getJsonWalletAddress}});Object.defineProperty(zs,"isCrowdsaleWallet",{enumerable:!0,get:function(){return Vb.isCrowdsaleWallet}});Object.defineProperty(zs,"isKeystoreWallet",{enumerable:!0,get:function(){return Vb.isKeystoreWallet}});var r4=REe();Object.defineProperty(zs,"decryptKeystore",{enumerable:!0,get:function(){return r4.decrypt}});Object.defineProperty(zs,"decryptKeystoreSync",{enumerable:!0,get:function(){return r4.decryptSync}});Object.defineProperty(zs,"encryptKeystore",{enumerable:!0,get:function(){return r4.encrypt}});function WKt(r,e,t){if((0,Vb.isCrowdsaleWallet)(r)){t&&t(0);var n=(0,RY.decrypt)(r,e);return t&&t(1),Promise.resolve(n)}return(0,Vb.isKeystoreWallet)(r)?(0,r4.decrypt)(r,e,t):Promise.reject(new Error("invalid JSON wallet"))}zs.decryptJsonWallet=WKt;function UKt(r,e){if((0,Vb.isCrowdsaleWallet)(r))return(0,RY.decrypt)(r,e);if((0,Vb.isKeystoreWallet)(r))return(0,r4.decryptSync)(r,e);throw new Error("invalid JSON wallet")}zs.decryptJsonWalletSync=UKt});var MEe=x(SM=>{"use strict";d();p();Object.defineProperty(SM,"__esModule",{value:!0});SM.version=void 0;SM.version="wallet/5.7.0"});var DY=x(ml=>{"use strict";d();p();var HKt=ml&&ml.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),NEe=ml&&ml.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},BEe=ml&&ml.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();Object.defineProperty(PM,"__esModule",{value:!0});PM.version=void 0;PM.version="networks/5.7.1"});var OY=x(NM=>{"use strict";d();p();Object.defineProperty(NM,"__esModule",{value:!0});NM.getNetwork=void 0;var ZKt=Zt(),XKt=qEe(),FEe=new ZKt.Logger(XKt.version);function eGt(r){return r&&typeof r.renetwork=="function"}function h0(r){var e=function(t,n){n==null&&(n={});var a=[];if(t.InfuraProvider&&n.infura!=="-")try{a.push(new t.InfuraProvider(r,n.infura))}catch{}if(t.EtherscanProvider&&n.etherscan!=="-")try{a.push(new t.EtherscanProvider(r,n.etherscan))}catch{}if(t.AlchemyProvider&&n.alchemy!=="-")try{a.push(new t.AlchemyProvider(r,n.alchemy))}catch{}if(t.PocketProvider&&n.pocket!=="-"){var i=["goerli","ropsten","rinkeby","sepolia"];try{var s=new t.PocketProvider(r,n.pocket);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}}if(t.CloudflareProvider&&n.cloudflare!=="-")try{a.push(new t.CloudflareProvider(r))}catch{}if(t.AnkrProvider&&n.ankr!=="-")try{var i=["ropsten"],s=new t.AnkrProvider(r,n.ankr);s.network&&i.indexOf(s.network.name)===-1&&a.push(s)}catch{}if(a.length===0)return null;if(t.FallbackProvider){var o=1;return n.quorum!=null?o=n.quorum:r==="homestead"&&(o=2),new t.FallbackProvider(a,o)}return a[0]};return e.renetwork=function(t){return h0(t)},e}function MM(r,e){var t=function(n,a){return n.JsonRpcProvider?new n.JsonRpcProvider(r,e):null};return t.renetwork=function(n){return MM(r,n)},t}var WEe={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:h0("homestead")},UEe={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:h0("ropsten")},HEe={chainId:63,name:"classicMordor",_defaultProvider:MM("https://www.ethercluster.com/mordor","classicMordor")},RM={unspecified:{chainId:0,name:"unspecified"},homestead:WEe,mainnet:WEe,morden:{chainId:2,name:"morden"},ropsten:UEe,testnet:UEe,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:h0("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:h0("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:h0("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:h0("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:MM("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:HEe,classicTestnet:HEe,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:MM("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:h0("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:h0("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function tGt(r){if(r==null)return null;if(typeof r=="number"){for(var e in RM){var t=RM[e];if(t.chainId===r)return{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress||null,_defaultProvider:t._defaultProvider||null}}return{chainId:r,name:"unknown"}}if(typeof r=="string"){var n=RM[r];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var a=RM[r.name];if(!a)return typeof r.chainId!="number"&&FEe.throwArgumentError("invalid network chainId","network",r),r;r.chainId!==0&&r.chainId!==a.chainId&&FEe.throwArgumentError("network chainId mismatch","network",r);var i=r._defaultProvider||null;return i==null&&a._defaultProvider&&(eGt(a._defaultProvider)?i=a._defaultProvider.renetwork(r):i=a._defaultProvider),{name:r.name,chainId:a.chainId,ensAddress:r.ensAddress||a.ensAddress||null,_defaultProvider:i}}NM.getNetwork=tGt});var jEe=x(BM=>{"use strict";d();p();Object.defineProperty(BM,"__esModule",{value:!0});BM.version=void 0;BM.version="web/5.7.1"});var zEe=x(e1=>{"use strict";d();p();var rGt=e1&&e1.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},nGt=e1&&e1.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var sGt=rp&&rp.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},oGt=rp&&rp.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var a=typeof r=="object"?r.throttleCallback:null,i=typeof r=="object"&&typeof r.throttleSlotInterval=="number"?r.throttleSlotInterval:100;yh.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var s=typeof r=="object"?!!r.errorPassThrough:!1,o={},c=null,u={method:"GET"},l=!1,h=2*60*1e3;if(typeof r=="string")c=r;else if(typeof r=="object"){if((r==null||r.url==null)&&yh.throwArgumentError("missing URL","connection.url",r),c=r.url,typeof r.timeout=="number"&&r.timeout>0&&(h=r.timeout),r.headers)for(var f in r.headers)o[f.toLowerCase()]={key:f,value:String(r.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(u.allowGzip=!!r.allowGzip,r.user!=null&&r.password!=null){c.substring(0,6)!=="https:"&&r.allowInsecureAuthentication!==!0&&yh.throwError("basic authentication requires a secure https url",f0.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:c,user:r.user,password:"[REDACTED]"});var m=r.user+":"+r.password;o.authorization={key:"Authorization",value:"Basic "+(0,KEe.encode)((0,i4.toUtf8Bytes)(m))}}r.skipFetchSetup!=null&&(u.skipFetchSetup=!!r.skipFetchSetup),r.fetchOptions!=null&&(u.fetchOptions=(0,DM.shallowCopy)(r.fetchOptions))}var y=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),E=c?c.match(y):null;if(E)try{var I={statusCode:200,statusMessage:"OK",headers:{"content-type":E[1]||"text/plain"},body:E[2]?(0,KEe.decode)(E[3]):lGt(E[3])},S=I.body;return t&&(S=t(I.body,I)),Promise.resolve(S)}catch(V){yh.throwError("processing response error",f0.Logger.errors.SERVER_ERROR,{body:t1(E[1],E[2]),error:V,requestBody:null,requestMethod:"GET",url:c})}e&&(u.method="POST",u.body=e,o["content-type"]==null&&(o["content-type"]={key:"Content-Type",value:"application/octet-stream"}),o["content-length"]==null&&(o["content-length"]={key:"Content-Length",value:String(e.length)}));var L={};Object.keys(o).forEach(function(V){var K=o[V];L[K.key]=K.value}),u.headers=L;var F=function(){var V=null,K=new Promise(function(G,J){h&&(V=setTimeout(function(){V!=null&&(V=null,J(yh.makeError("timeout",f0.Logger.errors.TIMEOUT,{requestBody:t1(u.body,L["content-type"]),requestMethod:u.method,timeout:h,url:c})))},h))}),H=function(){V!=null&&(clearTimeout(V),V=null)};return{promise:K,cancel:H}}(),W=function(){return sGt(this,void 0,void 0,function(){var V,K,H,v,G,J,q,T,P,A,v,k;return oGt(this,function(O){switch(O.label){case 0:V=0,O.label=1;case 1:if(!(V=300)&&(F.cancel(),yh.throwError("bad response",f0.Logger.errors.SERVER_ERROR,{status:K.statusCode,headers:K.headers,body:t1(T,K.headers?K.headers["content-type"]:null),requestBody:t1(u.body,L["content-type"]),requestMethod:u.method,url:c})),!t)return[3,18];O.label=11;case 11:return O.trys.push([11,13,,18]),[4,t(T,K)];case 12:return P=O.sent(),F.cancel(),[2,P];case 13:return A=O.sent(),A.throttleRetry&&Vo){s()&&n(new Error("retry limit reached"));return}var h=e.interval*parseInt(String(Math.random()*Math.pow(2,c)));he.ceiling&&(h=e.ceiling),setTimeout(u,h)}return null},function(l){s()&&n(l)})}u()})}rp.poll=pGt});var ZEe=x((E7n,QEe)=>{"use strict";d();p();var LM="qpzry9x8gf2tvdw0s3jn54khce6mua7l",LY={};for(s4=0;s4>25;return(r&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function YEe(r){for(var e=1,t=0;t126)return"Invalid prefix ("+r+")";e=B3(e)^n>>5}for(e=B3(e),t=0;tt)throw new TypeError("Exceeds length limit");r=r.toLowerCase();var n=YEe(r);if(typeof n=="string")throw new Error(n);for(var a=r+"1",i=0;i>5!==0)throw new Error("Non 5-bit word");n=B3(n)^s,a+=LM.charAt(s)}for(i=0;i<6;++i)n=B3(n);for(n^=1,i=0;i<6;++i){var o=n>>(5-i)*5&31;a+=LM.charAt(o)}return a}function JEe(r,e){if(e=e||90,r.length<8)return r+" too short";if(r.length>e)return"Exceeds length limit";var t=r.toLowerCase(),n=r.toUpperCase();if(r!==t&&r!==n)return"Mixed-case string "+r;r=t;var a=r.lastIndexOf("1");if(a===-1)return"No separator character for "+r;if(a===0)return"Missing prefix for "+r;var i=r.slice(0,a),s=r.slice(a+1);if(s.length<6)return"Data too short";var o=YEe(i);if(typeof o=="string")return o;for(var c=[],u=0;u=s.length)&&c.push(h)}return o!==1?"Invalid checksum for "+r:{prefix:i,words:c}}function fGt(){var r=JEe.apply(null,arguments);if(typeof r=="object")return r}function mGt(r){var e=JEe.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function qM(r,e,t,n){for(var a=0,i=0,s=(1<=t;)i-=t,o.push(a>>i&s);if(n)i>0&&o.push(a<=e)return"Excess padding";if(a<{"use strict";d();p();Object.defineProperty(FM,"__esModule",{value:!0});FM.version=void 0;FM.version="providers/5.7.2"});var r1=x(Hf=>{"use strict";d();p();Object.defineProperty(Hf,"__esModule",{value:!0});Hf.showThrottleMessage=Hf.isCommunityResource=Hf.isCommunityResourcable=Hf.Formatter=void 0;var qY=Md(),m0=qs(),Uf=wr(),wGt=tb(),_Gt=Aa(),XEe=p0(),xGt=Zt(),TGt=mc(),o4=new xGt.Logger(TGt.version),EGt=function(){function r(){this.formats=this.getDefaultFormats()}return r.prototype.getDefaultFormats=function(){var e=this,t={},n=this.address.bind(this),a=this.bigNumber.bind(this),i=this.blockTag.bind(this),s=this.data.bind(this),o=this.hash.bind(this),c=this.hex.bind(this),u=this.number.bind(this),l=this.type.bind(this),h=function(f){return e.data(f,!0)};return t.transaction={hash:o,type:l,accessList:r.allowNull(this.accessList.bind(this),null),blockHash:r.allowNull(o,null),blockNumber:r.allowNull(u,null),transactionIndex:r.allowNull(u,null),confirmations:r.allowNull(u,null),from:n,gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),gasLimit:a,to:r.allowNull(n,null),value:a,nonce:u,data:s,r:r.allowNull(this.uint256),s:r.allowNull(this.uint256),v:r.allowNull(u),creates:r.allowNull(n,null),raw:r.allowNull(s)},t.transactionRequest={from:r.allowNull(n),nonce:r.allowNull(u),gasLimit:r.allowNull(a),gasPrice:r.allowNull(a),maxPriorityFeePerGas:r.allowNull(a),maxFeePerGas:r.allowNull(a),to:r.allowNull(n),value:r.allowNull(a),data:r.allowNull(h),type:r.allowNull(u),accessList:r.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:u,blockNumber:u,transactionHash:o,address:n,topics:r.arrayOf(o),data:s,logIndex:u,blockHash:o},t.receipt={to:r.allowNull(this.address,null),from:r.allowNull(this.address,null),contractAddress:r.allowNull(n,null),transactionIndex:u,root:r.allowNull(c),gasUsed:a,logsBloom:r.allowNull(s),blockHash:o,transactionHash:o,logs:r.arrayOf(this.receiptLog.bind(this)),blockNumber:u,confirmations:r.allowNull(u,null),cumulativeGasUsed:a,effectiveGasPrice:r.allowNull(a),status:r.allowNull(u),type:l},t.block={hash:r.allowNull(o),parentHash:o,number:u,timestamp:u,nonce:r.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:r.allowNull(n),extraData:s,transactions:r.allowNull(r.arrayOf(o)),baseFeePerGas:r.allowNull(a)},t.blockWithTransactions=(0,_Gt.shallowCopy)(t.block),t.blockWithTransactions.transactions=r.allowNull(r.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:r.allowNull(i,void 0),toBlock:r.allowNull(i,void 0),blockHash:r.allowNull(o,void 0),address:r.allowNull(n,void 0),topics:r.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:r.allowNull(u),blockHash:r.allowNull(o),transactionIndex:u,removed:r.allowNull(this.boolean.bind(this)),address:n,data:r.allowFalsish(s,"0x"),topics:r.arrayOf(o),transactionHash:o,logIndex:u},t},r.prototype.accessList=function(e){return(0,XEe.accessListify)(e||[])},r.prototype.number=function(e){return e==="0x"?0:m0.BigNumber.from(e).toNumber()},r.prototype.type=function(e){return e==="0x"||e==null?0:m0.BigNumber.from(e).toNumber()},r.prototype.bigNumber=function(e){return m0.BigNumber.from(e)},r.prototype.boolean=function(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)},r.prototype.hex=function(e,t){return typeof e=="string"&&(!t&&e.substring(0,2)!=="0x"&&(e="0x"+e),(0,Uf.isHexString)(e))?e.toLowerCase():o4.throwArgumentError("invalid hash","value",e)},r.prototype.data=function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n},r.prototype.address=function(e){return(0,qY.getAddress)(e)},r.prototype.callAddress=function(e){if(!(0,Uf.isHexString)(e,32))return null;var t=(0,qY.getAddress)((0,Uf.hexDataSlice)(e,12));return t===wGt.AddressZero?null:t},r.prototype.contractAddress=function(e){return(0,qY.getContractAddress)(e)},r.prototype.blockTag=function(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||(0,Uf.isHexString)(e))return(0,Uf.hexValue)(e);throw new Error("invalid blockTag")},r.prototype.hash=function(e,t){var n=this.hex(e,t);return(0,Uf.hexDataLength)(n)!==32?o4.throwArgumentError("invalid hash","value",e):n},r.prototype.difficulty=function(e){if(e==null)return null;var t=m0.BigNumber.from(e);try{return t.toNumber()}catch{}return null},r.prototype.uint256=function(e){if(!(0,Uf.isHexString)(e))throw new Error("invalid uint256");return(0,Uf.hexZeroPad)(e,32)},r.prototype._block=function(e,t){e.author!=null&&e.miner==null&&(e.miner=e.author);var n=e._difficulty!=null?e._difficulty:e.difficulty,a=r.check(t,e);return a._difficulty=n==null?null:m0.BigNumber.from(n),a},r.prototype.block=function(e){return this._block(e,this.formats.block)},r.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},r.prototype.transactionRequest=function(e){return r.check(this.formats.transactionRequest,e)},r.prototype.transactionResponse=function(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&m0.BigNumber.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);var t=r.check(this.formats.transaction,e);if(e.chainId!=null){var n=e.chainId;(0,Uf.isHexString)(n)&&(n=m0.BigNumber.from(n).toNumber()),t.chainId=n}else{var n=e.networkId;n==null&&t.v==null&&(n=e.chainId),(0,Uf.isHexString)(n)&&(n=m0.BigNumber.from(n).toNumber()),typeof n!="number"&&t.v!=null&&(n=(t.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),t.chainId=n}return t.blockHash&&t.blockHash.replace(/0/g,"")==="x"&&(t.blockHash=null),t},r.prototype.transaction=function(e){return(0,XEe.parse)(e)},r.prototype.receiptLog=function(e){return r.check(this.formats.receiptLog,e)},r.prototype.receipt=function(e){var t=r.check(this.formats.receipt,e);if(t.root!=null)if(t.root.length<=4){var n=m0.BigNumber.from(t.root).toNumber();n===0||n===1?(t.status!=null&&t.status!==n&&o4.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=n,delete t.root):o4.throwArgumentError("invalid alt-root-status","value.root",t.root)}else t.root.length!==66&&o4.throwArgumentError("invalid root hash","value.root",t.root);return t.status!=null&&(t.byzantium=!0),t},r.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map(function(n){return t.topics(n)}):e!=null?this.hash(e,!0):null},r.prototype.filter=function(e){return r.check(this.formats.filter,e)},r.prototype.filterLog=function(e){return r.check(this.formats.filterLog,e)},r.check=function(e,t){var n={};for(var a in e)try{var i=e[a](t[a]);i!==void 0&&(n[a]=i)}catch(s){throw s.checkKey=a,s.checkValue=t[a],s}return n},r.allowNull=function(e,t){return function(n){return n==null?t:e(n)}},r.allowFalsish=function(e,t){return function(n){return n?e(n):t}},r.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach(function(a){n.push(e(a))}),n}},r}();Hf.Formatter=EGt;function tCe(r){return r&&typeof r.isCommunityResource=="function"}Hf.isCommunityResourcable=tCe;function CGt(r){return tCe(r)&&r.isCommunityResource()}Hf.isCommunityResource=CGt;var eCe=!1;function IGt(){eCe||(eCe=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}Hf.showThrottleMessage=IGt});var d4=x(au=>{"use strict";d();p();var kGt=au&&au.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),hr=au&&au.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},fr=au&&au.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0&&r[r.length-1]==null;)r.pop();return r.map(function(e){if(Array.isArray(e)){var t={};e.forEach(function(a){t[iCe(a)]=!0});var n=Object.keys(t);return n.sort(),n.join("|")}else return iCe(e)}).join("&")}function BGt(r){return r===""?[]:r.split(/&/g).map(function(e){if(e==="")return[];var t=e.split("|").map(function(n){return n==="null"?null:n});return t.length===1?t[0]:t})}function D3(r){if(typeof r=="string"){if(r=r.toLowerCase(),(0,ir.hexDataLength)(r)===32)return"tx:"+r;if(r.indexOf(":")===-1)return r}else{if(Array.isArray(r))return"filter:*:"+sCe(r);if(dCe.ForkEvent.isForkEvent(r))throw Rr.warn("not implemented"),new Error("not implemented");if(r&&typeof r=="object")return"filter:"+(r.address||"*")+":"+sCe(r.topics||[])}throw new Error("invalid event - "+r)}function c4(){return new Date().getTime()}function oCe(r){return new Promise(function(e){setTimeout(e,r)})}var DGt=["block","network","pending","poll"],pCe=function(){function r(e,t,n){(0,xs.defineReadOnly)(this,"tag",e),(0,xs.defineReadOnly)(this,"listener",t),(0,xs.defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(r.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hash",{get:function(){var e=this.tag.split(":");return e[0]!=="tx"?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"filter",{get:function(){var e=this.tag.split(":");if(e[0]!=="filter")return null;var t=e[1],n=BGt(e[2]),a={};return n.length>0&&(a.topics=n),t&&t!=="*"&&(a.address=t),a},enumerable:!1,configurable:!0}),r.prototype.pollable=function(){return this.tag.indexOf(":")>=0||DGt.indexOf(this.tag)>=0},r}();au.Event=pCe;var OGt={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function FY(r){return(0,ir.hexZeroPad)(nu.BigNumber.from(r).toHexString(),32)}function cCe(r){return HY.Base58.encode((0,ir.concat)([r,(0,ir.hexDataSlice)((0,rCe.sha256)((0,rCe.sha256)(r)),0,4)]))}var hCe=new RegExp("^(ipfs)://(.*)$","i"),uCe=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),hCe,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function WM(r,e){try{return(0,jY.toUtf8String)(l4(r,e))}catch{}return null}function l4(r,e){if(r==="0x")return null;var t=nu.BigNumber.from((0,ir.hexDataSlice)(r,e,e+32)).toNumber(),n=nu.BigNumber.from((0,ir.hexDataSlice)(r,t,t+32)).toNumber();return(0,ir.hexDataSlice)(r,t+32,t+32+n)}function WY(r){return r.match(/^ipfs:\/\/ipfs\//i)?r=r.substring(12):r.match(/^ipfs:\/\//i)?r=r.substring(7):Rr.throwArgumentError("unsupported IPFS format","link",r),"https://gateway.ipfs.io/ipfs/"+r}function lCe(r){var e=(0,ir.arrayify)(r);if(e.length>32)throw new Error("internal; should not happen");var t=new Uint8Array(32);return t.set(e,32-e.length),t}function LGt(r){if(r.length%32===0)return r;var e=new Uint8Array(Math.ceil(r.length/32)*32);return e.set(r),e}function fCe(r){for(var e=[],t=0,n=0;n=1&&s<=75)return cCe((0,ir.concat)([[n.p2pkh],"0x"+i[2]]))}}if(n.p2sh!=null){var o=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(o){var c=parseInt(o[1],16);if(o[2].length===c*2&&c>=1&&c<=75)return cCe((0,ir.concat)([[n.p2sh],"0x"+o[2]]))}}if(n.prefix!=null){var u=a[1],l=a[0];if(l===0?u!==20&&u!==32&&(l=-1):l=-1,l>=0&&a.length===2+u&&u>=1&&u<=75){var h=nCe.default.toWords(a.slice(2));return h.unshift(l),nCe.default.encode(n.prefix,h)}}return null},r.prototype.getAddress=function(e){return hr(this,void 0,void 0,function(){var t,n,a,i;return fr(this,function(s){switch(s.label){case 0:if(e==null&&(e=60),e!==60)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return t=s.sent(),t==="0x"||t===PGt.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if(n=s.sent(),n.code===qr.Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",FY(e))];case 5:return a=s.sent(),a==null||a==="0x"?[2,null]:(i=this._getAddress(e,a),i==null&&Rr.throwError("invalid or unsupported coin data",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:a}),[2,i])}})})},r.prototype.getAvatar=function(){return hr(this,void 0,void 0,function(){var e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I,S,L,F,W,V,K,H,G,J;return fr(this,function(q){switch(q.label){case 0:e=[{type:"name",content:this.name}],q.label=1;case 1:return q.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(t=q.sent(),t==null)return[2,null];n=0,q.label=3;case 3:if(!(n=0?null:JSON.stringify({data:s,sender:i}),[4,(0,O3.fetchJson)({url:l,errorPassThrough:!0},h,function(E,I){return E.status=I.statusCode,E})]):[3,4];case 2:if(f=y.sent(),f.data)return[2,f.data];if(m=f.message||"unknown error",f.status>=400&&f.status<500)return[2,Rr.throwError("response not found during CCIP fetch: "+m,qr.Logger.errors.SERVER_ERROR,{url:u,errorMessage:m})];o.push(m),y.label=3;case 3:return c++,[3,1];case 4:return[2,Rr.throwError("error encountered during CCIP fetch: "+o.map(function(E){return JSON.stringify(E)}).join(", "),qr.Logger.errors.SERVER_ERROR,{urls:a,errorMessages:o})]}})})},e.prototype._getInternalBlockNumber=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o,c=this;return fr(this,function(u){switch(u.label){case 0:return[4,this._ready()];case 1:if(u.sent(),!(t>0))return[3,7];u.label=2;case 2:if(!this._internalBlockNumber)return[3,7];n=this._internalBlockNumber,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n];case 4:return a=u.sent(),c4()-a.respTime<=t?[2,a.blockNumber]:[3,7];case 5:return i=u.sent(),this._internalBlockNumber===n?[3,7]:[3,6];case 6:return[3,2];case 7:return s=c4(),o=(0,xs.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(l){return null},function(l){return l})}).then(function(l){var h=l.blockNumber,f=l.networkError;if(f)throw c._internalBlockNumber===o&&(c._internalBlockNumber=null),f;var m=c4();return h=nu.BigNumber.from(h).toNumber(),h1e3)Rr.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+a+")"),this.emit("error",Rr.makeError("network block skew detected",qr.Logger.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(s=this._emitted.block+1;s<=a;s++)this.emit("block",s);return this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(function(u){if(u!=="block"){var l=o._emitted[u];l!=="pending"&&a-l>12&&delete o._emitted[u]}})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(function(u){switch(u.type){case"tx":{var l=u.hash,h=o.getTransactionReceipt(l).then(function(y){return!y||y.blockNumber==null||(o._emitted["t:"+l]=y.blockNumber,o.emit(l,y)),null}).catch(function(y){o.emit("error",y)});n.push(h);break}case"filter":{if(!u._inflight){u._inflight=!0,u._lastBlockNumber===-2&&(u._lastBlockNumber=a-1);var f=u.filter;f.fromBlock=u._lastBlockNumber+1,f.toBlock=a;var m=f.toBlock-o._maxFilterBlockRange;m>f.fromBlock&&(f.fromBlock=m),f.fromBlock<0&&(f.fromBlock=0);var h=o.getLogs(f).then(function(E){u._inflight=!1,E.length!==0&&E.forEach(function(I){I.blockNumber>u._lastBlockNumber&&(u._lastBlockNumber=I.blockNumber),o._emitted["b:"+I.blockHash]=I.blockNumber,o._emitted["t:"+I.transactionHash]=I.blockNumber,o.emit(f,I)})}).catch(function(E){o.emit("error",E),u._inflight=!1});n.push(h)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(function(){o.emit("didPoll",t)}).catch(function(u){o.emit("error",u)}),[2]}})})},e.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(e.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),e.prototype.detectNetwork=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,Rr.throwError("provider does not support network detection",qr.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},e.prototype.getNetwork=function(){return hr(this,void 0,void 0,function(){var t,n,a;return fr(this,function(i){switch(i.label){case 0:return[4,this._ready()];case 1:return t=i.sent(),[4,this.detectNetwork()];case 2:return n=i.sent(),t.chainId===n.chainId?[3,5]:this.anyNetwork?(this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),[4,oCe(0)]):[3,4];case 3:return i.sent(),[2,this._network];case 4:throw a=Rr.makeError("underlying network changed",qr.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",a),a;case 5:return[2,t]}})})},Object.defineProperty(e.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(n){t._setFastBlockNumber(n)},function(n){}),this._fastBlockNumber!=null?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"polling",{get:function(){return this._poller!=null},set:function(t){var n=this;t&&!this._poller?(this._poller=setInterval(function(){n.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){n.poll(),n._bootstrapPoll=setTimeout(function(){n._poller||n.poll(),n._bootstrapPoll=null},n.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var n=this;if(typeof t!="number"||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){n.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),e.prototype._getFastBlockNumber=function(){var t=this,n=c4();return n-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=n,this._fastBlockNumberPromise=this.getBlockNumber().then(function(a){return(t._fastBlockNumber==null||a>t._fastBlockNumber)&&(t._fastBlockNumber=a),t._fastBlockNumber})),this._fastBlockNumberPromise},e.prototype._setFastBlockNumber=function(t){this._fastBlockNumber!=null&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},e.prototype.waitForTransaction=function(t,n,a){return hr(this,void 0,void 0,function(){return fr(this,function(i){return[2,this._waitForTransaction(t,n??1,a||0,null)]})})},e.prototype._waitForTransaction=function(t,n,a,i){return hr(this,void 0,void 0,function(){var s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return s=c.sent(),(s?s.confirmations:0)>=n?[2,s]:[2,new Promise(function(u,l){var h=[],f=!1,m=function(){return f?!0:(f=!0,h.forEach(function(F){F()}),!1)},y=function(F){F.confirmations0){var L=setTimeout(function(){m()||l(Rr.makeError("timeout exceeded",qr.Logger.errors.TIMEOUT,{timeout:a}))},a);L.unref&&L.unref(),h.push(function(){clearTimeout(L)})}})]}})})},e.prototype.getBlockNumber=function(){return hr(this,void 0,void 0,function(){return fr(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},e.prototype.getGasPrice=function(){return hr(this,void 0,void 0,function(){var t;return fr(this,function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,this.perform("getGasPrice",{})];case 2:t=n.sent();try{return[2,nu.BigNumber.from(t)]}catch(a){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:a})]}return[2]}})})},e.prototype.getBalance=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,xs.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getBalance",a)];case 3:i=s.sent();try{return[2,nu.BigNumber.from(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getBalance",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getTransactionCount=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,xs.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getTransactionCount",a)];case 3:i=s.sent();try{return[2,nu.BigNumber.from(i).toNumber()]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getCode=function(t,n){return hr(this,void 0,void 0,function(){var a,i;return fr(this,function(s){switch(s.label){case 0:return[4,this.getNetwork()];case 1:return s.sent(),[4,(0,xs.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(n)})];case 2:return a=s.sent(),[4,this.perform("getCode",a)];case 3:i=s.sent();try{return[2,(0,ir.hexlify)(i)]}catch(o){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getCode",params:a,result:i,error:o})]}return[2]}})})},e.prototype.getStorageAt=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s;return fr(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,xs.resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(function(c){return(0,ir.hexValue)(c)})})];case 2:return i=o.sent(),[4,this.perform("getStorageAt",i)];case 3:s=o.sent();try{return[2,(0,ir.hexlify)(s)]}catch(c){return[2,Rr.throwError("bad result from backend",qr.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:c})]}return[2]}})})},e.prototype._wrapTransaction=function(t,n,a){var i=this;if(n!=null&&(0,ir.hexDataLength)(n)!==32)throw new Error("invalid response - sendTransaction");var s=t;return n!=null&&t.hash!==n&&Rr.throwError("Transaction hash mismatch from Provider.sendTransaction.",qr.Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:n}),s.wait=function(o,c){return hr(i,void 0,void 0,function(){var u,l;return fr(this,function(h){switch(h.label){case 0:return o==null&&(o=1),c==null&&(c=0),u=void 0,o!==0&&a!=null&&(u={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:a}),[4,this._waitForTransaction(t.hash,o,c,u)];case 1:return l=h.sent(),l==null&&o===0?[2,null]:(this._emitted["t:"+t.hash]=l.blockNumber,l.status===0&&Rr.throwError("transaction failed",qr.Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:l}),[2,l])}})})},s},e.prototype.sendTransaction=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o;return fr(this,function(c){switch(c.label){case 0:return[4,this.getNetwork()];case 1:return c.sent(),[4,Promise.resolve(t).then(function(u){return(0,ir.hexlify)(u)})];case 2:return n=c.sent(),a=this.formatter.transaction(t),a.confirmations==null&&(a.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:i=c.sent(),c.label=4;case 4:return c.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:n})];case 5:return s=c.sent(),[2,this._wrapTransaction(a,s,i)];case 6:throw o=c.sent(),o.transaction=a,o.transactionHash=a.hash,o;case 7:return[2]}})})},e.prototype._getTransactionRequest=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s,o=this;return fr(this,function(c){switch(c.label){case 0:return[4,t];case 1:return n=c.sent(),a={},["from","to"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?o._getAddress(l):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?nu.BigNumber.from(l):null}))}),["type"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l??null}))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(function(u){n[u]!=null&&(a[u]=Promise.resolve(n[u]).then(function(l){return l?(0,ir.hexlify)(l):null}))}),s=(i=this.formatter).transactionRequest,[4,(0,xs.resolveProperties)(a)];case 2:return[2,s.apply(i,[c.sent()])]}})})},e.prototype._getFilter=function(t){return hr(this,void 0,void 0,function(){var n,a,i,s=this;return fr(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),n={},t.address!=null&&(n.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(c){t[c]!=null&&(n[c]=t[c])}),["fromBlock","toBlock"].forEach(function(c){t[c]!=null&&(n[c]=s._getBlockTag(t[c]))}),i=(a=this.formatter).filter,[4,(0,xs.resolveProperties)(n)];case 2:return[2,i.apply(a,[o.sent()])]}})})},e.prototype._call=function(t,n,a){return hr(this,void 0,void 0,function(){var i,s,o,c,u,l,h,f,m,y,E,I,S,L,F,W;return fr(this,function(V){switch(V.label){case 0:return a>=NGt&&Rr.throwError("CCIP read exceeded maximum redirections",qr.Logger.errors.SERVER_ERROR,{redirects:a,transaction:t}),i=t.to,[4,this.perform("call",{transaction:t,blockTag:n})];case 1:if(s=V.sent(),!(a>=0&&n==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&(0,ir.hexDataLength)(s)%32===4))return[3,5];V.label=2;case 2:for(V.trys.push([2,4,,5]),o=(0,ir.hexDataSlice)(s,4),c=(0,ir.hexDataSlice)(o,0,32),nu.BigNumber.from(c).eq(i)||Rr.throwError("CCIP Read sender did not match",qr.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:s}),u=[],l=nu.BigNumber.from((0,ir.hexDataSlice)(o,32,64)).toNumber(),h=nu.BigNumber.from((0,ir.hexDataSlice)(o,l,l+32)).toNumber(),f=(0,ir.hexDataSlice)(o,l+32),m=0;mthis._emitted.block?[2,null]:[2,void 0];if(!n)return[3,8];h=null,f=0,S.label=2;case 2:return f0},e.prototype._stopEvent=function(t){this.polling=this._events.filter(function(n){return n.pollable()}).length>0},e.prototype._addEventListener=function(t,n,a){var i=new pCe(D3(t),n,a);return this._events.push(i),this._startEvent(i),this},e.prototype.on=function(t,n){return this._addEventListener(t,n,!1)},e.prototype.once=function(t,n){return this._addEventListener(t,n,!0)},e.prototype.emit=function(t){for(var n=this,a=[],i=1;i{"use strict";d();p();var VY=np&&np.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),y0=np&&np.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},g0=np&&np.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Ks.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",lo.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:n}),e}function gCe(r){return new Promise(function(e){setTimeout(e,r)})}function KGt(r){if(r.error){var e=new Error(r.error.message);throw e.code=r.error.code,e.data=r.error.data,e}return r.result}function p4(r){return r&&r.toLowerCase()}var GY={},$Y=function(r){VY(e,r);function e(t,n,a){var i=r.call(this)||this;if(t!==GY)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,Ts.defineReadOnly)(i,"provider",n),a==null&&(a=0),typeof a=="string"?((0,Ts.defineReadOnly)(i,"_address",i.provider.formatter.address(a)),(0,Ts.defineReadOnly)(i,"_index",null)):typeof a=="number"?((0,Ts.defineReadOnly)(i,"_index",a),(0,Ts.defineReadOnly)(i,"_address",null)):Ks.throwArgumentError("invalid address or index","addressOrIndex",a),i}return e.prototype.connect=function(t){return Ks.throwError("cannot alter JSON-RPC Signer connection",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},e.prototype.connectUnchecked=function(){return new GGt(GY,this.provider,this._address||this._index)},e.prototype.getAddress=function(){var t=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(n){return n.length<=t._index&&Ks.throwError("unknown account #"+t._index,lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),t.provider.formatter.address(n[t._index])})},e.prototype.sendUncheckedTransaction=function(t){var n=this;t=(0,Ts.shallowCopy)(t);var a=this.getAddress().then(function(s){return s&&(s=s.toLowerCase()),s});if(t.gasLimit==null){var i=(0,Ts.shallowCopy)(t);i.from=a,t.gasLimit=this.provider.estimateGas(i)}return t.to!=null&&(t.to=Promise.resolve(t.to).then(function(s){return y0(n,void 0,void 0,function(){var o;return g0(this,function(c){switch(c.label){case 0:return s==null?[2,null]:[4,this.provider.resolveName(s)];case 1:return o=c.sent(),o==null&&Ks.throwArgumentError("provided ENS name resolves to null","tx.to",s),[2,o]}})})})),(0,Ts.resolveProperties)({tx:(0,Ts.resolveProperties)(t),sender:a}).then(function(s){var o=s.tx,c=s.sender;o.from!=null?o.from.toLowerCase()!==c&&Ks.throwArgumentError("from address mismatch","transaction",t):o.from=c;var u=n.provider.constructor.hexlifyTransaction(o,{from:!0});return n.provider.send("eth_sendTransaction",[u]).then(function(l){return l},function(l){return typeof l.message=="string"&&l.message.match(/user denied/i)&&Ks.throwError("user rejected transaction",lo.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),vCe("sendTransaction",l,u)})})},e.prototype.signTransaction=function(t){return Ks.throwError("signing transactions is unsupported",lo.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},e.prototype.sendTransaction=function(t){return y0(this,void 0,void 0,function(){var n,a,i,s=this;return g0(this,function(o){switch(o.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return n=o.sent(),[4,this.sendUncheckedTransaction(t)];case 2:a=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,(0,bCe.poll)(function(){return y0(s,void 0,void 0,function(){var c;return g0(this,function(u){switch(u.label){case 0:return[4,this.provider.getTransaction(a)];case 1:return c=u.sent(),c===null?[2,void 0]:[2,this.provider._wrapTransaction(c,a,n)]}})})},{oncePoll:this.provider})];case 4:return[2,o.sent()];case 5:throw i=o.sent(),i.transactionHash=a,i;case 6:return[2]}})})},e.prototype.signMessage=function(t){return y0(this,void 0,void 0,function(){var n,a,i;return g0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,yCe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,L3.hexlify)(n),a.toLowerCase()])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&Ks.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._legacySignMessage=function(t){return y0(this,void 0,void 0,function(){var n,a,i;return g0(this,function(s){switch(s.label){case 0:return n=typeof t=="string"?(0,yCe.toUtf8Bytes)(t):t,[4,this.getAddress()];case 1:a=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[a.toLowerCase(),(0,L3.hexlify)(n)])];case 3:return[2,s.sent()];case 4:throw i=s.sent(),typeof i.message=="string"&&i.message.match(/user denied/i)&&Ks.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:t}),i;case 5:return[2]}})})},e.prototype._signTypedData=function(t,n,a){return y0(this,void 0,void 0,function(){var i,s,o,c=this;return g0(this,function(u){switch(u.label){case 0:return[4,mCe._TypedDataEncoder.resolveNames(t,n,a,function(l){return c.provider.resolveName(l)})];case 1:return i=u.sent(),[4,this.getAddress()];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(mCe._TypedDataEncoder.getPayload(i.domain,n,i.value))])];case 4:return[2,u.sent()];case 5:throw o=u.sent(),typeof o.message=="string"&&o.message.match(/user denied/i)&&Ks.throwError("user rejected signing",lo.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:n,value:i.value}}),o;case 6:return[2]}})})},e.prototype.unlock=function(t){return y0(this,void 0,void 0,function(){var n,a;return g0(this,function(i){switch(i.label){case 0:return n=this.provider,[4,this.getAddress()];case 1:return a=i.sent(),[2,n.send("personal_unlockAccount",[a.toLowerCase(),t,null])]}})})},e}(WGt.Signer);np.JsonRpcSigner=$Y;var GGt=function(r){VY(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.sendTransaction=function(t){var n=this;return this.sendUncheckedTransaction(t).then(function(a){return{hash:a,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(i){return n.provider.waitForTransaction(a,i)}}})},e}($Y),VGt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},$Gt=function(r){VY(e,r);function e(t,n){var a=this,i=n;return i==null&&(i=new Promise(function(s,o){setTimeout(function(){a.detectNetwork().then(function(c){s(c)},function(c){o(c)})},0)})),a=r.call(this,i)||this,t||(t=(0,Ts.getStatic)(a.constructor,"defaultUrl")()),typeof t=="string"?(0,Ts.defineReadOnly)(a,"connection",Object.freeze({url:t})):(0,Ts.defineReadOnly)(a,"connection",Object.freeze((0,Ts.shallowCopy)(t))),a._nextId=42,a}return Object.defineProperty(e.prototype,"_cache",{get:function(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),e.defaultUrl=function(){return"http://localhost:8545"},e.prototype.detectNetwork=function(){var t=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){t._cache.detectNetwork=null},0)),this._cache.detectNetwork},e.prototype._uncachedDetectNetwork=function(){return y0(this,void 0,void 0,function(){var t,n,a,i;return g0(this,function(s){switch(s.label){case 0:return[4,gCe(0)];case 1:s.sent(),t=null,s.label=2;case 2:return s.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return t=s.sent(),[3,9];case 4:n=s.sent(),s.label=5;case 5:return s.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return t=s.sent(),[3,8];case 7:return a=s.sent(),[3,8];case 8:return[3,9];case 9:if(t!=null){i=(0,Ts.getStatic)(this.constructor,"getNetwork");try{return[2,i(KY.BigNumber.from(t).toNumber())]}catch(o){return[2,Ks.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:o})]}}return[2,Ks.throwError("could not detect network",lo.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},e.prototype.getSigner=function(t){return new $Y(GY,this,t)},e.prototype.getUncheckedSigner=function(t){return this.getSigner(t).connectUnchecked()},e.prototype.listAccounts=function(){var t=this;return this.send("eth_accounts",[]).then(function(n){return n.map(function(a){return t.formatter.address(a)})})},e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,Ts.deepCopy)(i),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(s&&this._cache[t])return this._cache[t];var o=(0,bCe.fetchJson)(this.connection,JSON.stringify(i),KGt).then(function(c){return a.emit("debug",{action:"response",request:i,response:c,provider:a}),c},function(c){throw a.emit("debug",{action:"response",error:c,request:i,provider:a}),c});return s&&(this._cache[t]=o,setTimeout(function(){a._cache[t]=null},0)),o},e.prototype.prepareRequest=function(t,n){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[p4(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[p4(n.address),n.blockTag]];case"getCode":return["eth_getCode",[p4(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[p4(n.address),(0,L3.hexZeroPad)(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":{var a=(0,Ts.getStatic)(this.constructor,"hexlifyTransaction");return["eth_call",[a(n.transaction,{from:!0}),n.blockTag]]}case"estimateGas":{var a=(0,Ts.getStatic)(this.constructor,"hexlifyTransaction");return["eth_estimateGas",[a(n.transaction,{from:!0})]]}case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=p4(n.filter.address)),["eth_getLogs",[n.filter]];default:break}return null},e.prototype.perform=function(t,n){return y0(this,void 0,void 0,function(){var a,i,s,o;return g0(this,function(c){switch(c.label){case 0:return t==="call"||t==="estimateGas"?(a=n.transaction,a&&a.type!=null&&KY.BigNumber.from(a.type).isZero()?a.maxFeePerGas==null&&a.maxPriorityFeePerGas==null?[4,this.getFeeData()]:[3,2]:[3,2]):[3,2];case 1:i=c.sent(),i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(n=(0,Ts.shallowCopy)(n),n.transaction=(0,Ts.shallowCopy)(a),delete n.transaction.type),c.label=2;case 2:s=this.prepareRequest(t,n),s==null&&Ks.throwError(t+" not implemented",lo.Logger.errors.NOT_IMPLEMENTED,{operation:t}),c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.send(s[0],s[1])];case 4:return[2,c.sent()];case 5:return o=c.sent(),[2,vCe(t,o,n)];case 6:return[2]}})})},e.prototype._startEvent=function(t){t.tag==="pending"&&this._startPending(),r.prototype._startEvent.call(this,t)},e.prototype._startPending=function(){if(this._pendingFilter==null){var t=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function i(){t.send("eth_getFilterChanges",[a]).then(function(s){if(t._pendingFilter!=n)return null;var o=Promise.resolve();return s.forEach(function(c){t._emitted["t:"+c.toLowerCase()]="pending",o=o.then(function(){return t.getTransaction(c).then(function(u){return t.emit("pending",u),null})})}),o.then(function(){return gCe(1e3)})}).then(function(){if(t._pendingFilter!=n){t.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){i()},0),null}).catch(function(s){})}return i(),a}).catch(function(a){})}},e.prototype._stopEvent=function(t){t.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),r.prototype._stopEvent.call(this,t)},e.hexlifyTransaction=function(t,n){var a=(0,Ts.shallowCopy)(VGt);if(n)for(var i in n)n[i]&&(a[i]=!0);(0,Ts.checkProperties)(t,a);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(o){if(t[o]!=null){var c=(0,L3.hexValue)(KY.BigNumber.from(t[o]));o==="gasLimit"&&(o="gas"),s[o]=c}}),["from","to","data"].forEach(function(o){t[o]!=null&&(s[o]=(0,L3.hexlify)(t[o]))}),t.accessList&&(s.accessList=(0,UGt.accessListify)(t.accessList)),s},e}(jGt.BaseProvider);np.JsonRpcProvider=$Gt});var xCe=x(F3=>{"use strict";d();p();Object.defineProperty(F3,"__esModule",{value:!0});F3.WebSocket=void 0;var wCe=Zt(),YGt=mc(),UM=null;F3.WebSocket=UM;try{if(F3.WebSocket=UM=WebSocket,UM==null)throw new Error("inject please")}catch{_Ce=new wCe.Logger(YGt.version),F3.WebSocket=UM=function(){_Ce.throwError("WebSockets not supported in this environment",wCe.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var _Ce});var jM=x(jf=>{"use strict";d();p();var JGt=jf&&jf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),YY=jf&&jf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},JY=jf&&jf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var ECe=ap&&ap.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),rVt=ap&&ap.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},nVt=ap&&ap.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var kCe=i1&&i1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(i1,"__esModule",{value:!0});i1.AlchemyProvider=i1.AlchemyWebSocketProvider=void 0;var oVt=Aa(),cVt=r1(),uVt=jM(),lVt=Zt(),dVt=mc(),ICe=new lVt.Logger(dVt.version),pVt=a1(),KM="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",ACe=function(r){kCe(e,r);function e(t,n){var a=this,i=new SCe(t,n),s=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return a=r.call(this,s,i.network)||this,(0,oVt.defineReadOnly)(a,"apiKey",i.apiKey),a}return e.prototype.isCommunityResource=function(){return this.apiKey===KM},e}(uVt.WebSocketProvider);i1.AlchemyWebSocketProvider=ACe;var SCe=function(r){kCe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new ACe(t,n)},e.getApiKey=function(t){return t==null?KM:(t&&typeof t!="string"&&ICe.throwArgumentError("invalid apiKey","apiKey",t),t)},e.getUrl=function(t,n){var a=null;switch(t.name){case"homestead":a="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":a="eth-goerli.g.alchemy.com/v2/";break;case"matic":a="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":a="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":a="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":a="arb-goerli.g.alchemy.com/v2/";break;case"optimism":a="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":a="opt-goerli.g.alchemy.com/v2/";break;default:ICe.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+a+n,throttleCallback:function(i,s){return n===KM&&(0,cVt.showThrottleMessage)(),Promise.resolve(!0)}}},e.prototype.isCommunityResource=function(){return this.apiKey===KM},e}(pVt.UrlJsonRpcProvider);i1.AlchemyProvider=SCe});var RCe=x(U3=>{"use strict";d();p();var hVt=U3&&U3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U3,"__esModule",{value:!0});U3.AnkrProvider=void 0;var fVt=r1(),mVt=a1(),yVt=Zt(),gVt=mc(),bVt=new yVt.Logger(gVt.version),GM="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function vVt(r){switch(r){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return bVt.throwArgumentError("unsupported network","name",r)}var wVt=function(r){hVt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.isCommunityResource=function(){return this.apiKey===GM},e.getApiKey=function(t){return t??GM},e.getUrl=function(t,n){n==null&&(n=GM);var a={allowGzip:!0,url:"https://"+vVt(t.name)+n,throttleCallback:function(i,s){return n.apiKey===GM&&(0,fVt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(a.user="",a.password=n.projectSecret),a},e}(mVt.UrlJsonRpcProvider);U3.AnkrProvider=wVt});var NCe=x(zf=>{"use strict";d();p();var _Vt=zf&&zf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),xVt=zf&&zf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},TVt=zf&&zf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]{"use strict";d();p();var AVt=Gf&&Gf.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),VM=Gf&&Gf.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},$M=Gf&&Gf.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]=0&&(e.throttleRetry=!0),e}return r.result}function DCe(r){if(r&&r.status==0&&r.message=="NOTOK"&&(r.result||"").toLowerCase().indexOf("rate limit")>=0){var e=new Error("throttled response");throw e.result=JSON.stringify(r),e.throttleRetry=!0,e}if(r.jsonrpc!="2.0"){var e=new Error("invalid response");throw e.result=JSON.stringify(r),e}if(r.error){var e=new Error(r.error.message||"unknown error");throw r.error.code&&(e.code=r.error.code),r.error.data&&(e.data=r.error.data),e}return r.result}function OCe(r){if(r==="pending")throw new Error("pending not supported");return r==="latest"?r:parseInt(r.substring(2),16)}function ZY(r,e,t){if(r==="call"&&e.code===Kf.Logger.errors.SERVER_ERROR){var n=e.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var a=n.data;if(a&&(a="0x"+a.replace(/^.*0x/i,"")),(0,YM.isHexString)(a))return a;s1.throwError("missing revert data in call exception",Kf.Logger.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}var i=e.message;throw e.code===Kf.Logger.errors.SERVER_ERROR&&(e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText)),i=(i||"").toLowerCase(),i.match(/insufficient funds/)&&s1.throwError("insufficient funds for intrinsic transaction cost",Kf.Logger.errors.INSUFFICIENT_FUNDS,{error:e,method:r,transaction:t}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&s1.throwError("nonce has already been used",Kf.Logger.errors.NONCE_EXPIRED,{error:e,method:r,transaction:t}),i.match(/another transaction with same nonce/)&&s1.throwError("replacement fee too low",Kf.Logger.errors.REPLACEMENT_UNDERPRICED,{error:e,method:r,transaction:t}),i.match(/execution failed due to an exception|execution reverted/)&&s1.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Kf.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:r,transaction:t}),e}var DVt=function(r){AVt(e,r);function e(t,n){var a=r.call(this,t)||this;return(0,QY.defineReadOnly)(a,"baseUrl",a.getBaseUrl()),(0,QY.defineReadOnly)(a,"apiKey",n||null),a}return e.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io";default:}return s1.throwArgumentError("unsupported network","network",this.network.name)},e.prototype.getUrl=function(t,n){var a=Object.keys(n).reduce(function(s,o){var c=n[o];return c!=null&&(s+="&"+o+"="+c),s},""),i=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+t+a+i},e.prototype.getPostUrl=function(){return this.baseUrl+"/api"},e.prototype.getPostData=function(t,n){return n.module=t,n.apikey=this.apiKey,n},e.prototype.fetch=function(t,n,a){return VM(this,void 0,void 0,function(){var i,s,o,c,u,l,h=this;return $M(this,function(f){switch(f.label){case 0:return i=a?this.getPostUrl():this.getUrl(t,n),s=a?this.getPostData(t,n):null,o=t==="proxy"?DCe:BVt,this.emit("debug",{action:"request",request:i,provider:this}),c={url:i,throttleSlotInterval:1e3,throttleCallback:function(m,y){return h.isCommunityResource()&&(0,RVt.showThrottleMessage)(),Promise.resolve(!0)}},u=null,s&&(c.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(s).map(function(m){return m+"="+s[m]}).join("&")),[4,(0,PVt.fetchJson)(c,u,o||DCe)];case 1:return l=f.sent(),this.emit("debug",{action:"response",request:i,response:(0,QY.deepCopy)(l),provider:this}),[2,l]}})})},e.prototype.detectNetwork=function(){return VM(this,void 0,void 0,function(){return $M(this,function(t){return[2,this.network]})})},e.prototype.perform=function(t,n){return VM(this,void 0,void 0,function(){var a,s,i,s,o,c,u,l,h,f,m,y,E;return $M(this,function(I){switch(I.label){case 0:switch(a=t,a){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:n.address,tag:n.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:n.address,tag:n.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:n.address,tag:n.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:n.address,position:n.position,tag:n.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:n.signedTransaction},!0).catch(function(S){return ZY("sendTransaction",S,n.signedTransaction)})];case 8:if(n.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:n.blockTag,boolean:n.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:n.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:n.transactionHash})];case 11:if(n.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");s=BCe(n.transaction),s.module="proxy",s.action="eth_call",I.label=12;case 12:return I.trys.push([12,14,,15]),[4,this.fetch("proxy",s,!0)];case 13:return[2,I.sent()];case 14:return i=I.sent(),[2,ZY("call",i,n.transaction)];case 15:s=BCe(n.transaction),s.module="proxy",s.action="eth_estimateGas",I.label=16;case 16:return I.trys.push([16,18,,19]),[4,this.fetch("proxy",s,!0)];case 17:return[2,I.sent()];case 18:return o=I.sent(),[2,ZY("estimateGas",o,n.transaction)];case 19:return c={action:"getLogs"},n.filter.fromBlock&&(c.fromBlock=OCe(n.filter.fromBlock)),n.filter.toBlock&&(c.toBlock=OCe(n.filter.toBlock)),n.filter.address&&(c.address=n.filter.address),n.filter.topics&&n.filter.topics.length>0&&(n.filter.topics.length>1&&s1.throwError("unsupported topic count",Kf.Logger.errors.UNSUPPORTED_OPERATION,{topics:n.filter.topics}),n.filter.topics.length===1&&(u=n.filter.topics[0],(typeof u!="string"||u.length!==66)&&s1.throwError("unsupported topic format",Kf.Logger.errors.UNSUPPORTED_OPERATION,{topic0:u}),c.topic0=u)),[4,this.fetch("logs",c)];case 20:l=I.sent(),h={},f=0,I.label=21;case 21:return f{"use strict";d();p();var OVt=$f&&$f.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ZM=$f&&$f.__awaiter||function(r,e,t,n){function a(i){return i instanceof t?i:new t(function(s){s(i)})}return new(t||(t=Promise))(function(i,s){function o(l){try{u(n.next(l))}catch(h){s(h)}}function c(l){try{u(n.throw(l))}catch(h){s(h)}}function u(l){l.done?i(l.value):a(l.value).then(o,c)}u((n=n.apply(r,e||[])).next())})},g4=$f&&$f.__generator||function(r,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(l){return c([u,l])}}function c(u){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,a&&(i=u[0]&2?a.return:u[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;switch(a=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,a=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]e?null:(n+a)/2}function j3(r){if(r===null)return"null";if(typeof r=="number"||typeof r=="boolean")return JSON.stringify(r);if(typeof r=="string")return r;if(qVt.BigNumber.isBigNumber(r))return r.toString();if(Array.isArray(r))return JSON.stringify(r.map(function(t){return j3(t)}));if(typeof r=="object"){var e=Object.keys(r);return e.sort(),"{"+e.map(function(t){var n=r[t];return typeof n=="function"?n="[function]":n=j3(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof r)}var jVt=1;function UCe(r){var e=null,t=null,n=new Promise(function(s){e=function(){t&&(clearTimeout(t),t=null),s()},t=setTimeout(e,r)}),a=function(s){return n=n.then(s),n};function i(){return n}return{cancel:e,getPromise:i,wait:a}}var zVt=[o1.Logger.errors.CALL_EXCEPTION,o1.Logger.errors.INSUFFICIENT_FUNDS,o1.Logger.errors.NONCE_EXPIRED,o1.Logger.errors.REPLACEMENT_UNDERPRICED,o1.Logger.errors.UNPREDICTABLE_GAS_LIMIT],KVt=["address","args","errorArgs","errorSignature","method","transaction"];function QM(r,e){var t={weight:r.weight};return Object.defineProperty(t,"provider",{get:function(){return r.provider}}),r.start&&(t.start=r.start),e&&(t.duration=e-r.start),r.done&&(r.error?t.error=r.error:t.result=r.result||null),t}function GVt(r,e){return function(t){var n={};t.forEach(function(o){var c=r(o.result);n[c]||(n[c]={count:0,result:o.result}),n[c].count++});for(var a=Object.keys(n),i=0;i=e)return s.result}}}function VVt(r,e,t){var n=j3;switch(e){case"getBlockNumber":return function(a){var i=a.map(function(o){return o.result}),s=WCe(a.map(function(o){return o.result}),2);if(s!=null)return s=Math.ceil(s),i.indexOf(s+1)>=0&&s++,s>=r._highestBlockNumber&&(r._highestBlockNumber=s),r._highestBlockNumber};case"getGasPrice":return function(a){var i=a.map(function(s){return s.result});return i.sort(),i[Math.floor(i.length/2)]};case"getEtherPrice":return function(a){return WCe(a.map(function(i){return i.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(a){return a==null?null:(a=(0,Vf.shallowCopy)(a),a.confirmations=-1,j3(a))};break;case"getBlock":t.includeTransactions?n=function(a){return a==null?null:(a=(0,Vf.shallowCopy)(a),a.transactions=a.transactions.map(function(i){return i=(0,Vf.shallowCopy)(i),i.confirmations=-1,i}),j3(a))}:n=function(a){return a==null?null:j3(a)};break;default:throw new Error("unknown method: "+e)}return GVt(n,r.quorum)}function y4(r,e){return ZM(this,void 0,void 0,function(){var t;return g4(this,function(n){return t=r.provider,t.blockNumber!=null&&t.blockNumber>=e||e===-1?[2,t]:[2,(0,WVt.poll)(function(){return new Promise(function(a,i){setTimeout(function(){return t.blockNumber>=e?a(t):r.cancelled?a(null):a(void 0)},0)})},{oncePoll:t})]})})}function $Vt(r,e,t,n){return ZM(this,void 0,void 0,function(){var a,i,s;return g4(this,function(o){switch(o.label){case 0:switch(a=r.provider,i=t,i){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,3];case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":return[3,12];case"estimateGas":return[3,12];case"getTransaction":return[3,15];case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,a[t]()];case 2:return a.getEtherPrice?[2,a.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,5];case 4:a=o.sent(),o.label=5;case 5:return[2,a[t](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,8];case 7:a=o.sent(),o.label=8;case 8:return[2,a.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,11];case 10:a=o.sent(),o.label=11;case 11:return[2,a[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,H3.isHexString)(n.blockTag)?[4,y4(r,e)]:[3,14];case 13:a=o.sent(),o.label=14;case 14:return t==="call"&&n.blockTag?[2,a[t](n.transaction,n.blockTag)]:[2,a[t](n.transaction)];case 15:return[2,a[t](n.transactionHash)];case 16:return s=n.filter,s.fromBlock&&(0,H3.isHexString)(s.fromBlock)||s.toBlock&&(0,H3.isHexString)(s.toBlock)?[4,y4(r,e)]:[3,18];case 17:a=o.sent(),o.label=18;case 18:return[2,a.getLogs(s)];case 19:return[2,Jb.throwError("unknown method error",o1.Logger.errors.UNKNOWN_ERROR,{method:t,params:n})]}})})}var YVt=function(r){OVt(e,r);function e(t,n){var a=this;t.length===0&&Jb.throwArgumentError("missing providers","providers",t);var i=t.map(function(c,u){if(LVt.Provider.isProvider(c)){var l=(0,qCe.isCommunityResource)(c)?2e3:750,h=1;return Object.freeze({provider:c,weight:1,stallTimeout:l,priority:h})}var f=(0,Vf.shallowCopy)(c);f.priority==null&&(f.priority=1),f.stallTimeout==null&&(f.stallTimeout=(0,qCe.isCommunityResource)(c)?2e3:750),f.weight==null&&(f.weight=1);var m=f.weight;return(m%1||m>512||m<1)&&Jb.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+u+"].weight",m),Object.freeze(f)}),s=i.reduce(function(c,u){return c+u.weight},0);n==null?n=s/2:n>s&&Jb.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var o=FCe(i.map(function(c){return c.provider.network}));return o==null&&(o=new Promise(function(c,u){setTimeout(function(){a.detectNetwork().then(c,u)},0)})),a=r.call(this,o)||this,(0,Vf.defineReadOnly)(a,"providerConfigs",Object.freeze(i)),(0,Vf.defineReadOnly)(a,"quorum",n),a._highestBlockNumber=-1,a}return e.prototype.detectNetwork=function(){return ZM(this,void 0,void 0,function(){var t;return g4(this,function(n){switch(n.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(a){return a.provider.getNetwork()}))];case 1:return t=n.sent(),[2,FCe(t)]}})})},e.prototype.perform=function(t,n){return ZM(this,void 0,void 0,function(){var a,i,s,o,c,u,l,h,f,m,y,E=this;return g4(this,function(I){switch(I.label){case 0:return t!=="sendTransaction"?[3,2]:[4,Promise.all(this.providerConfigs.map(function(S){return S.provider.sendTransaction(n.signedTransaction).then(function(L){return L.hash},function(L){return L})}))];case 1:for(a=I.sent(),i=0;i=m.quorum?(K=o(V),K!==void 0?(c.forEach(function(J){J.staller&&J.staller.cancel(),J.cancelled=!0}),[2,{value:K}]):h?[3,4]:[4,UCe(100).getPromise()]):[3,5];case 3:G.sent(),G.label=4;case 4:h=!1,G.label=5;case 5:return H=c.reduce(function(J,q){if(!q.done||q.error==null)return J;var T=q.error.code;return zVt.indexOf(T)>=0&&(J[T]||(J[T]={error:q.error,weight:0}),J[T].weight+=q.weight),J},{}),Object.keys(H).forEach(function(J){var q=H[J];if(!(q.weight{"use strict";d();p();Object.defineProperty(XM,"__esModule",{value:!0});XM.IpcProvider=void 0;var JVt=null;XM.IpcProvider=JVt});var VCe=x(c1=>{"use strict";d();p();var zCe=c1&&c1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(c1,"__esModule",{value:!0});c1.InfuraProvider=c1.InfuraWebSocketProvider=void 0;var XY=Aa(),QVt=jM(),ZVt=r1(),eJ=Zt(),XVt=mc(),eN=new eJ.Logger(XVt.version),e$t=a1(),b4="84842078b09946638c03157f83405213",KCe=function(r){zCe(e,r);function e(t,n){var a=this,i=new GCe(t,n),s=i.connection;s.password&&eN.throwError("INFURA WebSocket project secrets unsupported",eJ.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var o=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return a=r.call(this,o,t)||this,(0,XY.defineReadOnly)(a,"apiKey",i.projectId),(0,XY.defineReadOnly)(a,"projectId",i.projectId),(0,XY.defineReadOnly)(a,"projectSecret",i.projectSecret),a}return e.prototype.isCommunityResource=function(){return this.projectId===b4},e}(QVt.WebSocketProvider);c1.InfuraWebSocketProvider=KCe;var GCe=function(r){zCe(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getWebSocketProvider=function(t,n){return new KCe(t,n)},e.getApiKey=function(t){var n={apiKey:b4,projectId:b4,projectSecret:null};return t==null||(typeof t=="string"?n.projectId=t:t.projectSecret!=null?(eN.assertArgument(typeof t.projectId=="string","projectSecret requires a projectId","projectId",t.projectId),eN.assertArgument(typeof t.projectSecret=="string","invalid projectSecret","projectSecret","[REDACTED]"),n.projectId=t.projectId,n.projectSecret=t.projectSecret):t.projectId&&(n.projectId=t.projectId),n.apiKey=n.projectId),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"homestead":a="mainnet.infura.io";break;case"goerli":a="goerli.infura.io";break;case"sepolia":a="sepolia.infura.io";break;case"matic":a="polygon-mainnet.infura.io";break;case"maticmum":a="polygon-mumbai.infura.io";break;case"optimism":a="optimism-mainnet.infura.io";break;case"optimism-goerli":a="optimism-goerli.infura.io";break;case"arbitrum":a="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":a="arbitrum-goerli.infura.io";break;default:eN.throwError("unsupported network",eJ.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i={allowGzip:!0,url:"https://"+a+"/v3/"+n.projectId,throttleCallback:function(s,o){return n.projectId===b4&&(0,ZVt.showThrottleMessage)(),Promise.resolve(!0)}};return n.projectSecret!=null&&(i.user="",i.password=n.projectSecret),i},e.prototype.isCommunityResource=function(){return this.projectId===b4},e}(e$t.UrlJsonRpcProvider);c1.InfuraProvider=GCe});var $Ce=x(z3=>{"use strict";d();p();var t$t=z3&&z3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z3,"__esModule",{value:!0});z3.JsonRpcBatchProvider=void 0;var r$t=Aa(),n$t=Yb(),a$t=q3(),i$t=function(r){t$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.send=function(t,n){var a=this,i={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch==null&&(this._pendingBatch=[]);var s={request:i,resolve:null,reject:null},o=new Promise(function(c,u){s.resolve=c,s.reject=u});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var c=a._pendingBatch;a._pendingBatch=null,a._pendingBatchAggregator=null;var u=c.map(function(l){return l.request});return a.emit("debug",{action:"requestBatch",request:(0,r$t.deepCopy)(u),provider:a}),(0,n$t.fetchJson)(a.connection,JSON.stringify(u)).then(function(l){a.emit("debug",{action:"response",request:u,response:l,provider:a}),c.forEach(function(h,f){var m=l[f];if(m.error){var y=new Error(m.error.message);y.code=m.error.code,y.data=m.error.data,h.reject(y)}else h.resolve(m.result)})},function(l){a.emit("debug",{action:"response",error:l,request:u,provider:a}),c.forEach(function(h){h.reject(l)})})},10)),o},e}(a$t.JsonRpcProvider);z3.JsonRpcBatchProvider=i$t});var YCe=x(K3=>{"use strict";d();p();var s$t=K3&&K3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K3,"__esModule",{value:!0});K3.NodesmithProvider=void 0;var o$t=a1(),c$t=Zt(),u$t=mc(),tJ=new c$t.Logger(u$t.version),l$t="ETHERS_JS_SHARED",d$t=function(r){s$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){return t&&typeof t!="string"&&tJ.throwArgumentError("invalid apiKey","apiKey",t),t||l$t},e.getUrl=function(t,n){tJ.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var a=null;switch(t.name){case"homestead":a="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":a="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":a="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":a="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":a="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:tJ.throwArgumentError("unsupported network","network",arguments[0])}return a+"?apiKey="+n},e}(o$t.UrlJsonRpcProvider);K3.NodesmithProvider=d$t});var XCe=x(G3=>{"use strict";d();p();var p$t=G3&&G3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(G3,"__esModule",{value:!0});G3.PocketProvider=void 0;var ZCe=Zt(),h$t=mc(),JCe=new ZCe.Logger(h$t.version),f$t=a1(),QCe="62e1ad51b37b8e00394bda3b",m$t=function(r){p$t(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getApiKey=function(t){var n={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return t==null?n.applicationId=QCe:typeof t=="string"?n.applicationId=t:t.applicationSecretKey!=null?(n.applicationId=t.applicationId,n.applicationSecretKey=t.applicationSecretKey):t.applicationId?n.applicationId=t.applicationId:JCe.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),n},e.getUrl=function(t,n){var a=null;switch(t?t.name:"unknown"){case"goerli":a="eth-goerli.gateway.pokt.network";break;case"homestead":a="eth-mainnet.gateway.pokt.network";break;case"kovan":a="poa-kovan.gateway.pokt.network";break;case"matic":a="poly-mainnet.gateway.pokt.network";break;case"maticmum":a="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":a="eth-rinkeby.gateway.pokt.network";break;case"ropsten":a="eth-ropsten.gateway.pokt.network";break;default:JCe.throwError("unsupported network",ZCe.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var i="https://"+a+"/v1/lb/"+n.applicationId,s={headers:{},url:i};return n.applicationSecretKey!=null&&(s.user="",s.password=n.applicationSecretKey),s},e.prototype.isCommunityResource=function(){return this.applicationId===QCe},e}(f$t.UrlJsonRpcProvider);G3.PocketProvider=m$t});var r4e=x(V3=>{"use strict";d();p();var y$t=V3&&V3.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(V3,"__esModule",{value:!0});V3.Web3Provider=void 0;var tN=Aa(),g$t=Zt(),b$t=mc(),e4e=new g$t.Logger(b$t.version),v$t=q3(),w$t=1;function t4e(r,e){var t="Web3LegacyFetcher";return function(n,a){var i=this,s={method:n,params:a,id:w$t++,jsonrpc:"2.0"};return new Promise(function(o,c){i.emit("debug",{action:"request",fetcher:t,request:(0,tN.deepCopy)(s),provider:i}),e(s,function(u,l){if(u)return i.emit("debug",{action:"response",fetcher:t,error:u,request:s,provider:i}),c(u);if(i.emit("debug",{action:"response",fetcher:t,request:s,response:l,provider:i}),l.error){var h=new Error(l.error.message);return h.code=l.error.code,h.data=l.error.data,c(h)}o(l.result)})})}}function _$t(r){return function(e,t){var n=this;t==null&&(t=[]);var a={method:e,params:t};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,tN.deepCopy)(a),provider:this}),r.request(a).then(function(i){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:i,provider:n}),i},function(i){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:i,provider:n}),i})}}var x$t=function(r){y$t(e,r);function e(t,n){var a=this;t==null&&e4e.throwArgumentError("missing provider","provider",t);var i=null,s=null,o=null;return typeof t=="function"?(i="unknown:",s=t):(i=t.host||t.path||"",!i&&t.isMetaMask&&(i="metamask"),o=t,t.request?(i===""&&(i="eip-1193:"),s=_$t(t)):t.sendAsync?s=t4e(t,t.sendAsync.bind(t)):t.send?s=t4e(t,t.send.bind(t)):e4e.throwArgumentError("unsupported provider","provider",t),i||(i="unknown:")),a=r.call(this,i,n)||this,(0,tN.defineReadOnly)(a,"jsonRpcFetchFunc",s),(0,tN.defineReadOnly)(a,"provider",o),a}return e.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},e}(v$t.JsonRpcProvider);V3.Web3Provider=x$t});var aJ=x(ft=>{"use strict";d();p();Object.defineProperty(ft,"__esModule",{value:!0});ft.Formatter=ft.showThrottleMessage=ft.isCommunityResourcable=ft.isCommunityResource=ft.getNetwork=ft.getDefaultProvider=ft.JsonRpcSigner=ft.IpcProvider=ft.WebSocketProvider=ft.Web3Provider=ft.StaticJsonRpcProvider=ft.PocketProvider=ft.NodesmithProvider=ft.JsonRpcBatchProvider=ft.JsonRpcProvider=ft.InfuraWebSocketProvider=ft.InfuraProvider=ft.EtherscanProvider=ft.CloudflareProvider=ft.AnkrProvider=ft.AlchemyWebSocketProvider=ft.AlchemyProvider=ft.FallbackProvider=ft.UrlJsonRpcProvider=ft.Resolver=ft.BaseProvider=ft.Provider=void 0;var T$t=R5();Object.defineProperty(ft,"Provider",{enumerable:!0,get:function(){return T$t.Provider}});var a4e=OY();Object.defineProperty(ft,"getNetwork",{enumerable:!0,get:function(){return a4e.getNetwork}});var i4e=d4();Object.defineProperty(ft,"BaseProvider",{enumerable:!0,get:function(){return i4e.BaseProvider}});Object.defineProperty(ft,"Resolver",{enumerable:!0,get:function(){return i4e.Resolver}});var rJ=PCe();Object.defineProperty(ft,"AlchemyProvider",{enumerable:!0,get:function(){return rJ.AlchemyProvider}});Object.defineProperty(ft,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return rJ.AlchemyWebSocketProvider}});var s4e=RCe();Object.defineProperty(ft,"AnkrProvider",{enumerable:!0,get:function(){return s4e.AnkrProvider}});var o4e=NCe();Object.defineProperty(ft,"CloudflareProvider",{enumerable:!0,get:function(){return o4e.CloudflareProvider}});var c4e=LCe();Object.defineProperty(ft,"EtherscanProvider",{enumerable:!0,get:function(){return c4e.EtherscanProvider}});var u4e=HCe();Object.defineProperty(ft,"FallbackProvider",{enumerable:!0,get:function(){return u4e.FallbackProvider}});var l4e=jCe();Object.defineProperty(ft,"IpcProvider",{enumerable:!0,get:function(){return l4e.IpcProvider}});var nJ=VCe();Object.defineProperty(ft,"InfuraProvider",{enumerable:!0,get:function(){return nJ.InfuraProvider}});Object.defineProperty(ft,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return nJ.InfuraWebSocketProvider}});var rN=q3();Object.defineProperty(ft,"JsonRpcProvider",{enumerable:!0,get:function(){return rN.JsonRpcProvider}});Object.defineProperty(ft,"JsonRpcSigner",{enumerable:!0,get:function(){return rN.JsonRpcSigner}});var E$t=$Ce();Object.defineProperty(ft,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return E$t.JsonRpcBatchProvider}});var d4e=YCe();Object.defineProperty(ft,"NodesmithProvider",{enumerable:!0,get:function(){return d4e.NodesmithProvider}});var p4e=XCe();Object.defineProperty(ft,"PocketProvider",{enumerable:!0,get:function(){return p4e.PocketProvider}});var h4e=a1();Object.defineProperty(ft,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return h4e.StaticJsonRpcProvider}});Object.defineProperty(ft,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return h4e.UrlJsonRpcProvider}});var f4e=r4e();Object.defineProperty(ft,"Web3Provider",{enumerable:!0,get:function(){return f4e.Web3Provider}});var m4e=jM();Object.defineProperty(ft,"WebSocketProvider",{enumerable:!0,get:function(){return m4e.WebSocketProvider}});var nN=r1();Object.defineProperty(ft,"Formatter",{enumerable:!0,get:function(){return nN.Formatter}});Object.defineProperty(ft,"isCommunityResourcable",{enumerable:!0,get:function(){return nN.isCommunityResourcable}});Object.defineProperty(ft,"isCommunityResource",{enumerable:!0,get:function(){return nN.isCommunityResource}});Object.defineProperty(ft,"showThrottleMessage",{enumerable:!0,get:function(){return nN.showThrottleMessage}});var y4e=Zt(),C$t=mc(),n4e=new y4e.Logger(C$t.version);function I$t(r,e){if(r==null&&(r="homestead"),typeof r=="string"){var t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new rN.JsonRpcProvider(r);case"ws":case"wss":return new m4e.WebSocketProvider(r);default:n4e.throwArgumentError("unsupported URL scheme","network",r)}}var n=(0,a4e.getNetwork)(r);return(!n||!n._defaultProvider)&&n4e.throwError("unsupported getDefaultProvider network",y4e.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:r}),n._defaultProvider({FallbackProvider:u4e.FallbackProvider,AlchemyProvider:rJ.AlchemyProvider,AnkrProvider:s4e.AnkrProvider,CloudflareProvider:o4e.CloudflareProvider,EtherscanProvider:c4e.EtherscanProvider,InfuraProvider:nJ.InfuraProvider,JsonRpcProvider:rN.JsonRpcProvider,NodesmithProvider:d4e.NodesmithProvider,PocketProvider:p4e.PocketProvider,Web3Provider:f4e.Web3Provider,IpcProvider:l4e.IpcProvider},e)}ft.getDefaultProvider=I$t});var g4e=x(aN=>{"use strict";d();p();Object.defineProperty(aN,"__esModule",{value:!0});aN.version=void 0;aN.version="solidity/5.7.0"});var v4e=x(u1=>{"use strict";d();p();Object.defineProperty(u1,"__esModule",{value:!0});u1.sha256=u1.keccak256=u1.pack=void 0;var k$t=qs(),gh=wr(),A$t=Kl(),S$t=jb(),P$t=Ws(),R$t=new RegExp("^bytes([0-9]+)$"),M$t=new RegExp("^(u?int)([0-9]*)$"),N$t=new RegExp("^(.*)\\[([0-9]*)\\]$"),B$t="0000000000000000000000000000000000000000000000000000000000000000",D$t=Zt(),O$t=g4e(),$3=new D$t.Logger(O$t.version);function b4e(r,e,t){switch(r){case"address":return t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e);case"string":return(0,P$t.toUtf8Bytes)(e);case"bytes":return(0,gh.arrayify)(e);case"bool":return e=e?"0x01":"0x00",t?(0,gh.zeroPad)(e,32):(0,gh.arrayify)(e)}var n=r.match(M$t);if(n){var a=parseInt(n[2]||"256");return(n[2]&&String(a)!==n[2]||a%8!==0||a===0||a>256)&&$3.throwArgumentError("invalid number type","type",r),t&&(a=256),e=k$t.BigNumber.from(e).toTwos(a),(0,gh.zeroPad)(e,a/8)}if(n=r.match(R$t),n){var a=parseInt(n[1]);return(String(a)!==n[1]||a===0||a>32)&&$3.throwArgumentError("invalid bytes type","type",r),(0,gh.arrayify)(e).byteLength!==a&&$3.throwArgumentError("invalid value for "+r,"value",e),t?(0,gh.arrayify)((e+B$t).substring(0,66)):e}if(n=r.match(N$t),n&&Array.isArray(e)){var i=n[1],s=parseInt(n[2]||String(e.length));s!=e.length&&$3.throwArgumentError("invalid array length for "+r,"value",e);var o=[];return e.forEach(function(c){o.push(b4e(i,c,!0))}),(0,gh.concat)(o)}return $3.throwArgumentError("invalid type","type",r)}function iJ(r,e){r.length!=e.length&&$3.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);var t=[];return r.forEach(function(n,a){t.push(b4e(n,e[a]))}),(0,gh.hexlify)((0,gh.concat)(t))}u1.pack=iJ;function L$t(r,e){return(0,A$t.keccak256)(iJ(r,e))}u1.keccak256=L$t;function q$t(r,e){return(0,S$t.sha256)(iJ(r,e))}u1.sha256=q$t});var w4e=x(iN=>{"use strict";d();p();Object.defineProperty(iN,"__esModule",{value:!0});iN.version=void 0;iN.version="units/5.7.0"});var I4e=x(ip=>{"use strict";d();p();Object.defineProperty(ip,"__esModule",{value:!0});ip.parseEther=ip.formatEther=ip.parseUnits=ip.formatUnits=ip.commify=void 0;var _4e=qs(),F$t=Zt(),W$t=w4e(),x4e=new F$t.Logger(W$t.version),T4e=["wei","kwei","mwei","gwei","szabo","finney","ether"];function U$t(r){var e=String(r).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||r==="."||r==="-.")&&x4e.throwArgumentError("invalid value","value",r);var t=e[0],n="";for(t.substring(0,1)==="-"&&(n="-",t=t.substring(1));t.substring(0,1)==="0";)t=t.substring(1);t===""&&(t="0");var a="";for(e.length===2&&(a="."+(e[1]||"0"));a.length>2&&a[a.length-1]==="0";)a=a.substring(0,a.length-1);for(var i=[];t.length;)if(t.length<=3){i.unshift(t);break}else{var s=t.length-3;i.unshift(t.substring(s)),t=t.substring(0,s)}return n+i.join(",")+a}ip.commify=U$t;function E4e(r,e){if(typeof e=="string"){var t=T4e.indexOf(e);t!==-1&&(e=3*t)}return(0,_4e.formatFixed)(r,e??18)}ip.formatUnits=E4e;function C4e(r,e){if(typeof r!="string"&&x4e.throwArgumentError("value must be a string","value",r),typeof e=="string"){var t=T4e.indexOf(e);t!==-1&&(e=3*t)}return(0,_4e.parseFixed)(r,e??18)}ip.parseUnits=C4e;function H$t(r){return E4e(r,18)}ip.formatEther=H$t;function j$t(r){return C4e(r,18)}ip.parseEther=j$t});var Xr=x(le=>{"use strict";d();p();var z$t=le&&le.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),K$t=le&&le.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),k4e=le&&le.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&z$t(e,r,t);return K$t(e,r),e};Object.defineProperty(le,"__esModule",{value:!0});le.formatBytes32String=le.Utf8ErrorFuncs=le.toUtf8String=le.toUtf8CodePoints=le.toUtf8Bytes=le._toEscapedUtf8String=le.nameprep=le.hexDataSlice=le.hexDataLength=le.hexZeroPad=le.hexValue=le.hexStripZeros=le.hexConcat=le.isHexString=le.hexlify=le.base64=le.base58=le.TransactionDescription=le.LogDescription=le.Interface=le.SigningKey=le.HDNode=le.defaultPath=le.isBytesLike=le.isBytes=le.zeroPad=le.stripZeros=le.concat=le.arrayify=le.shallowCopy=le.resolveProperties=le.getStatic=le.defineReadOnly=le.deepCopy=le.checkProperties=le.poll=le.fetchJson=le._fetchData=le.RLP=le.Logger=le.checkResultErrors=le.FormatTypes=le.ParamType=le.FunctionFragment=le.EventFragment=le.ErrorFragment=le.ConstructorFragment=le.Fragment=le.defaultAbiCoder=le.AbiCoder=void 0;le.Indexed=le.Utf8ErrorReason=le.UnicodeNormalizationForm=le.SupportedAlgorithm=le.mnemonicToSeed=le.isValidMnemonic=le.entropyToMnemonic=le.mnemonicToEntropy=le.getAccountPath=le.verifyTypedData=le.verifyMessage=le.recoverPublicKey=le.computePublicKey=le.recoverAddress=le.computeAddress=le.getJsonWalletAddress=le.TransactionTypes=le.serializeTransaction=le.parseTransaction=le.accessListify=le.joinSignature=le.splitSignature=le.soliditySha256=le.solidityKeccak256=le.solidityPack=le.shuffled=le.randomBytes=le.sha512=le.sha256=le.ripemd160=le.keccak256=le.computeHmac=le.commify=le.parseUnits=le.formatUnits=le.parseEther=le.formatEther=le.isAddress=le.getCreate2Address=le.getContractAddress=le.getIcapAddress=le.getAddress=le._TypedDataEncoder=le.id=le.isValidName=le.namehash=le.hashMessage=le.dnsEncode=le.parseBytes32String=void 0;var yl=cG();Object.defineProperty(le,"AbiCoder",{enumerable:!0,get:function(){return yl.AbiCoder}});Object.defineProperty(le,"checkResultErrors",{enumerable:!0,get:function(){return yl.checkResultErrors}});Object.defineProperty(le,"ConstructorFragment",{enumerable:!0,get:function(){return yl.ConstructorFragment}});Object.defineProperty(le,"defaultAbiCoder",{enumerable:!0,get:function(){return yl.defaultAbiCoder}});Object.defineProperty(le,"ErrorFragment",{enumerable:!0,get:function(){return yl.ErrorFragment}});Object.defineProperty(le,"EventFragment",{enumerable:!0,get:function(){return yl.EventFragment}});Object.defineProperty(le,"FormatTypes",{enumerable:!0,get:function(){return yl.FormatTypes}});Object.defineProperty(le,"Fragment",{enumerable:!0,get:function(){return yl.Fragment}});Object.defineProperty(le,"FunctionFragment",{enumerable:!0,get:function(){return yl.FunctionFragment}});Object.defineProperty(le,"Indexed",{enumerable:!0,get:function(){return yl.Indexed}});Object.defineProperty(le,"Interface",{enumerable:!0,get:function(){return yl.Interface}});Object.defineProperty(le,"LogDescription",{enumerable:!0,get:function(){return yl.LogDescription}});Object.defineProperty(le,"ParamType",{enumerable:!0,get:function(){return yl.ParamType}});Object.defineProperty(le,"TransactionDescription",{enumerable:!0,get:function(){return yl.TransactionDescription}});var v4=Md();Object.defineProperty(le,"getAddress",{enumerable:!0,get:function(){return v4.getAddress}});Object.defineProperty(le,"getCreate2Address",{enumerable:!0,get:function(){return v4.getCreate2Address}});Object.defineProperty(le,"getContractAddress",{enumerable:!0,get:function(){return v4.getContractAddress}});Object.defineProperty(le,"getIcapAddress",{enumerable:!0,get:function(){return v4.getIcapAddress}});Object.defineProperty(le,"isAddress",{enumerable:!0,get:function(){return v4.isAddress}});var G$t=k4e(OE());le.base64=G$t;var V$t=iM();Object.defineProperty(le,"base58",{enumerable:!0,get:function(){return V$t.Base58}});var iu=wr();Object.defineProperty(le,"arrayify",{enumerable:!0,get:function(){return iu.arrayify}});Object.defineProperty(le,"concat",{enumerable:!0,get:function(){return iu.concat}});Object.defineProperty(le,"hexConcat",{enumerable:!0,get:function(){return iu.hexConcat}});Object.defineProperty(le,"hexDataSlice",{enumerable:!0,get:function(){return iu.hexDataSlice}});Object.defineProperty(le,"hexDataLength",{enumerable:!0,get:function(){return iu.hexDataLength}});Object.defineProperty(le,"hexlify",{enumerable:!0,get:function(){return iu.hexlify}});Object.defineProperty(le,"hexStripZeros",{enumerable:!0,get:function(){return iu.hexStripZeros}});Object.defineProperty(le,"hexValue",{enumerable:!0,get:function(){return iu.hexValue}});Object.defineProperty(le,"hexZeroPad",{enumerable:!0,get:function(){return iu.hexZeroPad}});Object.defineProperty(le,"isBytes",{enumerable:!0,get:function(){return iu.isBytes}});Object.defineProperty(le,"isBytesLike",{enumerable:!0,get:function(){return iu.isBytesLike}});Object.defineProperty(le,"isHexString",{enumerable:!0,get:function(){return iu.isHexString}});Object.defineProperty(le,"joinSignature",{enumerable:!0,get:function(){return iu.joinSignature}});Object.defineProperty(le,"zeroPad",{enumerable:!0,get:function(){return iu.zeroPad}});Object.defineProperty(le,"splitSignature",{enumerable:!0,get:function(){return iu.splitSignature}});Object.defineProperty(le,"stripZeros",{enumerable:!0,get:function(){return iu.stripZeros}});var Y3=sb();Object.defineProperty(le,"_TypedDataEncoder",{enumerable:!0,get:function(){return Y3._TypedDataEncoder}});Object.defineProperty(le,"dnsEncode",{enumerable:!0,get:function(){return Y3.dnsEncode}});Object.defineProperty(le,"hashMessage",{enumerable:!0,get:function(){return Y3.hashMessage}});Object.defineProperty(le,"id",{enumerable:!0,get:function(){return Y3.id}});Object.defineProperty(le,"isValidName",{enumerable:!0,get:function(){return Y3.isValidName}});Object.defineProperty(le,"namehash",{enumerable:!0,get:function(){return Y3.namehash}});var Qb=wM();Object.defineProperty(le,"defaultPath",{enumerable:!0,get:function(){return Qb.defaultPath}});Object.defineProperty(le,"entropyToMnemonic",{enumerable:!0,get:function(){return Qb.entropyToMnemonic}});Object.defineProperty(le,"getAccountPath",{enumerable:!0,get:function(){return Qb.getAccountPath}});Object.defineProperty(le,"HDNode",{enumerable:!0,get:function(){return Qb.HDNode}});Object.defineProperty(le,"isValidMnemonic",{enumerable:!0,get:function(){return Qb.isValidMnemonic}});Object.defineProperty(le,"mnemonicToEntropy",{enumerable:!0,get:function(){return Qb.mnemonicToEntropy}});Object.defineProperty(le,"mnemonicToSeed",{enumerable:!0,get:function(){return Qb.mnemonicToSeed}});var $$t=MY();Object.defineProperty(le,"getJsonWalletAddress",{enumerable:!0,get:function(){return $$t.getJsonWalletAddress}});var Y$t=Kl();Object.defineProperty(le,"keccak256",{enumerable:!0,get:function(){return Y$t.keccak256}});var J$t=Zt();Object.defineProperty(le,"Logger",{enumerable:!0,get:function(){return J$t.Logger}});var sN=jb();Object.defineProperty(le,"computeHmac",{enumerable:!0,get:function(){return sN.computeHmac}});Object.defineProperty(le,"ripemd160",{enumerable:!0,get:function(){return sN.ripemd160}});Object.defineProperty(le,"sha256",{enumerable:!0,get:function(){return sN.sha256}});Object.defineProperty(le,"sha512",{enumerable:!0,get:function(){return sN.sha512}});var sJ=v4e();Object.defineProperty(le,"solidityKeccak256",{enumerable:!0,get:function(){return sJ.keccak256}});Object.defineProperty(le,"solidityPack",{enumerable:!0,get:function(){return sJ.pack}});Object.defineProperty(le,"soliditySha256",{enumerable:!0,get:function(){return sJ.sha256}});var A4e=t4();Object.defineProperty(le,"randomBytes",{enumerable:!0,get:function(){return A4e.randomBytes}});Object.defineProperty(le,"shuffled",{enumerable:!0,get:function(){return A4e.shuffled}});var J3=Aa();Object.defineProperty(le,"checkProperties",{enumerable:!0,get:function(){return J3.checkProperties}});Object.defineProperty(le,"deepCopy",{enumerable:!0,get:function(){return J3.deepCopy}});Object.defineProperty(le,"defineReadOnly",{enumerable:!0,get:function(){return J3.defineReadOnly}});Object.defineProperty(le,"getStatic",{enumerable:!0,get:function(){return J3.getStatic}});Object.defineProperty(le,"resolveProperties",{enumerable:!0,get:function(){return J3.resolveProperties}});Object.defineProperty(le,"shallowCopy",{enumerable:!0,get:function(){return J3.shallowCopy}});var Q$t=k4e(P7());le.RLP=Q$t;var oJ=FC();Object.defineProperty(le,"computePublicKey",{enumerable:!0,get:function(){return oJ.computePublicKey}});Object.defineProperty(le,"recoverPublicKey",{enumerable:!0,get:function(){return oJ.recoverPublicKey}});Object.defineProperty(le,"SigningKey",{enumerable:!0,get:function(){return oJ.SigningKey}});var l1=Ws();Object.defineProperty(le,"formatBytes32String",{enumerable:!0,get:function(){return l1.formatBytes32String}});Object.defineProperty(le,"nameprep",{enumerable:!0,get:function(){return l1.nameprep}});Object.defineProperty(le,"parseBytes32String",{enumerable:!0,get:function(){return l1.parseBytes32String}});Object.defineProperty(le,"_toEscapedUtf8String",{enumerable:!0,get:function(){return l1._toEscapedUtf8String}});Object.defineProperty(le,"toUtf8Bytes",{enumerable:!0,get:function(){return l1.toUtf8Bytes}});Object.defineProperty(le,"toUtf8CodePoints",{enumerable:!0,get:function(){return l1.toUtf8CodePoints}});Object.defineProperty(le,"toUtf8String",{enumerable:!0,get:function(){return l1.toUtf8String}});Object.defineProperty(le,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return l1.Utf8ErrorFuncs}});var Q3=p0();Object.defineProperty(le,"accessListify",{enumerable:!0,get:function(){return Q3.accessListify}});Object.defineProperty(le,"computeAddress",{enumerable:!0,get:function(){return Q3.computeAddress}});Object.defineProperty(le,"parseTransaction",{enumerable:!0,get:function(){return Q3.parse}});Object.defineProperty(le,"recoverAddress",{enumerable:!0,get:function(){return Q3.recoverAddress}});Object.defineProperty(le,"serializeTransaction",{enumerable:!0,get:function(){return Q3.serialize}});Object.defineProperty(le,"TransactionTypes",{enumerable:!0,get:function(){return Q3.TransactionTypes}});var w4=I4e();Object.defineProperty(le,"commify",{enumerable:!0,get:function(){return w4.commify}});Object.defineProperty(le,"formatEther",{enumerable:!0,get:function(){return w4.formatEther}});Object.defineProperty(le,"parseEther",{enumerable:!0,get:function(){return w4.parseEther}});Object.defineProperty(le,"formatUnits",{enumerable:!0,get:function(){return w4.formatUnits}});Object.defineProperty(le,"parseUnits",{enumerable:!0,get:function(){return w4.parseUnits}});var S4e=DY();Object.defineProperty(le,"verifyMessage",{enumerable:!0,get:function(){return S4e.verifyMessage}});Object.defineProperty(le,"verifyTypedData",{enumerable:!0,get:function(){return S4e.verifyTypedData}});var cJ=Yb();Object.defineProperty(le,"_fetchData",{enumerable:!0,get:function(){return cJ._fetchData}});Object.defineProperty(le,"fetchJson",{enumerable:!0,get:function(){return cJ.fetchJson}});Object.defineProperty(le,"poll",{enumerable:!0,get:function(){return cJ.poll}});var Z$t=jb();Object.defineProperty(le,"SupportedAlgorithm",{enumerable:!0,get:function(){return Z$t.SupportedAlgorithm}});var P4e=Ws();Object.defineProperty(le,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return P4e.UnicodeNormalizationForm}});Object.defineProperty(le,"Utf8ErrorReason",{enumerable:!0,get:function(){return P4e.Utf8ErrorReason}})});var R4e=x(oN=>{"use strict";d();p();Object.defineProperty(oN,"__esModule",{value:!0});oN.version=void 0;oN.version="ethers/5.7.2"});var dJ=x(br=>{"use strict";d();p();var X$t=br&&br.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),eYt=br&&br.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),uJ=br&&br.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&X$t(e,r,t);return eYt(e,r),e};Object.defineProperty(br,"__esModule",{value:!0});br.Wordlist=br.version=br.wordlists=br.utils=br.logger=br.errors=br.constants=br.FixedNumber=br.BigNumber=br.ContractFactory=br.Contract=br.BaseContract=br.providers=br.getDefaultProvider=br.VoidSigner=br.Wallet=br.Signer=void 0;var lJ=u6e();Object.defineProperty(br,"BaseContract",{enumerable:!0,get:function(){return lJ.BaseContract}});Object.defineProperty(br,"Contract",{enumerable:!0,get:function(){return lJ.Contract}});Object.defineProperty(br,"ContractFactory",{enumerable:!0,get:function(){return lJ.ContractFactory}});var M4e=qs();Object.defineProperty(br,"BigNumber",{enumerable:!0,get:function(){return M4e.BigNumber}});Object.defineProperty(br,"FixedNumber",{enumerable:!0,get:function(){return M4e.FixedNumber}});var N4e=FE();Object.defineProperty(br,"Signer",{enumerable:!0,get:function(){return N4e.Signer}});Object.defineProperty(br,"VoidSigner",{enumerable:!0,get:function(){return N4e.VoidSigner}});var tYt=DY();Object.defineProperty(br,"Wallet",{enumerable:!0,get:function(){return tYt.Wallet}});var rYt=uJ(tb());br.constants=rYt;var nYt=uJ(aJ());br.providers=nYt;var aYt=aJ();Object.defineProperty(br,"getDefaultProvider",{enumerable:!0,get:function(){return aYt.getDefaultProvider}});var B4e=vY();Object.defineProperty(br,"Wordlist",{enumerable:!0,get:function(){return B4e.Wordlist}});Object.defineProperty(br,"wordlists",{enumerable:!0,get:function(){return B4e.wordlists}});var iYt=uJ(Xr());br.utils=iYt;var D4e=Zt();Object.defineProperty(br,"errors",{enumerable:!0,get:function(){return D4e.ErrorCode}});var O4e=R4e();Object.defineProperty(br,"version",{enumerable:!0,get:function(){return O4e.version}});var sYt=new D4e.Logger(O4e.version);br.logger=sYt});var je=x(mr=>{"use strict";d();p();var oYt=mr&&mr.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),cYt=mr&&mr.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),uYt=mr&&mr.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&oYt(e,r,t);return cYt(e,r),e};Object.defineProperty(mr,"__esModule",{value:!0});mr.Wordlist=mr.version=mr.wordlists=mr.utils=mr.logger=mr.errors=mr.constants=mr.FixedNumber=mr.BigNumber=mr.ContractFactory=mr.Contract=mr.BaseContract=mr.providers=mr.getDefaultProvider=mr.VoidSigner=mr.Wallet=mr.Signer=mr.ethers=void 0;var L4e=uYt(dJ());mr.ethers=L4e;try{pJ=window,pJ._ethers==null&&(pJ._ethers=L4e)}catch{}var pJ,yc=dJ();Object.defineProperty(mr,"Signer",{enumerable:!0,get:function(){return yc.Signer}});Object.defineProperty(mr,"Wallet",{enumerable:!0,get:function(){return yc.Wallet}});Object.defineProperty(mr,"VoidSigner",{enumerable:!0,get:function(){return yc.VoidSigner}});Object.defineProperty(mr,"getDefaultProvider",{enumerable:!0,get:function(){return yc.getDefaultProvider}});Object.defineProperty(mr,"providers",{enumerable:!0,get:function(){return yc.providers}});Object.defineProperty(mr,"BaseContract",{enumerable:!0,get:function(){return yc.BaseContract}});Object.defineProperty(mr,"Contract",{enumerable:!0,get:function(){return yc.Contract}});Object.defineProperty(mr,"ContractFactory",{enumerable:!0,get:function(){return yc.ContractFactory}});Object.defineProperty(mr,"BigNumber",{enumerable:!0,get:function(){return yc.BigNumber}});Object.defineProperty(mr,"FixedNumber",{enumerable:!0,get:function(){return yc.FixedNumber}});Object.defineProperty(mr,"constants",{enumerable:!0,get:function(){return yc.constants}});Object.defineProperty(mr,"errors",{enumerable:!0,get:function(){return yc.errors}});Object.defineProperty(mr,"logger",{enumerable:!0,get:function(){return yc.logger}});Object.defineProperty(mr,"utils",{enumerable:!0,get:function(){return yc.utils}});Object.defineProperty(mr,"wordlists",{enumerable:!0,get:function(){return yc.wordlists}});Object.defineProperty(mr,"version",{enumerable:!0,get:function(){return yc.version}});Object.defineProperty(mr,"Wordlist",{enumerable:!0,get:function(){return yc.Wordlist}})});var fJ=x(hJ=>{"use strict";d();p();Object.defineProperty(hJ,"__esModule",{value:!0});hJ.default=dYt;var cN,lYt=new Uint8Array(16);function dYt(){if(!cN&&(cN=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cN))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cN(lYt)}});var q4e=x(uN=>{"use strict";d();p();Object.defineProperty(uN,"__esModule",{value:!0});uN.default=void 0;var pYt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;uN.default=pYt});var _4=x(lN=>{"use strict";d();p();Object.defineProperty(lN,"__esModule",{value:!0});lN.default=void 0;var hYt=fYt(q4e());function fYt(r){return r&&r.__esModule?r:{default:r}}function mYt(r){return typeof r=="string"&&hYt.default.test(r)}var yYt=mYt;lN.default=yYt});var T4=x(x4=>{"use strict";d();p();Object.defineProperty(x4,"__esModule",{value:!0});x4.default=void 0;x4.unsafeStringify=F4e;var gYt=bYt(_4());function bYt(r){return r&&r.__esModule?r:{default:r}}var gc=[];for(let r=0;r<256;++r)gc.push((r+256).toString(16).slice(1));function F4e(r,e=0){return(gc[r[e+0]]+gc[r[e+1]]+gc[r[e+2]]+gc[r[e+3]]+"-"+gc[r[e+4]]+gc[r[e+5]]+"-"+gc[r[e+6]]+gc[r[e+7]]+"-"+gc[r[e+8]]+gc[r[e+9]]+"-"+gc[r[e+10]]+gc[r[e+11]]+gc[r[e+12]]+gc[r[e+13]]+gc[r[e+14]]+gc[r[e+15]]).toLowerCase()}function vYt(r,e=0){let t=F4e(r,e);if(!(0,gYt.default)(t))throw TypeError("Stringified UUID is invalid");return t}var wYt=vYt;x4.default=wYt});var U4e=x(dN=>{"use strict";d();p();Object.defineProperty(dN,"__esModule",{value:!0});dN.default=void 0;var _Yt=TYt(fJ()),xYt=T4();function TYt(r){return r&&r.__esModule?r:{default:r}}var W4e,mJ,yJ=0,gJ=0;function EYt(r,e,t){let n=e&&t||0,a=e||new Array(16);r=r||{};let i=r.node||W4e,s=r.clockseq!==void 0?r.clockseq:mJ;if(i==null||s==null){let f=r.random||(r.rng||_Yt.default)();i==null&&(i=W4e=[f[0]|1,f[1],f[2],f[3],f[4],f[5]]),s==null&&(s=mJ=(f[6]<<8|f[7])&16383)}let o=r.msecs!==void 0?r.msecs:Date.now(),c=r.nsecs!==void 0?r.nsecs:gJ+1,u=o-yJ+(c-gJ)/1e4;if(u<0&&r.clockseq===void 0&&(s=s+1&16383),(u<0||o>yJ)&&r.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");yJ=o,gJ=c,mJ=s,o+=122192928e5;let l=((o&268435455)*1e4+c)%4294967296;a[n++]=l>>>24&255,a[n++]=l>>>16&255,a[n++]=l>>>8&255,a[n++]=l&255;let h=o/4294967296*1e4&268435455;a[n++]=h>>>8&255,a[n++]=h&255,a[n++]=h>>>24&15|16,a[n++]=h>>>16&255,a[n++]=s>>>8|128,a[n++]=s&255;for(let f=0;f<6;++f)a[n+f]=i[f];return e||(0,xYt.unsafeStringify)(a)}var CYt=EYt;dN.default=CYt});var bJ=x(pN=>{"use strict";d();p();Object.defineProperty(pN,"__esModule",{value:!0});pN.default=void 0;var IYt=kYt(_4());function kYt(r){return r&&r.__esModule?r:{default:r}}function AYt(r){if(!(0,IYt.default)(r))throw TypeError("Invalid UUID");let e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}var SYt=AYt;pN.default=SYt});var vJ=x(Zb=>{"use strict";d();p();Object.defineProperty(Zb,"__esModule",{value:!0});Zb.URL=Zb.DNS=void 0;Zb.default=BYt;var PYt=T4(),RYt=MYt(bJ());function MYt(r){return r&&r.__esModule?r:{default:r}}function NYt(r){r=unescape(encodeURIComponent(r));let e=[];for(let t=0;t{"use strict";d();p();Object.defineProperty(fN,"__esModule",{value:!0});fN.default=void 0;function DYt(r){if(typeof r=="string"){let e=unescape(encodeURIComponent(r));r=new Uint8Array(e.length);for(let t=0;t>5]>>>a%32&255,s=parseInt(n.charAt(i>>>4&15)+n.charAt(i&15),16);e.push(s)}return e}function z4e(r){return(r+64>>>9<<4)+14+1}function LYt(r,e){r[e>>5]|=128<>5]|=(r[n/8]&255)<>16)+(e>>16)+(t>>16)<<16|t&65535}function FYt(r,e){return r<>>32-e}function hN(r,e,t,n,a,i){return d1(FYt(d1(d1(e,r),d1(n,i)),a),t)}function su(r,e,t,n,a,i,s){return hN(e&t|~e&n,r,e,a,i,s)}function ou(r,e,t,n,a,i,s){return hN(e&n|t&~n,r,e,a,i,s)}function cu(r,e,t,n,a,i,s){return hN(e^t^n,r,e,a,i,s)}function uu(r,e,t,n,a,i,s){return hN(t^(e|~n),r,e,a,i,s)}var WYt=DYt;fN.default=WYt});var V4e=x(mN=>{"use strict";d();p();Object.defineProperty(mN,"__esModule",{value:!0});mN.default=void 0;var UYt=G4e(vJ()),HYt=G4e(K4e());function G4e(r){return r&&r.__esModule?r:{default:r}}var jYt=(0,UYt.default)("v3",48,HYt.default),zYt=jYt;mN.default=zYt});var $4e=x(yN=>{"use strict";d();p();Object.defineProperty(yN,"__esModule",{value:!0});yN.default=void 0;var KYt=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GYt={randomUUID:KYt};yN.default=GYt});var Q4e=x(gN=>{"use strict";d();p();Object.defineProperty(gN,"__esModule",{value:!0});gN.default=void 0;var Y4e=J4e($4e()),VYt=J4e(fJ()),$Yt=T4();function J4e(r){return r&&r.__esModule?r:{default:r}}function YYt(r,e,t){if(Y4e.default.randomUUID&&!e&&!r)return Y4e.default.randomUUID();r=r||{};let n=r.random||(r.rng||VYt.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return(0,$Yt.unsafeStringify)(n)}var JYt=YYt;gN.default=JYt});var Z4e=x(bN=>{"use strict";d();p();Object.defineProperty(bN,"__esModule",{value:!0});bN.default=void 0;function QYt(r,e,t,n){switch(r){case 0:return e&t^~e&n;case 1:return e^t^n;case 2:return e&t^e&n^t&n;case 3:return e^t^n}}function wJ(r,e){return r<>>32-e}function ZYt(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){let s=unescape(encodeURIComponent(r));r=[];for(let o=0;o>>0;f=h,h=l,l=wJ(u,30)>>>0,u=c,c=E}t[0]=t[0]+c>>>0,t[1]=t[1]+u>>>0,t[2]=t[2]+l>>>0,t[3]=t[3]+h>>>0,t[4]=t[4]+f>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}var XYt=ZYt;bN.default=XYt});var e8e=x(vN=>{"use strict";d();p();Object.defineProperty(vN,"__esModule",{value:!0});vN.default=void 0;var eJt=X4e(vJ()),tJt=X4e(Z4e());function X4e(r){return r&&r.__esModule?r:{default:r}}var rJt=(0,eJt.default)("v5",80,tJt.default),nJt=rJt;vN.default=nJt});var t8e=x(wN=>{"use strict";d();p();Object.defineProperty(wN,"__esModule",{value:!0});wN.default=void 0;var aJt="00000000-0000-0000-0000-000000000000";wN.default=aJt});var r8e=x(_N=>{"use strict";d();p();Object.defineProperty(_N,"__esModule",{value:!0});_N.default=void 0;var iJt=sJt(_4());function sJt(r){return r&&r.__esModule?r:{default:r}}function oJt(r){if(!(0,iJt.default)(r))throw TypeError("Invalid UUID");return parseInt(r.slice(14,15),16)}var cJt=oJt;_N.default=cJt});var Fr=x(bh=>{"use strict";d();p();Object.defineProperty(bh,"__esModule",{value:!0});Object.defineProperty(bh,"NIL",{enumerable:!0,get:function(){return hJt.default}});Object.defineProperty(bh,"parse",{enumerable:!0,get:function(){return gJt.default}});Object.defineProperty(bh,"stringify",{enumerable:!0,get:function(){return yJt.default}});Object.defineProperty(bh,"v1",{enumerable:!0,get:function(){return uJt.default}});Object.defineProperty(bh,"v3",{enumerable:!0,get:function(){return lJt.default}});Object.defineProperty(bh,"v4",{enumerable:!0,get:function(){return dJt.default}});Object.defineProperty(bh,"v5",{enumerable:!0,get:function(){return pJt.default}});Object.defineProperty(bh,"validate",{enumerable:!0,get:function(){return mJt.default}});Object.defineProperty(bh,"version",{enumerable:!0,get:function(){return fJt.default}});var uJt=b0(U4e()),lJt=b0(V4e()),dJt=b0(Q4e()),pJt=b0(e8e()),hJt=b0(t8e()),fJt=b0(r8e()),mJt=b0(_4()),yJt=b0(T4()),gJt=b0(bJ());function b0(r){return r&&r.__esModule?r:{default:r}}});var E4=x(Ha=>{"use strict";d();p();Object.defineProperty(Ha,"__esModule",{value:!0});Ha.getParsedType=Ha.ZodParsedType=Ha.objectUtil=Ha.util=void 0;var n8e;(function(r){r.assertEqual=a=>a;function e(a){}r.assertIs=e;function t(a){throw new Error}r.assertNever=t,r.arrayToEnum=a=>{let i={};for(let s of a)i[s]=s;return i},r.getValidEnumValues=a=>{let i=r.objectKeys(a).filter(o=>typeof a[a[o]]!="number"),s={};for(let o of i)s[o]=a[o];return r.objectValues(s)},r.objectValues=a=>r.objectKeys(a).map(function(i){return a[i]}),r.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{let i=[];for(let s in a)Object.prototype.hasOwnProperty.call(a,s)&&i.push(s);return i},r.find=(a,i)=>{for(let s of a)if(i(s))return s},r.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function n(a,i=" | "){return a.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}r.joinValues=n,r.jsonStringifyReplacer=(a,i)=>typeof i=="bigint"?i.toString():i})(n8e=Ha.util||(Ha.util={}));var bJt;(function(r){r.mergeShapes=(e,t)=>({...e,...t})})(bJt=Ha.objectUtil||(Ha.objectUtil={}));Ha.ZodParsedType=n8e.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]);var vJt=r=>{switch(typeof r){case"undefined":return Ha.ZodParsedType.undefined;case"string":return Ha.ZodParsedType.string;case"number":return isNaN(r)?Ha.ZodParsedType.nan:Ha.ZodParsedType.number;case"boolean":return Ha.ZodParsedType.boolean;case"function":return Ha.ZodParsedType.function;case"bigint":return Ha.ZodParsedType.bigint;case"symbol":return Ha.ZodParsedType.symbol;case"object":return Array.isArray(r)?Ha.ZodParsedType.array:r===null?Ha.ZodParsedType.null:r.then&&typeof r.then=="function"&&r.catch&&typeof r.catch=="function"?Ha.ZodParsedType.promise:typeof Map<"u"&&r instanceof Map?Ha.ZodParsedType.map:typeof Set<"u"&&r instanceof Set?Ha.ZodParsedType.set:typeof Date<"u"&&r instanceof Date?Ha.ZodParsedType.date:Ha.ZodParsedType.object;default:return Ha.ZodParsedType.unknown}};Ha.getParsedType=vJt});var xN=x(p1=>{"use strict";d();p();Object.defineProperty(p1,"__esModule",{value:!0});p1.ZodError=p1.quotelessJson=p1.ZodIssueCode=void 0;var a8e=E4();p1.ZodIssueCode=a8e.util.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);var wJt=r=>JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:");p1.quotelessJson=wJt;var C4=class extends Error{constructor(e){super(),this.issues=[],this.addIssue=n=>{this.issues=[...this.issues,n]},this.addIssues=(n=[])=>{this.issues=[...this.issues,...n]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){let t=e||function(i){return i.message},n={_errors:[]},a=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(a);else if(s.code==="invalid_return_type")a(s.returnTypeError);else if(s.code==="invalid_arguments")a(s.argumentsError);else if(s.path.length===0)n._errors.push(t(s));else{let o=n,c=0;for(;ct.message){let t={},n=[];for(let a of this.issues)a.path.length>0?(t[a.path[0]]=t[a.path[0]]||[],t[a.path[0]].push(e(a))):n.push(e(a));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};p1.ZodError=C4;C4.create=r=>new C4(r)});var xJ=x(_J=>{"use strict";d();p();Object.defineProperty(_J,"__esModule",{value:!0});var Xb=E4(),lu=xN(),_Jt=(r,e)=>{let t;switch(r.code){case lu.ZodIssueCode.invalid_type:r.received===Xb.ZodParsedType.undefined?t="Required":t=`Expected ${r.expected}, received ${r.received}`;break;case lu.ZodIssueCode.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(r.expected,Xb.util.jsonStringifyReplacer)}`;break;case lu.ZodIssueCode.unrecognized_keys:t=`Unrecognized key(s) in object: ${Xb.util.joinValues(r.keys,", ")}`;break;case lu.ZodIssueCode.invalid_union:t="Invalid input";break;case lu.ZodIssueCode.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${Xb.util.joinValues(r.options)}`;break;case lu.ZodIssueCode.invalid_enum_value:t=`Invalid enum value. Expected ${Xb.util.joinValues(r.options)}, received '${r.received}'`;break;case lu.ZodIssueCode.invalid_arguments:t="Invalid function arguments";break;case lu.ZodIssueCode.invalid_return_type:t="Invalid function return type";break;case lu.ZodIssueCode.invalid_date:t="Invalid date";break;case lu.ZodIssueCode.invalid_string:typeof r.validation=="object"?"includes"in r.validation?(t=`Invalid input: must include "${r.validation.includes}"`,typeof r.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${r.validation.position}`)):"startsWith"in r.validation?t=`Invalid input: must start with "${r.validation.startsWith}"`:"endsWith"in r.validation?t=`Invalid input: must end with "${r.validation.endsWith}"`:Xb.util.assertNever(r.validation):r.validation!=="regex"?t=`Invalid ${r.validation}`:t="Invalid";break;case lu.ZodIssueCode.too_small:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at least":"more than"} ${r.minimum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at least":"over"} ${r.minimum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${r.minimum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly equal to ":r.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(r.minimum))}`:t="Invalid input";break;case lu.ZodIssueCode.too_big:r.type==="array"?t=`Array must contain ${r.exact?"exactly":r.inclusive?"at most":"less than"} ${r.maximum} element(s)`:r.type==="string"?t=`String must contain ${r.exact?"exactly":r.inclusive?"at most":"under"} ${r.maximum} character(s)`:r.type==="number"?t=`Number must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="bigint"?t=`BigInt must be ${r.exact?"exactly":r.inclusive?"less than or equal to":"less than"} ${r.maximum}`:r.type==="date"?t=`Date must be ${r.exact?"exactly":r.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(r.maximum))}`:t="Invalid input";break;case lu.ZodIssueCode.custom:t="Invalid input";break;case lu.ZodIssueCode.invalid_intersection_types:t="Intersection results could not be merged";break;case lu.ZodIssueCode.not_multiple_of:t=`Number must be a multiple of ${r.multipleOf}`;break;case lu.ZodIssueCode.not_finite:t="Number must be finite";break;default:t=e.defaultError,Xb.util.assertNever(r)}return{message:t}};_J.default=_Jt});var TN=x(Yf=>{"use strict";d();p();var xJt=Yf&&Yf.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Yf,"__esModule",{value:!0});Yf.getErrorMap=Yf.setErrorMap=Yf.defaultErrorMap=void 0;var i8e=xJt(xJ());Yf.defaultErrorMap=i8e.default;var s8e=i8e.default;function TJt(r){s8e=r}Yf.setErrorMap=TJt;function EJt(){return s8e}Yf.getErrorMap=EJt});var TJ=x(Pa=>{"use strict";d();p();var CJt=Pa&&Pa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pa,"__esModule",{value:!0});Pa.isAsync=Pa.isValid=Pa.isDirty=Pa.isAborted=Pa.OK=Pa.DIRTY=Pa.INVALID=Pa.ParseStatus=Pa.addIssueToContext=Pa.EMPTY_PATH=Pa.makeIssue=void 0;var IJt=TN(),kJt=CJt(xJ()),AJt=r=>{let{data:e,path:t,errorMaps:n,issueData:a}=r,i=[...t,...a.path||[]],s={...a,path:i},o="",c=n.filter(u=>!!u).slice().reverse();for(let u of c)o=u(s,{data:e,defaultError:o}).message;return{...a,path:i,message:a.message||o}};Pa.makeIssue=AJt;Pa.EMPTY_PATH=[];function SJt(r,e){let t=(0,Pa.makeIssue)({issueData:e,data:r.data,path:r.path,errorMaps:[r.common.contextualErrorMap,r.schemaErrorMap,(0,IJt.getErrorMap)(),kJt.default].filter(n=>!!n)});r.common.issues.push(t)}Pa.addIssueToContext=SJt;var I4=class{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){let n=[];for(let a of t){if(a.status==="aborted")return Pa.INVALID;a.status==="dirty"&&e.dirty(),n.push(a.value)}return{status:e.value,value:n}}static async mergeObjectAsync(e,t){let n=[];for(let a of t)n.push({key:await a.key,value:await a.value});return I4.mergeObjectSync(e,n)}static mergeObjectSync(e,t){let n={};for(let a of t){let{key:i,value:s}=a;if(i.status==="aborted"||s.status==="aborted")return Pa.INVALID;i.status==="dirty"&&e.dirty(),s.status==="dirty"&&e.dirty(),(typeof s.value<"u"||a.alwaysSet)&&(n[i.value]=s.value)}return{status:e.value,value:n}}};Pa.ParseStatus=I4;Pa.INVALID=Object.freeze({status:"aborted"});var PJt=r=>({status:"dirty",value:r});Pa.DIRTY=PJt;var RJt=r=>({status:"valid",value:r});Pa.OK=RJt;var MJt=r=>r.status==="aborted";Pa.isAborted=MJt;var NJt=r=>r.status==="dirty";Pa.isDirty=NJt;var BJt=r=>r.status==="valid";Pa.isValid=BJt;var DJt=r=>typeof Promise<"u"&&r instanceof Promise;Pa.isAsync=DJt});var c8e=x(o8e=>{"use strict";d();p();Object.defineProperty(o8e,"__esModule",{value:!0})});var u8e=x(k4=>{"use strict";d();p();Object.defineProperty(k4,"__esModule",{value:!0});k4.errorUtil=void 0;var OJt;(function(r){r.errToObj=e=>typeof e=="string"?{message:e}:e||{},r.toString=e=>typeof e=="string"?e:e?.message})(OJt=k4.errorUtil||(k4.errorUtil={}))});var y8e=x(fe=>{"use strict";d();p();Object.defineProperty(fe,"__esModule",{value:!0});fe.discriminatedUnion=fe.date=fe.boolean=fe.bigint=fe.array=fe.any=fe.coerce=fe.ZodFirstPartyTypeKind=fe.late=fe.ZodSchema=fe.Schema=fe.custom=fe.ZodPipeline=fe.ZodBranded=fe.BRAND=fe.ZodNaN=fe.ZodCatch=fe.ZodDefault=fe.ZodNullable=fe.ZodOptional=fe.ZodTransformer=fe.ZodEffects=fe.ZodPromise=fe.ZodNativeEnum=fe.ZodEnum=fe.ZodLiteral=fe.ZodLazy=fe.ZodFunction=fe.ZodSet=fe.ZodMap=fe.ZodRecord=fe.ZodTuple=fe.ZodIntersection=fe.ZodDiscriminatedUnion=fe.ZodUnion=fe.ZodObject=fe.ZodArray=fe.ZodVoid=fe.ZodNever=fe.ZodUnknown=fe.ZodAny=fe.ZodNull=fe.ZodUndefined=fe.ZodSymbol=fe.ZodDate=fe.ZodBoolean=fe.ZodBigInt=fe.ZodNumber=fe.ZodString=fe.ZodType=void 0;fe.NEVER=fe.void=fe.unknown=fe.union=fe.undefined=fe.tuple=fe.transformer=fe.symbol=fe.string=fe.strictObject=fe.set=fe.record=fe.promise=fe.preprocess=fe.pipeline=fe.ostring=fe.optional=fe.onumber=fe.oboolean=fe.object=fe.number=fe.nullable=fe.null=fe.never=fe.nativeEnum=fe.nan=fe.map=fe.literal=fe.lazy=fe.intersection=fe.instanceof=fe.function=fe.enum=fe.effect=void 0;var EN=TN(),zt=u8e(),ye=TJ(),qe=E4(),Le=xN(),sp=class{constructor(e,t,n,a){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=a}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},l8e=(r,e)=>{if((0,ye.isValid)(e))return{success:!0,data:e.value};if(!r.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new Le.ZodError(r.common.issues);return this._error=t,this._error}}};function xr(r){if(!r)return{};let{errorMap:e,invalid_type_error:t,required_error:n,description:a}=r;if(e&&(t||n))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:a}:{errorMap:(s,o)=>s.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:n??o.defaultError}:{message:t??o.defaultError},description:a}}var Tr=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return(0,qe.getParsedType)(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new ye.ParseStatus,ctx:{common:e.parent.common,data:e.data,parsedType:(0,qe.getParsedType)(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if((0,ye.isAsync)(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){var n;let a={common:{issues:[],async:(n=t?.async)!==null&&n!==void 0?n:!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},i=this._parseSync({data:e,path:a.path,parent:a});return l8e(a,i)}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:(0,qe.getParsedType)(e)},a=this._parse({data:e,path:n.path,parent:n}),i=await((0,ye.isAsync)(a)?a:Promise.resolve(a));return l8e(n,i)}refine(e,t){let n=a=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(a):t;return this._refinement((a,i)=>{let s=e(a),o=()=>i.addIssue({code:Le.ZodIssueCode.custom,...n(a)});return typeof Promise<"u"&&s instanceof Promise?s.then(c=>c?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(e,t){return this._refinement((n,a)=>e(n)?!0:(a.addIssue(typeof t=="function"?t(n,a):t),!1))}_refinement(e){return new ed({schema:this,typeName:sr.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return vh.create(this,this._def)}nullable(){return x0.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Xl.create(this,this._def)}promise(){return m1.create(this,this._def)}or(e){return nv.create([this,e],this._def)}and(e){return av.create(this,e,this._def)}transform(e){return new ed({...xr(this._def),schema:this,typeName:sr.ZodEffects,effect:{type:"transform",transform:e}})}default(e){let t=typeof e=="function"?e:()=>e;return new uv({...xr(this._def),innerType:this,defaultValue:t,typeName:sr.ZodDefault})}brand(){return new IN({typeName:sr.ZodBranded,type:this,...xr(this._def)})}catch(e){let t=typeof e=="function"?e:()=>e;return new n_({...xr(this._def),innerType:this,catchValue:t,typeName:sr.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return lv.create(this,e)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}};fe.ZodType=Tr;fe.Schema=Tr;fe.ZodSchema=Tr;var LJt=/^c[^\s-]{8,}$/i,qJt=/^[a-z][a-z0-9]*$/,FJt=/[0-9A-HJKMNP-TV-Z]{26}/,WJt=/^([a-f0-9]{8}-[a-f0-9]{4}-[1-5][a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}|00000000-0000-0000-0000-000000000000)$/i,UJt=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\])|(\[IPv6:(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))\])|([A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])*(\.[A-Za-z]{2,})+))$/,HJt=/^(\p{Extended_Pictographic}|\p{Emoji_Component})+$/u,jJt=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,zJt=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,KJt=r=>r.precision?r.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${r.precision}}Z$`):r.precision===0?r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):r.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function GJt(r,e){return!!((e==="v4"||!e)&&jJt.test(r)||(e==="v6"||!e)&&zJt.test(r))}var Zl=class extends Tr{constructor(){super(...arguments),this._regex=(e,t,n)=>this.refinement(a=>e.test(a),{validation:t,code:Le.ZodIssueCode.invalid_string,...zt.errorUtil.errToObj(n)}),this.nonempty=e=>this.min(1,zt.errorUtil.errToObj(e)),this.trim=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"trim"}]}),this.toLowerCase=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]}),this.toUpperCase=()=>new Zl({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==qe.ZodParsedType.string){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.string,received:i.parsedType}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)if(i.kind==="min")e.data.lengthi.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),n.dirty());else if(i.kind==="length"){let s=e.data.length>i.value,o=e.data.length"u"?null:e?.precision,offset:(t=e?.offset)!==null&&t!==void 0?t:!1,...zt.errorUtil.errToObj(e?.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...zt.errorUtil.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...zt.errorUtil.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...zt.errorUtil.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...zt.errorUtil.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...zt.errorUtil.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...zt.errorUtil.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...zt.errorUtil.errToObj(t)})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Zl({checks:[],typeName:sr.ZodString,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...xr(r)})};function VJt(r,e){let t=(r.toString().split(".")[1]||"").length,n=(e.toString().split(".")[1]||"").length,a=t>n?t:n,i=parseInt(r.toFixed(a).replace(".","")),s=parseInt(e.toFixed(a).replace(".",""));return i%s/Math.pow(10,a)}var Jf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==qe.ZodParsedType.number){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.number,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="int"?qe.util.isInteger(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:"integer",received:"float",message:i.message}),a.dirty()):i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),a.dirty()):i.kind==="multipleOf"?VJt(e.data,i.value)!==0&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):i.kind==="finite"?Number.isFinite(e.data)||(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_finite,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Jf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Jf({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:zt.errorUtil.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:zt.errorUtil.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:zt.errorUtil.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:zt.errorUtil.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuee.kind==="int"||e.kind==="multipleOf"&&qe.util.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks){if(n.kind==="finite"||n.kind==="int"||n.kind==="multipleOf")return!0;n.kind==="min"?(t===null||n.value>t)&&(t=n.value):n.kind==="max"&&(e===null||n.valuenew Jf({checks:[],typeName:sr.ZodNumber,coerce:r?.coerce||!1,...xr(r)});var Qf=class extends Tr{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==qe.ZodParsedType.bigint){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.bigint,received:i.parsedType}),ye.INVALID}let n,a=new ye.ParseStatus;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?e.datai.value:e.data>=i.value)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),a.dirty()):i.kind==="multipleOf"?e.data%i.value!==BigInt(0)&&(n=this._getOrReturnCtx(e,n),(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.not_multiple_of,multipleOf:i.value,message:i.message}),a.dirty()):qe.util.assertNever(i);return{status:a.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,zt.errorUtil.toString(t))}gt(e,t){return this.setLimit("min",e,!1,zt.errorUtil.toString(t))}lte(e,t){return this.setLimit("max",e,!0,zt.errorUtil.toString(t))}lt(e,t){return this.setLimit("max",e,!1,zt.errorUtil.toString(t))}setLimit(e,t,n,a){return new Qf({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:n,message:zt.errorUtil.toString(a)}]})}_addCheck(e){return new Qf({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:zt.errorUtil.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:zt.errorUtil.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:zt.errorUtil.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.value{var e;return new Qf({checks:[],typeName:sr.ZodBigInt,coerce:(e=r?.coerce)!==null&&e!==void 0?e:!1,...xr(r)})};var ev=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=Boolean(e.data)),this._getType(e)!==qe.ZodParsedType.boolean){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.boolean,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodBoolean=ev;ev.create=r=>new ev({typeName:sr.ZodBoolean,coerce:r?.coerce||!1,...xr(r)});var w0=class extends Tr{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==qe.ZodParsedType.date){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.date,received:i.parsedType}),ye.INVALID}if(isNaN(e.data.getTime())){let i=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(i,{code:Le.ZodIssueCode.invalid_date}),ye.INVALID}let n=new ye.ParseStatus,a;for(let i of this._def.checks)i.kind==="min"?e.data.getTime()i.value&&(a=this._getOrReturnCtx(e,a),(0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),n.dirty()):qe.util.assertNever(i);return{status:n.value,value:new Date(e.data.getTime())}}_addCheck(e){return new w0({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:zt.errorUtil.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:zt.errorUtil.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)t.kind==="max"&&(e===null||t.valuenew w0({checks:[],coerce:r?.coerce||!1,typeName:sr.ZodDate,...xr(r)});var X3=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.symbol){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.symbol,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodSymbol=X3;X3.create=r=>new X3({typeName:sr.ZodSymbol,...xr(r)});var tv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.undefined,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodUndefined=tv;tv.create=r=>new tv({typeName:sr.ZodUndefined,...xr(r)});var rv=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.null){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.null,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodNull=rv;rv.create=r=>new rv({typeName:sr.ZodNull,...xr(r)});var f1=class extends Tr{constructor(){super(...arguments),this._any=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodAny=f1;f1.create=r=>new f1({typeName:sr.ZodAny,...xr(r)});var v0=class extends Tr{constructor(){super(...arguments),this._unknown=!0}_parse(e){return(0,ye.OK)(e.data)}};fe.ZodUnknown=v0;v0.create=r=>new v0({typeName:sr.ZodUnknown,...xr(r)});var wh=class extends Tr{_parse(e){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.never,received:t.parsedType}),ye.INVALID}};fe.ZodNever=wh;wh.create=r=>new wh({typeName:sr.ZodNever,...xr(r)});var e_=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.undefined){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.void,received:n.parsedType}),ye.INVALID}return(0,ye.OK)(e.data)}};fe.ZodVoid=e_;e_.create=r=>new e_({typeName:sr.ZodVoid,...xr(r)});var Xl=class extends Tr{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),a=this._def;if(t.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:t.parsedType}),ye.INVALID;if(a.exactLength!==null){let s=t.data.length>a.exactLength.value,o=t.data.lengtha.maxLength.value&&((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((s,o)=>a.type._parseAsync(new sp(t,s,t.path,o)))).then(s=>ye.ParseStatus.mergeArray(n,s));let i=[...t.data].map((s,o)=>a.type._parseSync(new sp(t,s,t.path,o)));return ye.ParseStatus.mergeArray(n,i)}get element(){return this._def.type}min(e,t){return new Xl({...this._def,minLength:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new Xl({...this._def,maxLength:{value:e,message:zt.errorUtil.toString(t)}})}length(e,t){return new Xl({...this._def,exactLength:{value:e,message:zt.errorUtil.toString(t)}})}nonempty(e){return this.min(1,e)}};fe.ZodArray=Xl;Xl.create=(r,e)=>new Xl({type:r,minLength:null,maxLength:null,exactLength:null,typeName:sr.ZodArray,...xr(e)});function Z3(r){if(r instanceof li){let e={};for(let t in r.shape){let n=r.shape[t];e[t]=vh.create(Z3(n))}return new li({...r._def,shape:()=>e})}else return r instanceof Xl?new Xl({...r._def,type:Z3(r.element)}):r instanceof vh?vh.create(Z3(r.unwrap())):r instanceof x0?x0.create(Z3(r.unwrap())):r instanceof op?op.create(r.items.map(e=>Z3(e))):r}var li=class extends Tr{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=qe.util.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==qe.ZodParsedType.object){let u=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(u,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:u.parsedType}),ye.INVALID}let{status:n,ctx:a}=this._processInputParams(e),{shape:i,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof wh&&this._def.unknownKeys==="strip"))for(let u in a.data)s.includes(u)||o.push(u);let c=[];for(let u of s){let l=i[u],h=a.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new sp(a,h,a.path,u)),alwaysSet:u in a.data})}if(this._def.catchall instanceof wh){let u=this._def.unknownKeys;if(u==="passthrough")for(let l of o)c.push({key:{status:"valid",value:l},value:{status:"valid",value:a.data[l]}});else if(u==="strict")o.length>0&&((0,ye.addIssueToContext)(a,{code:Le.ZodIssueCode.unrecognized_keys,keys:o}),n.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let l of o){let h=a.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new sp(a,h,a.path,l)),alwaysSet:l in a.data})}}return a.common.async?Promise.resolve().then(async()=>{let u=[];for(let l of c){let h=await l.key;u.push({key:h,value:await l.value,alwaysSet:l.alwaysSet})}return u}).then(u=>ye.ParseStatus.mergeObjectSync(n,u)):ye.ParseStatus.mergeObjectSync(n,c)}get shape(){return this._def.shape()}strict(e){return zt.errorUtil.errToObj,new li({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,n)=>{var a,i,s,o;let c=(s=(i=(a=this._def).errorMap)===null||i===void 0?void 0:i.call(a,t,n).message)!==null&&s!==void 0?s:n.defaultError;return t.code==="unrecognized_keys"?{message:(o=zt.errorUtil.errToObj(e).message)!==null&&o!==void 0?o:c}:{message:c}}}:{}})}strip(){return new li({...this._def,unknownKeys:"strip"})}passthrough(){return new li({...this._def,unknownKeys:"passthrough"})}extend(e){return new li({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new li({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:sr.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new li({...this._def,catchall:e})}pick(e){let t={};return qe.util.objectKeys(e).forEach(n=>{e[n]&&this.shape[n]&&(t[n]=this.shape[n])}),new li({...this._def,shape:()=>t})}omit(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{e[n]||(t[n]=this.shape[n])}),new li({...this._def,shape:()=>t})}deepPartial(){return Z3(this)}partial(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{let a=this.shape[n];e&&!e[n]?t[n]=a:t[n]=a.optional()}),new li({...this._def,shape:()=>t})}required(e){let t={};return qe.util.objectKeys(this.shape).forEach(n=>{if(e&&!e[n])t[n]=this.shape[n];else{let i=this.shape[n];for(;i instanceof vh;)i=i._def.innerType;t[n]=i}}),new li({...this._def,shape:()=>t})}keyof(){return d8e(qe.util.objectKeys(this.shape))}};fe.ZodObject=li;li.create=(r,e)=>new li({shape:()=>r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,...xr(e)});li.strictCreate=(r,e)=>new li({shape:()=>r,unknownKeys:"strict",catchall:wh.create(),typeName:sr.ZodObject,...xr(e)});li.lazycreate=(r,e)=>new li({shape:r,unknownKeys:"strip",catchall:wh.create(),typeName:sr.ZodObject,...xr(e)});var nv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function a(i){for(let o of i)if(o.result.status==="valid")return o.result;for(let o of i)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;let s=i.map(o=>new Le.ZodError(o.ctx.common.issues));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:s}),ye.INVALID}if(t.common.async)return Promise.all(n.map(async i=>{let s={...t,common:{...t.common,issues:[]},parent:null};return{result:await i._parseAsync({data:t.data,path:t.path,parent:s}),ctx:s}})).then(a);{let i,s=[];for(let c of n){let u={...t,common:{...t.common,issues:[]},parent:null},l=c._parseSync({data:t.data,path:t.path,parent:u});if(l.status==="valid")return l;l.status==="dirty"&&!i&&(i={result:l,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return t.common.issues.push(...i.ctx.common.issues),i.result;let o=s.map(c=>new Le.ZodError(c));return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union,unionErrors:o}),ye.INVALID}}get options(){return this._def.options}};fe.ZodUnion=nv;nv.create=(r,e)=>new nv({options:r,typeName:sr.ZodUnion,...xr(e)});var CN=r=>r instanceof sv?CN(r.schema):r instanceof ed?CN(r.innerType()):r instanceof ov?[r.value]:r instanceof Zf?r.options:r instanceof cv?Object.keys(r.enum):r instanceof uv?CN(r._def.innerType):r instanceof tv?[void 0]:r instanceof rv?[null]:null,t_=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:t.parsedType}),ye.INVALID;let n=this.discriminator,a=t.data[n],i=this.optionsMap.get(a);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):((0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ye.INVALID)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,n){let a=new Map;for(let i of t){let s=CN(i.shape[e]);if(!s)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let o of s){if(a.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);a.set(o,i)}}return new t_({typeName:sr.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:a,...xr(n)})}};fe.ZodDiscriminatedUnion=t_;function EJ(r,e){let t=(0,qe.getParsedType)(r),n=(0,qe.getParsedType)(e);if(r===e)return{valid:!0,data:r};if(t===qe.ZodParsedType.object&&n===qe.ZodParsedType.object){let a=qe.util.objectKeys(e),i=qe.util.objectKeys(r).filter(o=>a.indexOf(o)!==-1),s={...r,...e};for(let o of i){let c=EJ(r[o],e[o]);if(!c.valid)return{valid:!1};s[o]=c.data}return{valid:!0,data:s}}else if(t===qe.ZodParsedType.array&&n===qe.ZodParsedType.array){if(r.length!==e.length)return{valid:!1};let a=[];for(let i=0;i{if((0,ye.isAborted)(i)||(0,ye.isAborted)(s))return ye.INVALID;let o=EJ(i.value,s.value);return o.valid?(((0,ye.isDirty)(i)||(0,ye.isDirty)(s))&&t.dirty(),{status:t.value,value:o.data}):((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_intersection_types}),ye.INVALID)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([i,s])=>a(i,s)):a(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};fe.ZodIntersection=av;av.create=(r,e,t)=>new av({left:r,right:e,typeName:sr.ZodIntersection,...xr(t)});var op=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.array)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.array,received:n.parsedType}),ye.INVALID;if(n.data.lengththis._def.items.length&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...n.data].map((s,o)=>{let c=this._def.items[o]||this._def.rest;return c?c._parse(new sp(n,s,n.path,o)):null}).filter(s=>!!s);return n.common.async?Promise.all(i).then(s=>ye.ParseStatus.mergeArray(t,s)):ye.ParseStatus.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new op({...this._def,rest:e})}};fe.ZodTuple=op;op.create=(r,e)=>{if(!Array.isArray(r))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new op({items:r,typeName:sr.ZodTuple,rest:null,...xr(e)})};var iv=class extends Tr{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.object)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.object,received:n.parsedType}),ye.INVALID;let a=[],i=this._def.keyType,s=this._def.valueType;for(let o in n.data)a.push({key:i._parse(new sp(n,o,n.path,o)),value:s._parse(new sp(n,n.data[o],n.path,o))});return n.common.async?ye.ParseStatus.mergeObjectAsync(t,a):ye.ParseStatus.mergeObjectSync(t,a)}get element(){return this._def.valueType}static create(e,t,n){return t instanceof Tr?new iv({keyType:e,valueType:t,typeName:sr.ZodRecord,...xr(n)}):new iv({keyType:Zl.create(),valueType:e,typeName:sr.ZodRecord,...xr(t)})}};fe.ZodRecord=iv;var r_=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.map)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.map,received:n.parsedType}),ye.INVALID;let a=this._def.keyType,i=this._def.valueType,s=[...n.data.entries()].map(([o,c],u)=>({key:a._parse(new sp(n,o,n.path,[u,"key"])),value:i._parse(new sp(n,c,n.path,[u,"value"]))}));if(n.common.async){let o=new Map;return Promise.resolve().then(async()=>{for(let c of s){let u=await c.key,l=await c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}})}else{let o=new Map;for(let c of s){let u=c.key,l=c.value;if(u.status==="aborted"||l.status==="aborted")return ye.INVALID;(u.status==="dirty"||l.status==="dirty")&&t.dirty(),o.set(u.value,l.value)}return{status:t.value,value:o}}}};fe.ZodMap=r_;r_.create=(r,e,t)=>new r_({valueType:e,keyType:r,typeName:sr.ZodMap,...xr(t)});var _0=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==qe.ZodParsedType.set)return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.set,received:n.parsedType}),ye.INVALID;let a=this._def;a.minSize!==null&&n.data.sizea.maxSize.value&&((0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),t.dirty());let i=this._def.valueType;function s(c){let u=new Set;for(let l of c){if(l.status==="aborted")return ye.INVALID;l.status==="dirty"&&t.dirty(),u.add(l.value)}return{status:t.value,value:u}}let o=[...n.data.values()].map((c,u)=>i._parse(new sp(n,c,n.path,u)));return n.common.async?Promise.all(o).then(c=>s(c)):s(o)}min(e,t){return new _0({...this._def,minSize:{value:e,message:zt.errorUtil.toString(t)}})}max(e,t){return new _0({...this._def,maxSize:{value:e,message:zt.errorUtil.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};fe.ZodSet=_0;_0.create=(r,e)=>new _0({valueType:r,minSize:null,maxSize:null,typeName:sr.ZodSet,...xr(e)});var h1=class extends Tr{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.function)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.function,received:t.parsedType}),ye.INVALID;function n(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,EN.getErrorMap)(),EN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_arguments,argumentsError:c}})}function a(o,c){return(0,ye.makeIssue)({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,(0,EN.getErrorMap)(),EN.defaultErrorMap].filter(u=>!!u),issueData:{code:Le.ZodIssueCode.invalid_return_type,returnTypeError:c}})}let i={errorMap:t.common.contextualErrorMap},s=t.data;return this._def.returns instanceof m1?(0,ye.OK)(async(...o)=>{let c=new Le.ZodError([]),u=await this._def.args.parseAsync(o,i).catch(f=>{throw c.addIssue(n(o,f)),c}),l=await s(...u);return await this._def.returns._def.type.parseAsync(l,i).catch(f=>{throw c.addIssue(a(l,f)),c})}):(0,ye.OK)((...o)=>{let c=this._def.args.safeParse(o,i);if(!c.success)throw new Le.ZodError([n(o,c.error)]);let u=s(...c.data),l=this._def.returns.safeParse(u,i);if(!l.success)throw new Le.ZodError([a(u,l.error)]);return l.data})}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new h1({...this._def,args:op.create(e).rest(v0.create())})}returns(e){return new h1({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,n){return new h1({args:e||op.create([]).rest(v0.create()),returns:t||v0.create(),typeName:sr.ZodFunction,...xr(n)})}};fe.ZodFunction=h1;var sv=class extends Tr{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};fe.ZodLazy=sv;sv.create=(r,e)=>new sv({getter:r,typeName:sr.ZodLazy,...xr(e)});var ov=class extends Tr{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_literal,expected:this._def.value}),ye.INVALID}return{status:"valid",value:e.data}}get value(){return this._def.value}};fe.ZodLiteral=ov;ov.create=(r,e)=>new ov({value:r,typeName:sr.ZodLiteral,...xr(e)});function d8e(r,e){return new Zf({values:r,typeName:sr.ZodEnum,...xr(e)})}var Zf=class extends Tr{_parse(e){if(typeof e.data!="string"){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{expected:qe.util.joinValues(n),received:t.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(this._def.values.indexOf(e.data)===-1){let t=this._getOrReturnCtx(e),n=this._def.values;return(0,ye.addIssueToContext)(t,{received:t.data,code:Le.ZodIssueCode.invalid_enum_value,options:n}),ye.INVALID}return(0,ye.OK)(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e){return Zf.create(e)}exclude(e){return Zf.create(this.options.filter(t=>!e.includes(t)))}};fe.ZodEnum=Zf;Zf.create=d8e;var cv=class extends Tr{_parse(e){let t=qe.util.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==qe.ZodParsedType.string&&n.parsedType!==qe.ZodParsedType.number){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{expected:qe.util.joinValues(a),received:n.parsedType,code:Le.ZodIssueCode.invalid_type}),ye.INVALID}if(t.indexOf(e.data)===-1){let a=qe.util.objectValues(t);return(0,ye.addIssueToContext)(n,{received:n.data,code:Le.ZodIssueCode.invalid_enum_value,options:a}),ye.INVALID}return(0,ye.OK)(e.data)}get enum(){return this._def.values}};fe.ZodNativeEnum=cv;cv.create=(r,e)=>new cv({values:r,typeName:sr.ZodNativeEnum,...xr(e)});var m1=class extends Tr{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==qe.ZodParsedType.promise&&t.common.async===!1)return(0,ye.addIssueToContext)(t,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.promise,received:t.parsedType}),ye.INVALID;let n=t.parsedType===qe.ZodParsedType.promise?t.data:Promise.resolve(t.data);return(0,ye.OK)(n.then(a=>this._def.type.parseAsync(a,{path:t.path,errorMap:t.common.contextualErrorMap})))}};fe.ZodPromise=m1;m1.create=(r,e)=>new m1({type:r,typeName:sr.ZodPromise,...xr(e)});var ed=class extends Tr{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===sr.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),a=this._def.effect||null;if(a.type==="preprocess"){let s=a.transform(n.data);return n.common.async?Promise.resolve(s).then(o=>this._def.schema._parseAsync({data:o,path:n.path,parent:n})):this._def.schema._parseSync({data:s,path:n.path,parent:n})}let i={addIssue:s=>{(0,ye.addIssueToContext)(n,s),s.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),a.type==="refinement"){let s=o=>{let c=a.refinement(o,i);if(n.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(n.common.async===!1){let o=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(o=>o.status==="aborted"?ye.INVALID:(o.status==="dirty"&&t.dirty(),s(o.value).then(()=>({status:t.value,value:o.value}))))}if(a.type==="transform")if(n.common.async===!1){let s=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!(0,ye.isValid)(s))return s;let o=a.transform(s.value,i);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(s=>(0,ye.isValid)(s)?Promise.resolve(a.transform(s.value,i)).then(o=>({status:t.value,value:o})):s);qe.util.assertNever(a)}};fe.ZodEffects=ed;fe.ZodTransformer=ed;ed.create=(r,e,t)=>new ed({schema:r,typeName:sr.ZodEffects,effect:e,...xr(t)});ed.createWithPreprocess=(r,e,t)=>new ed({schema:e,effect:{type:"preprocess",transform:r},typeName:sr.ZodEffects,...xr(t)});var vh=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.undefined?(0,ye.OK)(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodOptional=vh;vh.create=(r,e)=>new vh({innerType:r,typeName:sr.ZodOptional,...xr(e)});var x0=class extends Tr{_parse(e){return this._getType(e)===qe.ZodParsedType.null?(0,ye.OK)(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};fe.ZodNullable=x0;x0.create=(r,e)=>new x0({innerType:r,typeName:sr.ZodNullable,...xr(e)});var uv=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===qe.ZodParsedType.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fe.ZodDefault=uv;uv.create=(r,e)=>new uv({innerType:r,typeName:sr.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...xr(e)});var n_=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},a=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return(0,ye.isAsync)(a)?a.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Le.ZodError(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fe.ZodCatch=n_;n_.create=(r,e)=>new n_({innerType:r,typeName:sr.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...xr(e)});var a_=class extends Tr{_parse(e){if(this._getType(e)!==qe.ZodParsedType.nan){let n=this._getOrReturnCtx(e);return(0,ye.addIssueToContext)(n,{code:Le.ZodIssueCode.invalid_type,expected:qe.ZodParsedType.nan,received:n.parsedType}),ye.INVALID}return{status:"valid",value:e.data}}};fe.ZodNaN=a_;a_.create=r=>new a_({typeName:sr.ZodNaN,...xr(r)});fe.BRAND=Symbol("zod_brand");var IN=class extends Tr{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}};fe.ZodBranded=IN;var lv=class extends Tr{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return i.status==="aborted"?ye.INVALID:i.status==="dirty"?(t.dirty(),(0,ye.DIRTY)(i.value)):this._def.out._parseAsync({data:i.value,path:n.path,parent:n})})();{let a=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return a.status==="aborted"?ye.INVALID:a.status==="dirty"?(t.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:n.path,parent:n})}}static create(e,t){return new lv({in:e,out:t,typeName:sr.ZodPipeline})}};fe.ZodPipeline=lv;var $Jt=(r,e={},t)=>r?f1.create().superRefine((n,a)=>{var i,s;if(!r(n)){let o=typeof e=="function"?e(n):typeof e=="string"?{message:e}:e,c=(s=(i=o.fatal)!==null&&i!==void 0?i:t)!==null&&s!==void 0?s:!0,u=typeof o=="string"?{message:o}:o;a.addIssue({code:"custom",...u,fatal:c})}}):f1.create();fe.custom=$Jt;fe.late={object:li.lazycreate};var sr;(function(r){r.ZodString="ZodString",r.ZodNumber="ZodNumber",r.ZodNaN="ZodNaN",r.ZodBigInt="ZodBigInt",r.ZodBoolean="ZodBoolean",r.ZodDate="ZodDate",r.ZodSymbol="ZodSymbol",r.ZodUndefined="ZodUndefined",r.ZodNull="ZodNull",r.ZodAny="ZodAny",r.ZodUnknown="ZodUnknown",r.ZodNever="ZodNever",r.ZodVoid="ZodVoid",r.ZodArray="ZodArray",r.ZodObject="ZodObject",r.ZodUnion="ZodUnion",r.ZodDiscriminatedUnion="ZodDiscriminatedUnion",r.ZodIntersection="ZodIntersection",r.ZodTuple="ZodTuple",r.ZodRecord="ZodRecord",r.ZodMap="ZodMap",r.ZodSet="ZodSet",r.ZodFunction="ZodFunction",r.ZodLazy="ZodLazy",r.ZodLiteral="ZodLiteral",r.ZodEnum="ZodEnum",r.ZodEffects="ZodEffects",r.ZodNativeEnum="ZodNativeEnum",r.ZodOptional="ZodOptional",r.ZodNullable="ZodNullable",r.ZodDefault="ZodDefault",r.ZodCatch="ZodCatch",r.ZodPromise="ZodPromise",r.ZodBranded="ZodBranded",r.ZodPipeline="ZodPipeline"})(sr=fe.ZodFirstPartyTypeKind||(fe.ZodFirstPartyTypeKind={}));var YJt=(r,e={message:`Input not instance of ${r.name}`})=>(0,fe.custom)(t=>t instanceof r,e);fe.instanceof=YJt;var p8e=Zl.create;fe.string=p8e;var h8e=Jf.create;fe.number=h8e;var JJt=a_.create;fe.nan=JJt;var QJt=Qf.create;fe.bigint=QJt;var f8e=ev.create;fe.boolean=f8e;var ZJt=w0.create;fe.date=ZJt;var XJt=X3.create;fe.symbol=XJt;var eQt=tv.create;fe.undefined=eQt;var tQt=rv.create;fe.null=tQt;var rQt=f1.create;fe.any=rQt;var nQt=v0.create;fe.unknown=nQt;var aQt=wh.create;fe.never=aQt;var iQt=e_.create;fe.void=iQt;var sQt=Xl.create;fe.array=sQt;var oQt=li.create;fe.object=oQt;var cQt=li.strictCreate;fe.strictObject=cQt;var uQt=nv.create;fe.union=uQt;var lQt=t_.create;fe.discriminatedUnion=lQt;var dQt=av.create;fe.intersection=dQt;var pQt=op.create;fe.tuple=pQt;var hQt=iv.create;fe.record=hQt;var fQt=r_.create;fe.map=fQt;var mQt=_0.create;fe.set=mQt;var yQt=h1.create;fe.function=yQt;var gQt=sv.create;fe.lazy=gQt;var bQt=ov.create;fe.literal=bQt;var vQt=Zf.create;fe.enum=vQt;var wQt=cv.create;fe.nativeEnum=wQt;var _Qt=m1.create;fe.promise=_Qt;var m8e=ed.create;fe.effect=m8e;fe.transformer=m8e;var xQt=vh.create;fe.optional=xQt;var TQt=x0.create;fe.nullable=TQt;var EQt=ed.createWithPreprocess;fe.preprocess=EQt;var CQt=lv.create;fe.pipeline=CQt;var IQt=()=>p8e().optional();fe.ostring=IQt;var kQt=()=>h8e().optional();fe.onumber=kQt;var AQt=()=>f8e().optional();fe.oboolean=AQt;fe.coerce={string:r=>Zl.create({...r,coerce:!0}),number:r=>Jf.create({...r,coerce:!0}),boolean:r=>ev.create({...r,coerce:!0}),bigint:r=>Qf.create({...r,coerce:!0}),date:r=>w0.create({...r,coerce:!0})};fe.NEVER=ye.INVALID});var CJ=x(cp=>{"use strict";d();p();var SQt=cp&&cp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),i_=cp&&cp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&SQt(e,r,t)};Object.defineProperty(cp,"__esModule",{value:!0});i_(TN(),cp);i_(TJ(),cp);i_(c8e(),cp);i_(E4(),cp);i_(y8e(),cp);i_(xN(),cp)});var kr=x(gl=>{"use strict";d();p();var g8e=gl&&gl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),PQt=gl&&gl.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),RQt=gl&&gl.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&g8e(e,r,t);return PQt(e,r),e},MQt=gl&&gl.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&g8e(e,r,t)};Object.defineProperty(gl,"__esModule",{value:!0});gl.z=void 0;var b8e=RQt(CJ());gl.z=b8e;MQt(CJ(),gl);gl.default=b8e});var A8e=x(Ou=>{"use strict";d();p();var v8e=je(),w8e=Fr(),We=kr();function NQt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function BQt(r){var e=NQt(r,"string");return typeof e=="symbol"?e:String(e)}function kJ(r,e,t){return e=BQt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var DQt=We.z.string().refine(r=>v8e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),kN=We.z.date().transform(r=>v8e.BigNumber.from(Math.floor(r.getTime()/1e3))),_8e=We.z.union([We.z.literal("evm"),We.z.literal("solana")]),OQt=We.z.union([We.z.string(),We.z.number(),We.z.boolean(),We.z.null()]),AN=We.z.lazy(()=>We.z.union([OQt,We.z.array(AN),We.z.record(AN)]),{invalid_type_error:"Provided value was not valid JSON"}),x8e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),nonce:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),resources:We.z.array(We.z.string()).optional()}).optional(),SN=We.z.object({type:_8e,domain:We.z.string(),address:We.z.string(),statement:We.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:We.z.string().optional(),version:We.z.string().default("1"),chain_id:We.z.string().optional(),nonce:We.z.string().default(w8e.v4()),issued_at:We.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:We.z.date().transform(r=>r.toISOString()),invalid_before:We.z.date().default(new Date).transform(r=>r.toISOString()),resources:We.z.array(We.z.string()).optional()}),T8e=We.z.object({payload:SN,signature:We.z.string()}),E8e=We.z.object({domain:We.z.string().optional(),statement:We.z.string().optional(),uri:We.z.string().optional(),version:We.z.string().optional(),chainId:We.z.string().optional(),validateNonce:We.z.function().args(We.z.string()).optional(),resources:We.z.array(We.z.string()).optional()}),C8e=E8e.optional(),I8e=We.z.object({domain:We.z.string().optional(),tokenId:We.z.string().optional(),expirationTime:We.z.date().optional(),invalidBefore:We.z.date().optional(),session:We.z.union([AN,We.z.function().args(We.z.string())]).optional(),verifyOptions:E8e.omit({domain:!0}).optional()}).optional(),SJ=We.z.object({iss:We.z.string(),sub:We.z.string(),aud:We.z.string(),exp:kN.transform(r=>r.toNumber()),nbf:kN.transform(r=>r.toNumber()),iat:kN.transform(r=>r.toNumber()),jti:We.z.string().default(w8e.v4()),ctx:AN.optional()}),LQt=We.z.object({payload:SJ,signature:We.z.string()}),k8e=We.z.object({domain:We.z.string().optional(),validateTokenId:We.z.function().args(We.z.string()).optional()}).optional(),qQt=T8e.extend({payload:SN.extend({issued_at:We.z.string(),expiration_time:We.z.string(),invalid_before:We.z.string()})}),IJ=()=>typeof window<"u",AJ=class{constructor(e,t){kJ(this,"domain",void 0),kJ(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=x8e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=SN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(IJ()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=C8e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(IJ())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=I8e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=SJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(IJ())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=k8e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` `);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};Bu.AccountTypeSchema=P4e;Bu.AddressSchema=RJt;Bu.AuthenticateOptionsSchema=O4e;Bu.AuthenticationPayloadDataSchema=tJ;Bu.AuthenticationPayloadSchema=NJt;Bu.GenerateOptionsSchema=D4e;Bu.LoginOptionsSchema=R4e;Bu.LoginPayloadDataSchema=cN;Bu.LoginPayloadOutputSchema=BJt;Bu.LoginPayloadSchema=M4e;Bu.RawDateSchema=sN;Bu.ThirdwebAuth=eJ;Bu.VerifyOptionsSchema=B4e;Bu._defineProperty=XY});var q4e=_(Du=>{"use strict";d();p();Object.defineProperty(Du,"__esModule",{value:!0});var Xl=L4e();Ge();Fr();kr();Du.AccountTypeSchema=Xl.AccountTypeSchema;Du.AddressSchema=Xl.AddressSchema;Du.AuthenticateOptionsSchema=Xl.AuthenticateOptionsSchema;Du.AuthenticationPayloadDataSchema=Xl.AuthenticationPayloadDataSchema;Du.AuthenticationPayloadSchema=Xl.AuthenticationPayloadSchema;Du.GenerateOptionsSchema=Xl.GenerateOptionsSchema;Du.LoginOptionsSchema=Xl.LoginOptionsSchema;Du.LoginPayloadDataSchema=Xl.LoginPayloadDataSchema;Du.LoginPayloadOutputSchema=Xl.LoginPayloadOutputSchema;Du.LoginPayloadSchema=Xl.LoginPayloadSchema;Du.RawDateSchema=Xl.RawDateSchema;Du.ThirdwebAuth=Xl.ThirdwebAuth;Du.VerifyOptionsSchema=Xl.VerifyOptionsSchema});var $4e=_(Ou=>{"use strict";d();p();var F4e=Ge(),W4e=Fr(),Ue=kr();function DJt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function OJt(r){var e=DJt(r,"string");return typeof e=="symbol"?e:String(e)}function nJ(r,e,t){return e=OJt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var LJt=Ue.z.string().refine(r=>F4e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),uN=Ue.z.date().transform(r=>F4e.BigNumber.from(Math.floor(r.getTime()/1e3))),U4e=Ue.z.union([Ue.z.literal("evm"),Ue.z.literal("solana")]),qJt=Ue.z.union([Ue.z.string(),Ue.z.number(),Ue.z.boolean(),Ue.z.null()]),lN=Ue.z.lazy(()=>Ue.z.union([qJt,Ue.z.array(lN),Ue.z.record(lN)]),{invalid_type_error:"Provided value was not valid JSON"}),H4e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),nonce:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),resources:Ue.z.array(Ue.z.string()).optional()}).optional(),dN=Ue.z.object({type:U4e,domain:Ue.z.string(),address:Ue.z.string(),statement:Ue.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ue.z.string().optional(),version:Ue.z.string().default("1"),chain_id:Ue.z.string().optional(),nonce:Ue.z.string().default(W4e.v4()),issued_at:Ue.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ue.z.date().transform(r=>r.toISOString()),invalid_before:Ue.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ue.z.array(Ue.z.string()).optional()}),j4e=Ue.z.object({payload:dN,signature:Ue.z.string()}),z4e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),validateNonce:Ue.z.function().args(Ue.z.string()).optional(),resources:Ue.z.array(Ue.z.string()).optional()}),K4e=z4e.optional(),V4e=Ue.z.object({domain:Ue.z.string().optional(),tokenId:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),session:Ue.z.union([lN,Ue.z.function().args(Ue.z.string())]).optional(),verifyOptions:z4e.omit({domain:!0}).optional()}).optional(),iJ=Ue.z.object({iss:Ue.z.string(),sub:Ue.z.string(),aud:Ue.z.string(),exp:uN.transform(r=>r.toNumber()),nbf:uN.transform(r=>r.toNumber()),iat:uN.transform(r=>r.toNumber()),jti:Ue.z.string().default(W4e.v4()),ctx:lN.optional()}),FJt=Ue.z.object({payload:iJ,signature:Ue.z.string()}),G4e=Ue.z.object({domain:Ue.z.string().optional(),validateTokenId:Ue.z.function().args(Ue.z.string()).optional()}).optional(),WJt=j4e.extend({payload:dN.extend({issued_at:Ue.z.string(),expiration_time:Ue.z.string(),invalid_before:Ue.z.string()})}),rJ=()=>typeof window<"u",aJ=class{constructor(e,t){nJ(this,"domain",void 0),nJ(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=H4e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=dN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(rJ()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=K4e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(rJ())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=V4e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=iJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(rJ())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=G4e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` +`)}};Ou.AccountTypeSchema=_8e;Ou.AddressSchema=DQt;Ou.AuthenticateOptionsSchema=k8e;Ou.AuthenticationPayloadDataSchema=SJ;Ou.AuthenticationPayloadSchema=LQt;Ou.GenerateOptionsSchema=I8e;Ou.LoginOptionsSchema=x8e;Ou.LoginPayloadDataSchema=SN;Ou.LoginPayloadOutputSchema=qQt;Ou.LoginPayloadSchema=T8e;Ou.RawDateSchema=kN;Ou.ThirdwebAuth=AJ;Ou.VerifyOptionsSchema=C8e;Ou._defineProperty=kJ});var S8e=x(Lu=>{"use strict";d();p();Object.defineProperty(Lu,"__esModule",{value:!0});var td=A8e();je();Fr();kr();Lu.AccountTypeSchema=td.AccountTypeSchema;Lu.AddressSchema=td.AddressSchema;Lu.AuthenticateOptionsSchema=td.AuthenticateOptionsSchema;Lu.AuthenticationPayloadDataSchema=td.AuthenticationPayloadDataSchema;Lu.AuthenticationPayloadSchema=td.AuthenticationPayloadSchema;Lu.GenerateOptionsSchema=td.GenerateOptionsSchema;Lu.LoginOptionsSchema=td.LoginOptionsSchema;Lu.LoginPayloadDataSchema=td.LoginPayloadDataSchema;Lu.LoginPayloadOutputSchema=td.LoginPayloadOutputSchema;Lu.LoginPayloadSchema=td.LoginPayloadSchema;Lu.RawDateSchema=td.RawDateSchema;Lu.ThirdwebAuth=td.ThirdwebAuth;Lu.VerifyOptionsSchema=td.VerifyOptionsSchema});var F8e=x(qu=>{"use strict";d();p();var P8e=je(),R8e=Fr(),Ue=kr();function FQt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function WQt(r){var e=FQt(r,"string");return typeof e=="symbol"?e:String(e)}function RJ(r,e,t){return e=WQt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var UQt=Ue.z.string().refine(r=>P8e.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),PN=Ue.z.date().transform(r=>P8e.BigNumber.from(Math.floor(r.getTime()/1e3))),M8e=Ue.z.union([Ue.z.literal("evm"),Ue.z.literal("solana")]),HQt=Ue.z.union([Ue.z.string(),Ue.z.number(),Ue.z.boolean(),Ue.z.null()]),RN=Ue.z.lazy(()=>Ue.z.union([HQt,Ue.z.array(RN),Ue.z.record(RN)]),{invalid_type_error:"Provided value was not valid JSON"}),N8e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),nonce:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),resources:Ue.z.array(Ue.z.string()).optional()}).optional(),MN=Ue.z.object({type:M8e,domain:Ue.z.string(),address:Ue.z.string(),statement:Ue.z.string().default("Please ensure that the domain above matches the URL of the current website."),uri:Ue.z.string().optional(),version:Ue.z.string().default("1"),chain_id:Ue.z.string().optional(),nonce:Ue.z.string().default(R8e.v4()),issued_at:Ue.z.date().default(new Date).transform(r=>r.toISOString()),expiration_time:Ue.z.date().transform(r=>r.toISOString()),invalid_before:Ue.z.date().default(new Date).transform(r=>r.toISOString()),resources:Ue.z.array(Ue.z.string()).optional()}),B8e=Ue.z.object({payload:MN,signature:Ue.z.string()}),D8e=Ue.z.object({domain:Ue.z.string().optional(),statement:Ue.z.string().optional(),uri:Ue.z.string().optional(),version:Ue.z.string().optional(),chainId:Ue.z.string().optional(),validateNonce:Ue.z.function().args(Ue.z.string()).optional(),resources:Ue.z.array(Ue.z.string()).optional()}),O8e=D8e.optional(),L8e=Ue.z.object({domain:Ue.z.string().optional(),tokenId:Ue.z.string().optional(),expirationTime:Ue.z.date().optional(),invalidBefore:Ue.z.date().optional(),session:Ue.z.union([RN,Ue.z.function().args(Ue.z.string())]).optional(),verifyOptions:D8e.omit({domain:!0}).optional()}).optional(),NJ=Ue.z.object({iss:Ue.z.string(),sub:Ue.z.string(),aud:Ue.z.string(),exp:PN.transform(r=>r.toNumber()),nbf:PN.transform(r=>r.toNumber()),iat:PN.transform(r=>r.toNumber()),jti:Ue.z.string().default(R8e.v4()),ctx:RN.optional()}),jQt=Ue.z.object({payload:NJ,signature:Ue.z.string()}),q8e=Ue.z.object({domain:Ue.z.string().optional(),validateTokenId:Ue.z.function().args(Ue.z.string()).optional()}).optional(),zQt=B8e.extend({payload:MN.extend({issued_at:Ue.z.string(),expiration_time:Ue.z.string(),invalid_before:Ue.z.string()})}),PJ=()=>typeof window<"u",MJ=class{constructor(e,t){RJ(this,"domain",void 0),RJ(this,"wallet",void 0),this.wallet=e,this.domain=t}updateWallet(e){this.wallet=e}async login(e){let t=N8e.parse(e),n=t?.chainId;if(!n&&this.wallet.getChainId)try{n=(await this.wallet.getChainId()).toString()}catch{}let a=MN.parse({type:this.wallet.type,domain:t?.domain||this.domain,address:await this.wallet.getAddress(),statement:t?.statement,version:t?.version,uri:t?.uri||(PJ()?window.location.origin:void 0),chain_id:n,nonce:t?.nonce,expiration_time:t?.expirationTime||new Date(Date.now()+1e3*60*5),invalid_before:t?.invalidBefore,resources:t?.resources}),i=this.generateMessage(a),s=await this.wallet.signMessage(i);return{payload:a,signature:s}}async verify(e,t){let n=O8e.parse(t);if(e.payload.type!==this.wallet.type)throw new Error(`Expected chain type '${this.wallet.type}' does not match chain type on payload '${e.payload.type}'`);let a=n?.domain||this.domain;if(e.payload.domain!==a)throw new Error(`Expected domain '${a}' does not match domain on payload '${e.payload.domain}'`);if(n?.statement&&e.payload.statement!==n.statement)throw new Error(`Expected statement '${n.statement}' does not match statement on payload '${e.payload.statement}'`);if(n?.uri&&e.payload.uri!==n.uri)throw new Error(`Expected URI '${n.uri}' does not match URI on payload '${e.payload.uri}'`);if(n?.version&&e.payload.version!==n.version)throw new Error(`Expected version '${n.version}' does not match version on payload '${e.payload.version}'`);if(n?.chainId&&e.payload.chain_id!==n.chainId)throw new Error(`Expected chain ID '${n.chainId}' does not match chain ID on payload '${e.payload.chain_id}'`);if(n?.validateNonce!==void 0)try{await n.validateNonce(e.payload.nonce)}catch{throw new Error("Login request nonce is invalid")}let i=new Date;if(inew Date(e.payload.expiration_time))throw new Error("Login request has expired");if(n?.resources){let u=n.resources.filter(l=>!e.payload.resources?.includes(l));if(u.length>0)throw new Error(`Login request is missing required resources: ${u.join(", ")}`)}let s=this.generateMessage(e.payload),o=this.wallet.type==="evm"&&e.payload.chain_id?parseInt(e.payload.chain_id):void 0;if(!await this.verifySignature(s,e.signature,e.payload.address,o))throw new Error(`Signer address does not match payload address '${e.payload.address.toLowerCase()}'`);return e.payload.address}async generate(e,t){if(PJ())throw new Error("Authentication tokens should not be generated in the browser, as they must be signed by a server-side admin wallet.");let n=L8e.parse(t),a=n?.domain||this.domain,i=await this.verify(e,{domain:a,...n?.verifyOptions}),s;if(typeof n?.session=="function"){let I=await n.session(i);I&&(s=I)}else s=n?.session;let o=await this.wallet.getAddress(),c=NJ.parse({iss:o,sub:i,aud:a,nbf:n?.invalidBefore||new Date,exp:n?.expirationTime||new Date(Date.now()+1e3*60*60*5),iat:new Date,jti:n?.tokenId,ctx:s}),u=JSON.stringify(c),l=await this.wallet.signMessage(u),h={alg:"ES256",typ:"JWT"},f=b.Buffer.from(JSON.stringify(h)).toString("base64"),m=b.Buffer.from(JSON.stringify(c)).toString("base64").replace(/=/g,""),y=b.Buffer.from(l).toString("base64");return`${f}.${m}.${y}`}async authenticate(e,t){if(PJ())throw new Error("Should not authenticate tokens in the browser, as they must be verified by the server-side admin wallet.");let n=q8e.parse(t),a=n?.domain||this.domain,i=e.split(".")[1],s=e.split(".")[2],o=JSON.parse(b.Buffer.from(i,"base64").toString()),c=b.Buffer.from(s,"base64").toString();if(n?.validateTokenId!==void 0)try{await n.validateTokenId(o.jti)}catch{throw new Error("Token ID is invalid")}if(o.aud!==a)throw new Error(`Expected token to be for the domain '${a}', but found token with domain '${o.aud}'`);let u=Math.floor(new Date().getTime()/1e3);if(uo.exp)throw new Error(`This token expired at epoch time '${o.exp}', current epoch time is '${u}'`);let l=await this.wallet.getAddress();if(l.toLowerCase()!==o.iss.toLowerCase())throw new Error(`Expected the connected wallet address '${l}' to match the token issuer address '${o.iss}'`);let h;if(this.wallet.getChainId)try{h=await this.wallet.getChainId()}catch{}if(!await this.verifySignature(JSON.stringify(o),c,l,h))throw new Error(`The connected wallet address '${l}' did not sign the token`);return{address:o.sub,session:o.ctx}}async verifySignature(e,t,n,a){return this.wallet.verifySignature(e,t,n,a)}generateMessage(e){let t=e.type==="evm"?"Ethereum":"Solana",a=[`${e.domain} wants you to sign in with your ${t} account:`,e.address].join(` `);a=[a,e.statement].join(` `),e.statement&&(a+=` `);let i=[];if(e.uri){let h=`URI: ${e.uri}`;i.push(h)}let s=`Version: ${e.version}`;if(i.push(s),e.chain_id){let h="Chain ID: "+e.chain_id||"1";i.push(h)}let o=`Nonce: ${e.nonce}`;i.push(o);let c=`Issued At: ${e.issued_at}`;i.push(c);let u=`Expiration Time: ${e.expiration_time}`;if(i.push(u),e.invalid_before){let h=`Not Before: ${e.invalid_before}`;i.push(h)}e.resources&&i.push(["Resources:",...e.resources.map(h=>`- ${h}`)].join(` `));let l=i.join(` `);return[a,l].join(` -`)}};Ou.AccountTypeSchema=U4e;Ou.AddressSchema=LJt;Ou.AuthenticateOptionsSchema=G4e;Ou.AuthenticationPayloadDataSchema=iJ;Ou.AuthenticationPayloadSchema=FJt;Ou.GenerateOptionsSchema=V4e;Ou.LoginOptionsSchema=H4e;Ou.LoginPayloadDataSchema=dN;Ou.LoginPayloadOutputSchema=WJt;Ou.LoginPayloadSchema=j4e;Ou.RawDateSchema=uN;Ou.ThirdwebAuth=aJ;Ou.VerifyOptionsSchema=K4e;Ou._defineProperty=nJ});var Y4e=_(Lu=>{"use strict";d();p();Object.defineProperty(Lu,"__esModule",{value:!0});var ed=$4e();Ge();Fr();kr();Lu.AccountTypeSchema=ed.AccountTypeSchema;Lu.AddressSchema=ed.AddressSchema;Lu.AuthenticateOptionsSchema=ed.AuthenticateOptionsSchema;Lu.AuthenticationPayloadDataSchema=ed.AuthenticationPayloadDataSchema;Lu.AuthenticationPayloadSchema=ed.AuthenticationPayloadSchema;Lu.GenerateOptionsSchema=ed.GenerateOptionsSchema;Lu.LoginOptionsSchema=ed.LoginOptionsSchema;Lu.LoginPayloadDataSchema=ed.LoginPayloadDataSchema;Lu.LoginPayloadOutputSchema=ed.LoginPayloadOutputSchema;Lu.LoginPayloadSchema=ed.LoginPayloadSchema;Lu.RawDateSchema=ed.RawDateSchema;Lu.ThirdwebAuth=ed.ThirdwebAuth;Lu.VerifyOptionsSchema=ed.VerifyOptionsSchema});var J4e=_((w9n,sJ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?sJ.exports=q4e():sJ.exports=Y4e()});var Q4e=_((T9n,cJ)=>{d();p();var oJ=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,B,x){D[B]=x.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,B,x){return Object.defineProperty(D,B,{value:x,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{u({},"")}catch{u=function(B,x,N){return B[x]=N}}function l(D,B,x,N){var U=B&&B.prototype instanceof S?B:S,C=Object.create(U.prototype),z=new v(N||[]);return n(C,"_invoke",{value:q(D,x,z)}),C}r.wrap=l;function h(D,B,x){try{return{type:"normal",arg:D.call(B,x)}}catch(N){return{type:"throw",arg:N}}}var f="suspendedStart",m="suspendedYield",y="executing",E="completed",I={};function S(){}function L(){}function F(){}var W={};u(W,s,function(){return this});var G=Object.getPrototypeOf,K=G&&G(G(k([])));K&&K!==e&&t.call(K,s)&&(W=K);var H=F.prototype=S.prototype=Object.create(W);L.prototype=F,n(H,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:L,configurable:!0}),L.displayName=u(F,c,"GeneratorFunction");function V(D){["next","throw","return"].forEach(function(B){u(D,B,function(x){return this._invoke(B,x)})})}r.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return B?B===L||(B.displayName||B.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,u(D,c,"GeneratorFunction")),D.prototype=Object.create(H),D},r.awrap=function(D){return{__await:D}};function J(D,B){function x(C,z,ee,j){var X=h(D[C],D,z);if(X.type==="throw")j(X.arg);else{var ie=X.arg,ue=ie.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?B.resolve(ue.__await).then(function(he){x("next",he,ee,j)},function(he){x("throw",he,ee,j)}):B.resolve(ue).then(function(he){ie.value=he,ee(ie)},function(he){return x("throw",he,ee,j)})}}var N;function U(C,z){function ee(){return new B(function(j,X){x(C,z,j,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}V(J.prototype),u(J.prototype,o,function(){return this}),r.AsyncIterator=J,r.async=function(D,B,x,N,U){U===void 0&&(U=Promise);var C=new J(l(D,B,x,N),U);return r.isGeneratorFunction(B)?C:C.next().then(function(z){return z.done?z.value:C.next()})};function q(D,B,x){var N=f;return function(C,z){if(N===y)throw new Error("Generator is already running");if(N===E){if(C==="throw")throw z;return O()}for(x.method=C,x.arg=z;;){var ee=x.delegate;if(ee){var j=T(ee,x);if(j){if(j===I)continue;return j}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(N===f)throw N=E,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);N=y;var X=h(D,B,x);if(X.type==="normal"){if(N=x.done?E:m,X.arg===I)continue;return{value:X.arg,done:x.done}}else X.type==="throw"&&(N=E,x.method="throw",x.arg=X.arg)}}}function T(D,B){var x=B.method,N=D.iterator[x];if(N===a)return B.delegate=null,x==="throw"&&D.iterator.return&&(B.method="return",B.arg=a,T(D,B),B.method==="throw")||x!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+x+"' method")),I;var U=h(N,D.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,I;var C=U.arg;if(!C)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,I;if(C.done)B[D.resultName]=C.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a);else return C;return B.delegate=null,I}V(H),u(H,c,"Generator"),u(H,s,function(){return this}),u(H,"toString",function(){return"[object Generator]"});function P(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function A(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function v(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(P,this),this.reset(!0)}r.keys=function(D){var B=Object(D),x=[];for(var N in B)x.push(N);return x.reverse(),function U(){for(;x.length;){var C=x.pop();if(C in B)return U.value=C,U.done=!1,U}return U.done=!0,U}};function k(D){if(D){var B=D[s];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var x=-1,N=function U(){for(;++x=0;--N){var U=this.tryEntries[N],C=U.completion;if(U.tryLoc==="root")return x("end");if(U.tryLoc<=this.prev){var z=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(z&&ee){if(this.prev=0;--x){var N=this.tryEntries[x];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--B){var x=this.tryEntries[B];if(x.finallyLoc===D)return this.complete(x.completion,x.afterLoc),A(x),I}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var x=this.tryEntries[B];if(x.tryLoc===D){var N=x.completion;if(N.type==="throw"){var U=N.arg;A(x)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,x){return this.delegate={iterator:k(D),resultName:B,nextLoc:x},this.method==="next"&&(this.arg=a),I}},r}(typeof cJ=="object"?cJ.exports:{});try{regeneratorRuntime=oJ}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=oJ:Function("r","regeneratorRuntime = r")(oJ)}});var i4=_(Qf=>{"use strict";d();p();Object.defineProperty(Qf,"__esModule",{value:!0});var Z4e=zJt(Q4e());function uJ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function $Jt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function a8e(r){return UJt(r)||KJt(r)||JJt(r)||VJt()}var YJt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function JJt(r,e){if(!!r){if(typeof r=="string")return uJ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return uJ(r,e)}}Object.defineProperty(Qf,"__esModule",{value:!0});function xn(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":YJt(e))!=="symbol"?e+"":e,t),t},s8e="https://pay.coinbase.com",o8e=en(function(r){var e=r.host,t=e===void 0?s8e:e,n=r.destinationWallets,a=n8e(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),c8e="cbpay-embedded-onramp",ZJt=en(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=c8e,l.src=e,l},"createEmbeddedContent"),e8e;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(e8e||(e8e={}));var u8e=en(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?en(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=en(function(u){var l=tQt(u.data),h=l.eventName,f=l.data,m=!i||u.origin===i;h===r&&HJt(Z4e.default.mark(function y(){return Z4e.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(I.t0=m,!I.t0){I.next=5;break}return I.next=4,o(u.origin);case 4:I.t0=I.sent;case 5:if(!I.t0){I.next=7;break}t(f),a&&window.removeEventListener("message",c);case 7:case"end":return I.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),XJt=en(function(r){return r!==window?r:eQt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),eQt=en(function(r){try{return xn([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),pJ=en(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=rQt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),tQt=en(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),rQt=en(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),nQt="/embed",aQt=5e3,lJ="coinbase-sdk-connect",o1={signin:{width:460,height:730},widget:{width:430,height:600}},l8e=function r(e){var t=e.host,n=t===void 0?s8e:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;t8e(this,r),_s(this,"state","loading"),_s(this,"nonce",""),_s(this,"eventStreamListeners",{}),_s(this,"unsubs",[]),_s(this,"isLoggedIn",!1),_s(this,"openExperience",en(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){xn([u,"access",function(G){return G.onFallbackOpen},"optionalCall",function(G){return G()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var h=u.nonce;u.nonce="",u.setupExperienceListeners(l);var f=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,E=l.embeddedContentStyles,I=new URL("".concat(u.host).concat(f));I.searchParams.append("appId",u.appId),I.searchParams.append("type","secure_standalone");var S=u.isLoggedIn?m:y||m;I.searchParams.append("nonce",h);var L=I.toString();if(u.log("Opening experience",{experience:S,isLoggedIn:u.isLoggedIn}),S==="embedded"){var F=en(function(){var G=ZJt(j5({url:L},E));xn([E,"optionalAccess",function(K){return K.target}])?xn([document,"access",function(K){return K.querySelector},"call",function(K){return K(xn([E,"optionalAccess",function(H){return H.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(G)}]):document.body.appendChild(G)},"openEmbeddedExperience");u.isLoggedIn?F():u.startDirectSignin(F)}else S==="popup"&&xn([window,"access",function(G){return G.chrome},"optionalAccess",function(G){return G.windows},"optionalAccess",function(G){return G.create}])?window.chrome.windows.create({url:L,setSelfAsOpener:!0,type:"popup",focused:!0,width:o1.signin.width,height:o1.signin.height,left:window.screenLeft-o1.signin.width-10,top:window.screenTop},function(G){u.addEventStreamListener("open",function(){xn([G,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(G.id,{width:o1.widget.width,height:o1.widget.height,left:window.screenLeft-o1.widget.width-10,top:window.screenTop})})}):S==="new_tab"&&xn([window,"access",function(G){return G.chrome},"optionalAccess",function(G){return G.tabs},"optionalAccess",function(G){return G.create}])?window.chrome.tabs.create({url:L}):dJ(L,S);var W=en(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),_s(this,"endExperience",en(function(){xn([document,"access",function(l){return l.getElementById},"call",function(l){return l(c8e)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),_s(this,"destroy",en(function(){xn([document,"access",function(l){return l.getElementById},"call",function(l){return l(lJ)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),_s(this,"addPixelReadyListener",en(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!xn([l,"optionalAccess",function(h){return h.isLoggedIn}]),xn([u,"access",function(h){return h.removeErrorListener},"optionalCall",function(h){return h()}]),u.sendAppParams(function(){xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}])})}})},"addPixelReadyListener")),_s(this,"addErrorListener",en(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var h=typeof l=="string"?l:JSON.stringify(l);xn([u,"access",function(f){return f.onReadyCallback},"optionalCall",function(f){return f(new Error(h))}])}}})},"addErrorListener")),_s(this,"embedPixel",en(function(){xn([document,"access",function(h){return h.getElementById},"call",function(h){return h(lJ)},"optionalAccess",function(h){return h.remove},"call",function(h){return h()}]);var l=d8e({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),_s(this,"onFailedToLoad",en(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),xn([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(l)}])}},"onFailedToLoad")),_s(this,"sendAppParams",en(function(l){xn([u,"access",function(h){return h.pixelIframe},"optionalAccess",function(h){return h.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(h){u.state="ready",u.nonce=xn([h,"optionalAccess",function(f){return f.nonce}])||"",xn([l,"optionalCall",function(f){return f()}])}}),u.state="waiting_for_response",pJ(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",xn([u,"access",function(h){return h.onFallbackOpen},"optionalCall",function(h){return h()}]))},"sendAppParams")),_s(this,"setupExperienceListeners",en(function(l){var h=l.onSuccess,f=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var E=y;xn([u,"access",function(I){return I.eventStreamListeners},"access",function(I){return I[E.eventName]},"optionalAccess",function(I){return I.forEach},"call",function(I){return I(function(S){return xn([S,"optionalCall",function(L){return L()}])})}]),E.eventName==="success"&&xn([h,"optionalCall",function(I){return I()}]),E.eventName==="exit"&&xn([f,"optionalCall",function(I){return I(E.error)}]),xn([m,"optionalCall",function(I){return I(y)}])}})},"setupExperienceListeners")),_s(this,"startDirectSignin",en(function(l){var h=new URLSearchParams;h.set("appId",u.appId),h.set("type","direct");var f="".concat(u.host,"/signin?").concat(h.toString()),m=dJ(f,"popup");u.onMessage("signin_success",{onMessage:function(){xn([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),_s(this,"addEventStreamListener",en(function(l,h){u.eventStreamListeners[l]?xn([u,"access",function(f){return f.eventStreamListeners},"access",function(f){return f[l]},"optionalAccess",function(f){return f.push},"call",function(f){return f(h)}]):u.eventStreamListeners[l]=[h]},"addEventStreamListener")),_s(this,"removeEventStreamListener",en(function(l,h){if(u.eventStreamListeners[l]){var f=xn([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==h})}]);u.eventStreamListeners[l]=f}},"removeEventStreamListener")),_s(this,"onMessage",en(function(){for(var l=arguments.length,h=new Array(l),f=0;f{"use strict";d();p();Object.defineProperty(yJ,"__esModule",{value:!0});var oQt=i4();function cQt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function uQt(r,e,t){cQt(r,e),e.set(r,t)}function lQt(r,e){return e.get?e.get.call(r):e.value}function h8e(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function dQt(r,e){var t=h8e(r,e,"get");return lQt(r,t)}function pQt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function hQt(r,e,t){var n=h8e(r,e,"set");return pQt(r,n,t),t}var fQt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},fJ=new WeakMap,mJ=class{constructor(e){uQt(this,fJ,{writable:!0,value:void 0}),hQt(this,fJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{oQt.initOnRamp({appId:dQt(this,fJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[fQt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};yJ.CoinbasePayIntegration=mJ});var m8e=_(gJ=>{"use strict";d();p();Object.defineProperty(gJ,"__esModule",{value:!0});var mQt=f8e();i4();gJ.CoinbasePayIntegration=mQt.CoinbasePayIntegration});var g8e=_(wJ=>{"use strict";d();p();Object.defineProperty(wJ,"__esModule",{value:!0});var yQt=i4();function gQt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bQt(r,e,t){gQt(r,e),e.set(r,t)}function vQt(r,e){return e.get?e.get.call(r):e.value}function y8e(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function wQt(r,e){var t=y8e(r,e,"get");return vQt(r,t)}function xQt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function _Qt(r,e,t){var n=y8e(r,e,"set");return xQt(r,n,t),t}var TQt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},bJ=new WeakMap,vJ=class{constructor(e){bQt(this,bJ,{writable:!0,value:void 0}),_Qt(this,bJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{yQt.initOnRamp({appId:wQt(this,bJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[TQt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};wJ.CoinbasePayIntegration=vJ});var b8e=_(xJ=>{"use strict";d();p();Object.defineProperty(xJ,"__esModule",{value:!0});var EQt=g8e();i4();xJ.CoinbasePayIntegration=EQt.CoinbasePayIntegration});var v8e=_((U9n,_J)=>{"use strict";d();p();g.env.NODE_ENV==="production"?_J.exports=m8e():_J.exports=b8e()});var wi=_(ou=>{"use strict";d();p();var CQt=Ir(),z5=Ge(),ct=kr();function IQt(r){return r&&r.__esModule?r:{default:r}}var K5=IQt(CQt),T8e="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function kQt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T8e;return`https://${r}.rpc.thirdweb.com/${e}`}var AQt=()=>typeof window<"u",w8e=AQt()?ct.z.instanceof(File):ct.z.instanceof(b.Buffer),SQt=ct.z.union([w8e,ct.z.object({data:ct.z.union([w8e,ct.z.string()]),name:ct.z.string()})]),pN=ct.z.union([SQt,ct.z.string()]),E8e=1e4,PQt=ct.z.union([ct.z.array(ct.z.number()),ct.z.string()]),RQt=ct.z.union([ct.z.string(),ct.z.number(),ct.z.bigint(),ct.z.custom(r=>z5.BigNumber.isBigNumber(r)),ct.z.custom(r=>K5.default.isBN(r))]).transform(r=>{let e=K5.default.isBN(r)?new K5.default(r).toString():z5.BigNumber.from(r).toString();return z5.BigNumber.from(e)});RQt.transform(r=>r.toString());var C8e=ct.z.union([ct.z.bigint(),ct.z.custom(r=>z5.BigNumber.isBigNumber(r)),ct.z.custom(r=>K5.default.isBN(r))]).transform(r=>K5.default.isBN(r)?new K5.default(r).toString():z5.BigNumber.from(r).toString()),MQt=ct.z.number().max(E8e,"Cannot exceed 100%").min(0,"Cannot be below 0%"),NQt=ct.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),BQt=ct.z.union([ct.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),ct.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),ct.z.string().length(0)]),I8e=ct.z.union([ct.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),ct.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),DQt=ct.z.union([I8e,ct.z.literal("unlimited")]).default("unlimited"),k8e=ct.z.date().transform(r=>z5.BigNumber.from(Math.floor(r.getTime()/1e3)));k8e.default(new Date(0));k8e.default(new Date(Date.now()+1e3*60*60*24*365*10));function OQt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function LQt(r){var e=OQt(r,"string");return typeof e=="symbol"?e:String(e)}function qQt(r,e,t){return e=LQt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var x8e=ct.z.object({}).catchall(ct.z.union([C8e,ct.z.unknown()])),_8e=ct.z.union([ct.z.array(x8e),x8e]).optional().nullable(),EJ=ct.z.object({name:ct.z.union([ct.z.string(),ct.z.number()]).optional().nullable(),description:ct.z.string().nullable().optional().nullable(),image:pN.nullable().optional(),external_url:pN.nullable().optional(),animation_url:pN.optional().nullable(),background_color:BQt.optional().nullable(),properties:_8e,attributes:_8e}).catchall(ct.z.union([C8e,ct.z.unknown()])),FQt=ct.z.union([EJ,ct.z.string()]),WQt=EJ.extend({id:ct.z.string(),uri:ct.z.string(),image:ct.z.string().nullable().optional(),external_url:ct.z.string().nullable().optional(),animation_url:ct.z.string().nullable().optional()}),TJ=100,UQt=ct.z.object({start:ct.z.number().default(0),count:ct.z.number().default(TJ)}).default({start:0,count:TJ});ou.AmountSchema=I8e;ou.BasisPointsSchema=MQt;ou.BytesLikeSchema=PQt;ou.CommonNFTInput=EJ;ou.CommonNFTOutput=WQt;ou.DEFAULT_API_KEY=T8e;ou.DEFAULT_QUERY_ALL_COUNT=TJ;ou.FileOrBufferOrStringSchema=pN;ou.MAX_BPS=E8e;ou.NFTInputOrUriSchema=FQt;ou.PercentSchema=NQt;ou.QuantitySchema=DQt;ou.QueryAllParamsSchema=UQt;ou._defineProperty=qQt;ou.getRpcUrl=kQt});var _n=_((G9n,HQt)=>{HQt.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Tn=_(($9n,jQt)=>{jQt.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=_((Y9n,zQt)=>{zQt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Cn=_((J9n,KQt)=>{KQt.exports=[{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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{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:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var In=_((Q9n,VQt)=>{VQt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var kn=_((Z9n,GQt)=>{GQt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var An=_((X9n,$Qt)=>{$Qt.exports=[{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:"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:"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:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Sn=_((eMn,YQt)=>{YQt.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Pn=_((tMn,JQt)=>{JQt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rn=_((rMn,QQt)=>{QQt.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Mn=_((nMn,ZQt)=>{ZQt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Nn=_((aMn,XQt)=>{XQt.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Bn=_((iMn,eZt)=>{eZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Dn=_((sMn,tZt)=>{tZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var On=_((oMn,rZt)=>{rZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var un=_((cMn,nZt)=>{nZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ln=_((uMn,aZt)=>{aZt.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var qn=_((lMn,iZt)=>{iZt.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Fn=_((dMn,sZt)=>{sZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Wn=_((pMn,oZt)=>{oZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Un=_((hMn,cZt)=>{cZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Hn=_((fMn,uZt)=>{uZt.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var jn=_((mMn,lZt)=>{lZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var zn=_((yMn,dZt)=>{dZt.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Kn=_((gMn,pZt)=>{pZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Vn=_((bMn,hZt)=>{hZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Gn=_((vMn,fZt)=>{fZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var $n=_((wMn,mZt)=>{mZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Yn=_((xMn,yZt)=>{yZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ln=_((_Mn,gZt)=>{gZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=_((TMn,bZt)=>{bZt.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Qn=_((EMn,vZt)=>{vZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Zn=_((CMn,wZt)=>{wZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Xn=_((IMn,xZt)=>{xZt.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ea=_((kMn,_Zt)=>{_Zt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ta=_((AMn,TZt)=>{TZt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ra=_((SMn,EZt)=>{EZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=_((PMn,CZt)=>{CZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var aa=_((RMn,IZt)=>{IZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var ia=_((MMn,kZt)=>{kZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=_((NMn,AZt)=>{AZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var oa=_((BMn,SZt)=>{SZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ca=_((DMn,PZt)=>{PZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ua=_((OMn,RZt)=>{RZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var la=_((LMn,MZt)=>{MZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var da=_((qMn,NZt)=>{NZt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var FLe=_(R=>{"use strict";d();p();Object.defineProperty(R,"__esModule",{value:!0});var BZt={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},DZt={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},OZt={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},LZt={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},qZt={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},FZt={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},WZt={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},UZt={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},HZt={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},jZt={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},zZt={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},KZt={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},VZt={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},GZt={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},$Zt={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},YZt={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},JZt={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},QZt={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},ZZt={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},XZt={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},eXt={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},tXt={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},rXt={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},nXt={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},aXt={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},iXt={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},sXt={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},oXt={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},cXt={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},uXt={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},lXt={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},dXt={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},pXt={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},hXt={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},fXt={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},mXt={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},yXt={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},gXt={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},bXt={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},vXt={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},wXt={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},xXt={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},_Xt={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},TXt={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},EXt={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},CXt={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},IXt={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},kXt={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},AXt={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},SXt={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},PXt={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},RXt={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},MXt={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},NXt={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},BXt={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},DXt={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},OXt={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},LXt={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},qXt={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},FXt={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},WXt={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},UXt={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},HXt={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},jXt={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},zXt={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},KXt={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},VXt={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},GXt={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},$Xt={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},YXt={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},JXt={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},QXt={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},ZXt={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},XXt={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},eer={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},ter={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},rer={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},ner={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},aer={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},ier={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},ser={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},oer={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},cer={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},uer={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},ler={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},der={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},per={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},her={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},fer={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},mer={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},yer={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},ger={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},ber={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},ver={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},wer={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},xer={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},_er={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},Ter={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},Eer={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},Cer={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},Ier={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},ker={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},Aer={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},Ser={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},Per={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},Rer={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},Mer={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},Ner={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},Ber={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},Der={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Oer={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},Ler={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},qer={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},Fer={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},Wer={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Uer={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Her={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},jer={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},zer={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Ker={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Ver={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},Ger={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},$er={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},Yer={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},Jer={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},Qer={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},Zer={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},Xer={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},etr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},ttr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},rtr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},ntr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},atr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},itr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},str={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},otr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},ctr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},utr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},ltr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},dtr={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},ptr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},htr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},ftr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},mtr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},ytr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},gtr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},btr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},vtr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},wtr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},xtr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},_tr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},Ttr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},Etr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},Ctr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},Itr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},ktr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},Atr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},Str={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},Ptr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},Rtr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},Mtr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},Ntr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},Btr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},Dtr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Otr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},Ltr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},qtr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Ftr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Wtr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},Utr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Htr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},jtr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},ztr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Ktr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Vtr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Gtr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},$tr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},Ytr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Jtr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},Qtr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},Ztr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},Xtr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},err={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},trr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},rrr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},nrr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},arr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},irr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},srr={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},orr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},crr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},urr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},lrr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},drr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},prr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},hrr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},frr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},mrr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},yrr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},grr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},brr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},vrr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},wrr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},xrr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},_rr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},Trr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},Err={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},Crr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},Irr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},krr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},Arr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},Srr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},Prr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},Rrr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},Mrr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},Nrr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},Brr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},Drr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Orr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Lrr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},qrr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},Frr={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},Wrr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Urr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Hrr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},jrr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},zrr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Krr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Vrr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Grr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},$rr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},Yrr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Jrr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},Qrr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Zrr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Xrr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},enr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},tnr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},rnr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},nnr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},anr={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},inr={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},snr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},onr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},cnr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},unr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},lnr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},dnr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},pnr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},hnr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},fnr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},mnr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},ynr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},gnr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},bnr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},vnr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},wnr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},xnr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},_nr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},Tnr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},Enr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},Cnr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},Inr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},knr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},Anr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},Snr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},Pnr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},Rnr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},Mnr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},Nnr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Bnr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},Dnr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Onr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},Lnr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},qnr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Fnr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Wnr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Unr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Hnr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},jnr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},znr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Knr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Vnr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Gnr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},$nr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},Ynr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},Jnr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},Qnr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},Znr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},Xnr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},ear={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},tar={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},rar={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},nar={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},aar={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},iar={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},sar={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},oar={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},car={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},uar={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},lar={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},dar={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},par={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},har={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},far={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},mar={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},yar={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},gar={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},bar={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},war={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},xar={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},_ar={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},Tar={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},Ear={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},Car={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},Iar={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},kar={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},Aar={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},Sar={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},Par={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},Rar={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},Mar={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},Nar={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},Bar={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},Dar={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},Oar={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},Lar={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},qar={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Far={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},War={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Uar={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Har={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},jar={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},zar={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Kar={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Var={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Gar={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},$ar={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},Yar={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},Jar={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Qar={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Zar={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},Xar={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},eir={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},tir={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},rir={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},nir={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},air={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},iir={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},sir={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},oir={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},cir={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},uir={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},lir={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},dir={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},pir={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},hir={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},fir={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},mir={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},yir={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},gir={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},bir={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},vir={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},wir={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},xir={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},_ir={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},Tir={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},Eir={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},Cir={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},Iir={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},kir={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},Air={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Sir={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},Pir={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Rir={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},Mir={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},Nir={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},Bir={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},Dir={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Oir={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Lir={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},qir={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Fir={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Wir={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Uir={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Hir={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},jir={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},zir={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Kir={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Vir={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Gir={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},$ir={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},Yir={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Jir={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Qir={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Zir={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},Xir={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},esr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},tsr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},rsr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},nsr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},asr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},isr={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},ssr={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},osr={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},csr={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},usr={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},lsr={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},dsr={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},psr={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},hsr={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},fsr={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},msr={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},ysr={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},gsr={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},bsr={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},vsr={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},wsr={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},xsr={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},_sr={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},Tsr={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},Esr={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},Csr={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},Isr={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},ksr={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},Asr={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},Ssr={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},Psr={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Rsr={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},Msr={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},Nsr={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},Bsr={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},Dsr={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},Osr={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},Lsr={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},qsr={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},Fsr={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},Wsr={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},Usr={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},Hsr={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},jsr={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},zsr={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},Ksr={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},Vsr={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},Gsr={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},$sr={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},Ysr={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},Jsr={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},Qsr={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},Zsr={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},Xsr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},eor={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},tor={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},ror={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},nor={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},aor={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},ior={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},sor={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},oor={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},cor={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},uor={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},lor={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},dor={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},por={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},hor={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},mor={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},yor={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},gor={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},bor={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},vor={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},wor={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},xor={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},_or={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},Tor={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},Eor={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Cor={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},Ior={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},kor={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},Aor={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},Sor={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},Por={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},Ror={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},Mor={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},Nor={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},Bor={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},Dor={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},Oor={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},Lor={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},qor={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},For={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Wor={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Uor={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Hor={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},jor={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},zor={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Kor={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Vor={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Gor={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},$or={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},Yor={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Jor={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Qor={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Zor={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Xor={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},ecr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},tcr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},rcr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},ncr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},acr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},icr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},scr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},ocr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},ccr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},ucr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},lcr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},dcr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},pcr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},hcr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},fcr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},mcr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},ycr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},gcr={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},bcr={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},vcr={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},wcr={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},xcr={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},_cr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},Tcr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Ecr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Ccr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Icr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},kcr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},Acr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},Scr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},Pcr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},Rcr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},Mcr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},Ncr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},Bcr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},Dcr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},Ocr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},Lcr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},qcr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},Fcr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},Wcr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},Ucr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},Hcr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},jcr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},zcr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Kcr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},Vcr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},Gcr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},$cr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},Ycr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},Jcr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},Qcr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},Zcr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},Xcr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},eur={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},tur={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},rur={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},nur={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},aur={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},iur={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},sur={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},our={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},cur={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},uur={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},lur={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},dur={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},pur={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},hur={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},fur={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},mur={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},yur={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},gur={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},bur={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},vur={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},wur={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},xur={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},_ur={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},Tur={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Eur={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},Cur={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},Iur={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},kur={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},Aur={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},Sur={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},Pur={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},Rur={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},Mur={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},Nur={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},Bur={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},Dur={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},Our={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},Lur={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},qur={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},Fur={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},Wur={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},Uur={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},Hur={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},jur={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},zur={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},Kur={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},Vur={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},Gur={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},$ur={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},Yur={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},Jur={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},Qur={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},Zur={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},Xur={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},elr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},tlr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},rlr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},nlr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},alr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},ilr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},slr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},olr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},clr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},ulr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},llr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},dlr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},plr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},hlr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},flr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},mlr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},ylr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},glr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},blr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},vlr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},wlr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},xlr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},_lr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},Tlr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},Elr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},Clr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},Ilr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},klr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},Alr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},Slr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},Plr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},Rlr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},Mlr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},Nlr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},Blr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},Dlr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},Olr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},Llr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},qlr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},Flr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},Wlr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},Ulr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},Hlr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},jlr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},zlr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},Klr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},Vlr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},Glr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},$lr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},Ylr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},Jlr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},Qlr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},Zlr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},Xlr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},edr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},tdr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},rdr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},ndr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},adr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},idr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},sdr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},odr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},cdr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},udr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},ldr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},ddr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},pdr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},hdr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},fdr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},mdr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},ydr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},gdr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},bdr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},vdr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},wdr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},xdr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},_dr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},Tdr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Edr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},Cdr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Idr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},kdr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},Adr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},Sdr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Pdr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Rdr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},Mdr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},Ndr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},Bdr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},Ddr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},Odr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},Ldr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},qdr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Fdr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Wdr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},Udr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Hdr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},jdr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},zdr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Kdr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Vdr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Gdr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},$dr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},Ydr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},Jdr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Qdr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Zdr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},Xdr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},epr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},tpr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},rpr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},npr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},apr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},ipr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},spr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},opr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},cpr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},upr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},lpr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},dpr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},ppr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},hpr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},fpr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},mpr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},ypr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},gpr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},bpr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},vpr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},wpr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},xpr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},_pr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},Tpr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},Epr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},Cpr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Ipr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},kpr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Apr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},Spr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},Ppr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},Rpr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},Mpr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},Npr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},Bpr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},Dpr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},Opr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},Lpr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},qpr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},Fpr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Wpr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},Upr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Hpr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},jpr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},zpr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Kpr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},Vpr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},Gpr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},$pr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},Ypr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},Jpr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},Qpr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},Zpr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},Xpr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},ehr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},thr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},rhr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},nhr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},ahr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},ihr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},shr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},ohr={mode:"http"};function A8e(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...ohr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function chr(r,e){return A8e(r,e)[0]}function uhr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function lhr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var CJ=BZt,S8e=DZt,P8e=OZt,R8e=LZt,IJ=qZt,M8e=FZt,N8e=WZt,B8e=UZt,D8e=HZt,kJ=jZt,O8e=zZt,L8e=KZt,q8e=VZt,F8e=GZt,W8e=$Zt,U8e=YZt,H8e=JZt,j8e=QZt,z8e=ZZt,K8e=XZt,V8e=eXt,G8e=tXt,$8e=rXt,Y8e=nXt,J8e=aXt,Q8e=iXt,Z8e=sXt,X8e=oXt,eIe=cXt,tIe=uXt,rIe=lXt,nIe=dXt,aIe=pXt,iIe=hXt,sIe=fXt,oIe=mXt,cIe=yXt,uIe=gXt,lIe=bXt,dIe=vXt,pIe=wXt,hIe=xXt,fIe=_Xt,mIe=TXt,yIe=EXt,gIe=CXt,bIe=IXt,vIe=kXt,wIe=AXt,xIe=SXt,_Ie=PXt,TIe=RXt,EIe=MXt,CIe=NXt,AJ=BXt,IIe=DXt,kIe=OXt,AIe=LXt,SIe=qXt,PIe=FXt,RIe=WXt,MIe=UXt,NIe=HXt,BIe=jXt,DIe=zXt,OIe=KXt,LIe=VXt,qIe=GXt,FIe=$Xt,WIe=YXt,UIe=JXt,HIe=QXt,jIe=ZXt,zIe=XXt,KIe=eer,VIe=ter,GIe=rer,$Ie=ner,YIe=aer,JIe=ier,QIe=ser,ZIe=oer,XIe=cer,eke=uer,tke=ler,rke=der,nke=per,ake=her,ike=fer,ske=mer,oke=yer,cke=ger,uke=ber,SJ=ver,lke=wer,dke=xer,pke=_er,hke=Ter,fke=Eer,mke=Cer,yke=Ier,gke=ker,bke=Aer,vke=Ser,wke=Per,xke=Rer,_ke=Mer,Tke=Ner,Eke=Ber,Cke=Der,Ike=Oer,kke=Ler,Ake=qer,Ske=Fer,Pke=Wer,Rke=Uer,Mke=Her,Nke=jer,Bke=zer,Dke=Ker,Oke=Ver,Lke=Ger,PJ=$er,qke=Yer,Fke=Jer,Wke=Qer,Uke=Zer,Hke=Xer,jke=etr,zke=ttr,Kke=rtr,Vke=ntr,Gke=atr,$ke=itr,Yke=str,Jke=otr,Qke=ctr,Zke=utr,Xke=ltr,eAe=dtr,tAe=ptr,rAe=htr,nAe=ftr,aAe=mtr,iAe=ytr,sAe=gtr,oAe=btr,cAe=vtr,uAe=wtr,lAe=xtr,dAe=_tr,RJ=Ttr,pAe=Etr,hAe=Ctr,fAe=Itr,mAe=ktr,yAe=Atr,gAe=Str,bAe=Ptr,vAe=Rtr,wAe=Mtr,xAe=Ntr,_Ae=Btr,TAe=Dtr,EAe=Otr,CAe=Ltr,IAe=qtr,kAe=Ftr,AAe=Wtr,SAe=Utr,PAe=Htr,RAe=jtr,MAe=ztr,NAe=Ktr,BAe=Vtr,DAe=Gtr,OAe=$tr,LAe=Ytr,qAe=Jtr,FAe=Qtr,WAe=Ztr,UAe=Xtr,HAe=err,MJ=trr,jAe=rrr,zAe=nrr,KAe=arr,VAe=irr,GAe=srr,$Ae=orr,YAe=crr,JAe=urr,QAe=lrr,ZAe=drr,XAe=prr,eSe=hrr,tSe=frr,rSe=mrr,nSe=yrr,aSe=grr,iSe=brr,sSe=vrr,oSe=wrr,cSe=xrr,uSe=_rr,lSe=Trr,dSe=Err,pSe=Crr,hSe=Irr,fSe=krr,mSe=Arr,ySe=Srr,gSe=Prr,bSe=Rrr,vSe=Mrr,wSe=Nrr,xSe=Brr,_Se=Drr,TSe=Orr,ESe=Lrr,CSe=qrr,ISe=Frr,kSe=Wrr,ASe=Urr,SSe=Hrr,PSe=jrr,RSe=zrr,MSe=Krr,NSe=Vrr,BSe=Grr,DSe=$rr,OSe=Yrr,LSe=Jrr,qSe=Qrr,FSe=Zrr,WSe=Xrr,USe=enr,HSe=tnr,jSe=rnr,zSe=nnr,KSe=anr,VSe=inr,GSe=snr,$Se=onr,YSe=cnr,JSe=unr,QSe=lnr,ZSe=dnr,XSe=pnr,ePe=hnr,tPe=fnr,rPe=mnr,nPe=ynr,aPe=gnr,iPe=bnr,sPe=vnr,oPe=wnr,cPe=xnr,uPe=_nr,lPe=Tnr,dPe=Enr,pPe=Cnr,hPe=Inr,fPe=knr,mPe=Anr,yPe=Snr,gPe=Pnr,bPe=Rnr,vPe=Mnr,wPe=Nnr,xPe=Bnr,_Pe=Dnr,TPe=Onr,EPe=Lnr,CPe=qnr,IPe=Fnr,kPe=Wnr,APe=Unr,SPe=Hnr,PPe=jnr,RPe=znr,MPe=Knr,NPe=Vnr,BPe=Gnr,DPe=$nr,OPe=Ynr,LPe=Jnr,qPe=Qnr,FPe=Znr,WPe=Xnr,UPe=ear,HPe=tar,jPe=rar,zPe=nar,KPe=aar,VPe=iar,GPe=sar,$Pe=oar,YPe=car,JPe=uar,QPe=lar,ZPe=dar,XPe=par,e7e=har,t7e=far,r7e=mar,n7e=yar,a7e=gar,i7e=bar,s7e=war,o7e=xar,c7e=_ar,u7e=Tar,l7e=Ear,d7e=Car,p7e=Iar,h7e=kar,f7e=Aar,m7e=Sar,y7e=Par,g7e=Rar,b7e=Mar,v7e=Nar,w7e=Bar,x7e=Dar,_7e=Oar,T7e=Lar,E7e=qar,C7e=Far,I7e=War,k7e=Uar,A7e=Har,S7e=jar,P7e=zar,R7e=Kar,M7e=Var,N7e=Gar,B7e=$ar,D7e=Yar,O7e=Jar,L7e=Qar,q7e=Zar,F7e=Xar,W7e=eir,U7e=tir,H7e=rir,j7e=nir,z7e=air,K7e=iir,V7e=sir,G7e=oir,$7e=cir,Y7e=uir,J7e=lir,Q7e=dir,Z7e=pir,X7e=hir,eRe=fir,tRe=mir,rRe=yir,nRe=gir,aRe=bir,iRe=vir,sRe=wir,oRe=xir,cRe=_ir,uRe=Tir,lRe=Eir,dRe=Cir,pRe=Iir,hRe=kir,fRe=Air,mRe=Sir,yRe=Pir,gRe=Rir,bRe=Mir,vRe=Nir,wRe=Bir,xRe=Dir,_Re=Oir,TRe=Lir,ERe=qir,CRe=Fir,IRe=Wir,kRe=Uir,ARe=Hir,SRe=jir,PRe=zir,RRe=Kir,MRe=Vir,NRe=Gir,BRe=$ir,DRe=Yir,ORe=Jir,LRe=Qir,qRe=Zir,FRe=Xir,WRe=esr,URe=tsr,HRe=rsr,jRe=nsr,zRe=asr,KRe=isr,VRe=ssr,GRe=osr,$Re=csr,NJ=usr,YRe=lsr,JRe=dsr,QRe=psr,ZRe=hsr,XRe=fsr,e9e=msr,t9e=ysr,r9e=gsr,n9e=bsr,a9e=vsr,i9e=wsr,s9e=xsr,o9e=_sr,c9e=Tsr,u9e=Esr,l9e=Csr,d9e=Isr,p9e=ksr,h9e=Asr,f9e=Ssr,m9e=Psr,y9e=Rsr,g9e=Msr,b9e=Nsr,v9e=Bsr,w9e=Dsr,x9e=Osr,_9e=Lsr,T9e=qsr,E9e=Fsr,C9e=Wsr,I9e=Usr,k9e=Hsr,A9e=jsr,S9e=zsr,P9e=Ksr,R9e=Vsr,M9e=Gsr,N9e=$sr,B9e=Ysr,D9e=Jsr,O9e=Qsr,L9e=Zsr,q9e=Xsr,F9e=eor,W9e=tor,U9e=ror,H9e=nor,j9e=aor,z9e=ior,K9e=sor,V9e=oor,G9e=cor,$9e=uor,Y9e=lor,J9e=dor,Q9e=por,Z9e=hor,X9e=mor,eMe=yor,tMe=gor,rMe=bor,nMe=vor,aMe=wor,iMe=xor,sMe=_or,oMe=Tor,cMe=Eor,uMe=Cor,lMe=Ior,dMe=kor,pMe=Aor,hMe=Sor,fMe=Por,mMe=Ror,yMe=Mor,gMe=Nor,bMe=Bor,vMe=Dor,wMe=Oor,xMe=Lor,_Me=qor,TMe=For,EMe=Wor,CMe=Uor,IMe=Hor,kMe=jor,AMe=zor,SMe=Kor,PMe=Vor,RMe=Gor,MMe=$or,NMe=Yor,BMe=Jor,DMe=Qor,OMe=Zor,LMe=Xor,qMe=ecr,FMe=tcr,WMe=rcr,UMe=ncr,HMe=acr,jMe=icr,zMe=scr,KMe=ocr,VMe=ccr,GMe=ucr,$Me=lcr,YMe=dcr,JMe=pcr,QMe=hcr,ZMe=fcr,XMe=mcr,eNe=ycr,tNe=gcr,rNe=bcr,nNe=vcr,aNe=wcr,iNe=xcr,sNe=_cr,oNe=Tcr,cNe=Ecr,uNe=Ccr,lNe=Icr,dNe=kcr,pNe=Acr,hNe=Scr,fNe=Pcr,mNe=Rcr,yNe=Mcr,gNe=Ncr,bNe=Bcr,vNe=Dcr,wNe=Ocr,xNe=Lcr,_Ne=qcr,TNe=Fcr,ENe=Wcr,CNe=Ucr,INe=Hcr,kNe=jcr,ANe=zcr,SNe=Kcr,PNe=Vcr,RNe=Gcr,MNe=$cr,NNe=Ycr,BNe=Jcr,DNe=Qcr,ONe=Zcr,LNe=Xcr,qNe=eur,FNe=tur,WNe=rur,UNe=nur,HNe=aur,jNe=iur,zNe=sur,KNe=our,VNe=cur,GNe=uur,$Ne=lur,YNe=dur,BJ=pur,JNe=hur,QNe=fur,ZNe=mur,XNe=yur,eBe=gur,DJ=bur,OJ=vur,tBe=wur,rBe=xur,nBe=_ur,aBe=Tur,iBe=Eur,sBe=Cur,oBe=Iur,cBe=kur,uBe=Aur,lBe=Sur,dBe=Pur,pBe=Rur,hBe=Mur,fBe=Nur,mBe=Bur,yBe=Dur,gBe=Our,bBe=Lur,vBe=qur,wBe=Fur,xBe=Wur,_Be=Uur,TBe=Hur,EBe=jur,CBe=zur,IBe=Kur,kBe=Vur,ABe=Gur,SBe=$ur,PBe=Yur,RBe=Jur,MBe=Qur,NBe=Zur,BBe=Xur,DBe=elr,OBe=tlr,LBe=rlr,qBe=nlr,FBe=alr,WBe=ilr,UBe=slr,HBe=olr,LJ=clr,jBe=ulr,zBe=llr,KBe=dlr,VBe=plr,GBe=hlr,$Be=flr,YBe=mlr,JBe=ylr,QBe=glr,ZBe=blr,XBe=vlr,eDe=wlr,tDe=xlr,rDe=_lr,nDe=Tlr,aDe=Elr,iDe=Clr,sDe=Ilr,oDe=klr,cDe=Alr,uDe=Slr,lDe=Plr,dDe=Rlr,pDe=Mlr,hDe=Nlr,fDe=Blr,mDe=Dlr,yDe=Olr,gDe=Llr,bDe=qlr,vDe=Flr,wDe=Wlr,xDe=Ulr,_De=Hlr,TDe=jlr,EDe=zlr,CDe=Klr,IDe=Vlr,kDe=Glr,ADe=$lr,SDe=Ylr,PDe=Jlr,RDe=Qlr,MDe=Zlr,NDe=Xlr,BDe=edr,DDe=tdr,ODe=rdr,LDe=ndr,qDe=adr,FDe=idr,WDe=sdr,UDe=odr,HDe=cdr,jDe=udr,zDe=ldr,KDe=ddr,VDe=pdr,GDe=hdr,$De=fdr,YDe=mdr,qJ=ydr,JDe=gdr,QDe=bdr,ZDe=vdr,XDe=wdr,eOe=xdr,tOe=_dr,rOe=Tdr,nOe=Edr,aOe=Cdr,iOe=Idr,sOe=kdr,oOe=Adr,cOe=Sdr,uOe=Pdr,lOe=Rdr,dOe=Mdr,pOe=Ndr,hOe=Bdr,fOe=Ddr,mOe=Odr,yOe=Ldr,gOe=qdr,bOe=Fdr,vOe=Wdr,wOe=Udr,xOe=Hdr,_Oe=jdr,TOe=zdr,EOe=Kdr,COe=Vdr,IOe=Gdr,kOe=$dr,AOe=Ydr,SOe=Jdr,POe=Qdr,ROe=Zdr,MOe=Xdr,NOe=epr,BOe=tpr,DOe=rpr,OOe=npr,LOe=apr,qOe=ipr,FOe=spr,WOe=opr,UOe=cpr,HOe=upr,jOe=lpr,zOe=dpr,KOe=ppr,VOe=hpr,GOe=fpr,$Oe=mpr,YOe=ypr,JOe=gpr,QOe=bpr,ZOe=vpr,XOe=wpr,eLe=xpr,tLe=_pr,rLe=Tpr,nLe=Epr,aLe=Cpr,iLe=Ipr,sLe=kpr,oLe=Apr,cLe=Spr,uLe=Ppr,lLe=Rpr,dLe=Mpr,pLe=Npr,hLe=Bpr,fLe=Dpr,mLe=Opr,yLe=Lpr,gLe=qpr,bLe=Fpr,vLe=Wpr,wLe=Upr,xLe=Hpr,_Le=jpr,TLe=zpr,ELe=Kpr,CLe=Vpr,ILe=Gpr,kLe=$pr,ALe=Ypr,SLe=Jpr,PLe=Qpr,RLe=Zpr,MLe=Xpr,NLe=ehr,BLe=thr,DLe=rhr,OLe=nhr,LLe=ahr,qLe=ihr,FJ=shr,dhr=[CJ,IJ,PJ,LJ,BJ,qJ,kJ,MJ,AJ,SJ,RJ,NJ,OJ,DJ,FJ],WJ=[CJ,S8e,P8e,R8e,IJ,M8e,N8e,B8e,D8e,kJ,O8e,L8e,q8e,F8e,W8e,U8e,H8e,j8e,z8e,K8e,V8e,G8e,$8e,Y8e,J8e,Q8e,Z8e,X8e,eIe,tIe,rIe,nIe,aIe,iIe,sIe,oIe,cIe,uIe,lIe,dIe,pIe,hIe,fIe,mIe,yIe,gIe,bIe,vIe,wIe,xIe,_Ie,TIe,EIe,CIe,AJ,IIe,kIe,AIe,SIe,PIe,RIe,MIe,NIe,BIe,DIe,OIe,LIe,qIe,FIe,WIe,UIe,HIe,jIe,zIe,KIe,VIe,GIe,$Ie,YIe,JIe,QIe,ZIe,XIe,eke,tke,rke,nke,ake,ike,ske,oke,cke,uke,SJ,lke,dke,pke,hke,fke,mke,yke,gke,bke,vke,wke,xke,_ke,Tke,Eke,Cke,Ike,kke,Ake,Ske,Pke,Rke,Mke,Nke,Bke,Dke,Oke,Lke,PJ,qke,Fke,Wke,Uke,Hke,jke,zke,Kke,Vke,Gke,$ke,Yke,Jke,Qke,Zke,Xke,eAe,tAe,rAe,nAe,aAe,iAe,sAe,oAe,cAe,uAe,lAe,dAe,RJ,pAe,hAe,fAe,mAe,yAe,gAe,bAe,vAe,wAe,xAe,_Ae,TAe,EAe,CAe,IAe,kAe,AAe,SAe,PAe,RAe,MAe,NAe,BAe,DAe,OAe,LAe,qAe,FAe,WAe,UAe,HAe,MJ,jAe,zAe,KAe,VAe,GAe,$Ae,YAe,JAe,QAe,ZAe,XAe,eSe,tSe,rSe,nSe,aSe,iSe,sSe,oSe,cSe,uSe,lSe,dSe,pSe,hSe,fSe,mSe,ySe,gSe,bSe,vSe,wSe,xSe,_Se,TSe,ESe,CSe,ISe,kSe,ASe,SSe,PSe,RSe,MSe,NSe,BSe,DSe,OSe,LSe,qSe,FSe,WSe,USe,HSe,jSe,zSe,KSe,VSe,GSe,$Se,YSe,JSe,QSe,ZSe,XSe,ePe,tPe,rPe,nPe,aPe,iPe,sPe,oPe,cPe,uPe,lPe,dPe,pPe,hPe,fPe,mPe,yPe,gPe,bPe,vPe,wPe,xPe,_Pe,TPe,EPe,CPe,IPe,kPe,APe,SPe,PPe,RPe,MPe,NPe,BPe,DPe,OPe,LPe,qPe,FPe,WPe,UPe,HPe,jPe,zPe,KPe,VPe,GPe,$Pe,YPe,JPe,QPe,ZPe,XPe,e7e,t7e,r7e,n7e,a7e,i7e,s7e,o7e,c7e,u7e,l7e,d7e,p7e,h7e,f7e,m7e,y7e,g7e,b7e,v7e,w7e,x7e,_7e,T7e,E7e,C7e,I7e,k7e,A7e,S7e,P7e,R7e,M7e,N7e,B7e,D7e,O7e,L7e,q7e,F7e,W7e,U7e,H7e,j7e,z7e,K7e,V7e,G7e,$7e,Y7e,J7e,Q7e,Z7e,X7e,eRe,tRe,rRe,nRe,aRe,iRe,sRe,oRe,cRe,uRe,lRe,dRe,pRe,hRe,fRe,mRe,yRe,gRe,bRe,vRe,wRe,xRe,_Re,TRe,ERe,CRe,IRe,kRe,ARe,SRe,PRe,RRe,MRe,NRe,BRe,DRe,ORe,LRe,qRe,FRe,WRe,URe,HRe,jRe,zRe,KRe,VRe,GRe,$Re,NJ,YRe,JRe,QRe,ZRe,XRe,e9e,t9e,r9e,n9e,a9e,i9e,s9e,o9e,c9e,u9e,l9e,d9e,p9e,h9e,f9e,m9e,y9e,g9e,b9e,v9e,w9e,x9e,_9e,T9e,E9e,C9e,I9e,k9e,A9e,S9e,P9e,R9e,M9e,N9e,B9e,D9e,O9e,L9e,q9e,F9e,W9e,U9e,H9e,j9e,z9e,K9e,V9e,G9e,$9e,Y9e,J9e,Q9e,Z9e,X9e,eMe,tMe,rMe,nMe,aMe,iMe,sMe,oMe,cMe,uMe,lMe,dMe,pMe,hMe,fMe,mMe,yMe,gMe,bMe,vMe,wMe,xMe,_Me,TMe,EMe,CMe,IMe,kMe,AMe,SMe,PMe,RMe,MMe,NMe,BMe,DMe,OMe,LMe,qMe,FMe,WMe,UMe,HMe,jMe,zMe,KMe,VMe,GMe,$Me,YMe,JMe,QMe,ZMe,XMe,eNe,tNe,rNe,nNe,aNe,iNe,sNe,oNe,cNe,uNe,lNe,dNe,pNe,hNe,fNe,mNe,yNe,gNe,bNe,vNe,wNe,xNe,_Ne,TNe,ENe,CNe,INe,kNe,ANe,SNe,PNe,RNe,MNe,NNe,BNe,DNe,ONe,LNe,qNe,FNe,WNe,UNe,HNe,jNe,zNe,KNe,VNe,GNe,$Ne,YNe,BJ,JNe,QNe,ZNe,XNe,eBe,DJ,OJ,tBe,rBe,nBe,aBe,iBe,sBe,oBe,cBe,uBe,lBe,dBe,pBe,hBe,fBe,mBe,yBe,gBe,bBe,vBe,wBe,xBe,_Be,TBe,EBe,CBe,IBe,kBe,ABe,SBe,PBe,RBe,MBe,NBe,BBe,DBe,OBe,LBe,qBe,FBe,WBe,UBe,HBe,LJ,jBe,zBe,KBe,VBe,GBe,$Be,YBe,JBe,QBe,ZBe,XBe,eDe,tDe,rDe,nDe,aDe,iDe,sDe,oDe,cDe,uDe,lDe,dDe,pDe,hDe,fDe,mDe,yDe,gDe,bDe,vDe,wDe,xDe,_De,TDe,EDe,CDe,IDe,kDe,ADe,SDe,PDe,RDe,MDe,NDe,BDe,DDe,ODe,LDe,qDe,FDe,WDe,UDe,HDe,jDe,zDe,KDe,VDe,GDe,$De,YDe,qJ,JDe,QDe,ZDe,XDe,eOe,tOe,rOe,nOe,aOe,iOe,sOe,oOe,cOe,uOe,lOe,dOe,pOe,hOe,fOe,mOe,yOe,gOe,bOe,vOe,wOe,xOe,_Oe,TOe,EOe,COe,IOe,kOe,AOe,SOe,POe,ROe,MOe,NOe,BOe,DOe,OOe,LOe,qOe,FOe,WOe,UOe,HOe,jOe,zOe,KOe,VOe,GOe,$Oe,YOe,JOe,QOe,ZOe,XOe,eLe,tLe,rLe,nLe,aLe,iLe,sLe,oLe,cLe,uLe,lLe,dLe,pLe,hLe,fLe,mLe,yLe,gLe,bLe,vLe,wLe,xLe,_Le,TLe,ELe,CLe,ILe,kLe,ALe,SLe,PLe,RLe,MLe,NLe,BLe,DLe,OLe,LLe,qLe,FJ];function phr(r){let e=WJ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function hhr(r){let e=WJ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}R.AcalaMandalaTestnet=iSe;R.AcalaNetwork=ESe;R.AcalaNetworkTestnet=oSe;R.AerochainTestnet=CSe;R.AiozNetwork=Vke;R.AiozNetworkTestnet=e9e;R.Airdao=lNe;R.AirdaoTestnet=xNe;R.Aitd=ZPe;R.AitdTestnet=XPe;R.Akroma=EDe;R.Alaya=CDe;R.AlayaDevTestnet=IDe;R.AlphNetwork=iMe;R.Altcoinchain=mRe;R.Alyx=QPe;R.AlyxChainTestnet=Lke;R.AmbrosChain=LSe;R.AmeChain=Yke;R.Amstar=n7e;R.AmstarTestnet=APe;R.Anduschain=FOe;R.AnytypeEvmChain=m7e;R.Aquachain=ZOe;R.Arbitrum=BJ;R.ArbitrumGoerli=qJ;R.ArbitrumNova=JNe;R.ArbitrumOnXdai=nAe;R.ArbitrumRinkeby=YDe;R.ArcologyTestnet=Cke;R.Arevia=fRe;R.ArmoniaEvaChain=Uke;R.ArmoniaEvaChainTestnet=Hke;R.ArtisSigma1=NDe;R.ArtisTestnetTau1=BDe;R.Astar=aSe;R.Astra=UMe;R.AstraTestnet=jMe;R.Atelier=R7e;R.Atheios=d7e;R.Athereum=eBe;R.AtoshiTestnet=Kke;R.Aurora=fLe;R.AuroraBetanet=yLe;R.AuroraTestnet=mLe;R.AutobahnNetwork=aBe;R.AutonityBakerlooThamesTestnet=XOe;R.AutonityPiccadillyThamesTestnet=eLe;R.AuxiliumNetwork=GOe;R.Avalanche=OJ;R.AvalancheFuji=DJ;R.Aves=HNe;R.BandaiNamcoResearchVerse=DSe;R.Base=eMe;R.BaseGoerli=jBe;R.BeagleMessagingChain=u7e;R.BeanecoSmartchain=sOe;R.BearNetworkChain=oOe;R.BearNetworkChainTestnet=uOe;R.BeoneChainTestnet=Y9e;R.BeresheetBereevmTestnet=G7e;R.Berylbit=wMe;R.BeverlyHills=VBe;R.Bifrost=PRe;R.BifrostTestnet=cBe;R.Binance=AJ;R.BinanceTestnet=SJ;R.Bitcichain=I7e;R.BitcichainTestnet=k7e;R.BitcoinEvm=cRe;R.Bitgert=FNe;R.Bitindi=XRe;R.BitindiTestnet=ZRe;R.BitkubChain=uke;R.BitkubChainTestnet=SNe;R.Bittex=HRe;R.BittorrentChain=rAe;R.BittorrentChainTestnet=fPe;R.Bityuan=IRe;R.BlackfortExchangeNetwork=l9e;R.BlackfortExchangeNetworkTestnet=o9e;R.BlgTestnet=ZMe;R.BlockchainGenesis=NMe;R.BlockchainStation=ySe;R.BlockchainStationTestnet=gSe;R.BlocktonBlockchain=Q9e;R.Bloxberg=gMe;R.Bmc=Qke;R.BmcTestnet=Zke;R.BobaAvax=tBe;R.BobaBnb=gBe;R.BobaBnbTestnet=IMe;R.BobaNetwork=gAe;R.BobaNetworkGoerliTestnet=CRe;R.BobaNetworkRinkebyTestnet=X8e;R.BobabaseTestnet=YPe;R.Bobabeam=$Pe;R.BobafujiTestnet=n9e;R.Bobaopera=TAe;R.BobaoperaTestnet=YRe;R.BombChain=hRe;R.BombChainTestnet=yRe;R.BonNetwork=C7e;R.Bosagora=aRe;R.Brochain=uDe;R.Bronos=bPe;R.BronosTestnet=gPe;R.Btachain=p7e;R.BtcixNetwork=mNe;R.Callisto=PSe;R.CallistoTestnet=yNe;R.CalypsoNftHubSkale=bLe;R.CalypsoNftHubSkaleTestnet=oLe;R.CaminoCChain=VAe;R.Candle=eSe;R.Canto=q9e;R.CantoTestnet=vSe;R.CatecoinChain=l7e;R.Celo=QNe;R.CeloAlfajoresTestnet=nBe;R.CeloBaklavaTestnet=EBe;R.CennznetAzalea=bNe;R.CennznetNikau=ARe;R.CennznetRata=kRe;R.ChainVerse=v9e;R.Cheapeth=TSe;R.ChiadoTestnet=BMe;R.ChilizScovilleTestnet=zBe;R.CicChain=r7e;R.CicChainTestnet=HPe;R.Cloudtx=DNe;R.CloudtxTestnet=ONe;R.Cloudwalk=U7e;R.CloudwalkTestnet=W7e;R.CloverTestnet=pPe;R.ClvParachain=hPe;R.Cmp=ODe;R.CmpTestnet=tOe;R.CoinexSmartChain=_Ie;R.CoinexSmartChainTestnet=TIe;R.ColumbusTestNetwork=GAe;R.CondorTestNetwork=xDe;R.Condrieu=SBe;R.ConfluxEspace=mPe;R.ConfluxEspaceTestnet=WIe;R.ConstaTestnet=qAe;R.CoreBlockchain=EPe;R.CoreBlockchainTestnet=TPe;R.CreditSmartchain=rNe;R.CronosBeta=J8e;R.CronosTestnet=MAe;R.Crossbell=zRe;R.CryptoEmergency=Xke;R.Cryptocoinpay=qMe;R.CryptokylinTestnet=cke;R.Crystaleum=cDe;R.CtexScanBlockchain=s7e;R.CubeChain=x7e;R.CubeChainTestnet=_7e;R.Cyberdecknet=pLe;R.DChain=S7e;R.DarwiniaCrabNetwork=mIe;R.DarwiniaNetwork=gIe;R.DarwiniaPangolinTestnet=fIe;R.DarwiniaPangoroTestnet=yIe;R.Datahopper=ALe;R.DaxChain=Fke;R.DbchainTestnet=OIe;R.Debank=Eke;R.DebankTestnet=Tke;R.DebounceSubnetTestnet=MRe;R.DecentralizedWeb=Rke;R.DecimalSmartChain=zIe;R.DecimalSmartChainTestnet=ADe;R.DefichainEvmNetwork=IPe;R.DefichainEvmNetworkTestnet=kPe;R.Dehvo=xke;R.DexalotSubnet=ZDe;R.DexalotSubnetTestnet=QDe;R.DexitNetwork=OSe;R.DfkChain=hBe;R.DfkChainTest=PAe;R.DiodePrenet=W8e;R.DiodeTestnetStaging=q8e;R.DithereumTestnet=iIe;R.Dogcoin=CPe;R.DogcoinTestnet=_Me;R.Dogechain=L7e;R.DogechainTestnet=nSe;R.DokenSuperChain=TBe;R.DosFujiSubnet=JPe;R.DoubleAChain=$Ae;R.DoubleAChainTestnet=YAe;R.DracNetwork=KRe;R.DraconesFinancialServices=X9e;R.Dxchain=oIe;R.DxchainTestnet=UIe;R.Dyno=VRe;R.DynoTestnet=GRe;R.Ecoball=eRe;R.EcoballTestnetEspuma=tRe;R.Ecredits=IBe;R.EcreditsTestnet=kBe;R.EdexaTestnet=O7e;R.EdgewareEdgeevm=V7e;R.Ekta=D7e;R.ElaDidSidechain=G8e;R.ElaDidSidechainTestnet=$8e;R.ElastosSmartChain=K8e;R.ElastosSmartChainTestnet=V8e;R.Eleanor=P7e;R.EllaTheHeart=B9e;R.Ellaism=NIe;R.EluvioContentFabric=bOe;R.Elysium=t7e;R.ElysiumTestnet=e7e;R.EmpireNetwork=jRe;R.EnduranceSmartChain=pSe;R.Energi=VNe;R.EnergiTestnet=uBe;R.EnergyWebChain=lAe;R.EnergyWebVoltaTestnet=LBe;R.EnnothemProterozoic=bIe;R.EnnothemTestnetPioneer=vIe;R.Enterchain=OPe;R.Enuls=Ike;R.EnulsTestnet=kke;R.Eos=AIe;R.Eraswap=f9e;R.Ethereum=CJ;R.EthereumClassic=PIe;R.EthereumClassicTestnetKotti=M8e;R.EthereumClassicTestnetMorden=RIe;R.EthereumClassicTestnetMordor=MIe;R.EthereumFair=rOe;R.Ethergem=B7e;R.Etherinc=pke;R.EtherliteChain=wke;R.EthersocialNetwork=BNe;R.EthoProtocol=vOe;R.Etica=_Be;R.EtndChainS=wDe;R.EuropaSkaleChain=SLe;R.Eurus=cPe;R.EurusTestnet=N7e;R.Evanesco=uRe;R.EvanescoTestnet=NPe;R.Evmos=vMe;R.EvmosTestnet=bMe;R.EvriceNetwork=uPe;R.Excelon=zOe;R.ExcoincialChain=VOe;R.ExcoincialChainVoltaTestnet=KOe;R.ExosamaNetwork=rRe;R.ExpanseNetwork=S8e;R.ExzoNetwork=LPe;R.EzchainCChain=TRe;R.EzchainCChainTestnet=ERe;R.FXCoreNetwork=XAe;R.Factory127=Bke;R.FantasiaChain=BSe;R.Fantom=RJ;R.FantomTestnet=NJ;R.FastexChainTestnet=JDe;R.Fibonacci=QMe;R.Filecoin=CAe;R.FilecoinButterflyTestnet=IOe;R.FilecoinCalibrationTestnet=FDe;R.FilecoinHyperspaceTestnet=RRe;R.FilecoinLocalTestnet=YOe;R.FilecoinWallabyTestnet=qNe;R.Findora=iRe;R.FindoraForge=oRe;R.FindoraTestnet=sRe;R.Firechain=ZAe;R.FirenzeTestNetwork=UBe;R.Flachain=$Oe;R.Flare=F8e;R.FlareTestnetCoston=U8e;R.FlareTestnetCoston2=_ke;R.Floripa=oBe;R.Fncy=HIe;R.FncyTestnet=gOe;R.FreightTrustNetwork=iAe;R.Frenchain=rBe;R.FrenchainTestnet=zAe;R.FrontierOfDreamsTestnet=pNe;R.Fuse=Ske;R.FuseSparknet=Pke;R.Fusion=WNe;R.FusionTestnet=iBe;R.Ganache=_9e;R.GarizonStage0=ake;R.GarizonStage1=ike;R.GarizonStage2=ske;R.GarizonStage3=oke;R.GarizonTestnetStage0=FSe;R.GarizonTestnetStage1=WSe;R.GarizonTestnetStage2=USe;R.GarizonTestnetStage3=HSe;R.Gatechain=eke;R.GatechainTestnet=XIe;R.GatherDevnetNetwork=uLe;R.GatherNetwork=rLe;R.GatherTestnetNetwork=cLe;R.GearZeroNetwork=JAe;R.GearZeroNetworkTestnet=LDe;R.Genechain=YIe;R.GenesisCoin=xMe;R.GenesisL1=eIe;R.GenesisL1Testnet=Q8e;R.GiantMammoth=yMe;R.GitshockCartenzTestnet=E7e;R.Gnosis=dke;R.Gochain=SIe;R.GochainTestnet=LNe;R.Godwoken=OBe;R.GodwokenTestnetV1=DBe;R.Goerli=IJ;R.GoldSmartChain=S9e;R.GoldSmartChainTestnet=HBe;R.GonChain=RMe;R.Gooddata=aIe;R.GooddataTestnet=nIe;R.GraphlinqBlockchain=lSe;R.Gton=aPe;R.GtonTestnet=dBe;R.Haic=kSe;R.Halo=jPe;R.HammerChain=ANe;R.Hapchain=BOe;R.HapchainTestnet=jDe;R.HaqqChainTestnet=fBe;R.HaqqNetwork=KMe;R.HaradevTestnet=DLe;R.HarmonyDevnetShard0=kLe;R.HarmonyShard0=vLe;R.HarmonyShard1=wLe;R.HarmonyShard2=xLe;R.HarmonyShard3=_Le;R.HarmonyTestnetShard0=TLe;R.HarmonyTestnetShard1=ELe;R.HarmonyTestnetShard2=CLe;R.HarmonyTestnetShard3=ILe;R.Hashbit=zMe;R.HaymoTestnet=MDe;R.HazlorTestnet=W9e;R.Hedera=bAe;R.HederaLocalnet=xAe;R.HederaPreviewnet=wAe;R.HederaTestnet=vAe;R.HertzNetwork=PNe;R.HighPerformanceBlockchain=mAe;R.HikaNetworkTestnet=x9e;R.HomeVerse=fNe;R.HooSmartChain=FIe;R.HooSmartChainTestnet=Gke;R.HorizenYumaTestnet=h7e;R.Htmlcoin=a9e;R.HumanProtocol=hLe;R.Humanode=m9e;R.HuobiEcoChain=Dke;R.HuobiEcoChainTestnet=pAe;R.HyperonchainTestnet=WAe;R.Idchain=jIe;R.IexecSidechain=Oke;R.Imversed=kOe;R.ImversedTestnet=AOe;R.Iolite=UOe;R.IoraChain=MPe;R.IotexNetwork=i9e;R.IotexNetworkTestnet=s9e;R.IposNetwork=dLe;R.IvarChain=KBe;R.IvarChainTestnet=dNe;R.J2oTaro=jNe;R.Jellie=SDe;R.JfinChain=qRe;R.JibchainL1=mMe;R.JoysDigital=JOe;R.JoysDigitalTestnet=tLe;R.KaibaLightningChainTestnet=fke;R.Kardiachain=Y8e;R.KaruraNetwork=fSe;R.KaruraNetworkTestnet=sSe;R.KavaEvm=dRe;R.KavaEvmTestnet=lRe;R.Kcc=IAe;R.KccTestnet=kAe;R.Kekchain=GDe;R.KekchainKektest=$De;R.Kerleano=v7e;R.Kiln=_Oe;R.Kintsugi=xOe;R.KlaytnCypress=J9e;R.KlaytnTestnetBaobab=iPe;R.Klyntar=O9e;R.Kortho=vRe;R.Korthotest=Z9e;R.Kovan=hIe;R.LaTestnet=HAe;R.Lachain=cAe;R.LachainTestnet=uAe;R.LambdaTestnet=GBe;R.LatamBlockchainResilTestnet=$ke;R.Lightstreams=zke;R.LightstreamsTestnet=jke;R.Lisinski=FAe;R.LiveplexOracleevm=lBe;R.Localhost=FJ;R.Loopnetwork=sNe;R.LucidBlockchain=ISe;R.LuckyNetwork=rPe;R.Ludan=f7e;R.LycanChain=bSe;R.Maistestsubnet=QOe;R.Mammoth=fMe;R.Mantle=d9e;R.MantleTestnet=p9e;R.Map=_Ne;R.MapMakalu=sAe;R.MaroBlockchain=oMe;R.Mas=RDe;R.Mathchain=SPe;R.MathchainTestnet=PPe;R.MdglTestnet=j9e;R.MemoSmartChain=ePe;R.MeshnyanTestnet=uSe;R.Metacodechain=URe;R.Metadium=O8e;R.MetadiumTestnet=L8e;R.Metadot=cNe;R.MetadotTestnet=uNe;R.MetalCChain=zDe;R.MetalTahoeCChain=KDe;R.Metaplayerone=nRe;R.Meter=QIe;R.MeterTestnet=ZIe;R.MetisAndromeda=vPe;R.MetisGoerliTestnet=cSe;R.MilkomedaA1=F7e;R.MilkomedaA1Testnet=TDe;R.MilkomedaC1=q7e;R.MilkomedaC1Testnet=_De;R.MintmeComCoin=kNe;R.Mix=KIe;R.MixinVirtualMachine=qBe;R.Moac=wPe;R.MoacTestnet=aAe;R.MolereumNetwork=qLe;R.MoonbaseAlpha=VPe;R.Moonbeam=zPe;R.Moonriver=KPe;R.Moonrock=GPe;R.Multivac=CBe;R.Mumbai=LJ;R.MunodeTestnet=$Se;R.Musicoin=MOe;R.MyownTestnet=AMe;R.MythicalChain=kDe;R.Nahmii=g9e;R.Nahmii3=JRe;R.Nahmii3Testnet=QRe;R.NahmiiTestnet=b9e;R.Nebula=gLe;R.NebulaStaging=lLe;R.NebulaTestnet=gke;R.NeonEvm=aLe;R.NeonEvmDevnet=nLe;R.NeonEvmTestnet=iLe;R.NepalBlockchainNetwork=ZSe;R.Newton=lPe;R.NewtonTestnet=oPe;R.NovaNetwork=tke;R.Ntity=BLe;R.Numbers=OMe;R.NumbersTestnet=LMe;R.OasisEmerald=XNe;R.OasisEmeraldTestnet=ZNe;R.OasisSapphire=ENe;R.OasisSapphireTestnet=CNe;R.Oasischain=RNe;R.Oasys=dAe;R.Octaspace=lOe;R.Oho=GNe;R.Okbchain=tAe;R.OkbchainTestnet=eAe;R.OkexchainTestnet=BIe;R.Okxchain=DIe;R.OmPlatform=UPe;R.Omax=EAe;R.Omchain=vNe;R.Oneledger=sLe;R.OneledgerTestnetFrankenstein=RLe;R.Ontology=kIe;R.OntologyTestnet=T9e;R.OnusChain=M7e;R.OnusChainTestnet=A7e;R.OoneChainTestnet=WDe;R.Oort=YSe;R.OortAscraeus=QSe;R.OortDev=CMe;R.OortHuygens=JSe;R.OpalTestnetByUnique=lMe;R.Openchain=eOe;R.OpenchainTestnet=_Se;R.Openpiece=EIe;R.OpenpieceTestnet=qke;R.Openvessel=POe;R.OpsideTestnet=TNe;R.Optimism=kJ;R.OptimismBedrockGoerliAlphaTestnet=MNe;R.OptimismGoerli=MJ;R.OptimismKovan=qIe;R.OptimismOnGnosis=_Ae;R.OpulentXBeta=$Ne;R.OrigintrailParachain=J7e;R.OrlandoChain=SRe;R.Oychain=Nke;R.OychainTestnet=Mke;R.P12Chain=gNe;R.PaletteChain=b7e;R.Palm=NLe;R.PalmTestnet=MLe;R.Pandoproject=FRe;R.PandoprojectTestnet=WRe;R.ParibuNet=ORe;R.ParibuNetTestnet=LRe;R.Pdc=LLe;R.Pegglecoin=YNe;R.PepchainChurchill=qOe;R.PhiNetworkV1=r9e;R.PhiNetworkV2=Wke;R.Phoenix=nNe;R.PieceTestnet=NNe;R.Pirl=PLe;R.PixieChain=A9e;R.PixieChainTestnet=hSe;R.Planq=D9e;R.Platon=PDe;R.PlatonDevTestnet2=COe;R.PlianMain=EOe;R.PlianSubchain1=NOe;R.PlianTestnetMain=WOe;R.PlianTestnetSubchain1=DOe;R.PoaNetworkCore=lke;R.PoaNetworkSokol=VIe;R.Pocrnet=xRe;R.Polis=HDe;R.PolisTestnet=UDe;R.Polygon=PJ;R.PolygonZkevmTestnet=i7e;R.PolyjuiceTestnet=BBe;R.Polysmartchain=R9e;R.Popcateum=DPe;R.PortalFantasyChain=jSe;R.PortalFantasyChainTest=ASe;R.PosichainDevnetShard0=mOe;R.PosichainDevnetShard1=yOe;R.PosichainShard0=hOe;R.PosichainTestnetShard0=fOe;R.Primuschain=GIe;R.ProofOfMemes=hNe;R.ProtonTestnet=vke;R.ProxyNetworkTestnet=yPe;R.Publicmint=K7e;R.PublicmintDevnet=j7e;R.PublicmintTestnet=z7e;R.Pulsechain=LAe;R.PulsechainTestnet=KSe;R.PulsechainTestnetV2b=VSe;R.PulsechainTestnetV3=GSe;R.Q=zNe;R.QTestnet=KNe;R.Qeasyweb3Testnet=EMe;R.Qitmeer=SSe;R.QitmeerNetworkTestnet=$9e;R.Ql1=xSe;R.Ql1Testnet=ROe;R.QuadransBlockchain=FMe;R.QuadransBlockchainTestnet=WMe;R.Quarkblockchain=jOe;R.QuarkchainDevnetRoot=lDe;R.QuarkchainDevnetShard0=dDe;R.QuarkchainDevnetShard1=pDe;R.QuarkchainDevnetShard2=hDe;R.QuarkchainDevnetShard3=fDe;R.QuarkchainDevnetShard4=mDe;R.QuarkchainDevnetShard5=yDe;R.QuarkchainDevnetShard6=gDe;R.QuarkchainDevnetShard7=bDe;R.QuarkchainRoot=JBe;R.QuarkchainShard0=QBe;R.QuarkchainShard1=ZBe;R.QuarkchainShard2=XBe;R.QuarkchainShard3=eDe;R.QuarkchainShard4=tDe;R.QuarkchainShard5=rDe;R.QuarkchainShard6=nDe;R.QuarkchainShard7=aDe;R.QuartzByUnique=uMe;R.Quokkacoin=X7e;R.RabbitAnalogTestnetChain=w7e;R.RangersProtocol=Y7e;R.RangersProtocolTestnetRobin=TMe;R.Realchain=Ake;R.RedlightChain=_Re;R.ReiChain=mBe;R.ReiChainTestnet=yBe;R.ReiNetwork=sBe;R.Resincoin=FBe;R.RikezaNetwork=a7e;R.RikezaNetworkTestnet=eNe;R.RiniaTestnet=zSe;R.Rinkeby=R8e;R.RiseOfTheWarbotsTestnet=F9e;R.Ropsten=P8e;R.Rsk=tIe;R.RskTestnet=rIe;R.Rupaya=KAe;R.Saakuru=SOe;R.SaakuruTestnet=DDe;R.Sakura=dPe;R.SanrChain=$Me;R.SapphireByUnique=dMe;R.Sardis=pBe;R.SardisTestnet=GMe;R.Scolcoin=ABe;R.ScolcoinWeichainTestnet=k9e;R.Scroll=nOe;R.ScrollAlphaTestnet=aOe;R.ScrollPreAlphaTestnet=iOe;R.SeedcoinNetwork=cIe;R.Seele=Jke;R.Sepolia=LOe;R.Setheum=hAe;R.ShardeumLiberty1X=z9e;R.ShardeumLiberty2X=K9e;R.ShardeumSphinx1X=V9e;R.Sherpax=o7e;R.SherpaxTestnet=c7e;R.Shibachain=Z8e;R.Shiden=RAe;R.Shyft=L9e;R.ShyftTestnet=VMe;R.SiberiumNetwork=vDe;R.SingularityZero=JMe;R.SingularityZeroTestnet=YMe;R.SiriusnetV2=oAe;R.Sjatsh=MMe;R.SmartBitcoinCash=SMe;R.SmartBitcoinCashTestnet=PMe;R.SmartHostTeknolojiTestnet=RPe;R.Smartmesh=HOe;R.SocialSmartChain=qDe;R.SongbirdCanaryNetwork=z8e;R.Soterone=LIe;R.Soverun=OOe;R.SoverunTestnet=oDe;R.Sps=tNe;R.SpsTestnet=iNe;R.StarSocialTestnet=mSe;R.StepNetwork=WPe;R.StepTestnet=XMe;R.Stratos=Z7e;R.StratosTestnet=Q7e;R.StreamuxBlockchain=G9e;R.SurBlockchainNetwork=fAe;R.Susono=aNe;R.SxNetwork=UAe;R.SxNetworkTestnet=dSe;R.Syscoin=IIe;R.SyscoinTanenbaumTestnet=w9e;R.TEkta=sPe;R.TaoNetwork=rSe;R.Taraxa=RSe;R.TaraxaTestnet=MSe;R.Taycan=wNe;R.TaycanTestnet=$7e;R.Tbsi=y7e;R.TbsiTestnet=g7e;R.TbwgChain=sIe;R.TcgVerse=gRe;R.Techpay=wRe;R.Teleport=U9e;R.TeleportTestnet=H9e;R.TelosEvm=dIe;R.TelosEvmTestnet=pIe;R.Teslafunds=T7e;R.Thaichain=N8e;R.Thaichain20Thaifi=H8e;R.Theta=NAe;R.ThetaAmberTestnet=DAe;R.ThetaSapphireTestnet=BAe;R.ThetaTestnet=OAe;R.ThinkiumChain0=PBe;R.ThinkiumChain1=RBe;R.ThinkiumChain103=NBe;R.ThinkiumChain2=MBe;R.ThinkiumTestnetChain0=bBe;R.ThinkiumTestnetChain1=vBe;R.ThinkiumTestnetChain103=xBe;R.ThinkiumTestnetChain2=wBe;R.Thundercore=bke;R.ThundercoreTestnet=j8e;R.Tipboxcoin=VDe;R.TipboxcoinTestnet=t9e;R.TlchainNetwork=h9e;R.TmyChain=sMe;R.TokiNetwork=tMe;R.TokiTestnet=rMe;R.TombChain=P9e;R.Tomochain=rke;R.TomochainTestnet=nke;R.ToolGlobal=nMe;R.ToolGlobalTestnet=aMe;R.Top=tPe;R.TopEvm=XSe;R.Tres=I9e;R.TresTestnet=C9e;R.TrustEvmTestnet=oNe;R.UbSmartChain=YBe;R.UbSmartChainTestnet=$Be;R.Ubiq=B8e;R.UbiqNetworkTestnet=D8e;R.Ultron=FPe;R.UltronTestnet=qPe;R.UnicornUltraTestnet=lIe;R.Unique=cMe;R.UzmiNetwork=y9e;R.Valorbit=uIe;R.Vchain=pRe;R.Vechain=iDe;R.VechainTestnet=sDe;R.Vela1Chain=tSe;R.VelasEvm=yke;R.Venidium=u9e;R.VenidiumTestnet=c9e;R.VentionSmartChain=WBe;R.VentionSmartChainTestnet=wSe;R.Vision=pOe;R.VisionVpioneerTestChain=cOe;R.VyvoSmartChain=hMe;R.Wagmi=HMe;R.Wanchain=qSe;R.WanchainTestnet=nPe;R.Web3gamesDevnet=mke;R.Web3gamesTestnet=hke;R.Web3q=SAe;R.Web3qGalileo=DRe;R.Web3qTestnet=BRe;R.Webchain=INe;R.WeelinkTestnet=XDe;R.WegochainRubidium=E9e;R.Wemix30=xPe;R.Wemix30Testnet=_Pe;R.WorldTradeTechnicalChain=BPe;R.Xanachain=pMe;R.XdcApothemNetwork=xIe;R.Xerom=wOe;R.XinfinXdcNetwork=wIe;R.Xodex=bRe;R.XtSmartChain=QAe;R.Yuanchain=$Re;R.ZMainnet=H7e;R.ZTestnet=kMe;R.ZcoreTestnet=NRe;R.ZeethChain=jAe;R.ZeethChainDev=NSe;R.Zeniq=OLe;R.Zenith=$Ie;R.ZenithTestnetVilnius=JIe;R.Zetachain=M9e;R.ZetachainAthensTestnet=N9e;R.Zhejiang=TOe;R.ZilliqaEvmTestnet=UNe;R.ZksyncEra=AAe;R.ZksyncEraTestnet=yAe;R.Zyx=CIe;R._0xtade=DMe;R._4goodnetwork=dOe;R.allChains=WJ;R.configureChain=lhr;R.defaultChains=dhr;R.getChainByChainId=phr;R.getChainBySlug=hhr;R.getChainRPC=chr;R.getChainRPCs=A8e;R.minimizeChain=uhr});var QQe=_(M=>{"use strict";d();p();Object.defineProperty(M,"__esModule",{value:!0});var fhr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},mhr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},yhr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},ghr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},bhr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},vhr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},whr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},xhr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},_hr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Thr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},Ehr={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Chr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Ihr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},khr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},Ahr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Shr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Phr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Rhr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},Mhr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},Nhr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Bhr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Dhr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},Ohr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},Lhr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},qhr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},Fhr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},Whr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},Uhr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},Hhr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},jhr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},zhr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},Khr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},Vhr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},Ghr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},$hr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},Yhr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},Jhr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},Qhr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},Zhr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},Xhr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},efr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},tfr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},rfr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},nfr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},afr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},ifr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},sfr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},ofr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},cfr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},ufr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},lfr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},dfr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},pfr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},hfr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},ffr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},mfr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},yfr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},gfr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},bfr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},vfr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},wfr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},xfr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},_fr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Tfr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Efr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Cfr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Ifr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},kfr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Afr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Sfr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Pfr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Rfr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},Mfr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},Nfr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Bfr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Dfr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},Ofr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},Lfr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},qfr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},Ffr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},Wfr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},Ufr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},Hfr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},jfr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},zfr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},Kfr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},Vfr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},Gfr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},$fr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},Yfr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},Jfr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},Qfr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},Zfr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},Xfr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},emr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},tmr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},rmr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},nmr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},amr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},imr={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},smr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},omr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},cmr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},umr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},lmr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},dmr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},pmr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},hmr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},fmr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},mmr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},ymr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},gmr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},bmr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},vmr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},wmr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},xmr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},_mr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Tmr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},Emr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Cmr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Imr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},kmr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},Amr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},Smr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},Pmr={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},Rmr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},Mmr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},Nmr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},Bmr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},Dmr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},Omr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},Lmr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},qmr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},Fmr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},Wmr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},Umr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},Hmr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},jmr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},zmr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},Kmr={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},Vmr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},Gmr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},$mr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},Ymr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},Jmr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},Qmr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},Zmr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},Xmr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},e0r={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},t0r={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},r0r={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},n0r={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},a0r={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},i0r={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},s0r={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},o0r={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},c0r={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},u0r={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},l0r={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},d0r={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},p0r={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},h0r={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},f0r={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},m0r={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},y0r={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},g0r={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},b0r={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},v0r={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},w0r={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},x0r={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},_0r={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},T0r={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},E0r={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},C0r={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},I0r={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},k0r={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},A0r={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},S0r={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},P0r={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},R0r={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},M0r={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},N0r={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},B0r={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},D0r={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},O0r={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},L0r={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},q0r={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},F0r={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},W0r={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},U0r={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},H0r={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},j0r={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},z0r={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},K0r={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},V0r={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},G0r={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},$0r={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},Y0r={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},J0r={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},Q0r={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},Z0r={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},X0r={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},eyr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},tyr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},ryr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},nyr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},ayr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},iyr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},syr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},oyr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},cyr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},uyr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},lyr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},dyr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},pyr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},hyr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},fyr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},myr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},yyr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},gyr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},byr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},vyr={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},wyr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},xyr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},_yr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},Tyr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},Eyr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Cyr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Iyr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},kyr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},Ayr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},Syr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},Pyr={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},Ryr={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},Myr={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},Nyr={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},Byr={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},Dyr={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},Oyr={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},Lyr={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},qyr={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},Fyr={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},Wyr={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},Uyr={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},Hyr={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},jyr={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},zyr={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},Kyr={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},Vyr={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},Gyr={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},$yr={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},Yyr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},Jyr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},Qyr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Zyr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Xyr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},e1r={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},t1r={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},r1r={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},n1r={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},a1r={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},i1r={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},s1r={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},o1r={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},c1r={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},u1r={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},l1r={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},d1r={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},p1r={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},h1r={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},f1r={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},m1r={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},y1r={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},g1r={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},b1r={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},v1r={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},w1r={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},x1r={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},_1r={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},T1r={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},E1r={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},C1r={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},I1r={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},k1r={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},A1r={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},S1r={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},P1r={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},R1r={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},M1r={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},N1r={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},B1r={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},D1r={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},O1r={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},L1r={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},q1r={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},F1r={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},W1r={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},U1r={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},H1r={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},j1r={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},z1r={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},K1r={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},V1r={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},G1r={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},$1r={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},Y1r={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},J1r={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},Q1r={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},Z1r={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},X1r={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},egr={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},tgr={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},rgr={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},ngr={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},agr={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},igr={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},sgr={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},ogr={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},cgr={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},ugr={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},lgr={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},dgr={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},pgr={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},hgr={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},fgr={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},mgr={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},ygr={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},ggr={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},bgr={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},vgr={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},wgr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},xgr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},_gr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Tgr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Egr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Cgr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Igr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},kgr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},Agr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},Sgr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Pgr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Rgr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},Mgr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},Ngr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},Bgr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},Dgr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},Ogr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},Lgr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},qgr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},Fgr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},Wgr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},Ugr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},Hgr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},jgr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},zgr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},Kgr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},Vgr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},Ggr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},$gr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},Ygr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},Jgr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},Qgr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},Zgr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},Xgr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ebr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},tbr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},rbr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},nbr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},abr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},ibr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},sbr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},obr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},cbr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},ubr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},lbr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},dbr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},pbr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},hbr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},fbr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},mbr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},ybr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},gbr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},bbr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},vbr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},wbr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},xbr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},_br={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Tbr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Ebr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Cbr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Ibr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},kbr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},Abr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Sbr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Pbr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Rbr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},Mbr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},Nbr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},Bbr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},Dbr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},Obr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},Lbr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},qbr={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},Fbr={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},Wbr={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},Ubr={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},Hbr={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},jbr={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},zbr={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},Kbr={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},Vbr={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},Gbr={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},$br={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},Ybr={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},Jbr={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},Qbr={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},Zbr={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},Xbr={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},evr={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},tvr={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},rvr={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},nvr={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},avr={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},ivr={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},svr={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},ovr={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},cvr={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},uvr={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},lvr={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},dvr={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},pvr={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},hvr={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},fvr={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},mvr={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},yvr={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},gvr={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},bvr={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},vvr={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},wvr={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},xvr={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},_vr={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},Tvr={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},Evr={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},Cvr={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},Ivr={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},kvr={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},Avr={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},Svr={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},Pvr={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},Rvr={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},Mvr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},Nvr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},Bvr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},Dvr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},Ovr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},Lvr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},qvr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},Fvr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},Wvr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},Uvr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},Hvr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},jvr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},zvr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},Kvr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},Vvr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},Gvr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},$vr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},Yvr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},Jvr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},Qvr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},Zvr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},Xvr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},e2r={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},t2r={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},r2r={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},n2r={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},a2r={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},i2r={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},s2r={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},o2r={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},c2r={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},u2r={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},l2r={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},d2r={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},p2r={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},h2r={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},f2r={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},m2r={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},y2r={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},g2r={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},b2r={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},v2r={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},w2r={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},x2r={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},_2r={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},T2r={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},E2r={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},C2r={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},I2r={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},k2r={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},A2r={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},S2r={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},P2r={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},R2r={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},M2r={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},N2r={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},B2r={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},D2r={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},O2r={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},L2r={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},q2r={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},F2r={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},W2r={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},U2r={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},H2r={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},j2r={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},z2r={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},K2r={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},V2r={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},G2r={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},$2r={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},Y2r={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},J2r={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Q2r={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Z2r={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},X2r={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},ewr={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},twr={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},rwr={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},nwr={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},awr={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},iwr={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},swr={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},owr={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},cwr={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},uwr={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},lwr={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},dwr={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},pwr={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},hwr={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},fwr={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},mwr={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},ywr={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},gwr={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},bwr={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},vwr={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},wwr={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},xwr={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},_wr={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Twr={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},Ewr={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},Cwr={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},Iwr={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},kwr={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},Awr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},Swr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},Pwr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},Rwr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},Mwr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},Nwr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},Bwr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},Dwr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},Owr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},Lwr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},qwr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},Fwr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},Wwr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},Uwr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},Hwr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},jwr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},zwr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},Kwr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},Vwr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},Gwr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},$wr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},Ywr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},Jwr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},Qwr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},Zwr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},Xwr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},e3r={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},t3r={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},r3r={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},n3r={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},a3r={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},i3r={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},s3r={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},o3r={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},c3r={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},u3r={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},l3r={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},d3r={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},p3r={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},h3r={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},f3r={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},m3r={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},y3r={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},g3r={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},b3r={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},v3r={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},w3r={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},x3r={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},_3r={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},T3r={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},E3r={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},C3r={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},I3r={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},k3r={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},A3r={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},S3r={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},P3r={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},R3r={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},M3r={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},N3r={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},B3r={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},D3r={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},O3r={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},L3r={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},q3r={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},F3r={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},W3r={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},U3r={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},H3r={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},j3r={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},z3r={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},K3r={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},V3r={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},G3r={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},$3r={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},Y3r={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},J3r={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},Q3r={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},Z3r={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},X3r={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},e5r={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},t5r={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},r5r={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},n5r={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},a5r={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},i5r={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},s5r={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},o5r={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},c5r={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},u5r={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},l5r={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},d5r={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},p5r={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},h5r={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},f5r={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},m5r={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},y5r={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},g5r={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},b5r={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},v5r={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},w5r={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},x5r={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},_5r={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},T5r={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},E5r={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},C5r={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},I5r={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},k5r={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},A5r={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},S5r={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},P5r={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},R5r={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},M5r={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},N5r={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},B5r={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},D5r={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},O5r={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},L5r={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},q5r={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},F5r={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},W5r={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},U5r={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},H5r={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},j5r={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},z5r={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},K5r={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},V5r={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},G5r={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},$5r={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},Y5r={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},J5r={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},Q5r={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},Z5r={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},X5r={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},exr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},txr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},rxr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},nxr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},axr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},ixr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},sxr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},oxr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},cxr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},uxr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},lxr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},dxr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},pxr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},hxr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},fxr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},mxr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},yxr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},gxr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},bxr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},vxr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},wxr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},xxr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},_xr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Txr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Exr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Cxr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Ixr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},kxr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},Axr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Sxr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Pxr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},Rxr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},Mxr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Nxr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},Bxr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},Dxr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},Oxr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},Lxr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},qxr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},Fxr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},Wxr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Uxr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},Hxr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},jxr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},zxr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},Kxr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},Vxr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},Gxr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},$xr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},Yxr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},Jxr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},Qxr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},Zxr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},Xxr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},e_r={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},t_r={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},r_r={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},n_r={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},a_r={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},i_r={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},s_r={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},o_r={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},c_r={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},u_r={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},l_r={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},d_r={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},p_r={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},h_r={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},f_r={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},m_r={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},y_r={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},g_r={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},b_r={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},v_r={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},w_r={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},x_r={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},__r={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},T_r={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},E_r={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},C_r={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},I_r={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},k_r={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},A_r={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},S_r={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},P_r={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},R_r={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},M_r={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},N_r={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},B_r={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},D_r={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},O_r={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},L_r={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},q_r={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},F_r={mode:"http"};function WLe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...F_r,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function W_r(r,e){return WLe(r,e)[0]}function U_r(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function H_r(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var UJ=fhr,ULe=mhr,HLe=yhr,jLe=ghr,HJ=bhr,zLe=vhr,KLe=whr,VLe=xhr,GLe=_hr,jJ=Thr,$Le=Ehr,YLe=Chr,JLe=Ihr,QLe=khr,ZLe=Ahr,XLe=Shr,eqe=Phr,tqe=Rhr,rqe=Mhr,nqe=Nhr,aqe=Bhr,iqe=Dhr,sqe=Ohr,oqe=Lhr,cqe=qhr,uqe=Fhr,lqe=Whr,dqe=Uhr,pqe=Hhr,hqe=jhr,fqe=zhr,mqe=Khr,yqe=Vhr,gqe=Ghr,bqe=$hr,vqe=Yhr,wqe=Jhr,xqe=Qhr,_qe=Zhr,Tqe=Xhr,Eqe=efr,Cqe=tfr,Iqe=rfr,kqe=nfr,Aqe=afr,Sqe=ifr,Pqe=sfr,Rqe=ofr,Mqe=cfr,Nqe=ufr,Bqe=lfr,Dqe=dfr,Oqe=pfr,Lqe=hfr,zJ=ffr,qqe=mfr,Fqe=yfr,Wqe=gfr,Uqe=bfr,Hqe=vfr,jqe=wfr,zqe=xfr,Kqe=_fr,Vqe=Tfr,Gqe=Efr,$qe=Cfr,Yqe=Ifr,Jqe=kfr,Qqe=Afr,Zqe=Sfr,Xqe=Pfr,eFe=Rfr,tFe=Mfr,rFe=Nfr,nFe=Bfr,aFe=Dfr,iFe=Ofr,sFe=Lfr,oFe=qfr,cFe=Ffr,uFe=Wfr,lFe=Ufr,dFe=Hfr,pFe=jfr,hFe=zfr,fFe=Kfr,mFe=Vfr,yFe=Gfr,gFe=$fr,bFe=Yfr,vFe=Jfr,wFe=Qfr,xFe=Zfr,KJ=Xfr,_Fe=emr,TFe=tmr,EFe=rmr,CFe=nmr,IFe=amr,kFe=imr,AFe=smr,SFe=omr,PFe=cmr,RFe=umr,MFe=lmr,NFe=dmr,BFe=pmr,DFe=hmr,OFe=fmr,LFe=mmr,qFe=ymr,FFe=gmr,WFe=bmr,UFe=vmr,HFe=wmr,jFe=xmr,zFe=_mr,KFe=Tmr,VFe=Emr,GFe=Cmr,$Fe=Imr,YFe=kmr,VJ=Amr,JFe=Smr,QFe=Pmr,ZFe=Rmr,XFe=Mmr,eWe=Nmr,tWe=Bmr,rWe=Dmr,nWe=Omr,aWe=Lmr,iWe=qmr,sWe=Fmr,oWe=Wmr,cWe=Umr,uWe=Hmr,lWe=jmr,dWe=zmr,pWe=Kmr,hWe=Vmr,fWe=Gmr,mWe=$mr,yWe=Ymr,gWe=Jmr,bWe=Qmr,vWe=Zmr,wWe=Xmr,xWe=e0r,_We=t0r,TWe=r0r,GJ=n0r,EWe=a0r,CWe=i0r,IWe=s0r,kWe=o0r,AWe=c0r,SWe=u0r,PWe=l0r,RWe=d0r,MWe=p0r,NWe=h0r,BWe=f0r,DWe=m0r,OWe=y0r,LWe=g0r,qWe=b0r,FWe=v0r,WWe=w0r,UWe=x0r,HWe=_0r,jWe=T0r,zWe=E0r,KWe=C0r,VWe=I0r,GWe=k0r,$We=A0r,YWe=S0r,JWe=P0r,QWe=R0r,ZWe=M0r,XWe=N0r,eUe=B0r,$J=D0r,tUe=O0r,rUe=L0r,nUe=q0r,aUe=F0r,iUe=W0r,sUe=U0r,oUe=H0r,cUe=j0r,uUe=z0r,lUe=K0r,dUe=V0r,pUe=G0r,hUe=$0r,fUe=Y0r,mUe=J0r,yUe=Q0r,gUe=Z0r,bUe=X0r,vUe=eyr,wUe=tyr,xUe=ryr,_Ue=nyr,TUe=ayr,EUe=iyr,CUe=syr,IUe=oyr,kUe=cyr,AUe=uyr,SUe=lyr,PUe=dyr,RUe=pyr,MUe=hyr,NUe=fyr,BUe=myr,DUe=yyr,OUe=gyr,LUe=byr,qUe=vyr,FUe=wyr,WUe=xyr,UUe=_yr,HUe=Tyr,jUe=Eyr,zUe=Cyr,KUe=Iyr,VUe=kyr,GUe=Ayr,$Ue=Syr,YUe=Pyr,JUe=Ryr,QUe=Myr,ZUe=Nyr,XUe=Byr,eHe=Dyr,tHe=Oyr,rHe=Lyr,nHe=qyr,aHe=Fyr,iHe=Wyr,sHe=Uyr,oHe=Hyr,cHe=jyr,uHe=zyr,lHe=Kyr,dHe=Vyr,pHe=Gyr,hHe=$yr,fHe=Yyr,mHe=Jyr,yHe=Qyr,gHe=Zyr,bHe=Xyr,vHe=e1r,wHe=t1r,xHe=r1r,_He=n1r,THe=a1r,EHe=i1r,CHe=s1r,IHe=o1r,kHe=c1r,AHe=u1r,SHe=l1r,PHe=d1r,RHe=p1r,MHe=h1r,NHe=f1r,BHe=m1r,DHe=y1r,OHe=g1r,LHe=b1r,qHe=v1r,FHe=w1r,WHe=x1r,UHe=_1r,HHe=T1r,jHe=E1r,zHe=C1r,KHe=I1r,VHe=k1r,GHe=A1r,$He=S1r,YHe=P1r,JHe=R1r,QHe=M1r,ZHe=N1r,XHe=B1r,eje=D1r,tje=O1r,rje=L1r,nje=q1r,aje=F1r,ije=W1r,sje=U1r,oje=H1r,cje=j1r,uje=z1r,lje=K1r,dje=V1r,pje=G1r,hje=$1r,fje=Y1r,mje=J1r,yje=Q1r,gje=Z1r,bje=X1r,vje=egr,wje=tgr,xje=rgr,_je=ngr,Tje=agr,Eje=igr,Cje=sgr,Ije=ogr,kje=cgr,Aje=ugr,Sje=lgr,Pje=dgr,Rje=pgr,Mje=hgr,Nje=fgr,Bje=mgr,Dje=ygr,Oje=ggr,Lje=bgr,qje=vgr,Fje=wgr,Wje=xgr,Uje=_gr,Hje=Tgr,jje=Egr,zje=Cgr,Kje=Igr,Vje=kgr,Gje=Agr,$je=Sgr,Yje=Pgr,Jje=Rgr,Qje=Mgr,Zje=Ngr,Xje=Bgr,eze=Dgr,tze=Ogr,rze=Lgr,nze=qgr,aze=Fgr,ize=Wgr,sze=Ugr,oze=Hgr,cze=jgr,uze=zgr,lze=Kgr,dze=Vgr,pze=Ggr,hze=$gr,fze=Ygr,mze=Jgr,yze=Qgr,gze=Zgr,bze=Xgr,vze=ebr,wze=tbr,xze=rbr,_ze=nbr,Tze=abr,Eze=ibr,Cze=sbr,Ize=obr,kze=cbr,Aze=ubr,Sze=lbr,Pze=dbr,Rze=pbr,Mze=hbr,Nze=fbr,Bze=mbr,Dze=ybr,Oze=gbr,Lze=bbr,qze=vbr,Fze=wbr,Wze=xbr,Uze=_br,Hze=Tbr,jze=Ebr,zze=Cbr,Kze=Ibr,Vze=kbr,Gze=Abr,$ze=Sbr,Yze=Pbr,Jze=Rbr,Qze=Mbr,Zze=Nbr,Xze=Bbr,eKe=Dbr,tKe=Obr,rKe=Lbr,nKe=qbr,aKe=Fbr,iKe=Wbr,sKe=Ubr,YJ=Hbr,oKe=jbr,cKe=zbr,uKe=Kbr,lKe=Vbr,dKe=Gbr,pKe=$br,hKe=Ybr,fKe=Jbr,mKe=Qbr,yKe=Zbr,gKe=Xbr,bKe=evr,vKe=tvr,wKe=rvr,xKe=nvr,_Ke=avr,TKe=ivr,EKe=svr,CKe=ovr,IKe=cvr,kKe=uvr,AKe=lvr,SKe=dvr,PKe=pvr,RKe=hvr,MKe=fvr,NKe=mvr,BKe=yvr,DKe=gvr,OKe=bvr,LKe=vvr,qKe=wvr,FKe=xvr,WKe=_vr,UKe=Tvr,HKe=Evr,jKe=Cvr,zKe=Ivr,KKe=kvr,VKe=Avr,GKe=Svr,$Ke=Pvr,YKe=Rvr,JKe=Mvr,QKe=Nvr,ZKe=Bvr,XKe=Dvr,eVe=Ovr,tVe=Lvr,rVe=qvr,nVe=Fvr,aVe=Wvr,iVe=Uvr,sVe=Hvr,oVe=jvr,cVe=zvr,uVe=Kvr,lVe=Vvr,dVe=Gvr,pVe=$vr,hVe=Yvr,fVe=Jvr,mVe=Qvr,yVe=Zvr,gVe=Xvr,bVe=e2r,vVe=t2r,wVe=r2r,xVe=n2r,_Ve=a2r,TVe=i2r,EVe=s2r,CVe=o2r,IVe=c2r,kVe=u2r,AVe=l2r,SVe=d2r,PVe=p2r,RVe=h2r,MVe=f2r,NVe=m2r,BVe=y2r,DVe=g2r,OVe=b2r,LVe=v2r,qVe=w2r,FVe=x2r,WVe=_2r,UVe=T2r,HVe=E2r,jVe=C2r,zVe=I2r,KVe=k2r,VVe=A2r,GVe=S2r,$Ve=P2r,YVe=R2r,JVe=M2r,QVe=N2r,ZVe=B2r,XVe=D2r,eGe=O2r,tGe=L2r,rGe=q2r,nGe=F2r,aGe=W2r,iGe=U2r,sGe=H2r,oGe=j2r,cGe=z2r,uGe=K2r,lGe=V2r,dGe=G2r,pGe=$2r,hGe=Y2r,fGe=J2r,mGe=Q2r,yGe=Z2r,gGe=X2r,bGe=ewr,vGe=twr,wGe=rwr,xGe=nwr,_Ge=awr,TGe=iwr,EGe=swr,CGe=owr,IGe=cwr,kGe=uwr,AGe=lwr,SGe=dwr,PGe=pwr,RGe=hwr,MGe=fwr,NGe=mwr,BGe=ywr,DGe=gwr,OGe=bwr,LGe=vwr,qGe=wwr,FGe=xwr,WGe=_wr,UGe=Twr,HGe=Ewr,jGe=Cwr,zGe=Iwr,KGe=kwr,VGe=Awr,GGe=Swr,$Ge=Pwr,YGe=Rwr,JGe=Mwr,QGe=Nwr,ZGe=Bwr,XGe=Dwr,e$e=Owr,t$e=Lwr,r$e=qwr,n$e=Fwr,a$e=Wwr,i$e=Uwr,s$e=Hwr,o$e=jwr,JJ=zwr,c$e=Kwr,u$e=Vwr,l$e=Gwr,d$e=$wr,p$e=Ywr,QJ=Jwr,ZJ=Qwr,h$e=Zwr,f$e=Xwr,m$e=e3r,y$e=t3r,g$e=r3r,b$e=n3r,v$e=a3r,w$e=i3r,x$e=s3r,_$e=o3r,T$e=c3r,E$e=u3r,C$e=l3r,I$e=d3r,k$e=p3r,A$e=h3r,S$e=f3r,P$e=m3r,R$e=y3r,M$e=g3r,N$e=b3r,B$e=v3r,D$e=w3r,O$e=x3r,L$e=_3r,q$e=T3r,F$e=E3r,W$e=C3r,U$e=I3r,H$e=k3r,j$e=A3r,z$e=S3r,K$e=P3r,V$e=R3r,G$e=M3r,$$e=N3r,Y$e=B3r,J$e=D3r,Q$e=O3r,Z$e=L3r,X$e=q3r,eYe=F3r,XJ=W3r,tYe=U3r,rYe=H3r,nYe=j3r,aYe=z3r,iYe=K3r,sYe=V3r,oYe=G3r,cYe=$3r,uYe=Y3r,lYe=J3r,dYe=Q3r,pYe=Z3r,hYe=X3r,fYe=e5r,mYe=t5r,yYe=r5r,gYe=n5r,bYe=a5r,vYe=i5r,wYe=s5r,xYe=o5r,_Ye=c5r,TYe=u5r,EYe=l5r,CYe=d5r,IYe=p5r,kYe=h5r,AYe=f5r,SYe=m5r,PYe=y5r,RYe=g5r,MYe=b5r,NYe=v5r,BYe=w5r,DYe=x5r,OYe=_5r,LYe=T5r,qYe=E5r,FYe=C5r,WYe=I5r,UYe=k5r,HYe=A5r,jYe=S5r,zYe=P5r,KYe=R5r,VYe=M5r,GYe=N5r,$Ye=B5r,YYe=D5r,JYe=O5r,QYe=L5r,ZYe=q5r,XYe=F5r,eJe=W5r,tJe=U5r,rJe=H5r,nJe=j5r,aJe=z5r,iJe=K5r,sJe=V5r,oJe=G5r,eQ=$5r,cJe=Y5r,uJe=J5r,lJe=Q5r,dJe=Z5r,pJe=X5r,hJe=exr,fJe=txr,mJe=rxr,yJe=nxr,gJe=axr,bJe=ixr,vJe=sxr,wJe=oxr,xJe=cxr,_Je=uxr,TJe=lxr,EJe=dxr,CJe=pxr,IJe=hxr,kJe=fxr,AJe=mxr,SJe=yxr,PJe=gxr,RJe=bxr,MJe=vxr,NJe=wxr,BJe=xxr,DJe=_xr,OJe=Txr,LJe=Exr,qJe=Cxr,FJe=Ixr,WJe=kxr,UJe=Axr,HJe=Sxr,jJe=Pxr,zJe=Rxr,KJe=Mxr,VJe=Nxr,GJe=Bxr,$Je=Dxr,YJe=Oxr,JJe=Lxr,QJe=qxr,ZJe=Fxr,XJe=Wxr,eQe=Uxr,tQe=Hxr,rQe=jxr,nQe=zxr,aQe=Kxr,iQe=Vxr,sQe=Gxr,oQe=$xr,cQe=Yxr,uQe=Jxr,lQe=Qxr,dQe=Zxr,pQe=Xxr,hQe=e_r,fQe=t_r,mQe=r_r,yQe=n_r,gQe=a_r,bQe=i_r,vQe=s_r,wQe=o_r,xQe=c_r,_Qe=u_r,TQe=l_r,EQe=d_r,CQe=p_r,IQe=h_r,kQe=f_r,AQe=m_r,SQe=y_r,PQe=g_r,RQe=b_r,MQe=v_r,NQe=w_r,BQe=x_r,DQe=__r,OQe=T_r,LQe=E_r,qQe=C_r,FQe=I_r,WQe=k_r,UQe=A_r,HQe=S_r,jQe=P_r,zQe=R_r,KQe=M_r,VQe=N_r,GQe=B_r,$Qe=D_r,YQe=O_r,JQe=L_r,tQ=q_r,j_r=[UJ,HJ,VJ,XJ,JJ,eQ,jJ,$J,zJ,KJ,GJ,YJ,ZJ,QJ,tQ],rQ=[UJ,ULe,HLe,jLe,HJ,zLe,KLe,VLe,GLe,jJ,$Le,YLe,JLe,QLe,ZLe,XLe,eqe,tqe,rqe,nqe,aqe,iqe,sqe,oqe,cqe,uqe,lqe,dqe,pqe,hqe,fqe,mqe,yqe,gqe,bqe,vqe,wqe,xqe,_qe,Tqe,Eqe,Cqe,Iqe,kqe,Aqe,Sqe,Pqe,Rqe,Mqe,Nqe,Bqe,Dqe,Oqe,Lqe,zJ,qqe,Fqe,Wqe,Uqe,Hqe,jqe,zqe,Kqe,Vqe,Gqe,$qe,Yqe,Jqe,Qqe,Zqe,Xqe,eFe,tFe,rFe,nFe,aFe,iFe,sFe,oFe,cFe,uFe,lFe,dFe,pFe,hFe,fFe,mFe,yFe,gFe,bFe,vFe,wFe,xFe,KJ,_Fe,TFe,EFe,CFe,IFe,kFe,AFe,SFe,PFe,RFe,MFe,NFe,BFe,DFe,OFe,LFe,qFe,FFe,WFe,UFe,HFe,jFe,zFe,KFe,VFe,GFe,$Fe,YFe,VJ,JFe,QFe,ZFe,XFe,eWe,tWe,rWe,nWe,aWe,iWe,sWe,oWe,cWe,uWe,lWe,dWe,pWe,hWe,fWe,mWe,yWe,gWe,bWe,vWe,wWe,xWe,_We,TWe,GJ,EWe,CWe,IWe,kWe,AWe,SWe,PWe,RWe,MWe,NWe,BWe,DWe,OWe,LWe,qWe,FWe,WWe,UWe,HWe,jWe,zWe,KWe,VWe,GWe,$We,YWe,JWe,QWe,ZWe,XWe,eUe,$J,tUe,rUe,nUe,aUe,iUe,sUe,oUe,cUe,uUe,lUe,dUe,pUe,hUe,fUe,mUe,yUe,gUe,bUe,vUe,wUe,xUe,_Ue,TUe,EUe,CUe,IUe,kUe,AUe,SUe,PUe,RUe,MUe,NUe,BUe,DUe,OUe,LUe,qUe,FUe,WUe,UUe,HUe,jUe,zUe,KUe,VUe,GUe,$Ue,YUe,JUe,QUe,ZUe,XUe,eHe,tHe,rHe,nHe,aHe,iHe,sHe,oHe,cHe,uHe,lHe,dHe,pHe,hHe,fHe,mHe,yHe,gHe,bHe,vHe,wHe,xHe,_He,THe,EHe,CHe,IHe,kHe,AHe,SHe,PHe,RHe,MHe,NHe,BHe,DHe,OHe,LHe,qHe,FHe,WHe,UHe,HHe,jHe,zHe,KHe,VHe,GHe,$He,YHe,JHe,QHe,ZHe,XHe,eje,tje,rje,nje,aje,ije,sje,oje,cje,uje,lje,dje,pje,hje,fje,mje,yje,gje,bje,vje,wje,xje,_je,Tje,Eje,Cje,Ije,kje,Aje,Sje,Pje,Rje,Mje,Nje,Bje,Dje,Oje,Lje,qje,Fje,Wje,Uje,Hje,jje,zje,Kje,Vje,Gje,$je,Yje,Jje,Qje,Zje,Xje,eze,tze,rze,nze,aze,ize,sze,oze,cze,uze,lze,dze,pze,hze,fze,mze,yze,gze,bze,vze,wze,xze,_ze,Tze,Eze,Cze,Ize,kze,Aze,Sze,Pze,Rze,Mze,Nze,Bze,Dze,Oze,Lze,qze,Fze,Wze,Uze,Hze,jze,zze,Kze,Vze,Gze,$ze,Yze,Jze,Qze,Zze,Xze,eKe,tKe,rKe,nKe,aKe,iKe,sKe,YJ,oKe,cKe,uKe,lKe,dKe,pKe,hKe,fKe,mKe,yKe,gKe,bKe,vKe,wKe,xKe,_Ke,TKe,EKe,CKe,IKe,kKe,AKe,SKe,PKe,RKe,MKe,NKe,BKe,DKe,OKe,LKe,qKe,FKe,WKe,UKe,HKe,jKe,zKe,KKe,VKe,GKe,$Ke,YKe,JKe,QKe,ZKe,XKe,eVe,tVe,rVe,nVe,aVe,iVe,sVe,oVe,cVe,uVe,lVe,dVe,pVe,hVe,fVe,mVe,yVe,gVe,bVe,vVe,wVe,xVe,_Ve,TVe,EVe,CVe,IVe,kVe,AVe,SVe,PVe,RVe,MVe,NVe,BVe,DVe,OVe,LVe,qVe,FVe,WVe,UVe,HVe,jVe,zVe,KVe,VVe,GVe,$Ve,YVe,JVe,QVe,ZVe,XVe,eGe,tGe,rGe,nGe,aGe,iGe,sGe,oGe,cGe,uGe,lGe,dGe,pGe,hGe,fGe,mGe,yGe,gGe,bGe,vGe,wGe,xGe,_Ge,TGe,EGe,CGe,IGe,kGe,AGe,SGe,PGe,RGe,MGe,NGe,BGe,DGe,OGe,LGe,qGe,FGe,WGe,UGe,HGe,jGe,zGe,KGe,VGe,GGe,$Ge,YGe,JGe,QGe,ZGe,XGe,e$e,t$e,r$e,n$e,a$e,i$e,s$e,o$e,JJ,c$e,u$e,l$e,d$e,p$e,QJ,ZJ,h$e,f$e,m$e,y$e,g$e,b$e,v$e,w$e,x$e,_$e,T$e,E$e,C$e,I$e,k$e,A$e,S$e,P$e,R$e,M$e,N$e,B$e,D$e,O$e,L$e,q$e,F$e,W$e,U$e,H$e,j$e,z$e,K$e,V$e,G$e,$$e,Y$e,J$e,Q$e,Z$e,X$e,eYe,XJ,tYe,rYe,nYe,aYe,iYe,sYe,oYe,cYe,uYe,lYe,dYe,pYe,hYe,fYe,mYe,yYe,gYe,bYe,vYe,wYe,xYe,_Ye,TYe,EYe,CYe,IYe,kYe,AYe,SYe,PYe,RYe,MYe,NYe,BYe,DYe,OYe,LYe,qYe,FYe,WYe,UYe,HYe,jYe,zYe,KYe,VYe,GYe,$Ye,YYe,JYe,QYe,ZYe,XYe,eJe,tJe,rJe,nJe,aJe,iJe,sJe,oJe,eQ,cJe,uJe,lJe,dJe,pJe,hJe,fJe,mJe,yJe,gJe,bJe,vJe,wJe,xJe,_Je,TJe,EJe,CJe,IJe,kJe,AJe,SJe,PJe,RJe,MJe,NJe,BJe,DJe,OJe,LJe,qJe,FJe,WJe,UJe,HJe,jJe,zJe,KJe,VJe,GJe,$Je,YJe,JJe,QJe,ZJe,XJe,eQe,tQe,rQe,nQe,aQe,iQe,sQe,oQe,cQe,uQe,lQe,dQe,pQe,hQe,fQe,mQe,yQe,gQe,bQe,vQe,wQe,xQe,_Qe,TQe,EQe,CQe,IQe,kQe,AQe,SQe,PQe,RQe,MQe,NQe,BQe,DQe,OQe,LQe,qQe,FQe,WQe,UQe,HQe,jQe,zQe,KQe,VQe,GQe,$Qe,YQe,JQe,tQ];function z_r(r){let e=rQ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function K_r(r){let e=rQ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}M.AcalaMandalaTestnet=gUe;M.AcalaNetwork=OUe;M.AcalaNetworkTestnet=vUe;M.AerochainTestnet=LUe;M.AiozNetwork=aWe;M.AiozNetworkTestnet=pKe;M.Airdao=_Ge;M.AirdaoTestnet=NGe;M.Aitd=lje;M.AitdTestnet=dje;M.Akroma=OYe;M.Alaya=LYe;M.AlayaDevTestnet=qYe;M.AlphNetwork=gVe;M.Altcoinchain=kze;M.Alyx=uje;M.AlyxChainTestnet=YFe;M.AmbrosChain=YUe;M.AmeChain=oWe;M.Amstar=mje;M.AmstarTestnet=WHe;M.Anduschain=QJe;M.AnytypeEvmChain=kje;M.Aquachain=lQe;M.Arbitrum=JJ;M.ArbitrumGoerli=eQ;M.ArbitrumNova=c$e;M.ArbitrumOnXdai=mWe;M.ArbitrumRinkeby=oJe;M.ArcologyTestnet=LFe;M.Arevia=Ize;M.ArmoniaEvaChain=XFe;M.ArmoniaEvaChainTestnet=eWe;M.ArtisSigma1=KYe;M.ArtisTestnetTau1=VYe;M.Astar=yUe;M.Astra=XVe;M.AstraTestnet=tGe;M.Atelier=jje;M.Atheios=Tje;M.Athereum=p$e;M.AtoshiTestnet=nWe;M.Aurora=IQe;M.AuroraBetanet=AQe;M.AuroraTestnet=kQe;M.AutobahnNetwork=y$e;M.AutonityBakerlooThamesTestnet=dQe;M.AutonityPiccadillyThamesTestnet=pQe;M.AuxiliumNetwork=iQe;M.Avalanche=ZJ;M.AvalancheFuji=QJ;M.Aves=e$e;M.BandaiNamcoResearchVerse=GUe;M.Base=pVe;M.BaseGoerli=tYe;M.BeagleMessagingChain=xje;M.BeanecoSmartchain=bJe;M.BearNetworkChain=vJe;M.BearNetworkChainTestnet=xJe;M.BeoneChainTestnet=oVe;M.BeresheetBereevmTestnet=ize;M.Berylbit=MVe;M.BeverlyHills=aYe;M.Bifrost=Hze;M.BifrostTestnet=w$e;M.Binance=zJ;M.BinanceTestnet=KJ;M.Bitcichain=qje;M.BitcichainTestnet=Fje;M.BitcoinEvm=wze;M.Bitgert=QGe;M.Bitindi=dKe;M.BitindiTestnet=lKe;M.BitkubChain=xFe;M.BitkubChainTestnet=UGe;M.Bittex=eKe;M.BittorrentChain=fWe;M.BittorrentChainTestnet=IHe;M.Bityuan=qze;M.BlackfortExchangeNetwork=_Ke;M.BlackfortExchangeNetworkTestnet=vKe;M.BlgTestnet=lGe;M.BlockchainGenesis=KVe;M.BlockchainStation=AUe;M.BlockchainStationTestnet=SUe;M.BlocktonBlockchain=uVe;M.Bloxberg=SVe;M.Bmc=uWe;M.BmcTestnet=lWe;M.BobaAvax=h$e;M.BobaBnb=S$e;M.BobaBnbTestnet=qVe;M.BobaNetwork=SWe;M.BobaNetworkGoerliTestnet=Lze;M.BobaNetworkRinkebyTestnet=dqe;M.BobabaseTestnet=oje;M.Bobabeam=sje;M.BobafujiTestnet=mKe;M.Bobaopera=DWe;M.BobaoperaTestnet=oKe;M.BombChain=Cze;M.BombChainTestnet=Aze;M.BonNetwork=Lje;M.Bosagora=yze;M.Brochain=xYe;M.Bronos=PHe;M.BronosTestnet=SHe;M.Btachain=Eje;M.BtcixNetwork=kGe;M.Callisto=HUe;M.CallistoTestnet=AGe;M.CalypsoNftHubSkale=PQe;M.CalypsoNftHubSkaleTestnet=vQe;M.CaminoCChain=aUe;M.Candle=pUe;M.Canto=JKe;M.CantoTestnet=RUe;M.CatecoinChain=_je;M.Celo=u$e;M.CeloAlfajoresTestnet=m$e;M.CeloBaklavaTestnet=O$e;M.CennznetAzalea=PGe;M.CennznetNikau=Wze;M.CennznetRata=Fze;M.ChainVerse=RKe;M.Cheapeth=DUe;M.ChiadoTestnet=VVe;M.ChilizScovilleTestnet=rYe;M.CicChain=fje;M.CicChainTestnet=eje;M.Cloudtx=GGe;M.CloudtxTestnet=$Ge;M.Cloudwalk=Xje;M.CloudwalkTestnet=Zje;M.CloverTestnet=EHe;M.ClvParachain=CHe;M.Cmp=$Ye;M.CmpTestnet=hJe;M.CoinexSmartChain=Bqe;M.CoinexSmartChainTestnet=Dqe;M.ColumbusTestNetwork=iUe;M.CondorTestNetwork=NYe;M.Condrieu=U$e;M.ConfluxEspace=kHe;M.ConfluxEspaceTestnet=Zqe;M.ConstaTestnet=JWe;M.CoreBlockchain=OHe;M.CoreBlockchainTestnet=DHe;M.CreditSmartchain=fGe;M.CronosBeta=cqe;M.CronosTestnet=zWe;M.Crossbell=rKe;M.CryptoEmergency=dWe;M.Cryptocoinpay=JVe;M.CryptokylinTestnet=wFe;M.Crystaleum=wYe;M.CtexScanBlockchain=bje;M.CubeChain=Nje;M.CubeChainTestnet=Bje;M.Cyberdecknet=EQe;M.DChain=Uje;M.DarwiniaCrabNetwork=kqe;M.DarwiniaNetwork=Sqe;M.DarwiniaPangolinTestnet=Iqe;M.DarwiniaPangoroTestnet=Aqe;M.Datahopper=WQe;M.DaxChain=QFe;M.DbchainTestnet=$qe;M.Debank=OFe;M.DebankTestnet=DFe;M.DebounceSubnetTestnet=zze;M.DecentralizedWeb=jFe;M.DecimalSmartChain=rFe;M.DecimalSmartChainTestnet=WYe;M.DefichainEvmNetwork=qHe;M.DefichainEvmNetworkTestnet=FHe;M.Dehvo=NFe;M.DexalotSubnet=lJe;M.DexalotSubnetTestnet=uJe;M.DexitNetwork=$Ue;M.DfkChain=C$e;M.DfkChainTest=HWe;M.DiodePrenet=ZLe;M.DiodeTestnetStaging=JLe;M.DithereumTestnet=gqe;M.Dogcoin=LHe;M.DogcoinTestnet=BVe;M.Dogechain=Yje;M.DogechainTestnet=mUe;M.DokenSuperChain=D$e;M.DosFujiSubnet=cje;M.DoubleAChain=sUe;M.DoubleAChainTestnet=oUe;M.DracNetwork=nKe;M.DraconesFinancialServices=dVe;M.Dxchain=vqe;M.DxchainTestnet=Xqe;M.Dyno=aKe;M.DynoTestnet=iKe;M.Ecoball=pze;M.EcoballTestnetEspuma=hze;M.Ecredits=q$e;M.EcreditsTestnet=F$e;M.EdexaTestnet=$je;M.EdgewareEdgeevm=aze;M.Ekta=Gje;M.ElaDidSidechain=iqe;M.ElaDidSidechainTestnet=sqe;M.ElastosSmartChain=nqe;M.ElastosSmartChainTestnet=aqe;M.Eleanor=Hje;M.EllaTheHeart=VKe;M.Ellaism=Kqe;M.EluvioContentFabric=PJe;M.Elysium=hje;M.ElysiumTestnet=pje;M.EmpireNetwork=tKe;M.EnduranceSmartChain=EUe;M.Energi=a$e;M.EnergiTestnet=x$e;M.EnergyWebChain=_We;M.EnergyWebVoltaTestnet=Y$e;M.EnnothemProterozoic=Pqe;M.EnnothemTestnetPioneer=Rqe;M.Enterchain=$He;M.Enuls=qFe;M.EnulsTestnet=FFe;M.Eos=Wqe;M.Eraswap=IKe;M.Ethereum=UJ;M.EthereumClassic=Hqe;M.EthereumClassicTestnetKotti=zLe;M.EthereumClassicTestnetMorden=jqe;M.EthereumClassicTestnetMordor=zqe;M.EthereumFair=fJe;M.Ethergem=Vje;M.Etherinc=EFe;M.EtherliteChain=MFe;M.EthersocialNetwork=VGe;M.EthoProtocol=RJe;M.Etica=B$e;M.EtndChainS=MYe;M.EuropaSkaleChain=UQe;M.Eurus=wHe;M.EurusTestnet=Kje;M.Evanesco=xze;M.EvanescoTestnet=KHe;M.Evmos=RVe;M.EvmosTestnet=PVe;M.EvriceNetwork=xHe;M.Excelon=rQe;M.ExcoincialChain=aQe;M.ExcoincialChainVoltaTestnet=nQe;M.ExosamaNetwork=fze;M.ExpanseNetwork=ULe;M.ExzoNetwork=YHe;M.EzchainCChain=Dze;M.EzchainCChainTestnet=Oze;M.FXCoreNetwork=dUe;M.Factory127=VFe;M.FantasiaChain=VUe;M.Fantom=GJ;M.FantomTestnet=YJ;M.FastexChainTestnet=cJe;M.Fibonacci=uGe;M.Filecoin=LWe;M.FilecoinButterflyTestnet=qJe;M.FilecoinCalibrationTestnet=QYe;M.FilecoinHyperspaceTestnet=jze;M.FilecoinLocalTestnet=oQe;M.FilecoinWallabyTestnet=JGe;M.Findora=gze;M.FindoraForge=vze;M.FindoraTestnet=bze;M.Firechain=lUe;M.FirenzeTestNetwork=X$e;M.Flachain=sQe;M.Flare=QLe;M.FlareTestnetCoston=XLe;M.FlareTestnetCoston2=BFe;M.Floripa=v$e;M.Fncy=eFe;M.FncyTestnet=SJe;M.FreightTrustNetwork=gWe;M.Frenchain=f$e;M.FrenchainTestnet=rUe;M.FrontierOfDreamsTestnet=EGe;M.Fuse=UFe;M.FuseSparknet=HFe;M.Fusion=ZGe;M.FusionTestnet=g$e;M.Ganache=BKe;M.GarizonStage0=yFe;M.GarizonStage1=gFe;M.GarizonStage2=bFe;M.GarizonStage3=vFe;M.GarizonTestnetStage0=QUe;M.GarizonTestnetStage1=ZUe;M.GarizonTestnetStage2=XUe;M.GarizonTestnetStage3=eHe;M.Gatechain=pFe;M.GatechainTestnet=dFe;M.GatherDevnetNetwork=xQe;M.GatherNetwork=fQe;M.GatherTestnetNetwork=wQe;M.GearZeroNetwork=cUe;M.GearZeroNetworkTestnet=YYe;M.Genechain=oFe;M.GenesisCoin=NVe;M.GenesisL1=pqe;M.GenesisL1Testnet=uqe;M.GiantMammoth=AVe;M.GitshockCartenzTestnet=Oje;M.Gnosis=TFe;M.Gochain=Uqe;M.GochainTestnet=YGe;M.Godwoken=$$e;M.GodwokenTestnetV1=G$e;M.Goerli=HJ;M.GoldSmartChain=UKe;M.GoldSmartChainTestnet=eYe;M.GonChain=jVe;M.Gooddata=yqe;M.GooddataTestnet=mqe;M.GraphlinqBlockchain=_Ue;M.Gton=yHe;M.GtonTestnet=T$e;M.Haic=FUe;M.Halo=tje;M.HammerChain=WGe;M.Hapchain=VJe;M.HapchainTestnet=tJe;M.HaqqChainTestnet=I$e;M.HaqqNetwork=nGe;M.HaradevTestnet=GQe;M.HarmonyDevnetShard0=FQe;M.HarmonyShard0=RQe;M.HarmonyShard1=MQe;M.HarmonyShard2=NQe;M.HarmonyShard3=BQe;M.HarmonyTestnetShard0=DQe;M.HarmonyTestnetShard1=OQe;M.HarmonyTestnetShard2=LQe;M.HarmonyTestnetShard3=qQe;M.Hashbit=rGe;M.HaymoTestnet=zYe;M.HazlorTestnet=ZKe;M.Hedera=PWe;M.HederaLocalnet=NWe;M.HederaPreviewnet=MWe;M.HederaTestnet=RWe;M.HertzNetwork=HGe;M.HighPerformanceBlockchain=kWe;M.HikaNetworkTestnet=NKe;M.HomeVerse=IGe;M.HooSmartChain=Qqe;M.HooSmartChainTestnet=iWe;M.HorizenYumaTestnet=Cje;M.Htmlcoin=yKe;M.HumanProtocol=CQe;M.Humanode=kKe;M.HuobiEcoChain=GFe;M.HuobiEcoChainTestnet=EWe;M.HyperonchainTestnet=ZWe;M.Idchain=tFe;M.IexecSidechain=$Fe;M.Imversed=FJe;M.ImversedTestnet=WJe;M.Iolite=XJe;M.IoraChain=zHe;M.IotexNetwork=gKe;M.IotexNetworkTestnet=bKe;M.IposNetwork=TQe;M.IvarChain=nYe;M.IvarChainTestnet=TGe;M.J2oTaro=t$e;M.Jellie=UYe;M.JfinChain=Jze;M.JibchainL1=kVe;M.JoysDigital=cQe;M.JoysDigitalTestnet=hQe;M.KaibaLightningChainTestnet=IFe;M.Kardiachain=oqe;M.KaruraNetwork=IUe;M.KaruraNetworkTestnet=bUe;M.KavaEvm=Tze;M.KavaEvmTestnet=_ze;M.Kcc=qWe;M.KccTestnet=FWe;M.Kekchain=iJe;M.KekchainKektest=sJe;M.Kerleano=Rje;M.Kiln=BJe;M.Kintsugi=NJe;M.KlaytnCypress=cVe;M.KlaytnTestnetBaobab=gHe;M.Klyntar=$Ke;M.Kortho=Rze;M.Korthotest=lVe;M.Kovan=Cqe;M.LaTestnet=eUe;M.Lachain=wWe;M.LachainTestnet=xWe;M.LambdaTestnet=iYe;M.LatamBlockchainResilTestnet=sWe;M.Lightstreams=rWe;M.LightstreamsTestnet=tWe;M.Lisinski=QWe;M.LiveplexOracleevm=_$e;M.Localhost=tQ;M.Loopnetwork=bGe;M.LucidBlockchain=qUe;M.LuckyNetwork=fHe;M.Ludan=Ije;M.LycanChain=PUe;M.Maistestsubnet=uQe;M.Mammoth=IVe;M.Mantle=TKe;M.MantleTestnet=EKe;M.Map=BGe;M.MapMakalu=bWe;M.MaroBlockchain=vVe;M.Mas=jYe;M.Mathchain=UHe;M.MathchainTestnet=HHe;M.MdglTestnet=tVe;M.MemoSmartChain=pHe;M.MeshnyanTestnet=xUe;M.Metacodechain=Xze;M.Metadium=$Le;M.MetadiumTestnet=YLe;M.Metadot=wGe;M.MetadotTestnet=xGe;M.MetalCChain=rJe;M.MetalTahoeCChain=nJe;M.Metaplayerone=mze;M.Meter=uFe;M.MeterTestnet=lFe;M.MetisAndromeda=RHe;M.MetisGoerliTestnet=wUe;M.MilkomedaA1=Qje;M.MilkomedaA1Testnet=DYe;M.MilkomedaC1=Jje;M.MilkomedaC1Testnet=BYe;M.MintmeComCoin=FGe;M.Mix=nFe;M.MixinVirtualMachine=J$e;M.Moac=MHe;M.MoacTestnet=yWe;M.MolereumNetwork=JQe;M.MoonbaseAlpha=aje;M.Moonbeam=rje;M.Moonriver=nje;M.Moonrock=ije;M.Multivac=L$e;M.Mumbai=XJ;M.MunodeTestnet=sHe;M.Musicoin=zJe;M.MyownTestnet=WVe;M.MythicalChain=FYe;M.Nahmii=SKe;M.Nahmii3=cKe;M.Nahmii3Testnet=uKe;M.NahmiiTestnet=PKe;M.Nebula=SQe;M.NebulaStaging=_Qe;M.NebulaTestnet=SFe;M.NeonEvm=yQe;M.NeonEvmDevnet=mQe;M.NeonEvmTestnet=gQe;M.NepalBlockchainNetwork=lHe;M.Newton=_He;M.NewtonTestnet=vHe;M.NovaNetwork=hFe;M.Ntity=VQe;M.Numbers=$Ve;M.NumbersTestnet=YVe;M.OasisEmerald=d$e;M.OasisEmeraldTestnet=l$e;M.OasisSapphire=OGe;M.OasisSapphireTestnet=LGe;M.Oasischain=jGe;M.Oasys=TWe;M.Octaspace=_Je;M.Oho=i$e;M.Okbchain=hWe;M.OkbchainTestnet=pWe;M.OkexchainTestnet=Vqe;M.Okxchain=Gqe;M.OmPlatform=XHe;M.Omax=OWe;M.Omchain=RGe;M.Oneledger=bQe;M.OneledgerTestnetFrankenstein=jQe;M.Ontology=Fqe;M.OntologyTestnet=DKe;M.OnusChain=zje;M.OnusChainTestnet=Wje;M.OoneChainTestnet=ZYe;M.Oort=oHe;M.OortAscraeus=uHe;M.OortDev=LVe;M.OortHuygens=cHe;M.OpalTestnetByUnique=_Ve;M.Openchain=pJe;M.OpenchainTestnet=BUe;M.Openpiece=Oqe;M.OpenpieceTestnet=JFe;M.Openvessel=HJe;M.OpsideTestnet=DGe;M.Optimism=jJ;M.OptimismBedrockGoerliAlphaTestnet=zGe;M.OptimismGoerli=$J;M.OptimismKovan=Jqe;M.OptimismOnGnosis=BWe;M.OpulentXBeta=s$e;M.OrigintrailParachain=cze;M.OrlandoChain=Uze;M.Oychain=KFe;M.OychainTestnet=zFe;M.P12Chain=SGe;M.PaletteChain=Pje;M.Palm=KQe;M.PalmTestnet=zQe;M.Pandoproject=Qze;M.PandoprojectTestnet=Zze;M.ParibuNet=$ze;M.ParibuNetTestnet=Yze;M.Pdc=YQe;M.Pegglecoin=o$e;M.PepchainChurchill=JJe;M.PhiNetworkV1=fKe;M.PhiNetworkV2=ZFe;M.Phoenix=mGe;M.PieceTestnet=KGe;M.Pirl=HQe;M.PixieChain=WKe;M.PixieChainTestnet=CUe;M.Planq=GKe;M.Platon=HYe;M.PlatonDevTestnet2=LJe;M.PlianMain=OJe;M.PlianSubchain1=KJe;M.PlianTestnetMain=ZJe;M.PlianTestnetSubchain1=GJe;M.PoaNetworkCore=_Fe;M.PoaNetworkSokol=aFe;M.Pocrnet=Nze;M.Polis=eJe;M.PolisTestnet=XYe;M.Polygon=VJ;M.PolygonZkevmTestnet=gje;M.PolyjuiceTestnet=V$e;M.Polysmartchain=jKe;M.Popcateum=GHe;M.PortalFantasyChain=tHe;M.PortalFantasyChainTest=WUe;M.PosichainDevnetShard0=kJe;M.PosichainDevnetShard1=AJe;M.PosichainShard0=CJe;M.PosichainTestnetShard0=IJe;M.Primuschain=iFe;M.ProofOfMemes=CGe;M.ProtonTestnet=RFe;M.ProxyNetworkTestnet=AHe;M.Publicmint=nze;M.PublicmintDevnet=tze;M.PublicmintTestnet=rze;M.Pulsechain=YWe;M.PulsechainTestnet=nHe;M.PulsechainTestnetV2b=aHe;M.PulsechainTestnetV3=iHe;M.Q=r$e;M.QTestnet=n$e;M.Qeasyweb3Testnet=OVe;M.Qitmeer=UUe;M.QitmeerNetworkTestnet=sVe;M.Ql1=NUe;M.Ql1Testnet=jJe;M.QuadransBlockchain=QVe;M.QuadransBlockchainTestnet=ZVe;M.Quarkblockchain=tQe;M.QuarkchainDevnetRoot=_Ye;M.QuarkchainDevnetShard0=TYe;M.QuarkchainDevnetShard1=EYe;M.QuarkchainDevnetShard2=CYe;M.QuarkchainDevnetShard3=IYe;M.QuarkchainDevnetShard4=kYe;M.QuarkchainDevnetShard5=AYe;M.QuarkchainDevnetShard6=SYe;M.QuarkchainDevnetShard7=PYe;M.QuarkchainRoot=cYe;M.QuarkchainShard0=uYe;M.QuarkchainShard1=lYe;M.QuarkchainShard2=dYe;M.QuarkchainShard3=pYe;M.QuarkchainShard4=hYe;M.QuarkchainShard5=fYe;M.QuarkchainShard6=mYe;M.QuarkchainShard7=yYe;M.QuartzByUnique=xVe;M.Quokkacoin=dze;M.RabbitAnalogTestnetChain=Mje;M.RangersProtocol=oze;M.RangersProtocolTestnetRobin=DVe;M.Realchain=WFe;M.RedlightChain=Bze;M.ReiChain=k$e;M.ReiChainTestnet=A$e;M.ReiNetwork=b$e;M.Resincoin=Q$e;M.RikezaNetwork=yje;M.RikezaNetworkTestnet=pGe;M.RiniaTestnet=rHe;M.Rinkeby=jLe;M.RiseOfTheWarbotsTestnet=QKe;M.Ropsten=HLe;M.Rsk=hqe;M.RskTestnet=fqe;M.Rupaya=nUe;M.Saakuru=UJe;M.SaakuruTestnet=GYe;M.Sakura=THe;M.SanrChain=sGe;M.SapphireByUnique=TVe;M.Sardis=E$e;M.SardisTestnet=iGe;M.Scolcoin=W$e;M.ScolcoinWeichainTestnet=FKe;M.Scroll=mJe;M.ScrollAlphaTestnet=yJe;M.ScrollPreAlphaTestnet=gJe;M.SeedcoinNetwork=wqe;M.Seele=cWe;M.Sepolia=YJe;M.Setheum=CWe;M.ShardeumLiberty1X=rVe;M.ShardeumLiberty2X=nVe;M.ShardeumSphinx1X=aVe;M.Sherpax=vje;M.SherpaxTestnet=wje;M.Shibachain=lqe;M.Shiden=jWe;M.Shyft=YKe;M.ShyftTestnet=aGe;M.SiberiumNetwork=RYe;M.SingularityZero=cGe;M.SingularityZeroTestnet=oGe;M.SiriusnetV2=vWe;M.Sjatsh=zVe;M.SmartBitcoinCash=UVe;M.SmartBitcoinCashTestnet=HVe;M.SmartHostTeknolojiTestnet=jHe;M.Smartmesh=eQe;M.SocialSmartChain=JYe;M.SongbirdCanaryNetwork=rqe;M.Soterone=Yqe;M.Soverun=$Je;M.SoverunTestnet=vYe;M.Sps=hGe;M.SpsTestnet=gGe;M.StarSocialTestnet=kUe;M.StepNetwork=ZHe;M.StepTestnet=dGe;M.Stratos=lze;M.StratosTestnet=uze;M.StreamuxBlockchain=iVe;M.SurBlockchainNetwork=IWe;M.Susono=yGe;M.SxNetwork=XWe;M.SxNetworkTestnet=TUe;M.Syscoin=qqe;M.SyscoinTanenbaumTestnet=MKe;M.TEkta=bHe;M.TaoNetwork=fUe;M.Taraxa=jUe;M.TaraxaTestnet=zUe;M.Taycan=MGe;M.TaycanTestnet=sze;M.Tbsi=Aje;M.TbsiTestnet=Sje;M.TbwgChain=bqe;M.TcgVerse=Sze;M.Techpay=Mze;M.Teleport=XKe;M.TeleportTestnet=eVe;M.TelosEvm=Tqe;M.TelosEvmTestnet=Eqe;M.Teslafunds=Dje;M.Thaichain=KLe;M.Thaichain20Thaifi=eqe;M.Theta=KWe;M.ThetaAmberTestnet=GWe;M.ThetaSapphireTestnet=VWe;M.ThetaTestnet=$We;M.ThinkiumChain0=H$e;M.ThinkiumChain1=j$e;M.ThinkiumChain103=K$e;M.ThinkiumChain2=z$e;M.ThinkiumTestnetChain0=P$e;M.ThinkiumTestnetChain1=R$e;M.ThinkiumTestnetChain103=N$e;M.ThinkiumTestnetChain2=M$e;M.Thundercore=PFe;M.ThundercoreTestnet=tqe;M.Tipboxcoin=aJe;M.TipboxcoinTestnet=hKe;M.TlchainNetwork=CKe;M.TmyChain=bVe;M.TokiNetwork=hVe;M.TokiTestnet=fVe;M.TombChain=HKe;M.Tomochain=fFe;M.TomochainTestnet=mFe;M.ToolGlobal=mVe;M.ToolGlobalTestnet=yVe;M.Top=hHe;M.TopEvm=dHe;M.Tres=qKe;M.TresTestnet=LKe;M.TrustEvmTestnet=vGe;M.UbSmartChain=oYe;M.UbSmartChainTestnet=sYe;M.Ubiq=VLe;M.UbiqNetworkTestnet=GLe;M.Ultron=QHe;M.UltronTestnet=JHe;M.UnicornUltraTestnet=_qe;M.Unique=wVe;M.UzmiNetwork=AKe;M.Valorbit=xqe;M.Vchain=Eze;M.Vechain=gYe;M.VechainTestnet=bYe;M.Vela1Chain=hUe;M.VelasEvm=AFe;M.Venidium=xKe;M.VenidiumTestnet=wKe;M.VentionSmartChain=Z$e;M.VentionSmartChainTestnet=MUe;M.Vision=EJe;M.VisionVpioneerTestChain=wJe;M.VyvoSmartChain=CVe;M.Wagmi=eGe;M.Wanchain=JUe;M.WanchainTestnet=mHe;M.Web3gamesDevnet=kFe;M.Web3gamesTestnet=CFe;M.Web3q=UWe;M.Web3qGalileo=Gze;M.Web3qTestnet=Vze;M.Webchain=qGe;M.WeelinkTestnet=dJe;M.WegochainRubidium=OKe;M.Wemix30=NHe;M.Wemix30Testnet=BHe;M.WorldTradeTechnicalChain=VHe;M.Xanachain=EVe;M.XdcApothemNetwork=Nqe;M.Xerom=MJe;M.XinfinXdcNetwork=Mqe;M.Xodex=Pze;M.XtSmartChain=uUe;M.Yuanchain=sKe;M.ZMainnet=eze;M.ZTestnet=FVe;M.ZcoreTestnet=Kze;M.ZeethChain=tUe;M.ZeethChainDev=KUe;M.Zeniq=$Qe;M.Zenith=sFe;M.ZenithTestnetVilnius=cFe;M.Zetachain=zKe;M.ZetachainAthensTestnet=KKe;M.Zhejiang=DJe;M.ZilliqaEvmTestnet=XGe;M.ZksyncEra=WWe;M.ZksyncEraTestnet=AWe;M.Zyx=Lqe;M._0xtade=GVe;M._4goodnetwork=TJe;M.allChains=rQ;M.configureChain=H_r;M.defaultChains=j_r;M.getChainByChainId=z_r;M.getChainBySlug=K_r;M.getChainRPC=W_r;M.getChainRPCs=WLe;M.minimizeChain=U_r});var Pt=_((KMn,nQ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?nQ.exports=FLe():nQ.exports=QQe()});var XQe=_(($Mn,ZQe)=>{"use strict";d();p();function V_r(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);I!==S;){for(var W=m[I],G=0,K=L-1;(W!==0||G>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=G,I++}for(var H=L-E;H!==L&&F[H]===0;)H++;for(var V=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,G=S-1;(F!==0||W>>0,L[G]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");I=W,y++}for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),V=E;K!==S;)H[V++]=L[K++];return H}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}ZQe.exports=V_r});var pa=_((QMn,eZe)=>{d();p();var G_r=XQe(),$_r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";eZe.exports=G_r($_r)});var tn=_((g0,rZe)=>{d();p();var tZe=typeof self<"u"?self:g0,hN=function(){function r(){this.fetch=!1,this.DOMException=tZe.DOMException}return r.prototype=tZe,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(q){return q&&DataView.prototype.isPrototypeOf(q)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(q){return q&&i.indexOf(Object.prototype.toString.call(q))>-1};function o(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function c(q){return typeof q!="string"&&(q=String(q)),q}function u(q){var T={next:function(){var P=q.shift();return{done:P===void 0,value:P}}};return n.iterable&&(T[Symbol.iterator]=function(){return T}),T}function l(q){this.map={},q instanceof l?q.forEach(function(T,P){this.append(P,T)},this):Array.isArray(q)?q.forEach(function(T){this.append(T[0],T[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(T){this.append(T,q[T])},this)}l.prototype.append=function(q,T){q=o(q),T=c(T);var P=this.map[q];this.map[q]=P?P+", "+T:T},l.prototype.delete=function(q){delete this.map[o(q)]},l.prototype.get=function(q){return q=o(q),this.has(q)?this.map[q]:null},l.prototype.has=function(q){return this.map.hasOwnProperty(o(q))},l.prototype.set=function(q,T){this.map[o(q)]=c(T)},l.prototype.forEach=function(q,T){for(var P in this.map)this.map.hasOwnProperty(P)&&q.call(T,this.map[P],P,this)},l.prototype.keys=function(){var q=[];return this.forEach(function(T,P){q.push(P)}),u(q)},l.prototype.values=function(){var q=[];return this.forEach(function(T){q.push(T)}),u(q)},l.prototype.entries=function(){var q=[];return this.forEach(function(T,P){q.push([P,T])}),u(q)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function h(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function f(q){return new Promise(function(T,P){q.onload=function(){T(q.result)},q.onerror=function(){P(q.error)}})}function m(q){var T=new FileReader,P=f(T);return T.readAsArrayBuffer(q),P}function y(q){var T=new FileReader,P=f(T);return T.readAsText(q),P}function E(q){for(var T=new Uint8Array(q),P=new Array(T.length),A=0;A-1?T:q}function W(q,T){T=T||{};var P=T.body;if(q instanceof W){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,T.headers||(this.headers=new l(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!P&&q._bodyInit!=null&&(P=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new l(T.headers)),this.method=F(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function G(q){var T=new FormData;return q.trim().split("&").forEach(function(P){if(P){var A=P.split("="),v=A.shift().replace(/\+/g," "),k=A.join("=").replace(/\+/g," ");T.append(decodeURIComponent(v),decodeURIComponent(k))}}),T}function K(q){var T=new l,P=q.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(A){var v=A.split(":"),k=v.shift().trim();if(k){var O=v.join(":").trim();T.append(k,O)}}),T}S.call(W.prototype);function H(q,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new l(T.headers),this.url=T.url||"",this._initBody(q)}S.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},H.error=function(){var q=new H(null,{status:0,statusText:""});return q.type="error",q};var V=[301,302,303,307,308];H.redirect=function(q,T){if(V.indexOf(T)===-1)throw new RangeError("Invalid status code");return new H(null,{status:T,headers:{location:q}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(T,P){this.message=T,this.name=P;var A=Error(T);this.stack=A.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function J(q,T){return new Promise(function(P,A){var v=new W(q,T);if(v.signal&&v.signal.aborted)return A(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function O(){k.abort()}k.onload=function(){var D={status:k.status,statusText:k.statusText,headers:K(k.getAllResponseHeaders()||"")};D.url="responseURL"in k?k.responseURL:D.headers.get("X-Request-URL");var B="response"in k?k.response:k.responseText;P(new H(B,D))},k.onerror=function(){A(new TypeError("Network request failed"))},k.ontimeout=function(){A(new TypeError("Network request failed"))},k.onabort=function(){A(new t.DOMException("Aborted","AbortError"))},k.open(v.method,v.url,!0),v.credentials==="include"?k.withCredentials=!0:v.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&n.blob&&(k.responseType="blob"),v.headers.forEach(function(D,B){k.setRequestHeader(B,D)}),v.signal&&(v.signal.addEventListener("abort",O),k.onreadystatechange=function(){k.readyState===4&&v.signal.removeEventListener("abort",O)}),k.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return J.polyfill=!0,r.fetch||(r.fetch=J,r.Headers=l,r.Request=W,r.Response=H),t.Headers=l,t.Request=W,t.Response=H,t.fetch=J,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(hN);hN.fetch.ponyfill=!0;delete hN.fetch.polyfill;var V5=hN;g0=V5.fetch;g0.default=V5.fetch;g0.fetch=V5.fetch;g0.Headers=V5.Headers;g0.Request=V5.Request;g0.Response=V5.Response;rZe.exports=g0});var it=_((rNn,aQ)=>{"use strict";d();p();var Y_r=Object.prototype.hasOwnProperty,qu="~";function s4(){}Object.create&&(s4.prototype=Object.create(null),new s4().__proto__||(qu=!1));function J_r(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function nZe(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new J_r(t,n||r,a),s=qu?qu+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function fN(r,e){--r._eventsCount===0?r._events=new s4:delete r._events[e]}function cu(){this._events=new s4,this._eventsCount=0}cu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)Y_r.call(t,n)&&e.push(qu?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};cu.prototype.listeners=function(e){var t=qu?qu+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{Q_r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var mN=_((sNn,aZe)=>{"use strict";d();p();async function*Z_r(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}aZe.exports=Z_r});var iQ=_((uNn,iZe)=>{"use strict";d();p();var X_r=mN();async function*eTr(r,e=1){for await(let t of X_r(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";d();p();sZe.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var hZe=_((dZe,pZe)=>{"use strict";d();p();var yN=oZe(),{hasOwnProperty:uZe}=Object.prototype,{propertyIsEnumerable:tTr}=Object,G5=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),rTr=dZe,cZe={concatArrays:!1,ignoreUndefined:!1},gN=r=>{let e=[];for(let t in r)uZe.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)tTr.call(r,n)&&e.push(n)}return e};function $5(r){return Array.isArray(r)?nTr(r):yN(r)?aTr(r):r}function nTr(r){let e=r.slice(0,0);return gN(r).forEach(t=>{G5(e,t,$5(r[t]))}),e}function aTr(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return gN(r).forEach(t=>{G5(e,t,$5(r[t]))}),e}var lZe=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?G5(r,a,sQ(r[a],e[a],n)):G5(r,a,$5(e[a])))}),r),iTr=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function sQ(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?iTr(r,e,t):!yN(e)||!yN(r)?$5(e):lZe(r,e,gN(e),t)}pZe.exports=function(...r){let e=sQ($5(cZe),this!==rTr&&this||{},cZe),t={_:{}};for(let n of r)if(n!==void 0){if(!yN(n))throw new TypeError("`"+n+"` is not an Option Object");t=sQ(t,{_:n},e)}return t._}});var rv=_((gNn,mZe)=>{"use strict";d();p();function fZe(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function sTr(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return fZe(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),fZe(new a,t)}}mZe.exports=sTr});var gZe=_((wNn,yZe)=>{"use strict";d();p();function oTr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);I!==S;){for(var W=m[I],G=0,K=L-1;(W!==0||G>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=G,I++}for(var H=L-E;H!==L&&F[H]===0;)H++;for(var V=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,G=S-1;(F!==0||W>>0,L[G]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");I=W,y++}if(m[y]!==" "){for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),V=E;K!==S;)H[V++]=L[K++];return H}}}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}yZe.exports=oTr});var bN=_((TNn,bZe)=>{"use strict";d();p();var cTr=new TextDecoder,uTr=r=>cTr.decode(r),lTr=new TextEncoder,dTr=r=>lTr.encode(r);function pTr(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}bZe.exports={decodeText:uTr,encodeText:dTr,concat:pTr}});var wZe=_((INn,vZe)=>{"use strict";d();p();var{encodeText:hTr}=bN(),oQ=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=hTr(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};vZe.exports=oQ});var _Ze=_((SNn,xZe)=>{"use strict";d();p();var fTr=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},mTr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return mTr(t,e,r)},decode(t){return fTr(t,e,r)}});xZe.exports={rfc4648:yTr}});var IZe=_((MNn,CZe)=>{"use strict";d();p();var o4=gZe(),gTr=wZe(),{rfc4648:fc}=_Ze(),{decodeText:bTr,encodeText:vTr}=bN(),wTr=()=>({encode:bTr,decode:vTr}),TZe=[["identity","\0",wTr,""],["base2","0",fc(1),"01"],["base8","7",fc(3),"01234567"],["base10","9",o4,"0123456789"],["base16","f",fc(4),"0123456789abcdef"],["base16upper","F",fc(4),"0123456789ABCDEF"],["base32hex","v",fc(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",fc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",fc(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",fc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",fc(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",fc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",fc(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",fc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",fc(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",o4,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",o4,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",o4,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",o4,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",fc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",fc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",fc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",fc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],EZe=TZe.reduce((r,e)=>(r[e[0]]=new gTr(e[0],e[1],e[2],e[3]),r),{}),xTr=TZe.reduce((r,e)=>(r[e[1]]=EZe[e[0]],r),{});CZe.exports={names:EZe,codes:xTr}});var cQ=_((b0,AZe)=>{"use strict";d();p();var Y5=IZe(),{encodeText:_Tr,decodeText:vN,concat:kZe}=bN();function TTr(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=nv(r);return kTr(t,e),kZe([n,e],n.length+e.length)}function ETr(r,e){let t=nv(r),n=_Tr(t.encode(e));return kZe([t.codeBuf,n],t.codeBuf.length+n.length)}function CTr(r){r instanceof Uint8Array&&(r=vN(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),nv(r[0]).decode(r.substring(1))}function ITr(r){if(r instanceof Uint8Array&&(r=vN(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return nv(r[0]).name}catch{return!1}}function kTr(r,e){nv(r).decode(vN(e))}function nv(r){if(Object.prototype.hasOwnProperty.call(Y5.names,r))return Y5.names[r];if(Object.prototype.hasOwnProperty.call(Y5.codes,r))return Y5.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function ATr(r){return r instanceof Uint8Array&&(r=vN(r)),nv(r[0])}b0=AZe.exports=TTr;b0.encode=ETr;b0.decode=CTr;b0.isEncoded=ITr;b0.encoding=nv;b0.encodingFromData=ATr;var STr=Object.freeze(Y5.names),PTr=Object.freeze(Y5.codes);b0.names=STr;b0.codes=PTr});var MZe=_((LNn,RZe)=>{d();p();RZe.exports=PZe;var SZe=128,RTr=127,MTr=~RTr,NTr=Math.pow(2,31);function PZe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=NTr;)e[t++]=r&255|SZe,r/=128;for(;r&MTr;)e[t++]=r&255|SZe,r>>>=7;return e[t]=r|0,PZe.bytes=t-n+1,e}});var DZe=_((WNn,BZe)=>{d();p();BZe.exports=uQ;var BTr=128,NZe=127;function uQ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw uQ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&NZe)<=BTr);return uQ.bytes=i-n,t}});var LZe=_((jNn,OZe)=>{d();p();var DTr=Math.pow(2,7),OTr=Math.pow(2,14),LTr=Math.pow(2,21),qTr=Math.pow(2,28),FTr=Math.pow(2,35),WTr=Math.pow(2,42),UTr=Math.pow(2,49),HTr=Math.pow(2,56),jTr=Math.pow(2,63);OZe.exports=function(r){return r{d();p();qZe.exports={encode:MZe(),decode:DZe(),encodingLength:LZe()}});var UZe=_((YNn,WZe)=>{"use strict";d();p();var zTr=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});WZe.exports={names:zTr}});function KTr(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);S!==L;){for(var G=y[S],K=0,H=F-1;(G!==0||K>>0,W[H]=G%o>>>0,G=G/o>>>0;if(G!==0)throw new Error("Non-zero carry");I=K,S++}for(var V=F-I;V!==F&&W[V]===0;)V++;for(var J=c.repeat(E);V>>0,F=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var G=0,K=L-1;(W!==0||G>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=G,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&F[H]===0;)H++;for(var V=new Uint8Array(I+(L-H)),J=I;H!==L;)V[J++]=F[H++];return V}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var VTr,GTr,HZe,jZe=ce(()=>{d();p();VTr=KTr,GTr=VTr,HZe=GTr});var wN={};cr(wN,{coerce:()=>op,empty:()=>zZe,equals:()=>lQ,fromHex:()=>YTr,fromString:()=>dQ,isBinary:()=>JTr,toHex:()=>$Tr,toString:()=>pQ});var zZe,$Tr,YTr,lQ,op,JTr,dQ,pQ,c1=ce(()=>{d();p();zZe=new Uint8Array(0),$Tr=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),YTr=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):zZe},lQ=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},JTr=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),dQ=r=>new TextEncoder().encode(r),pQ=r=>new TextDecoder().decode(r)});var hQ,fQ,mQ,KZe,yQ,J5,u1,QTr,ZTr,is,vh=ce(()=>{d();p();jZe();c1();hQ=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},fQ=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return KZe(this,e)}},mQ=class{constructor(e){this.decoders=e}or(e){return KZe(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},KZe=(r,e)=>new mQ({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),yQ=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new hQ(e,t,n),this.decoder=new fQ(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},J5=({name:r,prefix:e,encode:t,decode:n})=>new yQ(r,e,t,n),u1=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=HZe(t,e);return J5({prefix:r,name:e,encode:n,decode:i=>op(a(i))})},QTr=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},ZTr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<J5({prefix:e,name:r,encode(a){return ZTr(a,n,t)},decode(a){return QTr(a,n,t,r)}})});var gQ={};cr(gQ,{identity:()=>XTr});var XTr,VZe=ce(()=>{d();p();vh();c1();XTr=J5({prefix:"\0",name:"identity",encode:r=>pQ(r),decode:r=>dQ(r)})});var bQ={};cr(bQ,{base2:()=>e6r});var e6r,GZe=ce(()=>{d();p();vh();e6r=is({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var vQ={};cr(vQ,{base8:()=>t6r});var t6r,$Ze=ce(()=>{d();p();vh();t6r=is({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var wQ={};cr(wQ,{base10:()=>r6r});var r6r,YZe=ce(()=>{d();p();vh();r6r=u1({prefix:"9",name:"base10",alphabet:"0123456789"})});var xQ={};cr(xQ,{base16:()=>n6r,base16upper:()=>a6r});var n6r,a6r,JZe=ce(()=>{d();p();vh();n6r=is({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),a6r=is({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var _Q={};cr(_Q,{base32:()=>Q5,base32hex:()=>c6r,base32hexpad:()=>l6r,base32hexpadupper:()=>d6r,base32hexupper:()=>u6r,base32pad:()=>s6r,base32padupper:()=>o6r,base32upper:()=>i6r,base32z:()=>p6r});var Q5,i6r,s6r,o6r,c6r,u6r,l6r,d6r,p6r,TQ=ce(()=>{d();p();vh();Q5=is({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),i6r=is({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),s6r=is({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),o6r=is({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),c6r=is({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),u6r=is({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l6r=is({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),d6r=is({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),p6r=is({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var EQ={};cr(EQ,{base36:()=>h6r,base36upper:()=>f6r});var h6r,f6r,QZe=ce(()=>{d();p();vh();h6r=u1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),f6r=u1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var CQ={};cr(CQ,{base58btc:()=>Zf,base58flickr:()=>m6r});var Zf,m6r,IQ=ce(()=>{d();p();vh();Zf=u1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),m6r=u1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var kQ={};cr(kQ,{base64:()=>y6r,base64pad:()=>g6r,base64url:()=>b6r,base64urlpad:()=>v6r});var y6r,g6r,b6r,v6r,ZZe=ce(()=>{d();p();vh();y6r=is({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),g6r=is({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),b6r=is({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),v6r=is({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var AQ={};cr(AQ,{base256emoji:()=>E6r});function _6r(r){return r.reduce((e,t)=>(e+=w6r[t],e),"")}function T6r(r){let e=[];for(let t of r){let n=x6r[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var XZe,w6r,x6r,E6r,eXe=ce(()=>{d();p();vh();XZe=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),w6r=XZe.reduce((r,e,t)=>(r[t]=e,r),[]),x6r=XZe.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);E6r=J5({prefix:"\u{1F680}",name:"base256emoji",encode:_6r,decode:T6r})});function nXe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=A6r;)e[t++]=r&255|tXe,r/=128;for(;r&k6r;)e[t++]=r&255|tXe,r>>>=7;return e[t]=r|0,nXe.bytes=t-n+1,e}function SQ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw SQ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&rXe)<=P6r);return SQ.bytes=i-n,t}var C6r,tXe,I6r,k6r,A6r,S6r,P6r,rXe,R6r,M6r,N6r,B6r,D6r,O6r,L6r,q6r,F6r,W6r,U6r,H6r,c4,aXe=ce(()=>{d();p();C6r=nXe,tXe=128,I6r=127,k6r=~I6r,A6r=Math.pow(2,31);S6r=SQ,P6r=128,rXe=127;R6r=Math.pow(2,7),M6r=Math.pow(2,14),N6r=Math.pow(2,21),B6r=Math.pow(2,28),D6r=Math.pow(2,35),O6r=Math.pow(2,42),L6r=Math.pow(2,49),q6r=Math.pow(2,56),F6r=Math.pow(2,63),W6r=function(r){return rZ5,encodeTo:()=>av,encodingLength:()=>iv});var Z5,av,iv,xN=ce(()=>{d();p();aXe();Z5=(r,e=0)=>[c4.decode(r,e),c4.decode.bytes],av=(r,e,t=0)=>(c4.encode(r,e,t),e),iv=r=>c4.encodingLength(r)});var ov={};cr(ov,{Digest:()=>sv,create:()=>l1,decode:()=>PQ,equals:()=>RQ});var l1,PQ,RQ,sv,u4=ce(()=>{d();p();c1();xN();l1=(r,e)=>{let t=e.byteLength,n=iv(r),a=n+iv(t),i=new Uint8Array(a+t);return av(r,i,0),av(t,i,n),i.set(e,a),new sv(r,t,e,i)},PQ=r=>{let e=op(r),[t,n]=Z5(e),[a,i]=Z5(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new sv(t,a,s,e)},RQ=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&lQ(r.bytes,e.bytes),sv=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var EN={};cr(EN,{Hasher:()=>_N,from:()=>TN});var TN,_N,MQ=ce(()=>{d();p();u4();TN=({name:r,code:e,encode:t})=>new _N(r,e,t),_N=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?l1(this.code,t):t.then(n=>l1(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var NQ={};cr(NQ,{sha256:()=>j6r,sha512:()=>z6r});var iXe,j6r,z6r,sXe=ce(()=>{d();p();MQ();iXe=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),j6r=TN({name:"sha2-256",code:18,encode:iXe("SHA-256")}),z6r=TN({name:"sha2-512",code:19,encode:iXe("SHA-512")})});var BQ={};cr(BQ,{identity:()=>G6r});var oXe,K6r,cXe,V6r,G6r,uXe=ce(()=>{d();p();c1();u4();oXe=0,K6r="identity",cXe=op,V6r=r=>l1(oXe,cXe(r)),G6r={code:oXe,name:K6r,encode:cXe,digest:V6r}});var DQ={};cr(DQ,{code:()=>Y6r,decode:()=>Q6r,encode:()=>J6r,name:()=>$6r});var $6r,Y6r,J6r,Q6r,lXe=ce(()=>{d();p();c1();$6r="raw",Y6r=85,J6r=r=>op(r),Q6r=r=>op(r)});var OQ={};cr(OQ,{code:()=>tEr,decode:()=>nEr,encode:()=>rEr,name:()=>eEr});var Z6r,X6r,eEr,tEr,rEr,nEr,dXe=ce(()=>{d();p();Z6r=new TextEncoder,X6r=new TextDecoder,eEr="json",tEr=512,rEr=r=>Z6r.encode(JSON.stringify(r)),nEr=r=>JSON.parse(X6r.decode(r))});var zs,aEr,iEr,sEr,l4,oEr,pXe,hXe,CN,IN,cEr,uEr,lEr,fXe=ce(()=>{d();p();xN();u4();IQ();TQ();c1();zs=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:IN,byteLength:IN,code:CN,version:CN,multihash:CN,bytes:CN,_baseCache:IN,asCID:IN})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==l4)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==oEr)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return zs.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=l1(e,t);return zs.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&RQ(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return iEr(t,a,e||Zf.encoder);default:return sEr(t,a,e||Q5.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return uEr(/^0\.0/,lEr),!!(e&&(e[hXe]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof zs)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new zs(t,n,a,i||pXe(t,n,a.bytes))}else if(e!=null&&e[hXe]===!0){let{version:t,multihash:n,code:a}=e,i=PQ(n);return zs.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==l4)throw new Error(`Version 0 CID must use dag-pb (code: ${l4}) block encoding`);return new zs(e,t,n,n.bytes)}case 1:{let a=pXe(e,t,n.bytes);return new zs(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return zs.create(0,l4,e)}static createV1(e,t){return zs.create(1,e,t)}static decode(e){let[t,n]=zs.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=zs.inspectBytes(e),n=t.size-t.multihashSize,a=op(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new sv(t.multihashCode,t.digestSize,i,a);return[t.version===0?zs.createV0(s):zs.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[h,f]=Z5(e.subarray(t));return t+=f,h},a=n(),i=l4;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=aEr(e,t),i=zs.decode(a);return i._baseCache.set(n,e),i}},aEr=(r,e)=>{switch(r[0]){case"Q":{let t=e||Zf;return[Zf.prefix,t.decode(`${Zf.prefix}${r}`)]}case Zf.prefix:{let t=e||Zf;return[Zf.prefix,t.decode(r)]}case Q5.prefix:{let t=e||Q5;return[Q5.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},iEr=(r,e,t)=>{let{prefix:n}=t;if(n!==Zf.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},sEr=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},l4=112,oEr=18,pXe=(r,e,t)=>{let n=iv(r),a=n+iv(e),i=new Uint8Array(a+t.byteLength);return av(r,i,0),av(e,i,n),i.set(t,a),i},hXe=Symbol.for("@ipld/js-cid/CID"),CN={writable:!1,configurable:!1,enumerable:!0},IN={writable:!1,enumerable:!1,configurable:!1},cEr="0.0.0-dev",uEr=(r,e)=>{if(r.test(cEr))console.warn(e);else throw new Error(e)},lEr=`CID.isCID(v) is deprecated and will be removed in the next major release. +`)}};qu.AccountTypeSchema=M8e;qu.AddressSchema=UQt;qu.AuthenticateOptionsSchema=q8e;qu.AuthenticationPayloadDataSchema=NJ;qu.AuthenticationPayloadSchema=jQt;qu.GenerateOptionsSchema=L8e;qu.LoginOptionsSchema=N8e;qu.LoginPayloadDataSchema=MN;qu.LoginPayloadOutputSchema=zQt;qu.LoginPayloadSchema=B8e;qu.RawDateSchema=PN;qu.ThirdwebAuth=MJ;qu.VerifyOptionsSchema=O8e;qu._defineProperty=RJ});var W8e=x(Fu=>{"use strict";d();p();Object.defineProperty(Fu,"__esModule",{value:!0});var rd=F8e();je();Fr();kr();Fu.AccountTypeSchema=rd.AccountTypeSchema;Fu.AddressSchema=rd.AddressSchema;Fu.AuthenticateOptionsSchema=rd.AuthenticateOptionsSchema;Fu.AuthenticationPayloadDataSchema=rd.AuthenticationPayloadDataSchema;Fu.AuthenticationPayloadSchema=rd.AuthenticationPayloadSchema;Fu.GenerateOptionsSchema=rd.GenerateOptionsSchema;Fu.LoginOptionsSchema=rd.LoginOptionsSchema;Fu.LoginPayloadDataSchema=rd.LoginPayloadDataSchema;Fu.LoginPayloadOutputSchema=rd.LoginPayloadOutputSchema;Fu.LoginPayloadSchema=rd.LoginPayloadSchema;Fu.RawDateSchema=rd.RawDateSchema;Fu.ThirdwebAuth=rd.ThirdwebAuth;Fu.VerifyOptionsSchema=rd.VerifyOptionsSchema});var U8e=x((OMn,BJ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?BJ.exports=S8e():BJ.exports=W8e()});var H8e=x((FMn,OJ)=>{d();p();var DJ=function(r){"use strict";var e=Object.prototype,t=e.hasOwnProperty,n=Object.defineProperty||function(D,B,_){D[B]=_.value},a,i=typeof Symbol=="function"?Symbol:{},s=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(D,B,_){return Object.defineProperty(D,B,{value:_,enumerable:!0,configurable:!0,writable:!0}),D[B]}try{u({},"")}catch{u=function(B,_,N){return B[_]=N}}function l(D,B,_,N){var U=B&&B.prototype instanceof S?B:S,C=Object.create(U.prototype),z=new v(N||[]);return n(C,"_invoke",{value:q(D,_,z)}),C}r.wrap=l;function h(D,B,_){try{return{type:"normal",arg:D.call(B,_)}}catch(N){return{type:"throw",arg:N}}}var f="suspendedStart",m="suspendedYield",y="executing",E="completed",I={};function S(){}function L(){}function F(){}var W={};u(W,s,function(){return this});var V=Object.getPrototypeOf,K=V&&V(V(k([])));K&&K!==e&&t.call(K,s)&&(W=K);var H=F.prototype=S.prototype=Object.create(W);L.prototype=F,n(H,"constructor",{value:F,configurable:!0}),n(F,"constructor",{value:L,configurable:!0}),L.displayName=u(F,c,"GeneratorFunction");function G(D){["next","throw","return"].forEach(function(B){u(D,B,function(_){return this._invoke(B,_)})})}r.isGeneratorFunction=function(D){var B=typeof D=="function"&&D.constructor;return B?B===L||(B.displayName||B.name)==="GeneratorFunction":!1},r.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,F):(D.__proto__=F,u(D,c,"GeneratorFunction")),D.prototype=Object.create(H),D},r.awrap=function(D){return{__await:D}};function J(D,B){function _(C,z,ee,j){var X=h(D[C],D,z);if(X.type==="throw")j(X.arg);else{var ie=X.arg,ue=ie.value;return ue&&typeof ue=="object"&&t.call(ue,"__await")?B.resolve(ue.__await).then(function(he){_("next",he,ee,j)},function(he){_("throw",he,ee,j)}):B.resolve(ue).then(function(he){ie.value=he,ee(ie)},function(he){return _("throw",he,ee,j)})}}var N;function U(C,z){function ee(){return new B(function(j,X){_(C,z,j,X)})}return N=N?N.then(ee,ee):ee()}n(this,"_invoke",{value:U})}G(J.prototype),u(J.prototype,o,function(){return this}),r.AsyncIterator=J,r.async=function(D,B,_,N,U){U===void 0&&(U=Promise);var C=new J(l(D,B,_,N),U);return r.isGeneratorFunction(B)?C:C.next().then(function(z){return z.done?z.value:C.next()})};function q(D,B,_){var N=f;return function(C,z){if(N===y)throw new Error("Generator is already running");if(N===E){if(C==="throw")throw z;return O()}for(_.method=C,_.arg=z;;){var ee=_.delegate;if(ee){var j=T(ee,_);if(j){if(j===I)continue;return j}}if(_.method==="next")_.sent=_._sent=_.arg;else if(_.method==="throw"){if(N===f)throw N=E,_.arg;_.dispatchException(_.arg)}else _.method==="return"&&_.abrupt("return",_.arg);N=y;var X=h(D,B,_);if(X.type==="normal"){if(N=_.done?E:m,X.arg===I)continue;return{value:X.arg,done:_.done}}else X.type==="throw"&&(N=E,_.method="throw",_.arg=X.arg)}}}function T(D,B){var _=B.method,N=D.iterator[_];if(N===a)return B.delegate=null,_==="throw"&&D.iterator.return&&(B.method="return",B.arg=a,T(D,B),B.method==="throw")||_!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+_+"' method")),I;var U=h(N,D.iterator,B.arg);if(U.type==="throw")return B.method="throw",B.arg=U.arg,B.delegate=null,I;var C=U.arg;if(!C)return B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,I;if(C.done)B[D.resultName]=C.value,B.next=D.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a);else return C;return B.delegate=null,I}G(H),u(H,c,"Generator"),u(H,s,function(){return this}),u(H,"toString",function(){return"[object Generator]"});function P(D){var B={tryLoc:D[0]};1 in D&&(B.catchLoc=D[1]),2 in D&&(B.finallyLoc=D[2],B.afterLoc=D[3]),this.tryEntries.push(B)}function A(D){var B=D.completion||{};B.type="normal",delete B.arg,D.completion=B}function v(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(P,this),this.reset(!0)}r.keys=function(D){var B=Object(D),_=[];for(var N in B)_.push(N);return _.reverse(),function U(){for(;_.length;){var C=_.pop();if(C in B)return U.value=C,U.done=!1,U}return U.done=!0,U}};function k(D){if(D){var B=D[s];if(B)return B.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var _=-1,N=function U(){for(;++_=0;--N){var U=this.tryEntries[N],C=U.completion;if(U.tryLoc==="root")return _("end");if(U.tryLoc<=this.prev){var z=t.call(U,"catchLoc"),ee=t.call(U,"finallyLoc");if(z&&ee){if(this.prev=0;--_){var N=this.tryEntries[_];if(N.tryLoc<=this.prev&&t.call(N,"finallyLoc")&&this.prev=0;--B){var _=this.tryEntries[B];if(_.finallyLoc===D)return this.complete(_.completion,_.afterLoc),A(_),I}},catch:function(D){for(var B=this.tryEntries.length-1;B>=0;--B){var _=this.tryEntries[B];if(_.tryLoc===D){var N=_.completion;if(N.type==="throw"){var U=N.arg;A(_)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(D,B,_){return this.delegate={iterator:k(D),resultName:B,nextLoc:_},this.method==="next"&&(this.arg=a),I}},r}(typeof OJ=="object"?OJ.exports:{});try{regeneratorRuntime=DJ}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=DJ:Function("r","regeneratorRuntime = r")(DJ)}});var A4=x(Xf=>{"use strict";d();p();Object.defineProperty(Xf,"__esModule",{value:!0});var j8e=$Qt(H8e());function LJ(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(r,n)||(t[n]=r[n]))}return t}function ZQt(r,e){if(r==null)return{};var t={},n=Object.keys(r),a,i;for(i=0;i=0)&&(t[a]=r[a]);return t}function Y8e(r){return KQt(r)||YQt(r)||eZt(r)||JQt()}var XQt=function(r){return r&&typeof Symbol<"u"&&r.constructor===Symbol?"symbol":typeof r};function eZt(r,e){if(!!r){if(typeof r=="string")return LJ(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(t);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return LJ(r,e)}}Object.defineProperty(Xf,"__esModule",{value:!0});function _n(r){for(var e=void 0,t=r[0],n=1;n"u"?"undefined":XQt(e))!=="symbol"?e+"":e,t),t},Q8e="https://pay.coinbase.com",Z8e=en(function(r){var e=r.host,t=e===void 0?Q8e:e,n=r.destinationWallets,a=$8e(r,["host","destinationWallets"]),i=new URL(t);return i.pathname="/buy/select-asset",i.searchParams.append("destinationWallets",JSON.stringify(n)),Object.keys(a).forEach(function(s){var o=a[s];o!==void 0&&i.searchParams.append(s,o.toString())}),i.searchParams.sort(),i.toString()},"generateOnRampURL"),X8e="cbpay-embedded-onramp",rZt=en(function(r){var e=r.url,t=r.width,n=t===void 0?"100%":t,a=r.height,i=a===void 0?"100%":a,s=r.position,o=s===void 0?"fixed":s,c=r.top,u=c===void 0?"0px":c,l=document.createElement("iframe");return l.style.border="unset",l.style.borderWidth="0",l.style.width=n.toString(),l.style.height=i.toString(),l.style.position=o,l.style.top=u,l.id=X8e,l.src=e,l},"createEmbeddedContent"),K8e;(function(r){r.LaunchEmbedded="launch_embedded",r.AppReady="app_ready",r.AppParams="app_params",r.SigninSuccess="signin_success",r.Success="success",r.Exit="exit",r.Event="event",r.Error="error",r.PixelReady="pixel_ready",r.OnAppParamsNonce="on_app_params_nonce"})(K8e||(K8e={}));var eIe=en(function(r,e){var t=e.onMessage,n=e.shouldUnsubscribe,a=n===void 0?!0:n,i=e.allowedOrigin,s=e.onValidateOrigin,o=s===void 0?en(function(){return Promise.resolve(!0)},"onValidateOrigin"):s,c=en(function(u){var l=iZt(u.data),h=l.eventName,f=l.data,m=!i||u.origin===i;h===r&&GQt(j8e.default.mark(function y(){return j8e.default.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(I.t0=m,!I.t0){I.next=5;break}return I.next=4,o(u.origin);case 4:I.t0=I.sent;case 5:if(!I.t0){I.next=7;break}t(f),a&&window.removeEventListener("message",c);case 7:case"end":return I.stop()}},y)}))()},"onMessage");return window.addEventListener("message",c),function(){window.removeEventListener("message",c)}},"onBroadcastedPostMessage"),nZt=en(function(r){return r!==window?r:aZt(r)?{postMessage:function(e){return r.ReactNativeWebView.postMessage(e)}}:r.opener?r.opener:r.parent!==r.self?r.parent:void 0},"getSdkTarget"),aZt=en(function(r){try{return _n([r,"access",function(e){return e.ReactNativeWebView},"optionalAccess",function(e){return e.postMessage}])!==void 0}catch{return!1}},"isMobileSdkTarget"),WJ=en(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.allowedOrigin,a=n===void 0?"*":n,i=t.data,s=sZt(e,i);r.postMessage(s,a)},"broadcastPostMessage"),iZt=en(function(r){try{return JSON.parse(r)}catch{return{eventName:r}}},"parsePostMessage"),sZt=en(function(r,e){return e?JSON.stringify({eventName:r,data:e}):r},"formatPostMessage"),oZt="/embed",cZt=5e3,qJ="coinbase-sdk-connect",y1={signin:{width:460,height:730},widget:{width:430,height:600}},tIe=function r(e){var t=e.host,n=t===void 0?Q8e:t,a=e.appId,i=e.appParams,s=e.onReady,o=e.onFallbackOpen,c=e.debug,u=this;G8e(this,r),Es(this,"state","loading"),Es(this,"nonce",""),Es(this,"eventStreamListeners",{}),Es(this,"unsubs",[]),Es(this,"isLoggedIn",!1),Es(this,"openExperience",en(function(l){if(u.log("Attempting to open experience",{state:u.state}),u.state!=="waiting_for_response"&&u.state!=="loading"){if(u.state==="failed"){_n([u,"access",function(V){return V.onFallbackOpen},"optionalCall",function(V){return V()}]);return}if(!u.nonce)throw new Error("Attempted to open CB Pay experience without nonce");var h=u.nonce;u.nonce="",u.setupExperienceListeners(l);var f=l.path,m=l.experienceLoggedIn,y=l.experienceLoggedOut,E=l.embeddedContentStyles,I=new URL("".concat(u.host).concat(f));I.searchParams.append("appId",u.appId),I.searchParams.append("type","secure_standalone");var S=u.isLoggedIn?m:y||m;I.searchParams.append("nonce",h);var L=I.toString();if(u.log("Opening experience",{experience:S,isLoggedIn:u.isLoggedIn}),S==="embedded"){var F=en(function(){var V=rZt(s_({url:L},E));_n([E,"optionalAccess",function(K){return K.target}])?_n([document,"access",function(K){return K.querySelector},"call",function(K){return K(_n([E,"optionalAccess",function(H){return H.target}]))},"optionalAccess",function(K){return K.replaceChildren},"call",function(K){return K(V)}]):document.body.appendChild(V)},"openEmbeddedExperience");u.isLoggedIn?F():u.startDirectSignin(F)}else S==="popup"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.windows},"optionalAccess",function(V){return V.create}])?window.chrome.windows.create({url:L,setSelfAsOpener:!0,type:"popup",focused:!0,width:y1.signin.width,height:y1.signin.height,left:window.screenLeft-y1.signin.width-10,top:window.screenTop},function(V){u.addEventStreamListener("open",function(){_n([V,"optionalAccess",function(K){return K.id}])&&chrome.windows.update(V.id,{width:y1.widget.width,height:y1.widget.height,left:window.screenLeft-y1.widget.width-10,top:window.screenTop})})}):S==="new_tab"&&_n([window,"access",function(V){return V.chrome},"optionalAccess",function(V){return V.tabs},"optionalAccess",function(V){return V.create}])?window.chrome.tabs.create({url:L}):FJ(L,S);var W=en(function(){u.sendAppParams(),u.removeEventStreamListener("open",W)},"onOpen");u.addEventStreamListener("open",W)}},"openExperience")),Es(this,"endExperience",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l(X8e)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}])},"endExperience")),Es(this,"destroy",en(function(){_n([document,"access",function(l){return l.getElementById},"call",function(l){return l(qJ)},"optionalAccess",function(l){return l.remove},"call",function(l){return l()}]),u.unsubs.forEach(function(l){return l()})},"destroy")),Es(this,"addPixelReadyListener",en(function(){u.onMessage("pixel_ready",{shouldUnsubscribe:!1,onMessage:function(l){u.log("Received message: pixel_ready"),u.isLoggedIn=!!_n([l,"optionalAccess",function(h){return h.isLoggedIn}]),_n([u,"access",function(h){return h.removeErrorListener},"optionalCall",function(h){return h()}]),u.sendAppParams(function(){_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}])})}})},"addPixelReadyListener")),Es(this,"addErrorListener",en(function(){u.removeErrorListener=u.onMessage("error",{shouldUnsubscribe:!0,onMessage:function(l){if(u.log("Received message: error"),l){var h=typeof l=="string"?l:JSON.stringify(l);_n([u,"access",function(f){return f.onReadyCallback},"optionalCall",function(f){return f(new Error(h))}])}}})},"addErrorListener")),Es(this,"embedPixel",en(function(){_n([document,"access",function(h){return h.getElementById},"call",function(h){return h(qJ)},"optionalAccess",function(h){return h.remove},"call",function(h){return h()}]);var l=rIe({host:u.host,appId:u.appId});l.onerror=u.onFailedToLoad,u.pixelIframe=l,document.body.appendChild(l)},"embedPixel")),Es(this,"onFailedToLoad",en(function(){if(u.state="failed",u.onFallbackOpen)u.debug&&console.warn("Failed to load CB Pay pixel. Falling back to opening in new tab."),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h()}]);else{var l=new Error("Failed to load CB Pay pixel");u.debug&&console.error(l),_n([u,"access",function(h){return h.onReadyCallback},"optionalCall",function(h){return h(l)}])}},"onFailedToLoad")),Es(this,"sendAppParams",en(function(l){_n([u,"access",function(h){return h.pixelIframe},"optionalAccess",function(h){return h.contentWindow}])?(u.log("Sending message: app_params"),u.onMessage("on_app_params_nonce",{onMessage:function(h){u.state="ready",u.nonce=_n([h,"optionalAccess",function(f){return f.nonce}])||"",_n([l,"optionalCall",function(f){return f()}])}}),u.state="waiting_for_response",WJ(u.pixelIframe.contentWindow,"app_params",{data:u.appParams})):(console.error("Failed to find pixel content window"),u.state="failed",_n([u,"access",function(h){return h.onFallbackOpen},"optionalCall",function(h){return h()}]))},"sendAppParams")),Es(this,"setupExperienceListeners",en(function(l){var h=l.onSuccess,f=l.onExit,m=l.onEvent;u.onMessage("event",{shouldUnsubscribe:!1,onMessage:function(y){var E=y;_n([u,"access",function(I){return I.eventStreamListeners},"access",function(I){return I[E.eventName]},"optionalAccess",function(I){return I.forEach},"call",function(I){return I(function(S){return _n([S,"optionalCall",function(L){return L()}])})}]),E.eventName==="success"&&_n([h,"optionalCall",function(I){return I()}]),E.eventName==="exit"&&_n([f,"optionalCall",function(I){return I(E.error)}]),_n([m,"optionalCall",function(I){return I(y)}])}})},"setupExperienceListeners")),Es(this,"startDirectSignin",en(function(l){var h=new URLSearchParams;h.set("appId",u.appId),h.set("type","direct");var f="".concat(u.host,"/signin?").concat(h.toString()),m=FJ(f,"popup");u.onMessage("signin_success",{onMessage:function(){_n([m,"optionalAccess",function(y){return y.close},"call",function(y){return y()}]),l()}})},"startDirectSignin")),Es(this,"addEventStreamListener",en(function(l,h){u.eventStreamListeners[l]?_n([u,"access",function(f){return f.eventStreamListeners},"access",function(f){return f[l]},"optionalAccess",function(f){return f.push},"call",function(f){return f(h)}]):u.eventStreamListeners[l]=[h]},"addEventStreamListener")),Es(this,"removeEventStreamListener",en(function(l,h){if(u.eventStreamListeners[l]){var f=_n([u,"access",function(m){return m.eventStreamListeners},"access",function(m){return m[l]},"optionalAccess",function(m){return m.filter},"call",function(m){return m(function(y){return y!==h})}]);u.eventStreamListeners[l]=f}},"removeEventStreamListener")),Es(this,"onMessage",en(function(){for(var l=arguments.length,h=new Array(l),f=0;f{"use strict";d();p();Object.defineProperty(zJ,"__esModule",{value:!0});var dZt=A4();function pZt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function hZt(r,e,t){pZt(r,e),e.set(r,t)}function fZt(r,e){return e.get?e.get.call(r):e.value}function aIe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function mZt(r,e){var t=aIe(r,e,"get");return fZt(r,t)}function yZt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function gZt(r,e,t){var n=aIe(r,e,"set");return yZt(r,n,t),t}var bZt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},HJ=new WeakMap,jJ=class{constructor(e){hZt(this,HJ,{writable:!0,value:void 0}),gZt(this,HJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{dZt.initOnRamp({appId:mZt(this,HJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[bZt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};zJ.CoinbasePayIntegration=jJ});var sIe=x(KJ=>{"use strict";d();p();Object.defineProperty(KJ,"__esModule",{value:!0});var vZt=iIe();A4();KJ.CoinbasePayIntegration=vZt.CoinbasePayIntegration});var cIe=x($J=>{"use strict";d();p();Object.defineProperty($J,"__esModule",{value:!0});var wZt=A4();function _Zt(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xZt(r,e,t){_Zt(r,e),e.set(r,t)}function TZt(r,e){return e.get?e.get.call(r):e.value}function oIe(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function EZt(r,e){var t=oIe(r,e,"get");return TZt(r,t)}function CZt(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function IZt(r,e,t){var n=oIe(r,e,"set");return CZt(r,n,t),t}var kZt={[-1]:"solana",1:"ethereum",69:"optimism",137:"polygon"},GJ=new WeakMap,VJ=class{constructor(e){xZt(this,GJ,{writable:!0,value:void 0}),IZt(this,GJ,e.appId)}async fundWallet(e){let{address:t,chainId:n,assets:a}=e;return new Promise((i,s)=>{wZt.initOnRamp({appId:EZt(this,GJ),widgetParameters:{destinationWallets:[{address:t,assets:a,supportedNetworks:[kZt[n]]}]},experienceLoggedIn:"embedded",experienceLoggedOut:"popup",closeOnExit:!0,onSuccess:()=>{i()},onExit(o){return o?s(o):i()}},(o,c)=>{if(o||!c)return s(o);c.open()})})}};$J.CoinbasePayIntegration=VJ});var uIe=x(YJ=>{"use strict";d();p();Object.defineProperty(YJ,"__esModule",{value:!0});var AZt=cIe();A4();YJ.CoinbasePayIntegration=AZt.CoinbasePayIntegration});var lIe=x((nNn,JJ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?JJ.exports=sIe():JJ.exports=uIe()});var wi=x(du=>{"use strict";d();p();var SZt=Ir(),o_=je(),ct=kr();function PZt(r){return r&&r.__esModule?r:{default:r}}var c_=PZt(SZt),fIe="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function RZt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fIe;return`https://${r}.rpc.thirdweb.com/${e}`}var MZt=()=>typeof window<"u",dIe=MZt()?ct.z.instanceof(File):ct.z.instanceof(b.Buffer),NZt=ct.z.union([dIe,ct.z.object({data:ct.z.union([dIe,ct.z.string()]),name:ct.z.string()})]),NN=ct.z.union([NZt,ct.z.string()]),mIe=1e4,BZt=ct.z.union([ct.z.array(ct.z.number()),ct.z.string()]),DZt=ct.z.union([ct.z.string(),ct.z.number(),ct.z.bigint(),ct.z.custom(r=>o_.BigNumber.isBigNumber(r)),ct.z.custom(r=>c_.default.isBN(r))]).transform(r=>{let e=c_.default.isBN(r)?new c_.default(r).toString():o_.BigNumber.from(r).toString();return o_.BigNumber.from(e)});DZt.transform(r=>r.toString());var yIe=ct.z.union([ct.z.bigint(),ct.z.custom(r=>o_.BigNumber.isBigNumber(r)),ct.z.custom(r=>c_.default.isBN(r))]).transform(r=>c_.default.isBN(r)?new c_.default(r).toString():o_.BigNumber.from(r).toString()),OZt=ct.z.number().max(mIe,"Cannot exceed 100%").min(0,"Cannot be below 0%"),LZt=ct.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),qZt=ct.z.union([ct.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),ct.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),ct.z.string().length(0)]),gIe=ct.z.union([ct.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),ct.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),FZt=ct.z.union([gIe,ct.z.literal("unlimited")]).default("unlimited"),bIe=ct.z.date().transform(r=>o_.BigNumber.from(Math.floor(r.getTime()/1e3)));bIe.default(new Date(0));bIe.default(new Date(Date.now()+1e3*60*60*24*365*10));function WZt(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function UZt(r){var e=WZt(r,"string");return typeof e=="symbol"?e:String(e)}function HZt(r,e,t){return e=UZt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var pIe=ct.z.object({}).catchall(ct.z.union([yIe,ct.z.unknown()])),hIe=ct.z.union([ct.z.array(pIe),pIe]).optional().nullable(),ZJ=ct.z.object({name:ct.z.union([ct.z.string(),ct.z.number()]).optional().nullable(),description:ct.z.string().nullable().optional().nullable(),image:NN.nullable().optional(),external_url:NN.nullable().optional(),animation_url:NN.optional().nullable(),background_color:qZt.optional().nullable(),properties:hIe,attributes:hIe}).catchall(ct.z.union([yIe,ct.z.unknown()])),jZt=ct.z.union([ZJ,ct.z.string()]),zZt=ZJ.extend({id:ct.z.string(),uri:ct.z.string(),image:ct.z.string().nullable().optional(),external_url:ct.z.string().nullable().optional(),animation_url:ct.z.string().nullable().optional()}),QJ=100,KZt=ct.z.object({start:ct.z.number().default(0),count:ct.z.number().default(QJ)}).default({start:0,count:QJ});du.AmountSchema=gIe;du.BasisPointsSchema=OZt;du.BytesLikeSchema=BZt;du.CommonNFTInput=ZJ;du.CommonNFTOutput=zZt;du.DEFAULT_API_KEY=fIe;du.DEFAULT_QUERY_ALL_COUNT=QJ;du.FileOrBufferOrStringSchema=NN;du.MAX_BPS=mIe;du.NFTInputOrUriSchema=jZt;du.PercentSchema=LZt;du.QuantitySchema=FZt;du.QueryAllParamsSchema=KZt;du._defineProperty=HZt;du.getRpcUrl=RZt});var xn=x((uNn,GZt)=>{GZt.exports=[{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Tn=x((lNn,VZt)=>{VZt.exports=[{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var En=x((dNn,$Zt)=>{$Zt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Cn=x((pNn,YZt)=>{YZt.exports=[{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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{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:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var In=x((hNn,JZt)=>{JZt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var kn=x((fNn,QZt)=>{QZt.exports=[{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var An=x((mNn,ZZt)=>{ZZt.exports=[{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:"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:"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:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"who",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Sn=x((yNn,XZt)=>{XZt.exports=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Pn=x((gNn,eXt)=>{eXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rn=x((bNn,tXt)=>{tXt.exports=[{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"}]});var Mn=x((vNn,rXt)=>{rXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC20.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Nn=x((wNn,nXt)=>{nXt.exports=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Bn=x((_Nn,aXt)=>{aXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Dn=x((xNn,iXt)=>{iXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var On=x((TNn,sXt)=>{sXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"balance",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"operator",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"owner",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ln=x((ENn,oXt)=>{oXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Ln=x((CNn,cXt)=>{cXt.exports=[{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var qn=x((INn,uXt)=>{uXt.exports=[{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Fn=x((kNn,lXt)=>{lXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"},{internalType:"bytes",name:"extraData",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Wn=x((ANn,dXt)=>{dXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var Un=x((SNn,pXt)=>{pXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Hn=x((PNn,hXt)=>{hXt.exports=[{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var jn=x((RNn,fXt)=>{fXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"string",name:"tier",type:"string"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMetadataForAllTiers",outputs:[{components:[{internalType:"string",name:"tier",type:"string"},{components:[{internalType:"uint256",name:"startIdInclusive",type:"uint256"},{internalType:"uint256",name:"endIdNonInclusive",type:"uint256"}],internalType:"struct LazyMintWithTier.TokenRange[]",name:"ranges",type:"tuple[]"},{internalType:"string[]",name:"baseURIs",type:"string[]"}],internalType:"struct LazyMintWithTier.TierMetadata[]",name:"metadataForAllTiers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"string",name:"_tier",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var zn=x((MNn,mXt)=>{mXt.exports=[{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Kn=x((NNn,yXt)=>{yXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"}]});var Gn=x((BNn,gXt)=>{gXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Vn=x((DNn,bXt)=>{bXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"proofs",type:"bytes32[]"},{internalType:"uint256",name:"proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"string",name:"baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"phases",type:"tuple[]"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var $n=x((ONn,vXt)=>{vXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase1155.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Yn=x((LNn,wXt)=>{wXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{inputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase1155_V1.AllowlistProof",name:"allowlistProof",type:"tuple"},{internalType:"bytes",name:"data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"phase",type:"tuple"},{internalType:"bool",name:"resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"}]});var dn=x((qNn,_Xt)=>{_Xt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_owner",type:"address"},{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!1,internalType:"bool",name:"_approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"_ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"_values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_operator",type:"address"},{indexed:!0,internalType:"address",name:"_from",type:"address"},{indexed:!0,internalType:"address",name:"_to",type:"address"},{indexed:!1,internalType:"uint256",name:"_id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"_value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_value",type:"string"},{indexed:!0,internalType:"uint256",name:"_id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"_owners",type:"address[]"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"},{internalType:"address",name:"_operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256[]",name:"_ids",type:"uint256[]"},{internalType:"uint256[]",name:"_values",type:"uint256[]"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_from",type:"address"},{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_id",type:"uint256"},{internalType:"uint256",name:"_value",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_operator",type:"address"},{internalType:"bool",name:"_approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Jn=x((FNn,xXt)=>{xXt.exports=[{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Qn=x((WNn,TXt)=>{TXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Zn=x((UNn,EXt)=>{EXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC1155.MintRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"}]});var Xn=x((HNn,CXt)=>{CXt.exports=[{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ea=x((jNn,IXt)=>{IXt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"AppURIUpdated",type:"event"},{inputs:[],name:"appURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setAppURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ta=x((zNn,kXt)=>{kXt.exports=[{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ra=x((KNn,AXt)=>{AXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"BuyerApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"}],name:"CancelledListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"currency",type:"address"},{indexed:!1,internalType:"uint256",name:"pricePerToken",type:"uint256"}],name:"CurrencyApprovedForListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"NewListing",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"listingCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],name:"UpdatedListing",type:"event"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyer",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveBuyerForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerTokenInCurrency",type:"uint256"}],name:"approveCurrencyForListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_expectedTotalPrice",type:"uint256"}],name:"buyFromListing",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidListings",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing[]",name:"listings",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"getListing",outputs:[{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"listingCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"},{internalType:"enum IDirectListings.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IDirectListings.Status",name:"status",type:"uint8"}],internalType:"struct IDirectListings.Listing",name:"listing",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint128",name:"startTimestamp",type:"uint128"},{internalType:"uint128",name:"endTimestamp",type:"uint128"},{internalType:"bool",name:"reserved",type:"bool"}],internalType:"struct IDirectListings.ListingParameters",name:"_params",type:"tuple"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"}]});var na=x((GNn,SXt)=>{SXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"}],name:"CancelledAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewAuction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"auctionId",type:"uint256"},{indexed:!0,internalType:"address",name:"bidder",type:"address"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"bidAmount",type:"uint256"},{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],name:"NewBid",type:"event"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"bidInAuction",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"cancelAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionPayout",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"collectAuctionTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"}],internalType:"struct IEnglishAuctions.AuctionParameters",name:"_params",type:"tuple"}],name:"createAuction",outputs:[{internalType:"uint256",name:"auctionId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidAuctions",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction[]",name:"auctions",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getAuction",outputs:[{components:[{internalType:"uint256",name:"auctionId",type:"uint256"},{internalType:"address",name:"auctionCreator",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"minimumBidAmount",type:"uint256"},{internalType:"uint256",name:"buyoutBidAmount",type:"uint256"},{internalType:"uint64",name:"timeBufferInSeconds",type:"uint64"},{internalType:"uint64",name:"bidBufferBps",type:"uint64"},{internalType:"uint64",name:"startTimestamp",type:"uint64"},{internalType:"uint64",name:"endTimestamp",type:"uint64"},{internalType:"enum IEnglishAuctions.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IEnglishAuctions.Status",name:"status",type:"uint8"}],internalType:"struct IEnglishAuctions.Auction",name:"auction",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"getWinningBid",outputs:[{internalType:"address",name:"bidder",type:"address"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"bidAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"}],name:"isAuctionExpired",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_auctionId",type:"uint256"},{internalType:"uint256",name:"_bidAmount",type:"uint256"}],name:"isNewWinningBid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var aa=x((VNn,PXt)=>{PXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"seller",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"AcceptedOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"}],name:"CancelledOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"uint256",name:"offerId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],indexed:!1,internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],name:"NewOffer",type:"event"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"cancelOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startId",type:"uint256"},{internalType:"uint256",name:"_endId",type:"uint256"}],name:"getAllValidOffers",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer[]",name:"offers",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_offerId",type:"uint256"}],name:"getOffer",outputs:[{components:[{internalType:"uint256",name:"offerId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"},{internalType:"enum IOffers.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IOffers.Status",name:"status",type:"uint8"}],internalType:"struct IOffers.Offer",name:"offer",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"totalPrice",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],internalType:"struct IOffers.OfferParams",name:"_params",type:"tuple"}],name:"makeOffer",outputs:[{internalType:"uint256",name:"offerId",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var ia=x(($Nn,RXt)=>{RXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amountToOpen",type:"uint256"},{indexed:!1,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackOpenRequested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"uint256",name:"requestId",type:"uint256"}],name:"PackRandomnessFulfilled",type:"event"},{inputs:[{internalType:"address",name:"_opener",type:"address"}],name:"canClaimRewards",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"claimRewards",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"rewardUnits",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"packUri",type:"string"},{internalType:"uint128",name:"openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"amountToOpen",type:"uint256"}],name:"openPack",outputs:[{internalType:"uint256",name:"requestId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"},{internalType:"uint32",name:"_callBackGasLimit",type:"uint32"}],name:"openPackAndClaimRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]});var sa=x((YNn,MXt)=>{MXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var oa=x((JNn,NXt)=>{NXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ca=x((QNn,BXt)=>{BXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"}]});var ua=x((ZNn,DXt)=>{DXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"}]});var la=x((XNn,OXt)=>{OXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var da=x((eBn,LXt)=>{LXt.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}]});var Rqe=x(R=>{"use strict";d();p();Object.defineProperty(R,"__esModule",{value:!0});var qXt={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},FXt={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},WXt={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},UXt={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},HXt={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},jXt={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},zXt={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},KXt={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},GXt={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},VXt={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},$Xt={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},YXt={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},JXt={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},QXt={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},ZXt={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},XXt={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},eer={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},ter={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},rer={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},ner={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},aer={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},ier={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},ser={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},oer={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},cer={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},uer={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},ler={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},der={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},per={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},her={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},fer={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},mer={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},yer={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},ger={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},ber={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},ver={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},wer={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},_er={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},xer={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},Ter={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},Eer={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},Cer={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},Ier={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},ker={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},Aer={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},Ser={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},Per={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},Rer={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},Mer={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},Ner={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},Ber={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},Der={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},Oer={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},Ler={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},qer={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},Fer={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},Wer={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},Uer={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Her={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},jer={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},zer={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Ker={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},Ger={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Ver={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},$er={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Yer={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Jer={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Qer={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Zer={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Xer={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},etr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},ttr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},rtr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},ntr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},atr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},itr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},str={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},otr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},ctr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},utr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},ltr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},dtr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},ptr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},htr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},ftr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},mtr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},ytr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},gtr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},btr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},vtr={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},wtr={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},_tr={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},xtr={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},Ttr={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},Etr={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},Ctr={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},Itr={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},ktr={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},Atr={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},Str={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},Ptr={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},Rtr={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},Mtr={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},Ntr={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},Btr={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},Dtr={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},Otr={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},Ltr={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},qtr={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},Ftr={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},Wtr={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},Utr={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},Htr={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},jtr={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},ztr={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},Ktr={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},Gtr={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},Vtr={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},$tr={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},Ytr={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},Jtr={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},Qtr={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},Ztr={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},Xtr={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},err={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},trr={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},rrr={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},nrr={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},arr={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},irr={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},srr={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},orr={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},crr={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},urr={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},lrr={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},drr={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},prr={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},hrr={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},frr={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},mrr={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},yrr={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},grr={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},brr={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},vrr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},wrr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},_rr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},xrr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},Trr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},Err={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},Crr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},Irr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},krr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},Arr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},Srr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},Prr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},Rrr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},Mrr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},Nrr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},Brr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},Drr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},Orr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},Lrr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},qrr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},Frr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},Wrr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},Urr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},Hrr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},jrr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},zrr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},Krr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},Grr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Vrr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},$rr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Yrr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Jrr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Qrr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},Zrr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},Xrr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},enr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},tnr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},rnr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},nnr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},anr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},inr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},snr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},onr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},cnr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},unr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},lnr={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},dnr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},pnr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},hnr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},fnr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},mnr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},ynr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},gnr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},bnr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},vnr={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},wnr={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},_nr={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},xnr={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},Tnr={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},Enr={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},Cnr={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},Inr={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},knr={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},Anr={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},Snr={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},Pnr={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},Rnr={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},Mnr={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},Nnr={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},Bnr={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},Dnr={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},Onr={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},Lnr={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},qnr={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},Fnr={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},Wnr={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},Unr={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},Hnr={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},jnr={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},znr={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},Knr={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},Gnr={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},Vnr={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},$nr={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},Ynr={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},Jnr={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},Qnr={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},Znr={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},Xnr={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},ear={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},tar={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},rar={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},nar={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},aar={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},iar={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},sar={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},oar={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},car={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},uar={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},lar={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},dar={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},par={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},har={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},far={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},mar={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},yar={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},gar={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},bar={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},war={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},_ar={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},xar={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},Tar={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},Ear={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},Car={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},Iar={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},kar={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},Aar={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},Sar={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},Par={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},Rar={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},Mar={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},Nar={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},Bar={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},Dar={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},Oar={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},Lar={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},qar={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},Far={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},War={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},Uar={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},Har={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},jar={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},zar={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Kar={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Gar={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},Var={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},$ar={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Yar={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Jar={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Qar={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Zar={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},Xar={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},eir={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},tir={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},rir={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},nir={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},air={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},iir={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},sir={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},oir={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},cir={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},uir={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},lir={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},dir={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},pir={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},hir={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},fir={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},mir={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},yir={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},gir={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},bir={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},vir={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},wir={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},_ir={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},xir={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},Tir={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},Eir={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},Cir={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},Iir={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},kir={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},Air={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},Sir={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},Pir={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},Rir={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},Mir={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},Nir={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},Bir={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},Dir={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},Oir={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},Lir={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},qir={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},Fir={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},Wir={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},Uir={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},Hir={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},jir={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},zir={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Kir={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Gir={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},Vir={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},$ir={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Yir={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Jir={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Qir={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},Zir={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},Xir={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},esr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},tsr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},rsr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},nsr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},asr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},isr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},ssr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},osr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},csr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},usr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},lsr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},dsr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},psr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},hsr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},fsr={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},msr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},ysr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},gsr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},bsr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},vsr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},wsr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},_sr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},xsr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},Tsr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},Esr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},Csr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},Isr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},ksr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},Asr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},Ssr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},Psr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},Rsr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},Msr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},Nsr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},Bsr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},Dsr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},Osr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},Lsr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},qsr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},Fsr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},Wsr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},Usr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},Hsr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},jsr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},zsr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Ksr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Gsr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},Vsr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},$sr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Ysr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Jsr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Qsr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},Zsr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},Xsr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},eor={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},tor={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},ror={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},nor={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},aor={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},ior={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},sor={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},oor={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},cor={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},uor={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},lor={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},dor={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},por={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},hor={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},mor={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},yor={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},gor={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},bor={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},vor={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},wor={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},_or={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},xor={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},Tor={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},Eor={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},Cor={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},Ior={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},kor={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},Aor={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},Sor={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},Por={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},Ror={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},Mor={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},Nor={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},Bor={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},Dor={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},Oor={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},Lor={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},qor={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},For={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},Wor={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},Uor={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},Hor={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},jor={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},zor={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},Kor={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},Gor={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},Vor={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},$or={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},Yor={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},Jor={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},Qor={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},Zor={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},Xor={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},ecr={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},tcr={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},rcr={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},ncr={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},acr={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},icr={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},scr={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},ocr={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},ccr={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},ucr={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},lcr={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},dcr={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},pcr={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},hcr={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},fcr={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},mcr={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},ycr={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},gcr={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},bcr={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},vcr={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},wcr={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},_cr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},xcr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},Tcr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},Ecr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},Ccr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},Icr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},kcr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},Acr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},Scr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},Pcr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},Rcr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},Mcr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},Ncr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},Bcr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},Dcr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},Ocr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},Lcr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},qcr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},Fcr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},Wcr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},Ucr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},Hcr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},jcr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},zcr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Kcr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Gcr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},Vcr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},$cr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Ycr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Jcr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Qcr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},Zcr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},Xcr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},eur={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},tur={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},rur={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},nur={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},aur={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},iur={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},sur={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},our={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},cur={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},uur={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},lur={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},dur={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},pur={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},hur={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},fur={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},mur={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},yur={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},gur={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},bur={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},vur={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},wur={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},_ur={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},xur={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},Tur={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},Eur={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},Cur={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},Iur={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},kur={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},Aur={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},Sur={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},Pur={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},Rur={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},Mur={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},Nur={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},Bur={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},Dur={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},Our={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},Lur={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},qur={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},Fur={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},Wur={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},Uur={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},Hur={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},jur={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},zur={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},Kur={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},Gur={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},Vur={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},$ur={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},Yur={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},Jur={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},Qur={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},Zur={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},Xur={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},elr={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},tlr={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},rlr={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},nlr={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},alr={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},ilr={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},slr={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},olr={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},clr={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},ulr={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},llr={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},dlr={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},plr={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},hlr={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},flr={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},mlr={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},ylr={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},glr={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},blr={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},vlr={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},wlr={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},_lr={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},xlr={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},Tlr={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},Elr={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},Clr={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},Ilr={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},klr={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},Alr={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},Slr={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},Plr={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},Rlr={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},Mlr={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},Nlr={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},Blr={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},Dlr={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},Olr={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},Llr={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},qlr={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},Flr={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},Wlr={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},Ulr={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},Hlr={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},jlr={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},zlr={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},Klr={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},Glr={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},Vlr={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},$lr={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},Ylr={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},Jlr={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},Qlr={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},Zlr={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},Xlr={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},edr={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},tdr={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},rdr={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},ndr={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},adr={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},idr={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},sdr={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},odr={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},cdr={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},udr={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},ldr={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},ddr={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},pdr={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},hdr={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},fdr={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},mdr={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},ydr={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},gdr={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},bdr={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},vdr={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},wdr={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},_dr={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},xdr={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},Tdr={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},Edr={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},Cdr={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},Idr={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},kdr={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},Adr={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},Sdr={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},Pdr={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},Rdr={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},Mdr={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},Ndr={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},Bdr={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},Ddr={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},Odr={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},Ldr={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},qdr={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},Fdr={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},Wdr={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},Udr={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},Hdr={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},jdr={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},zdr={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},Kdr={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},Gdr={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},Vdr={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},$dr={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},Ydr={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},Jdr={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},Qdr={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},Zdr={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},Xdr={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},epr={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},tpr={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},rpr={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},npr={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},apr={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},ipr={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},spr={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},opr={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},cpr={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},upr={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},lpr={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},dpr={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},ppr={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},hpr={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},fpr={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},mpr={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},ypr={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},gpr={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},bpr={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},vpr={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},wpr={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},_pr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},xpr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},Tpr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},Epr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},Cpr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},Ipr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},kpr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},Apr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},Spr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},Ppr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},Rpr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},Mpr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},Npr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},Bpr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},Dpr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},Opr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},Lpr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},qpr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},Fpr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},Wpr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},Upr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},Hpr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},jpr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},zpr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Kpr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},Gpr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Vpr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},$pr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},Ypr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Jpr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Qpr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Zpr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Xpr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},ehr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},thr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},rhr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},nhr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},ahr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},ihr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},shr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},ohr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},chr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},uhr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},lhr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},dhr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},phr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},hhr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},fhr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},mhr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},yhr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},ghr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},bhr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},vhr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},whr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},_hr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},xhr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},Thr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},Ehr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},Chr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},Ihr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},khr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},Ahr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},Shr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},Phr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},Rhr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},Mhr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},Nhr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},Bhr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},Dhr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},Ohr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},Lhr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},qhr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},Fhr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},Whr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},Uhr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},Hhr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},jhr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},zhr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},Khr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},Ghr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},Vhr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},$hr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},Yhr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},Jhr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},Qhr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},Zhr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},Xhr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},efr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},tfr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},rfr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},nfr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},afr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},ifr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},sfr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},ofr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},cfr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},ufr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},lfr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},dfr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},pfr={mode:"http"};function vIe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...pfr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function hfr(r,e){return vIe(r,e)[0]}function ffr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function mfr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var XJ=qXt,wIe=FXt,_Ie=WXt,xIe=UXt,eQ=HXt,TIe=jXt,EIe=zXt,CIe=KXt,IIe=GXt,tQ=VXt,kIe=$Xt,AIe=YXt,SIe=JXt,PIe=QXt,RIe=ZXt,MIe=XXt,NIe=eer,BIe=ter,DIe=rer,OIe=ner,LIe=aer,qIe=ier,FIe=ser,WIe=oer,UIe=cer,HIe=uer,jIe=ler,zIe=der,KIe=per,GIe=her,VIe=fer,$Ie=mer,YIe=yer,JIe=ger,QIe=ber,ZIe=ver,XIe=wer,eke=_er,tke=xer,rke=Ter,nke=Eer,ake=Cer,ike=Ier,ske=ker,oke=Aer,cke=Ser,uke=Per,lke=Rer,dke=Mer,pke=Ner,hke=Ber,fke=Der,mke=Oer,yke=Ler,rQ=qer,gke=Fer,bke=Wer,vke=Uer,wke=Her,_ke=jer,xke=zer,Tke=Ker,Eke=Ger,Cke=Ver,Ike=$er,kke=Yer,Ake=Jer,Ske=Qer,Pke=Zer,Rke=Xer,Mke=etr,Nke=ttr,Bke=rtr,Dke=ntr,Oke=atr,Lke=itr,qke=str,Fke=otr,Wke=ctr,Uke=utr,Hke=ltr,jke=dtr,zke=ptr,Kke=htr,Gke=ftr,Vke=mtr,$ke=ytr,Yke=gtr,Jke=btr,Qke=vtr,Zke=wtr,Xke=_tr,eAe=xtr,nQ=Ttr,tAe=Etr,rAe=Ctr,nAe=Itr,aAe=ktr,iAe=Atr,sAe=Str,oAe=Ptr,cAe=Rtr,uAe=Mtr,lAe=Ntr,dAe=Btr,pAe=Dtr,hAe=Otr,fAe=Ltr,mAe=qtr,yAe=Ftr,gAe=Wtr,bAe=Utr,vAe=Htr,wAe=jtr,_Ae=ztr,xAe=Ktr,TAe=Gtr,EAe=Vtr,CAe=$tr,IAe=Ytr,kAe=Jtr,AAe=Qtr,aQ=Ztr,SAe=Xtr,PAe=err,RAe=trr,MAe=rrr,NAe=nrr,BAe=arr,DAe=irr,OAe=srr,LAe=orr,qAe=crr,FAe=urr,WAe=lrr,UAe=drr,HAe=prr,jAe=hrr,zAe=frr,KAe=mrr,GAe=yrr,VAe=grr,$Ae=brr,YAe=vrr,JAe=wrr,QAe=_rr,ZAe=xrr,XAe=Trr,eSe=Err,tSe=Crr,rSe=Irr,iQ=krr,nSe=Arr,aSe=Srr,iSe=Prr,sSe=Rrr,oSe=Mrr,cSe=Nrr,uSe=Brr,lSe=Drr,dSe=Orr,pSe=Lrr,hSe=qrr,fSe=Frr,mSe=Wrr,ySe=Urr,gSe=Hrr,bSe=jrr,vSe=zrr,wSe=Krr,_Se=Grr,xSe=Vrr,TSe=$rr,ESe=Yrr,CSe=Jrr,ISe=Qrr,kSe=Zrr,ASe=Xrr,SSe=enr,PSe=tnr,RSe=rnr,MSe=nnr,NSe=anr,sQ=inr,BSe=snr,DSe=onr,OSe=cnr,LSe=unr,qSe=lnr,FSe=dnr,WSe=pnr,USe=hnr,HSe=fnr,jSe=mnr,zSe=ynr,KSe=gnr,GSe=bnr,VSe=vnr,$Se=wnr,YSe=_nr,JSe=xnr,QSe=Tnr,ZSe=Enr,XSe=Cnr,ePe=Inr,tPe=knr,rPe=Anr,nPe=Snr,aPe=Pnr,iPe=Rnr,sPe=Mnr,oPe=Nnr,cPe=Bnr,uPe=Dnr,lPe=Onr,dPe=Lnr,pPe=qnr,hPe=Fnr,fPe=Wnr,mPe=Unr,yPe=Hnr,gPe=jnr,bPe=znr,vPe=Knr,wPe=Gnr,_Pe=Vnr,xPe=$nr,TPe=Ynr,EPe=Jnr,CPe=Qnr,IPe=Znr,kPe=Xnr,APe=ear,SPe=tar,PPe=rar,RPe=nar,MPe=aar,NPe=iar,BPe=sar,DPe=oar,OPe=car,LPe=uar,qPe=lar,FPe=dar,WPe=par,UPe=har,HPe=far,jPe=mar,zPe=yar,KPe=gar,GPe=bar,VPe=war,$Pe=_ar,YPe=xar,JPe=Tar,QPe=Ear,ZPe=Car,XPe=Iar,e7e=kar,t7e=Aar,r7e=Sar,n7e=Par,a7e=Rar,i7e=Mar,s7e=Nar,o7e=Bar,c7e=Dar,u7e=Oar,l7e=Lar,d7e=qar,p7e=Far,h7e=War,f7e=Uar,m7e=Har,y7e=jar,g7e=zar,b7e=Kar,v7e=Gar,w7e=Var,_7e=$ar,x7e=Yar,T7e=Jar,E7e=Qar,C7e=Zar,I7e=Xar,k7e=eir,A7e=tir,S7e=rir,P7e=nir,R7e=air,M7e=iir,N7e=sir,B7e=oir,D7e=cir,O7e=uir,L7e=lir,q7e=dir,F7e=pir,W7e=hir,U7e=fir,H7e=mir,j7e=yir,z7e=gir,K7e=bir,G7e=vir,V7e=wir,$7e=_ir,Y7e=xir,J7e=Tir,Q7e=Eir,Z7e=Cir,X7e=Iir,eRe=kir,tRe=Air,rRe=Sir,nRe=Pir,aRe=Rir,iRe=Mir,sRe=Nir,oRe=Bir,cRe=Dir,uRe=Oir,lRe=Lir,dRe=qir,pRe=Fir,hRe=Wir,fRe=Uir,mRe=Hir,yRe=jir,gRe=zir,bRe=Kir,vRe=Gir,wRe=Vir,_Re=$ir,xRe=Yir,TRe=Jir,ERe=Qir,CRe=Zir,IRe=Xir,kRe=esr,ARe=tsr,SRe=rsr,PRe=nsr,RRe=asr,MRe=isr,NRe=ssr,BRe=osr,DRe=csr,ORe=usr,LRe=lsr,qRe=dsr,FRe=psr,WRe=hsr,URe=fsr,HRe=msr,jRe=ysr,zRe=gsr,KRe=bsr,GRe=vsr,VRe=wsr,$Re=_sr,YRe=xsr,JRe=Tsr,QRe=Esr,ZRe=Csr,XRe=Isr,e9e=ksr,t9e=Asr,r9e=Ssr,n9e=Psr,a9e=Rsr,i9e=Msr,s9e=Nsr,o9e=Bsr,c9e=Dsr,u9e=Osr,l9e=Lsr,d9e=qsr,p9e=Fsr,h9e=Wsr,f9e=Usr,m9e=Hsr,y9e=jsr,g9e=zsr,b9e=Ksr,v9e=Gsr,w9e=Vsr,_9e=$sr,x9e=Ysr,T9e=Jsr,E9e=Qsr,C9e=Zsr,I9e=Xsr,k9e=eor,A9e=tor,S9e=ror,P9e=nor,R9e=aor,M9e=ior,N9e=sor,B9e=oor,D9e=cor,O9e=uor,L9e=lor,q9e=dor,F9e=por,oQ=hor,W9e=mor,U9e=yor,H9e=gor,j9e=bor,z9e=vor,K9e=wor,G9e=_or,V9e=xor,$9e=Tor,Y9e=Eor,J9e=Cor,Q9e=Ior,Z9e=kor,X9e=Aor,eMe=Sor,tMe=Por,rMe=Ror,nMe=Mor,aMe=Nor,iMe=Bor,sMe=Dor,oMe=Oor,cMe=Lor,uMe=qor,lMe=For,dMe=Wor,pMe=Uor,hMe=Hor,fMe=jor,mMe=zor,yMe=Kor,gMe=Gor,bMe=Vor,vMe=$or,wMe=Yor,_Me=Jor,xMe=Qor,TMe=Zor,EMe=Xor,CMe=ecr,IMe=tcr,kMe=rcr,AMe=ncr,SMe=acr,PMe=icr,RMe=scr,MMe=ocr,NMe=ccr,BMe=ucr,DMe=lcr,OMe=dcr,LMe=pcr,qMe=hcr,FMe=fcr,WMe=mcr,UMe=ycr,HMe=gcr,jMe=bcr,zMe=vcr,KMe=wcr,GMe=_cr,VMe=xcr,$Me=Tcr,YMe=Ecr,JMe=Ccr,QMe=Icr,ZMe=kcr,XMe=Acr,eNe=Scr,tNe=Pcr,rNe=Rcr,nNe=Mcr,aNe=Ncr,iNe=Bcr,sNe=Dcr,oNe=Ocr,cNe=Lcr,uNe=qcr,lNe=Fcr,dNe=Wcr,pNe=Ucr,hNe=Hcr,fNe=jcr,mNe=zcr,yNe=Kcr,gNe=Gcr,bNe=Vcr,vNe=$cr,wNe=Ycr,_Ne=Jcr,xNe=Qcr,TNe=Zcr,ENe=Xcr,CNe=eur,INe=tur,kNe=rur,ANe=nur,SNe=aur,PNe=iur,RNe=sur,MNe=our,NNe=cur,BNe=uur,DNe=lur,ONe=dur,LNe=pur,qNe=hur,FNe=fur,WNe=mur,UNe=yur,HNe=gur,jNe=bur,zNe=vur,KNe=wur,GNe=_ur,VNe=xur,$Ne=Tur,YNe=Eur,JNe=Cur,QNe=Iur,ZNe=kur,XNe=Aur,eBe=Sur,tBe=Pur,rBe=Rur,nBe=Mur,aBe=Nur,iBe=Bur,sBe=Dur,oBe=Our,cBe=Lur,uBe=qur,lBe=Fur,dBe=Wur,pBe=Uur,hBe=Hur,fBe=jur,mBe=zur,yBe=Kur,gBe=Gur,bBe=Vur,vBe=$ur,wBe=Yur,_Be=Jur,xBe=Qur,TBe=Zur,EBe=Xur,CBe=elr,IBe=tlr,kBe=rlr,ABe=nlr,SBe=alr,PBe=ilr,RBe=slr,MBe=olr,NBe=clr,BBe=ulr,DBe=llr,OBe=dlr,LBe=plr,qBe=hlr,FBe=flr,WBe=mlr,cQ=ylr,UBe=glr,HBe=blr,jBe=vlr,zBe=wlr,KBe=_lr,uQ=xlr,lQ=Tlr,GBe=Elr,VBe=Clr,$Be=Ilr,YBe=klr,JBe=Alr,QBe=Slr,ZBe=Plr,XBe=Rlr,eDe=Mlr,tDe=Nlr,rDe=Blr,nDe=Dlr,aDe=Olr,iDe=Llr,sDe=qlr,oDe=Flr,cDe=Wlr,uDe=Ulr,lDe=Hlr,dDe=jlr,pDe=zlr,hDe=Klr,fDe=Glr,mDe=Vlr,yDe=$lr,gDe=Ylr,bDe=Jlr,vDe=Qlr,wDe=Zlr,_De=Xlr,xDe=edr,TDe=tdr,EDe=rdr,CDe=ndr,IDe=adr,kDe=idr,ADe=sdr,SDe=odr,PDe=cdr,RDe=udr,MDe=ldr,NDe=ddr,BDe=pdr,dQ=hdr,DDe=fdr,ODe=mdr,LDe=ydr,qDe=gdr,FDe=bdr,WDe=vdr,UDe=wdr,HDe=_dr,jDe=xdr,zDe=Tdr,KDe=Edr,GDe=Cdr,VDe=Idr,$De=kdr,YDe=Adr,JDe=Sdr,QDe=Pdr,ZDe=Rdr,XDe=Mdr,eOe=Ndr,tOe=Bdr,rOe=Ddr,nOe=Odr,aOe=Ldr,iOe=qdr,sOe=Fdr,oOe=Wdr,cOe=Udr,uOe=Hdr,lOe=jdr,dOe=zdr,pOe=Kdr,hOe=Gdr,fOe=Vdr,mOe=$dr,yOe=Ydr,gOe=Jdr,bOe=Qdr,vOe=Zdr,wOe=Xdr,_Oe=epr,xOe=tpr,TOe=rpr,EOe=npr,COe=apr,IOe=ipr,kOe=spr,AOe=opr,SOe=cpr,POe=upr,ROe=lpr,MOe=dpr,NOe=ppr,BOe=hpr,DOe=fpr,OOe=mpr,LOe=ypr,qOe=gpr,FOe=bpr,WOe=vpr,UOe=wpr,pQ=_pr,HOe=xpr,jOe=Tpr,zOe=Epr,KOe=Cpr,GOe=Ipr,VOe=kpr,$Oe=Apr,YOe=Spr,JOe=Ppr,QOe=Rpr,ZOe=Mpr,XOe=Npr,eLe=Bpr,tLe=Dpr,rLe=Opr,nLe=Lpr,aLe=qpr,iLe=Fpr,sLe=Wpr,oLe=Upr,cLe=Hpr,uLe=jpr,lLe=zpr,dLe=Kpr,pLe=Gpr,hLe=Vpr,fLe=$pr,mLe=Ypr,yLe=Jpr,gLe=Qpr,bLe=Zpr,vLe=Xpr,wLe=ehr,_Le=thr,xLe=rhr,TLe=nhr,ELe=ahr,CLe=ihr,ILe=shr,kLe=ohr,ALe=chr,SLe=uhr,PLe=lhr,RLe=dhr,MLe=phr,NLe=hhr,BLe=fhr,DLe=mhr,OLe=yhr,LLe=ghr,qLe=bhr,FLe=vhr,WLe=whr,ULe=_hr,HLe=xhr,jLe=Thr,zLe=Ehr,KLe=Chr,GLe=Ihr,VLe=khr,$Le=Ahr,YLe=Shr,JLe=Phr,QLe=Rhr,ZLe=Mhr,XLe=Nhr,eqe=Bhr,tqe=Dhr,rqe=Ohr,nqe=Lhr,aqe=qhr,iqe=Fhr,sqe=Whr,oqe=Uhr,cqe=Hhr,uqe=jhr,lqe=zhr,dqe=Khr,pqe=Ghr,hqe=Vhr,fqe=$hr,mqe=Yhr,yqe=Jhr,gqe=Qhr,bqe=Zhr,vqe=Xhr,wqe=efr,_qe=tfr,xqe=rfr,Tqe=nfr,Eqe=afr,Cqe=ifr,Iqe=sfr,kqe=ofr,Aqe=cfr,Sqe=ufr,Pqe=lfr,hQ=dfr,yfr=[XJ,eQ,aQ,dQ,cQ,pQ,tQ,sQ,rQ,nQ,iQ,oQ,lQ,uQ,hQ],fQ=[XJ,wIe,_Ie,xIe,eQ,TIe,EIe,CIe,IIe,tQ,kIe,AIe,SIe,PIe,RIe,MIe,NIe,BIe,DIe,OIe,LIe,qIe,FIe,WIe,UIe,HIe,jIe,zIe,KIe,GIe,VIe,$Ie,YIe,JIe,QIe,ZIe,XIe,eke,tke,rke,nke,ake,ike,ske,oke,cke,uke,lke,dke,pke,hke,fke,mke,yke,rQ,gke,bke,vke,wke,_ke,xke,Tke,Eke,Cke,Ike,kke,Ake,Ske,Pke,Rke,Mke,Nke,Bke,Dke,Oke,Lke,qke,Fke,Wke,Uke,Hke,jke,zke,Kke,Gke,Vke,$ke,Yke,Jke,Qke,Zke,Xke,eAe,nQ,tAe,rAe,nAe,aAe,iAe,sAe,oAe,cAe,uAe,lAe,dAe,pAe,hAe,fAe,mAe,yAe,gAe,bAe,vAe,wAe,_Ae,xAe,TAe,EAe,CAe,IAe,kAe,AAe,aQ,SAe,PAe,RAe,MAe,NAe,BAe,DAe,OAe,LAe,qAe,FAe,WAe,UAe,HAe,jAe,zAe,KAe,GAe,VAe,$Ae,YAe,JAe,QAe,ZAe,XAe,eSe,tSe,rSe,iQ,nSe,aSe,iSe,sSe,oSe,cSe,uSe,lSe,dSe,pSe,hSe,fSe,mSe,ySe,gSe,bSe,vSe,wSe,_Se,xSe,TSe,ESe,CSe,ISe,kSe,ASe,SSe,PSe,RSe,MSe,NSe,sQ,BSe,DSe,OSe,LSe,qSe,FSe,WSe,USe,HSe,jSe,zSe,KSe,GSe,VSe,$Se,YSe,JSe,QSe,ZSe,XSe,ePe,tPe,rPe,nPe,aPe,iPe,sPe,oPe,cPe,uPe,lPe,dPe,pPe,hPe,fPe,mPe,yPe,gPe,bPe,vPe,wPe,_Pe,xPe,TPe,EPe,CPe,IPe,kPe,APe,SPe,PPe,RPe,MPe,NPe,BPe,DPe,OPe,LPe,qPe,FPe,WPe,UPe,HPe,jPe,zPe,KPe,GPe,VPe,$Pe,YPe,JPe,QPe,ZPe,XPe,e7e,t7e,r7e,n7e,a7e,i7e,s7e,o7e,c7e,u7e,l7e,d7e,p7e,h7e,f7e,m7e,y7e,g7e,b7e,v7e,w7e,_7e,x7e,T7e,E7e,C7e,I7e,k7e,A7e,S7e,P7e,R7e,M7e,N7e,B7e,D7e,O7e,L7e,q7e,F7e,W7e,U7e,H7e,j7e,z7e,K7e,G7e,V7e,$7e,Y7e,J7e,Q7e,Z7e,X7e,eRe,tRe,rRe,nRe,aRe,iRe,sRe,oRe,cRe,uRe,lRe,dRe,pRe,hRe,fRe,mRe,yRe,gRe,bRe,vRe,wRe,_Re,xRe,TRe,ERe,CRe,IRe,kRe,ARe,SRe,PRe,RRe,MRe,NRe,BRe,DRe,ORe,LRe,qRe,FRe,WRe,URe,HRe,jRe,zRe,KRe,GRe,VRe,$Re,YRe,JRe,QRe,ZRe,XRe,e9e,t9e,r9e,n9e,a9e,i9e,s9e,o9e,c9e,u9e,l9e,d9e,p9e,h9e,f9e,m9e,y9e,g9e,b9e,v9e,w9e,_9e,x9e,T9e,E9e,C9e,I9e,k9e,A9e,S9e,P9e,R9e,M9e,N9e,B9e,D9e,O9e,L9e,q9e,F9e,oQ,W9e,U9e,H9e,j9e,z9e,K9e,G9e,V9e,$9e,Y9e,J9e,Q9e,Z9e,X9e,eMe,tMe,rMe,nMe,aMe,iMe,sMe,oMe,cMe,uMe,lMe,dMe,pMe,hMe,fMe,mMe,yMe,gMe,bMe,vMe,wMe,_Me,xMe,TMe,EMe,CMe,IMe,kMe,AMe,SMe,PMe,RMe,MMe,NMe,BMe,DMe,OMe,LMe,qMe,FMe,WMe,UMe,HMe,jMe,zMe,KMe,GMe,VMe,$Me,YMe,JMe,QMe,ZMe,XMe,eNe,tNe,rNe,nNe,aNe,iNe,sNe,oNe,cNe,uNe,lNe,dNe,pNe,hNe,fNe,mNe,yNe,gNe,bNe,vNe,wNe,_Ne,xNe,TNe,ENe,CNe,INe,kNe,ANe,SNe,PNe,RNe,MNe,NNe,BNe,DNe,ONe,LNe,qNe,FNe,WNe,UNe,HNe,jNe,zNe,KNe,GNe,VNe,$Ne,YNe,JNe,QNe,ZNe,XNe,eBe,tBe,rBe,nBe,aBe,iBe,sBe,oBe,cBe,uBe,lBe,dBe,pBe,hBe,fBe,mBe,yBe,gBe,bBe,vBe,wBe,_Be,xBe,TBe,EBe,CBe,IBe,kBe,ABe,SBe,PBe,RBe,MBe,NBe,BBe,DBe,OBe,LBe,qBe,FBe,WBe,cQ,UBe,HBe,jBe,zBe,KBe,uQ,lQ,GBe,VBe,$Be,YBe,JBe,QBe,ZBe,XBe,eDe,tDe,rDe,nDe,aDe,iDe,sDe,oDe,cDe,uDe,lDe,dDe,pDe,hDe,fDe,mDe,yDe,gDe,bDe,vDe,wDe,_De,xDe,TDe,EDe,CDe,IDe,kDe,ADe,SDe,PDe,RDe,MDe,NDe,BDe,dQ,DDe,ODe,LDe,qDe,FDe,WDe,UDe,HDe,jDe,zDe,KDe,GDe,VDe,$De,YDe,JDe,QDe,ZDe,XDe,eOe,tOe,rOe,nOe,aOe,iOe,sOe,oOe,cOe,uOe,lOe,dOe,pOe,hOe,fOe,mOe,yOe,gOe,bOe,vOe,wOe,_Oe,xOe,TOe,EOe,COe,IOe,kOe,AOe,SOe,POe,ROe,MOe,NOe,BOe,DOe,OOe,LOe,qOe,FOe,WOe,UOe,pQ,HOe,jOe,zOe,KOe,GOe,VOe,$Oe,YOe,JOe,QOe,ZOe,XOe,eLe,tLe,rLe,nLe,aLe,iLe,sLe,oLe,cLe,uLe,lLe,dLe,pLe,hLe,fLe,mLe,yLe,gLe,bLe,vLe,wLe,_Le,xLe,TLe,ELe,CLe,ILe,kLe,ALe,SLe,PLe,RLe,MLe,NLe,BLe,DLe,OLe,LLe,qLe,FLe,WLe,ULe,HLe,jLe,zLe,KLe,GLe,VLe,$Le,YLe,JLe,QLe,ZLe,XLe,eqe,tqe,rqe,nqe,aqe,iqe,sqe,oqe,cqe,uqe,lqe,dqe,pqe,hqe,fqe,mqe,yqe,gqe,bqe,vqe,wqe,_qe,xqe,Tqe,Eqe,Cqe,Iqe,kqe,Aqe,Sqe,Pqe,hQ];function gfr(r){let e=fQ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function bfr(r){let e=fQ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}R.AcalaMandalaTestnet=JSe;R.AcalaNetwork=mPe;R.AcalaNetworkTestnet=ZSe;R.AerochainTestnet=yPe;R.AiozNetwork=LAe;R.AiozNetworkTestnet=K9e;R.Airdao=tBe;R.AirdaoTestnet=pBe;R.Aitd=j7e;R.AitdTestnet=z7e;R.Akroma=yOe;R.Alaya=gOe;R.AlayaDevTestnet=bOe;R.AlphNetwork=JMe;R.Altcoinchain=s9e;R.Alyx=H7e;R.AlyxChainTestnet=AAe;R.AmbrosChain=APe;R.AmeChain=WAe;R.Amstar=$7e;R.AmstarTestnet=v7e;R.Anduschain=RLe;R.AnytypeEvmChain=sRe;R.Aquachain=zLe;R.Arbitrum=cQ;R.ArbitrumGoerli=pQ;R.ArbitrumNova=UBe;R.ArbitrumOnXdai=$Ae;R.ArbitrumRinkeby=UOe;R.ArcologyTestnet=yAe;R.Arevia=i9e;R.ArmoniaEvaChain=MAe;R.ArmoniaEvaChainTestnet=NAe;R.ArtisSigma1=COe;R.ArtisTestnetTau1=IOe;R.Astar=YSe;R.Astra=MNe;R.AstraTestnet=BNe;R.Atelier=xRe;R.Atheios=rRe;R.Athereum=KBe;R.AtoshiTestnet=OAe;R.Aurora=sqe;R.AuroraBetanet=cqe;R.AuroraTestnet=oqe;R.AutobahnNetwork=YBe;R.AutonityBakerlooThamesTestnet=KLe;R.AutonityPiccadillyThamesTestnet=GLe;R.AuxiliumNetwork=FLe;R.Avalanche=lQ;R.AvalancheFuji=uQ;R.Aves=NBe;R.BandaiNamcoResearchVerse=IPe;R.Base=KMe;R.BaseGoerli=DDe;R.BeagleMessagingChain=eRe;R.BeanecoSmartchain=ZOe;R.BearNetworkChain=XOe;R.BearNetworkChainTestnet=tLe;R.BeoneChainTestnet=WMe;R.BeresheetBereevmTestnet=qRe;R.Berylbit=dNe;R.BeverlyHills=qDe;R.Bifrost=_9e;R.BifrostTestnet=XBe;R.Binance=rQ;R.BinanceTestnet=nQ;R.Bitcichain=gRe;R.BitcichainTestnet=bRe;R.BitcoinEvm=XRe;R.Bitgert=PBe;R.Bitindi=z9e;R.BitindiTestnet=j9e;R.BitkubChain=eAe;R.BitkubChainTestnet=wBe;R.Bittex=N9e;R.BittorrentChain=VAe;R.BittorrentChainTestnet=i7e;R.Bityuan=g9e;R.BlackfortExchangeNetwork=tMe;R.BlackfortExchangeNetworkTestnet=Z9e;R.BlgTestnet=jNe;R.BlockchainGenesis=ENe;R.BlockchainStation=oPe;R.BlockchainStationTestnet=cPe;R.BlocktonBlockchain=HMe;R.Bloxberg=cNe;R.Bmc=HAe;R.BmcTestnet=jAe;R.BobaAvax=GBe;R.BobaBnb=cDe;R.BobaBnbTestnet=gNe;R.BobaNetwork=cSe;R.BobaNetworkGoerliTestnet=y9e;R.BobaNetworkRinkebyTestnet=zIe;R.BobabaseTestnet=W7e;R.Bobabeam=F7e;R.BobafujiTestnet=$9e;R.Bobaopera=fSe;R.BobaoperaTestnet=W9e;R.BombChain=a9e;R.BombChainTestnet=o9e;R.BonNetwork=yRe;R.Bosagora=YRe;R.Brochain=tOe;R.Bronos=u7e;R.BronosTestnet=c7e;R.Btachain=nRe;R.BtcixNetwork=sBe;R.Callisto=_Pe;R.CallistoTestnet=oBe;R.CalypsoNftHubSkale=lqe;R.CalypsoNftHubSkaleTestnet=XLe;R.CaminoCChain=LSe;R.Candle=KSe;R.Canto=SMe;R.CantoTestnet=lPe;R.CatecoinChain=tRe;R.Celo=HBe;R.CeloAlfajoresTestnet=$Be;R.CeloBaklavaTestnet=yDe;R.CennznetAzalea=uBe;R.CennznetNikau=v9e;R.CennznetRata=b9e;R.ChainVerse=lMe;R.Cheapeth=fPe;R.ChiadoTestnet=CNe;R.ChilizScovilleTestnet=ODe;R.CicChain=V7e;R.CicChainTestnet=N7e;R.Cloudtx=IBe;R.CloudtxTestnet=kBe;R.Cloudwalk=MRe;R.CloudwalkTestnet=RRe;R.CloverTestnet=n7e;R.ClvParachain=a7e;R.Cmp=AOe;R.CmpTestnet=VOe;R.CoinexSmartChain=hke;R.CoinexSmartChainTestnet=fke;R.ColumbusTestNetwork=qSe;R.CondorTestNetwork=hOe;R.Condrieu=_De;R.ConfluxEspace=s7e;R.ConfluxEspaceTestnet=Rke;R.ConstaTestnet=SSe;R.CoreBlockchain=m7e;R.CoreBlockchainTestnet=f7e;R.CreditSmartchain=VNe;R.CronosBeta=UIe;R.CronosTestnet=TSe;R.Crossbell=D9e;R.CryptoEmergency=zAe;R.Cryptocoinpay=SNe;R.CryptokylinTestnet=Xke;R.Crystaleum=eOe;R.CtexScanBlockchain=Q7e;R.CubeChain=pRe;R.CubeChainTestnet=hRe;R.Cyberdecknet=aqe;R.DChain=wRe;R.DarwiniaCrabNetwork=ske;R.DarwiniaNetwork=cke;R.DarwiniaPangolinTestnet=ike;R.DarwiniaPangoroTestnet=oke;R.Datahopper=wqe;R.DaxChain=PAe;R.DbchainTestnet=kke;R.Debank=mAe;R.DebankTestnet=fAe;R.DebounceSubnetTestnet=T9e;R.DecentralizedWeb=xAe;R.DecimalSmartChain=Dke;R.DecimalSmartChainTestnet=wOe;R.DefichainEvmNetwork=g7e;R.DefichainEvmNetworkTestnet=b7e;R.Dehvo=pAe;R.DexalotSubnet=zOe;R.DexalotSubnetTestnet=jOe;R.DexitNetwork=kPe;R.DfkChain=aDe;R.DfkChainTest=_Se;R.DiodePrenet=RIe;R.DiodeTestnetStaging=SIe;R.DithereumTestnet=JIe;R.Dogcoin=y7e;R.DogcoinTestnet=hNe;R.Dogechain=ARe;R.DogechainTestnet=$Se;R.DokenSuperChain=mDe;R.DosFujiSubnet=U7e;R.DoubleAChain=FSe;R.DoubleAChainTestnet=WSe;R.DracNetwork=O9e;R.DraconesFinancialServices=zMe;R.Dxchain=ZIe;R.DxchainTestnet=Mke;R.Dyno=L9e;R.DynoTestnet=q9e;R.Ecoball=KRe;R.EcoballTestnetEspuma=GRe;R.Ecredits=bDe;R.EcreditsTestnet=vDe;R.EdexaTestnet=kRe;R.EdgewareEdgeevm=LRe;R.Ekta=IRe;R.ElaDidSidechain=qIe;R.ElaDidSidechainTestnet=FIe;R.ElastosSmartChain=OIe;R.ElastosSmartChainTestnet=LIe;R.Eleanor=_Re;R.EllaTheHeart=CMe;R.Ellaism=Eke;R.EluvioContentFabric=lLe;R.Elysium=G7e;R.ElysiumTestnet=K7e;R.EmpireNetwork=B9e;R.EnduranceSmartChain=nPe;R.Energi=LBe;R.EnergiTestnet=eDe;R.EnergyWebChain=tSe;R.EnergyWebVoltaTestnet=SDe;R.EnnothemProterozoic=uke;R.EnnothemTestnetPioneer=lke;R.Enterchain=k7e;R.Enuls=gAe;R.EnulsTestnet=bAe;R.Eos=vke;R.Eraswap=iMe;R.Ethereum=XJ;R.EthereumClassic=_ke;R.EthereumClassicTestnetKotti=TIe;R.EthereumClassicTestnetMorden=xke;R.EthereumClassicTestnetMordor=Tke;R.EthereumFair=$Oe;R.Ethergem=CRe;R.Etherinc=nAe;R.EtherliteChain=dAe;R.EthersocialNetwork=CBe;R.EthoProtocol=dLe;R.Etica=fDe;R.EtndChainS=pOe;R.EuropaSkaleChain=_qe;R.Eurus=XPe;R.EurusTestnet=ERe;R.Evanesco=e9e;R.EvanescoTestnet=E7e;R.Evmos=lNe;R.EvmosTestnet=uNe;R.EvriceNetwork=e7e;R.Excelon=OLe;R.ExcoincialChain=qLe;R.ExcoincialChainVoltaTestnet=LLe;R.ExosamaNetwork=VRe;R.ExpanseNetwork=wIe;R.ExzoNetwork=A7e;R.EzchainCChain=f9e;R.EzchainCChainTestnet=m9e;R.FXCoreNetwork=zSe;R.Factory127=CAe;R.FantasiaChain=CPe;R.Fantom=iQ;R.FantomTestnet=oQ;R.FastexChainTestnet=HOe;R.Fibonacci=HNe;R.Filecoin=ySe;R.FilecoinButterflyTestnet=bLe;R.FilecoinCalibrationTestnet=ROe;R.FilecoinHyperspaceTestnet=x9e;R.FilecoinLocalTestnet=ULe;R.FilecoinWallabyTestnet=SBe;R.Findora=JRe;R.FindoraForge=ZRe;R.FindoraTestnet=QRe;R.Firechain=jSe;R.FirenzeTestNetwork=NDe;R.Flachain=WLe;R.Flare=PIe;R.FlareTestnetCoston=MIe;R.FlareTestnetCoston2=hAe;R.Floripa=ZBe;R.Fncy=Nke;R.FncyTestnet=uLe;R.FreightTrustNetwork=JAe;R.Frenchain=VBe;R.FrenchainTestnet=DSe;R.FrontierOfDreamsTestnet=nBe;R.Fuse=wAe;R.FuseSparknet=_Ae;R.Fusion=RBe;R.FusionTestnet=JBe;R.Ganache=hMe;R.GarizonStage0=Yke;R.GarizonStage1=Jke;R.GarizonStage2=Qke;R.GarizonStage3=Zke;R.GarizonTestnetStage0=PPe;R.GarizonTestnetStage1=RPe;R.GarizonTestnetStage2=MPe;R.GarizonTestnetStage3=NPe;R.Gatechain=Kke;R.GatechainTestnet=zke;R.GatherDevnetNetwork=tqe;R.GatherNetwork=$Le;R.GatherTestnetNetwork=eqe;R.GearZeroNetwork=USe;R.GearZeroNetworkTestnet=SOe;R.Genechain=Wke;R.GenesisCoin=pNe;R.GenesisL1=KIe;R.GenesisL1Testnet=HIe;R.GiantMammoth=oNe;R.GitshockCartenzTestnet=mRe;R.Gnosis=rAe;R.Gochain=wke;R.GochainTestnet=ABe;R.Godwoken=ADe;R.GodwokenTestnetV1=kDe;R.Goerli=eQ;R.GoldSmartChain=wMe;R.GoldSmartChainTestnet=BDe;R.GonChain=xNe;R.Gooddata=YIe;R.GooddataTestnet=$Ie;R.GraphlinqBlockchain=tPe;R.Gton=YPe;R.GtonTestnet=rDe;R.Haic=bPe;R.Halo=B7e;R.HammerChain=vBe;R.Hapchain=ILe;R.HapchainTestnet=DOe;R.HaqqChainTestnet=iDe;R.HaqqNetwork=ONe;R.HaradevTestnet=kqe;R.HarmonyDevnetShard0=vqe;R.HarmonyShard0=dqe;R.HarmonyShard1=pqe;R.HarmonyShard2=hqe;R.HarmonyShard3=fqe;R.HarmonyTestnetShard0=mqe;R.HarmonyTestnetShard1=yqe;R.HarmonyTestnetShard2=gqe;R.HarmonyTestnetShard3=bqe;R.Hashbit=DNe;R.HaymoTestnet=EOe;R.HazlorTestnet=RMe;R.Hedera=uSe;R.HederaLocalnet=pSe;R.HederaPreviewnet=dSe;R.HederaTestnet=lSe;R.HertzNetwork=_Be;R.HighPerformanceBlockchain=sSe;R.HikaNetworkTestnet=pMe;R.HomeVerse=iBe;R.HooSmartChain=Pke;R.HooSmartChainTestnet=qAe;R.HorizenYumaTestnet=aRe;R.Htmlcoin=Y9e;R.HumanProtocol=iqe;R.Humanode=sMe;R.HuobiEcoChain=IAe;R.HuobiEcoChainTestnet=nSe;R.HyperonchainTestnet=RSe;R.Idchain=Bke;R.IexecSidechain=kAe;R.Imversed=vLe;R.ImversedTestnet=wLe;R.Iolite=NLe;R.IoraChain=T7e;R.IotexNetwork=J9e;R.IotexNetworkTestnet=Q9e;R.IposNetwork=nqe;R.IvarChain=LDe;R.IvarChainTestnet=rBe;R.J2oTaro=BBe;R.Jellie=_Oe;R.JfinChain=S9e;R.JibchainL1=sNe;R.JoysDigital=HLe;R.JoysDigitalTestnet=VLe;R.KaibaLightningChainTestnet=iAe;R.Kardiachain=WIe;R.KaruraNetwork=iPe;R.KaruraNetworkTestnet=QSe;R.KavaEvm=r9e;R.KavaEvmTestnet=t9e;R.Kcc=gSe;R.KccTestnet=bSe;R.Kekchain=FOe;R.KekchainKektest=WOe;R.Kerleano=lRe;R.Kiln=fLe;R.Kintsugi=hLe;R.KlaytnCypress=UMe;R.KlaytnTestnetBaobab=JPe;R.Klyntar=kMe;R.Kortho=l9e;R.Korthotest=jMe;R.Kovan=ake;R.LaTestnet=NSe;R.Lachain=XAe;R.LachainTestnet=eSe;R.LambdaTestnet=FDe;R.LatamBlockchainResilTestnet=FAe;R.Lightstreams=DAe;R.LightstreamsTestnet=BAe;R.Lisinski=PSe;R.LiveplexOracleevm=tDe;R.Localhost=hQ;R.Loopnetwork=QNe;R.LucidBlockchain=gPe;R.LuckyNetwork=VPe;R.Ludan=iRe;R.LycanChain=uPe;R.Maistestsubnet=jLe;R.Mammoth=iNe;R.Mantle=rMe;R.MantleTestnet=nMe;R.Map=hBe;R.MapMakalu=QAe;R.MaroBlockchain=ZMe;R.Mas=TOe;R.Mathchain=w7e;R.MathchainTestnet=_7e;R.MdglTestnet=BMe;R.MemoSmartChain=KPe;R.MeshnyanTestnet=ePe;R.Metacodechain=M9e;R.Metadium=kIe;R.MetadiumTestnet=AIe;R.Metadot=XNe;R.MetadotTestnet=eBe;R.MetalCChain=OOe;R.MetalTahoeCChain=LOe;R.Metaplayerone=$Re;R.Meter=Hke;R.MeterTestnet=jke;R.MetisAndromeda=l7e;R.MetisGoerliTestnet=XSe;R.MilkomedaA1=PRe;R.MilkomedaA1Testnet=mOe;R.MilkomedaC1=SRe;R.MilkomedaC1Testnet=fOe;R.MintmeComCoin=bBe;R.Mix=Oke;R.MixinVirtualMachine=PDe;R.Moac=d7e;R.MoacTestnet=YAe;R.MolereumNetwork=Pqe;R.MoonbaseAlpha=L7e;R.Moonbeam=D7e;R.Moonriver=O7e;R.Moonrock=q7e;R.Multivac=gDe;R.Mumbai=dQ;R.MunodeTestnet=FPe;R.Musicoin=ELe;R.MyownTestnet=vNe;R.MythicalChain=vOe;R.Nahmii=cMe;R.Nahmii3=U9e;R.Nahmii3Testnet=H9e;R.NahmiiTestnet=uMe;R.Nebula=uqe;R.NebulaStaging=rqe;R.NebulaTestnet=cAe;R.NeonEvm=JLe;R.NeonEvmDevnet=YLe;R.NeonEvmTestnet=QLe;R.NepalBlockchainNetwork=jPe;R.Newton=t7e;R.NewtonTestnet=ZPe;R.NovaNetwork=Gke;R.Ntity=Iqe;R.Numbers=kNe;R.NumbersTestnet=ANe;R.OasisEmerald=zBe;R.OasisEmeraldTestnet=jBe;R.OasisSapphire=mBe;R.OasisSapphireTestnet=yBe;R.Oasischain=xBe;R.Oasys=rSe;R.Octaspace=rLe;R.Oho=qBe;R.Okbchain=GAe;R.OkbchainTestnet=KAe;R.OkexchainTestnet=Cke;R.Okxchain=Ike;R.OmPlatform=M7e;R.Omax=mSe;R.Omchain=lBe;R.Oneledger=ZLe;R.OneledgerTestnetFrankenstein=Tqe;R.Ontology=bke;R.OntologyTestnet=fMe;R.OnusChain=TRe;R.OnusChainTestnet=vRe;R.OoneChainTestnet=MOe;R.Oort=WPe;R.OortAscraeus=HPe;R.OortDev=yNe;R.OortHuygens=UPe;R.OpalTestnetByUnique=tNe;R.Openchain=GOe;R.OpenchainTestnet=hPe;R.Openpiece=mke;R.OpenpieceTestnet=SAe;R.Openvessel=xLe;R.OpsideTestnet=fBe;R.Optimism=tQ;R.OptimismBedrockGoerliAlphaTestnet=TBe;R.OptimismGoerli=sQ;R.OptimismKovan=Ske;R.OptimismOnGnosis=hSe;R.OpulentXBeta=FBe;R.OrigintrailParachain=URe;R.OrlandoChain=w9e;R.Oychain=EAe;R.OychainTestnet=TAe;R.P12Chain=cBe;R.PaletteChain=uRe;R.Palm=Cqe;R.PalmTestnet=Eqe;R.Pandoproject=P9e;R.PandoprojectTestnet=R9e;R.ParibuNet=k9e;R.ParibuNetTestnet=A9e;R.Pdc=Sqe;R.Pegglecoin=WBe;R.PepchainChurchill=PLe;R.PhiNetworkV1=V9e;R.PhiNetworkV2=RAe;R.Phoenix=$Ne;R.PieceTestnet=EBe;R.Pirl=xqe;R.PixieChain=vMe;R.PixieChainTestnet=aPe;R.Planq=IMe;R.Platon=xOe;R.PlatonDevTestnet2=gLe;R.PlianMain=yLe;R.PlianSubchain1=CLe;R.PlianTestnetMain=MLe;R.PlianTestnetSubchain1=kLe;R.PoaNetworkCore=tAe;R.PoaNetworkSokol=Lke;R.Pocrnet=p9e;R.Polis=BOe;R.PolisTestnet=NOe;R.Polygon=aQ;R.PolygonZkevmTestnet=J7e;R.PolyjuiceTestnet=IDe;R.Polysmartchain=xMe;R.Popcateum=I7e;R.PortalFantasyChain=BPe;R.PortalFantasyChainTest=vPe;R.PosichainDevnetShard0=oLe;R.PosichainDevnetShard1=cLe;R.PosichainShard0=iLe;R.PosichainTestnetShard0=sLe;R.Primuschain=qke;R.ProofOfMemes=aBe;R.ProtonTestnet=lAe;R.ProxyNetworkTestnet=o7e;R.Publicmint=ORe;R.PublicmintDevnet=BRe;R.PublicmintTestnet=DRe;R.Pulsechain=ASe;R.PulsechainTestnet=OPe;R.PulsechainTestnetV2b=LPe;R.PulsechainTestnetV3=qPe;R.Q=DBe;R.QTestnet=OBe;R.Qeasyweb3Testnet=mNe;R.Qitmeer=wPe;R.QitmeerNetworkTestnet=FMe;R.Ql1=pPe;R.Ql1Testnet=TLe;R.QuadransBlockchain=PNe;R.QuadransBlockchainTestnet=RNe;R.Quarkblockchain=DLe;R.QuarkchainDevnetRoot=rOe;R.QuarkchainDevnetShard0=nOe;R.QuarkchainDevnetShard1=aOe;R.QuarkchainDevnetShard2=iOe;R.QuarkchainDevnetShard3=sOe;R.QuarkchainDevnetShard4=oOe;R.QuarkchainDevnetShard5=cOe;R.QuarkchainDevnetShard6=uOe;R.QuarkchainDevnetShard7=lOe;R.QuarkchainRoot=HDe;R.QuarkchainShard0=jDe;R.QuarkchainShard1=zDe;R.QuarkchainShard2=KDe;R.QuarkchainShard3=GDe;R.QuarkchainShard4=VDe;R.QuarkchainShard5=$De;R.QuarkchainShard6=YDe;R.QuarkchainShard7=JDe;R.QuartzByUnique=eNe;R.Quokkacoin=zRe;R.RabbitAnalogTestnetChain=dRe;R.RangersProtocol=WRe;R.RangersProtocolTestnetRobin=fNe;R.Realchain=vAe;R.RedlightChain=h9e;R.ReiChain=sDe;R.ReiChainTestnet=oDe;R.ReiNetwork=QBe;R.Resincoin=RDe;R.RikezaNetwork=Y7e;R.RikezaNetworkTestnet=KNe;R.RiniaTestnet=DPe;R.Rinkeby=xIe;R.RiseOfTheWarbotsTestnet=PMe;R.Ropsten=_Ie;R.Rsk=GIe;R.RskTestnet=VIe;R.Rupaya=OSe;R.Saakuru=_Le;R.SaakuruTestnet=kOe;R.Sakura=r7e;R.SanrChain=FNe;R.SapphireByUnique=rNe;R.Sardis=nDe;R.SardisTestnet=qNe;R.Scolcoin=wDe;R.ScolcoinWeichainTestnet=bMe;R.Scroll=YOe;R.ScrollAlphaTestnet=JOe;R.ScrollPreAlphaTestnet=QOe;R.SeedcoinNetwork=XIe;R.Seele=UAe;R.Sepolia=SLe;R.Setheum=aSe;R.ShardeumLiberty1X=DMe;R.ShardeumLiberty2X=OMe;R.ShardeumSphinx1X=LMe;R.Sherpax=Z7e;R.SherpaxTestnet=X7e;R.Shibachain=jIe;R.Shiden=xSe;R.Shyft=AMe;R.ShyftTestnet=LNe;R.SiberiumNetwork=dOe;R.SingularityZero=UNe;R.SingularityZeroTestnet=WNe;R.SiriusnetV2=ZAe;R.Sjatsh=TNe;R.SmartBitcoinCash=wNe;R.SmartBitcoinCashTestnet=_Ne;R.SmartHostTeknolojiTestnet=x7e;R.Smartmesh=BLe;R.SocialSmartChain=POe;R.SongbirdCanaryNetwork=DIe;R.Soterone=Ake;R.Soverun=ALe;R.SoverunTestnet=XDe;R.Sps=GNe;R.SpsTestnet=JNe;R.StarSocialTestnet=sPe;R.StepNetwork=R7e;R.StepTestnet=zNe;R.Stratos=jRe;R.StratosTestnet=HRe;R.StreamuxBlockchain=qMe;R.SurBlockchainNetwork=iSe;R.Susono=YNe;R.SxNetwork=MSe;R.SxNetworkTestnet=rPe;R.Syscoin=gke;R.SyscoinRolluxTestnet=uDe;R.SyscoinTanenbaumTestnet=dMe;R.TEkta=QPe;R.TaoNetwork=VSe;R.Taraxa=xPe;R.TaraxaTestnet=TPe;R.Taycan=dBe;R.TaycanTestnet=FRe;R.Tbsi=oRe;R.TbsiTestnet=cRe;R.TbwgChain=QIe;R.TcgVerse=c9e;R.Techpay=d9e;R.Teleport=MMe;R.TeleportTestnet=NMe;R.TelosEvm=rke;R.TelosEvmTestnet=nke;R.Teslafunds=fRe;R.Thaichain=EIe;R.Thaichain20Thaifi=NIe;R.Theta=ESe;R.ThetaAmberTestnet=ISe;R.ThetaSapphireTestnet=CSe;R.ThetaTestnet=kSe;R.ThinkiumChain0=xDe;R.ThinkiumChain1=TDe;R.ThinkiumChain103=CDe;R.ThinkiumChain2=EDe;R.ThinkiumTestnetChain0=lDe;R.ThinkiumTestnetChain1=dDe;R.ThinkiumTestnetChain103=hDe;R.ThinkiumTestnetChain2=pDe;R.Thundercore=uAe;R.ThundercoreTestnet=BIe;R.Tipboxcoin=qOe;R.TipboxcoinTestnet=G9e;R.TlchainNetwork=aMe;R.TmyChain=QMe;R.TokiNetwork=GMe;R.TokiTestnet=VMe;R.TombChain=_Me;R.Tomochain=Vke;R.TomochainTestnet=$ke;R.ToolGlobal=$Me;R.ToolGlobalTestnet=YMe;R.Top=GPe;R.TopEvm=zPe;R.Tres=gMe;R.TresTestnet=yMe;R.TrustEvmTestnet=ZNe;R.UbSmartChain=UDe;R.UbSmartChainTestnet=WDe;R.Ubiq=CIe;R.UbiqNetworkTestnet=IIe;R.Ultron=P7e;R.UltronTestnet=S7e;R.UnicornUltraTestnet=tke;R.Unique=XMe;R.UzmiNetwork=oMe;R.Valorbit=eke;R.Vchain=n9e;R.Vechain=QDe;R.VechainTestnet=ZDe;R.Vela1Chain=GSe;R.VelasEvm=oAe;R.Venidium=eMe;R.VenidiumTestnet=X9e;R.VentionSmartChain=MDe;R.VentionSmartChainTestnet=dPe;R.Vision=aLe;R.VisionVpioneerTestChain=eLe;R.VyvoSmartChain=aNe;R.Wagmi=NNe;R.Wanchain=SPe;R.WanchainTestnet=$Pe;R.Web3gamesDevnet=sAe;R.Web3gamesTestnet=aAe;R.Web3q=wSe;R.Web3qGalileo=I9e;R.Web3qTestnet=C9e;R.Webchain=gBe;R.WeelinkTestnet=KOe;R.WegochainRubidium=mMe;R.Wemix30=p7e;R.Wemix30Testnet=h7e;R.WorldTradeTechnicalChain=C7e;R.Xanachain=nNe;R.XdcApothemNetwork=pke;R.Xerom=pLe;R.XinfinXdcNetwork=dke;R.Xodex=u9e;R.XtSmartChain=HSe;R.Yuanchain=F9e;R.ZMainnet=NRe;R.ZTestnet=bNe;R.ZcoreTestnet=E9e;R.ZeethChain=BSe;R.ZeethChainDev=EPe;R.Zeniq=Aqe;R.Zenith=Fke;R.ZenithTestnetVilnius=Uke;R.Zetachain=TMe;R.ZetachainAthensTestnet=EMe;R.Zhejiang=mLe;R.ZilliqaEvmTestnet=MBe;R.ZksyncEra=vSe;R.ZksyncEraTestnet=oSe;R.Zyx=yke;R._0xtade=INe;R._4goodnetwork=nLe;R.allChains=fQ;R.configureChain=mfr;R.defaultChains=yfr;R.getChainByChainId=gfr;R.getChainBySlug=bfr;R.getChainRPC=hfr;R.getChainRPCs=vIe;R.minimizeChain=ffr});var zZe=x(M=>{"use strict";d();p();Object.defineProperty(M,"__esModule",{value:!0});var vfr={name:"Ethereum Mainnet",chain:"ETH",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://ethereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://mainnet.infura.io/v3/${INFURA_API_KEY}","wss://mainnet.infura.io/ws/v3/${INFURA_API_KEY}","https://api.mycryptoapi.com/eth","https://cloudflare-eth.com","https://ethereum.publicnode.com"],features:[{name:"EIP1559"},{name:"EIP155"}],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://ethereum.org",shortName:"eth",chainId:1,networkId:1,slip44:60,ens:{registry:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},explorers:[{name:"etherscan",url:"https://etherscan.io",standard:"EIP3091"}],testnet:!1,slug:"ethereum"},wfr={name:"Expanse Network",chain:"EXP",rpc:["https://expanse-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.expanse.tech"],faucets:[],nativeCurrency:{name:"Expanse Network Ether",symbol:"EXP",decimals:18},infoURL:"https://expanse.tech",shortName:"exp",chainId:2,networkId:1,slip44:40,testnet:!1,slug:"expanse-network"},_fr={name:"Ropsten",title:"Ethereum Testnet Ropsten",chain:"ETH",rpc:["https://ropsten.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ropsten.infura.io/v3/${INFURA_API_KEY}","wss://ropsten.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=3&address=${ADDRESS}","https://faucet.ropsten.be?${ADDRESS}"],nativeCurrency:{name:"Ropsten Ether",symbol:"ETH",decimals:18},infoURL:"https://github.com/ethereum/ropsten",shortName:"rop",chainId:3,networkId:3,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan",url:"https://ropsten.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"ropsten"},xfr={name:"Rinkeby",title:"Ethereum Testnet Rinkeby",chain:"ETH",rpc:["https://rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.infura.io/v3/${INFURA_API_KEY}","wss://rinkeby.infura.io/ws/v3/${INFURA_API_KEY}"],faucets:["http://fauceth.komputing.org?chain=4&address=${ADDRESS}","https://faucet.rinkeby.io"],nativeCurrency:{name:"Rinkeby Ether",symbol:"ETH",decimals:18},infoURL:"https://www.rinkeby.io",shortName:"rin",chainId:4,networkId:4,ens:{registry:"0xe7410170f87102df0055eb195163a03b7f2bff4a"},explorers:[{name:"etherscan-rinkeby",url:"https://rinkeby.etherscan.io",standard:"EIP3091"}],testnet:!0,slug:"rinkeby"},Tfr={name:"Goerli",title:"Ethereum Testnet Goerli",chain:"ETH",rpc:["https://goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://goerli.infura.io/v3/${INFURA_API_KEY}","wss://goerli.infura.io/v3/${INFURA_API_KEY}","https://rpc.goerli.mudit.blog/"],faucets:["https://faucet.paradigm.xyz/","http://fauceth.komputing.org?chain=5&address=${ADDRESS}","https://goerli-faucet.slock.it?address=${ADDRESS}","https://faucet.goerli.mudit.blog"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://goerli.net/#about",shortName:"gor",chainId:5,networkId:5,ens:{registry:"0x112234455c3a32fd11230c42e7bccd4a84e02010"},explorers:[{name:"etherscan-goerli",url:"https://goerli.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"goerli"},Efr={name:"Ethereum Classic Testnet Kotti",chain:"ETC",rpc:["https://ethereum-classic-testnet-kotti.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/kotti"],faucets:[],nativeCurrency:{name:"Kotti Ether",symbol:"KOT",decimals:18},infoURL:"https://explorer.jade.builders/?network=kotti",shortName:"kot",chainId:6,networkId:6,testnet:!0,slug:"ethereum-classic-testnet-kotti"},Cfr={name:"ThaiChain",chain:"TCH",rpc:["https://thaichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dome.cloud","https://rpc.thaichain.org"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"ThaiChain Ether",symbol:"TCH",decimals:18},infoURL:"https://thaichain.io",shortName:"tch",chainId:7,networkId:7,explorers:[{name:"Thaichain Explorer",url:"https://exp.thaichain.org",standard:"EIP3091"}],testnet:!1,slug:"thaichain"},Ifr={name:"Ubiq",chain:"UBQ",rpc:["https://ubiq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octano.dev","https://pyrus2.ubiqscan.io"],faucets:[],nativeCurrency:{name:"Ubiq Ether",symbol:"UBQ",decimals:18},infoURL:"https://ubiqsmart.com",shortName:"ubq",chainId:8,networkId:8,slip44:108,explorers:[{name:"ubiqscan",url:"https://ubiqscan.io",standard:"EIP3091"}],testnet:!1,slug:"ubiq"},kfr={name:"Ubiq Network Testnet",chain:"UBQ",rpc:[],faucets:[],nativeCurrency:{name:"Ubiq Testnet Ether",symbol:"TUBQ",decimals:18},infoURL:"https://ethersocial.org",shortName:"tubq",chainId:9,networkId:2,testnet:!0,slug:"ubiq-network-testnet"},Afr={name:"Optimism",chain:"ETH",rpc:["https://optimism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-mainnet.infura.io/v3/${INFURA_API_KEY}","https://mainnet.optimism.io/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"oeth",chainId:10,networkId:10,explorers:[{name:"etherscan",url:"https://optimistic.etherscan.io",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"optimism"},Sfr={name:"Metadium Mainnet",chain:"META",rpc:["https://metadium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/prod"],faucets:[],nativeCurrency:{name:"Metadium Mainnet Ether",symbol:"META",decimals:18},infoURL:"https://metadium.com",shortName:"meta",chainId:11,networkId:11,slip44:916,testnet:!1,slug:"metadium"},Pfr={name:"Metadium Testnet",chain:"META",rpc:["https://metadium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metadium.com/dev"],faucets:[],nativeCurrency:{name:"Metadium Testnet Ether",symbol:"KAL",decimals:18},infoURL:"https://metadium.com",shortName:"kal",chainId:12,networkId:12,testnet:!0,slug:"metadium-testnet"},Rfr={name:"Diode Testnet Staging",chain:"DIODE",rpc:["https://diode-testnet-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging.diode.io:8443/","wss://staging.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Staging Diodes",symbol:"sDIODE",decimals:18},infoURL:"https://diode.io/staging",shortName:"dstg",chainId:13,networkId:13,testnet:!0,slug:"diode-testnet-staging"},Mfr={name:"Flare Mainnet",chain:"FLR",icon:{url:"ipfs://QmevAevHxRkK2zVct2Eu6Y7s38YC4SmiAiw9X7473pVtmL",width:382,height:382,format:"png"},rpc:["https://flare.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flare-api.flare.network/ext/C/rpc"],faucets:[],nativeCurrency:{name:"Flare",symbol:"FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"flr",chainId:14,networkId:14,explorers:[{name:"blockscout",url:"https://flare-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"flare"},Nfr={name:"Diode Prenet",chain:"DIODE",rpc:["https://diode-prenet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prenet.diode.io:8443/","wss://prenet.diode.io:8443/ws"],faucets:[],nativeCurrency:{name:"Diodes",symbol:"DIODE",decimals:18},infoURL:"https://diode.io/prenet",shortName:"diode",chainId:15,networkId:15,testnet:!1,slug:"diode-prenet"},Bfr={name:"Flare Testnet Coston",chain:"FLR",icon:{url:"ipfs://QmW7Ljv2eLQ1poRrhJBaVWJBF1TyfZ8QYxDeELRo6sssrj",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston-api.flare.network/ext/bc/C/rpc"],faucets:["https://faucet.towolabs.com","https://fauceth.komputing.org?chain=16&address=${ADDRESS}"],nativeCurrency:{name:"Coston Flare",symbol:"CFLR",decimals:18},infoURL:"https://flare.xyz",shortName:"cflr",chainId:16,networkId:16,explorers:[{name:"blockscout",url:"https://coston-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston"},Dfr={name:"ThaiChain 2.0 ThaiFi",chain:"TCH",rpc:["https://thaichain-2-0-thaifi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.thaifi.com"],faucets:[],nativeCurrency:{name:"Thaifi Ether",symbol:"TFI",decimals:18},infoURL:"https://exp.thaifi.com",shortName:"tfi",chainId:17,networkId:17,testnet:!1,slug:"thaichain-2-0-thaifi"},Ofr={name:"ThunderCore Testnet",chain:"TST",rpc:["https://thundercore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.thundercore.com"],faucets:["https://faucet-testnet.thundercore.com"],nativeCurrency:{name:"ThunderCore Testnet Token",symbol:"TST",decimals:18},infoURL:"https://thundercore.com",shortName:"TST",chainId:18,networkId:18,explorers:[{name:"thundercore-blockscout-testnet",url:"https://explorer-testnet.thundercore.com",standard:"EIP3091"}],testnet:!0,slug:"thundercore-testnet"},Lfr={name:"Songbird Canary-Network",chain:"SGB",icon:{url:"ipfs://QmXyvnrZY8FUxSULfnKKA99sAEkjAHtvhRx5WeHixgaEdu",width:382,height:382,format:"png"},rpc:["https://songbird-canary-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://songbird-api.flare.network/ext/C/rpc","https://sgb.ftso.com.au/ext/bc/C/rpc","https://sgb.lightft.so/rpc","https://sgb-rpc.ftso.eu"],faucets:[],nativeCurrency:{name:"Songbird",symbol:"SGB",decimals:18},infoURL:"https://flare.xyz",shortName:"sgb",chainId:19,networkId:19,explorers:[{name:"blockscout",url:"https://songbird-explorer.flare.network",standard:"EIP3091"}],testnet:!1,slug:"songbird-canary-network"},qfr={name:"Elastos Smart Chain",chain:"ETH",rpc:["https://elastos-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.elastos.io/eth"],faucets:["https://faucet.elastos.org/"],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esc",chainId:20,networkId:20,explorers:[{name:"elastos esc explorer",url:"https://esc.elastos.io",standard:"EIP3091"}],testnet:!1,slug:"elastos-smart-chain"},Ffr={name:"Elastos Smart Chain Testnet",chain:"ETH",rpc:["https://elastos-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-testnet.elastos.io/eth"],faucets:["https://esc-faucet.elastos.io/"],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"esct",chainId:21,networkId:21,explorers:[{name:"elastos esc explorer",url:"https://esc-testnet.elastos.io",standard:"EIP3091"}],testnet:!0,slug:"elastos-smart-chain-testnet"},Wfr={name:"ELA-DID-Sidechain Mainnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"ELA",decimals:18},infoURL:"https://www.elastos.org/",shortName:"eladid",chainId:22,networkId:22,testnet:!1,slug:"ela-did-sidechain"},Ufr={name:"ELA-DID-Sidechain Testnet",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Elastos",symbol:"tELA",decimals:18},infoURL:"https://elaeth.io/",shortName:"eladidt",chainId:23,networkId:23,testnet:!0,slug:"ela-did-sidechain-testnet"},Hfr={name:"KardiaChain Mainnet",chain:"KAI",icon:{url:"ipfs://QmXoHaZXJevc59GuzEgBhwRSH6kio1agMRvL8bD93pARRV",format:"png",width:297,height:297},rpc:["https://kardiachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kardiachain.io"],faucets:[],nativeCurrency:{name:"KardiaChain",symbol:"KAI",decimals:18},infoURL:"https://kardiachain.io",shortName:"kardiachain",chainId:24,networkId:0,redFlags:["reusedChainId"],testnet:!1,slug:"kardiachain"},jfr={name:"Cronos Mainnet Beta",chain:"CRO",rpc:["https://cronos-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cronos.org","https://cronos-evm.publicnode.com"],features:[{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Cronos",symbol:"CRO",decimals:18},infoURL:"https://cronos.org/",shortName:"cro",chainId:25,networkId:25,explorers:[{name:"Cronos Explorer",url:"https://cronoscan.com",standard:"none"}],testnet:!1,slug:"cronos-beta"},zfr={name:"Genesis L1 testnet",chain:"genesis",rpc:["https://genesis-l1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 testcoin",symbol:"L1test",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1test",chainId:26,networkId:26,explorers:[{name:"Genesis L1 testnet explorer",url:"https://testnet.genesisl1.org",standard:"none"}],testnet:!0,slug:"genesis-l1-testnet"},Kfr={name:"ShibaChain",chain:"SHIB",rpc:["https://shibachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shibachain.net"],faucets:[],nativeCurrency:{name:"SHIBA INU COIN",symbol:"SHIB",decimals:18},infoURL:"https://www.shibachain.net",shortName:"shib",chainId:27,networkId:27,explorers:[{name:"Shiba Explorer",url:"https://exp.shibachain.net",standard:"none"}],testnet:!1,slug:"shibachain"},Gfr={name:"Boba Network Rinkeby Testnet",chain:"ETH",rpc:["https://boba-network-rinkeby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"BobaRinkeby",chainId:28,networkId:28,explorers:[{name:"Blockscout",url:"https://blockexplorer.rinkeby.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://gateway.rinkeby.boba.network"}]},testnet:!0,slug:"boba-network-rinkeby-testnet"},Vfr={name:"Genesis L1",chain:"genesis",rpc:["https://genesis-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genesisl1.org"],faucets:[],nativeCurrency:{name:"L1 coin",symbol:"L1",decimals:18},infoURL:"https://www.genesisl1.com",shortName:"L1",chainId:29,networkId:29,explorers:[{name:"Genesis L1 blockchain explorer",url:"https://explorer.genesisl1.org",standard:"none"}],testnet:!1,slug:"genesis-l1"},$fr={name:"RSK Mainnet",chain:"RSK",rpc:["https://rsk.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.rsk.co","https://mycrypto.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Smart Bitcoin",symbol:"RBTC",decimals:18},infoURL:"https://rsk.co",shortName:"rsk",chainId:30,networkId:30,slip44:137,explorers:[{name:"RSK Explorer",url:"https://explorer.rsk.co",standard:"EIP3091"}],testnet:!1,slug:"rsk"},Yfr={name:"RSK Testnet",chain:"RSK",rpc:["https://rsk-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-node.testnet.rsk.co","https://mycrypto.testnet.rsk.co"],faucets:["https://faucet.rsk.co/"],nativeCurrency:{name:"Testnet Smart Bitcoin",symbol:"tRBTC",decimals:18},infoURL:"https://rsk.co",shortName:"trsk",chainId:31,networkId:31,explorers:[{name:"RSK Testnet Explorer",url:"https://explorer.testnet.rsk.co",standard:"EIP3091"}],testnet:!0,slug:"rsk-testnet"},Jfr={name:"GoodData Testnet",chain:"GooD",rpc:["https://gooddata-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Testnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooDT",chainId:32,networkId:32,testnet:!0,slug:"gooddata-testnet"},Qfr={name:"GoodData Mainnet",chain:"GooD",rpc:["https://gooddata.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.goodata.io"],faucets:[],nativeCurrency:{name:"GoodData Mainnet Ether",symbol:"GooD",decimals:18},infoURL:"https://www.goodata.org",shortName:"GooD",chainId:33,networkId:33,testnet:!1,slug:"gooddata"},Zfr={name:"Dithereum Testnet",chain:"DTH",icon:{url:"ipfs://QmSHN5GtRGpMMpszSn1hF47ZSLRLqrLxWsQ48YYdJPyjLf",width:500,height:500,format:"png"},rpc:["https://dithereum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.dithereum.io"],faucets:["https://faucet.dithereum.org"],nativeCurrency:{name:"Dither",symbol:"DTH",decimals:18},infoURL:"https://dithereum.org",shortName:"dth",chainId:34,networkId:34,testnet:!0,slug:"dithereum-testnet"},Xfr={name:"TBWG Chain",chain:"TBWG",rpc:["https://tbwg-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tbwg.io"],faucets:[],nativeCurrency:{name:"TBWG Ether",symbol:"TBG",decimals:18},infoURL:"https://tbwg.io",shortName:"tbwg",chainId:35,networkId:35,testnet:!1,slug:"tbwg-chain"},emr={name:"Dxchain Mainnet",chain:"Dxchain",icon:{url:"ipfs://QmYBup5bWoBfkaHntbcgW8Ji7ncad7f53deJ4Q55z4PNQs",width:128,height:128,format:"png"},rpc:["https://dxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.dxchain.com"],faucets:[],nativeCurrency:{name:"Dxchain",symbol:"DX",decimals:18},infoURL:"https://www.dxchain.com/",shortName:"dx",chainId:36,networkId:36,explorers:[{name:"dxscan",url:"https://dxscan.io",standard:"EIP3091"}],testnet:!1,slug:"dxchain"},tmr={name:"SeedCoin-Network",chain:"SeedCoin-Network",rpc:["https://seedcoin-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.seedcoin.network"],faucets:[],nativeCurrency:{name:"SeedCoin",symbol:"SEED",decimals:18},infoURL:"https://www.seedcoin.network/",shortName:"SEED",icon:{url:"ipfs://QmSchLvCCZjBzcv5n22v1oFDAc2yHJ42NERyjZeL9hBgrh",width:64,height:64,format:"png"},chainId:37,networkId:37,testnet:!1,slug:"seedcoin-network"},rmr={name:"Valorbit",chain:"VAL",rpc:["https://valorbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.valorbit.com/v2"],faucets:[],nativeCurrency:{name:"Valorbit",symbol:"VAL",decimals:18},infoURL:"https://valorbit.com",shortName:"val",chainId:38,networkId:38,slip44:538,testnet:!1,slug:"valorbit"},nmr={name:"Unicorn Ultra Testnet",chain:"u2u",rpc:["https://unicorn-ultra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.uniultra.xyz"],faucets:["https://faucet.uniultra.xyz"],nativeCurrency:{name:"Unicorn Ultra",symbol:"U2U",decimals:18},infoURL:"https://uniultra.xyz",shortName:"u2u",chainId:39,networkId:39,icon:{url:"ipfs://QmcW64RgqQVHnNbVFyfaMNKt7dJvFqEbfEHZmeyeK8dpEa",width:512,height:512,format:"png"},explorers:[{icon:"u2u",name:"U2U Explorer",url:"https://testnet.uniultra.xyz",standard:"EIP3091"}],testnet:!0,slug:"unicorn-ultra-testnet"},amr={name:"Telos EVM Mainnet",chain:"TLOS",rpc:["https://telos-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.telos.net/evm"],faucets:[],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVM",chainId:40,networkId:40,explorers:[{name:"teloscan",url:"https://teloscan.io",standard:"EIP3091"}],testnet:!1,slug:"telos-evm"},imr={name:"Telos EVM Testnet",chain:"TLOS",rpc:["https://telos-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.telos.net/evm"],faucets:["https://app.telos.net/testnet/developers"],nativeCurrency:{name:"Telos",symbol:"TLOS",decimals:18},infoURL:"https://telos.net",shortName:"TelosEVMTestnet",chainId:41,networkId:41,testnet:!0,slug:"telos-evm-testnet"},smr={name:"Kovan",title:"Ethereum Testnet Kovan",chain:"ETH",rpc:["https://kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.poa.network","http://kovan.poa.network:8545","https://kovan.infura.io/v3/${INFURA_API_KEY}","wss://kovan.infura.io/ws/v3/${INFURA_API_KEY}","ws://kovan.poa.network:8546"],faucets:["http://fauceth.komputing.org?chain=42&address=${ADDRESS}","https://faucet.kovan.network","https://gitter.im/kovan-testnet/faucet"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan.etherscan.io",standard:"EIP3091"}],infoURL:"https://kovan-testnet.github.io/website",shortName:"kov",chainId:42,networkId:42,testnet:!0,slug:"kovan"},omr={name:"Darwinia Pangolin Testnet",chain:"pangolin",rpc:["https://darwinia-pangolin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangolin-rpc.darwinia.network"],faucets:["https://docs.crab.network/dvm/wallets/dvm-metamask#apply-for-the-test-token"],nativeCurrency:{name:"Pangolin Network Native Token",symbol:"PRING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangolin",chainId:43,networkId:43,explorers:[{name:"subscan",url:"https://pangolin.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangolin-testnet"},cmr={name:"Darwinia Crab Network",chain:"crab",rpc:["https://darwinia-crab-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://crab-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Crab Network Native Token",symbol:"CRAB",decimals:18},infoURL:"https://crab.network/",shortName:"crab",chainId:44,networkId:44,explorers:[{name:"subscan",url:"https://crab.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-crab-network"},umr={name:"Darwinia Pangoro Testnet",chain:"pangoro",rpc:["https://darwinia-pangoro-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pangoro-rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Pangoro Network Native Token",symbol:"ORING",decimals:18},infoURL:"https://darwinia.network/",shortName:"pangoro",chainId:45,networkId:45,explorers:[{name:"subscan",url:"https://pangoro.subscan.io",standard:"none"}],testnet:!0,slug:"darwinia-pangoro-testnet"},lmr={name:"Darwinia Network",chain:"darwinia",rpc:["https://darwinia-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.darwinia.network"],faucets:[],nativeCurrency:{name:"Darwinia Network Native Token",symbol:"RING",decimals:18},infoURL:"https://darwinia.network/",shortName:"darwinia",chainId:46,networkId:46,explorers:[{name:"subscan",url:"https://darwinia.subscan.io",standard:"none"}],testnet:!1,slug:"darwinia-network"},dmr={name:"Ennothem Mainnet Proterozoic",chain:"ETMP",rpc:["https://ennothem-proterozoic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmp",chainId:48,networkId:48,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmpscan",url:"https://etmscan.network",icon:"etmp",standard:"EIP3091"}],testnet:!1,slug:"ennothem-proterozoic"},pmr={name:"Ennothem Testnet Pioneer",chain:"ETMP",rpc:["https://ennothem-testnet-pioneer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.pioneer.etm.network"],faucets:[],nativeCurrency:{name:"Ennothem",symbol:"ETMP",decimals:18},infoURL:"https://etm.network",shortName:"etmpTest",chainId:49,networkId:49,icon:{url:"ipfs://QmT7DTqT1V2y42pRpt3sj9ifijfmbtkHN7D2vTfAUAS622",width:512,height:512,format:"png"},explorers:[{name:"etmp",url:"https://pioneer.etmscan.network",standard:"EIP3091"}],testnet:!0,slug:"ennothem-testnet-pioneer"},hmr={name:"XinFin XDC Network",chain:"XDC",rpc:["https://xinfin-xdc-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://erpc.xinfin.network","https://rpc.xinfin.network","https://rpc1.xinfin.network"],faucets:[],nativeCurrency:{name:"XinFin",symbol:"XDC",decimals:18},infoURL:"https://xinfin.org",shortName:"xdc",chainId:50,networkId:50,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://xdcscan.io",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://xdc.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xinfin-xdc-network"},fmr={name:"XDC Apothem Network",chain:"XDC",rpc:["https://xdc-apothem-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.apothem.network","https://erpc.apothem.network"],faucets:["https://faucet.apothem.network"],nativeCurrency:{name:"XinFin",symbol:"TXDC",decimals:18},infoURL:"https://xinfin.org",shortName:"txdc",chainId:51,networkId:51,icon:{url:"ipfs://QmeRq7pabiJE2n1xU3Y5Mb4TZSX9kQ74x7a3P2Z4PqcMRX",width:1450,height:1450,format:"png"},explorers:[{name:"xdcscan",url:"https://apothem.xinfinscan.com",icon:"blocksscan",standard:"EIP3091"},{name:"blocksscan",url:"https://apothem.blocksscan.io",icon:"blocksscan",standard:"EIP3091"}],testnet:!1,slug:"xdc-apothem-network"},mmr={name:"CoinEx Smart Chain Mainnet",chain:"CSC",rpc:["https://coinex-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coinex.net"],faucets:[],nativeCurrency:{name:"CoinEx Chain Native Token",symbol:"cet",decimals:18},infoURL:"https://www.coinex.org/",shortName:"cet",chainId:52,networkId:52,explorers:[{name:"coinexscan",url:"https://www.coinex.net",standard:"none"}],testnet:!1,slug:"coinex-smart-chain"},ymr={name:"CoinEx Smart Chain Testnet",chain:"CSC",rpc:["https://coinex-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.coinex.net/"],faucets:[],nativeCurrency:{name:"CoinEx Chain Test Native Token",symbol:"cett",decimals:18},infoURL:"https://www.coinex.org/",shortName:"tcet",chainId:53,networkId:53,explorers:[{name:"coinexscan",url:"https://testnet.coinex.net",standard:"none"}],testnet:!0,slug:"coinex-smart-chain-testnet"},gmr={name:"Openpiece Mainnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OP",chainId:54,networkId:54,explorers:[{name:"Belly Scan",url:"https://bellyscan.com",standard:"none"}],testnet:!1,slug:"openpiece"},bmr={name:"Zyx Mainnet",chain:"ZYX",rpc:["https://zyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-1.zyx.network/","https://rpc-2.zyx.network/","https://rpc-3.zyx.network/","https://rpc-4.zyx.network/","https://rpc-5.zyx.network/","https://rpc-6.zyx.network/"],faucets:[],nativeCurrency:{name:"Zyx",symbol:"ZYX",decimals:18},infoURL:"https://zyx.network/",shortName:"ZYX",chainId:55,networkId:55,explorers:[{name:"zyxscan",url:"https://zyxscan.com",standard:"none"}],testnet:!1,slug:"zyx"},vmr={name:"Binance Smart Chain Mainnet",chain:"BSC",rpc:["https://binance.rpc.thirdweb.com/${THIRDWEB_API_KEY}","wss://bsc-ws-node.nariox.org","https://bsc.publicnode.com","https://bsc-dataseed4.ninicoin.io","https://bsc-dataseed3.ninicoin.io","https://bsc-dataseed2.ninicoin.io","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed4.defibit.io","https://bsc-dataseed3.defibit.io","https://bsc-dataseed2.defibit.io","https://bsc-dataseed1.defibit.io","https://bsc-dataseed4.binance.org","https://bsc-dataseed3.binance.org","https://bsc-dataseed2.binance.org","https://bsc-dataseed1.binance.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18},infoURL:"https://www.binance.org",shortName:"bnb",chainId:56,networkId:56,slip44:714,explorers:[{name:"bscscan",url:"https://bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"binance"},wmr={name:"Syscoin Mainnet",chain:"SYS",rpc:["https://syscoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.syscoin.org","wss://rpc.syscoin.org/wss"],faucets:["https://faucet.syscoin.org"],nativeCurrency:{name:"Syscoin",symbol:"SYS",decimals:18},infoURL:"https://www.syscoin.org",shortName:"sys",chainId:57,networkId:57,explorers:[{name:"Syscoin Block Explorer",url:"https://explorer.syscoin.org",standard:"EIP3091"}],testnet:!1,slug:"syscoin"},_mr={name:"Ontology Mainnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://dappnode1.ont.io:20339","http://dappnode2.ont.io:20339","http://dappnode3.ont.io:20339","http://dappnode4.ont.io:20339","https://dappnode1.ont.io:10339","https://dappnode2.ont.io:10339","https://dappnode3.ont.io:10339","https://dappnode4.ont.io:10339"],faucets:[],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyMainnet",chainId:58,networkId:58,explorers:[{name:"explorer",url:"https://explorer.ont.io",standard:"EIP3091"}],testnet:!1,slug:"ontology"},xmr={name:"EOS Mainnet",chain:"EOS",rpc:["https://eos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://eoscommunity.org/",shortName:"EOSMainnet",chainId:59,networkId:59,explorers:[{name:"bloks",url:"https://bloks.eosargentina.io",standard:"EIP3091"}],testnet:!1,slug:"eos"},Tmr={name:"GoChain",chain:"GO",rpc:["https://gochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gochain.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"GoChain Ether",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"go",chainId:60,networkId:60,slip44:6060,explorers:[{name:"GoChain Explorer",url:"https://explorer.gochain.io",standard:"EIP3091"}],testnet:!1,slug:"gochain"},Emr={name:"Ethereum Classic Mainnet",chain:"ETC",rpc:["https://ethereum-classic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/etc"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"Ethereum Classic Ether",symbol:"ETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"etc",chainId:61,networkId:1,slip44:61,explorers:[{name:"blockscout",url:"https://blockscout.com/etc/mainnet",standard:"none"}],testnet:!1,slug:"ethereum-classic"},Cmr={name:"Ethereum Classic Testnet Morden",chain:"ETC",rpc:[],faucets:[],nativeCurrency:{name:"Ethereum Classic Testnet Ether",symbol:"TETC",decimals:18},infoURL:"https://ethereumclassic.org",shortName:"tetc",chainId:62,networkId:2,testnet:!0,slug:"ethereum-classic-testnet-morden"},Imr={name:"Ethereum Classic Testnet Mordor",chain:"ETC",rpc:["https://ethereum-classic-testnet-mordor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.ethercluster.com/mordor"],faucets:[],nativeCurrency:{name:"Mordor Classic Testnet Ether",symbol:"METC",decimals:18},infoURL:"https://github.com/eth-classic/mordor/",shortName:"metc",chainId:63,networkId:7,testnet:!0,slug:"ethereum-classic-testnet-mordor"},kmr={name:"Ellaism",chain:"ELLA",rpc:["https://ellaism.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.ellaism.org"],faucets:[],nativeCurrency:{name:"Ellaism Ether",symbol:"ELLA",decimals:18},infoURL:"https://ellaism.org",shortName:"ellaism",chainId:64,networkId:64,slip44:163,testnet:!1,slug:"ellaism"},Amr={name:"OKExChain Testnet",chain:"okexchain",rpc:["https://okexchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchaintestrpc.okex.org"],faucets:["https://www.okex.com/drawdex"],nativeCurrency:{name:"OKExChain Global Utility Token in testnet",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okexchain",shortName:"tokt",chainId:65,networkId:65,explorers:[{name:"OKLink",url:"https://www.oklink.com/okexchain-test",standard:"EIP3091"}],testnet:!0,slug:"okexchain-testnet"},Smr={name:"OKXChain Mainnet",chain:"okxchain",rpc:["https://okxchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://exchainrpc.okex.org","https://okc-mainnet.gateway.pokt.network/v1/lb/6275309bea1b320039c893ff"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/?"],nativeCurrency:{name:"OKXChain Global Utility Token",symbol:"OKT",decimals:18},infoURL:"https://www.okex.com/okc",shortName:"okt",chainId:66,networkId:66,explorers:[{name:"OKLink",url:"https://www.oklink.com/en/okc",standard:"EIP3091"}],testnet:!1,slug:"okxchain"},Pmr={name:"DBChain Testnet",chain:"DBM",rpc:["https://dbchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://test-rpc.dbmbp.com"],faucets:[],nativeCurrency:{name:"DBChain Testnet",symbol:"DBM",decimals:18},infoURL:"http://test.dbmbp.com",shortName:"dbm",chainId:67,networkId:67,testnet:!0,slug:"dbchain-testnet"},Rmr={name:"SoterOne Mainnet",chain:"SOTER",rpc:["https://soterone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.soter.one"],faucets:[],nativeCurrency:{name:"SoterOne Mainnet Ether",symbol:"SOTER",decimals:18},infoURL:"https://www.soterone.com",shortName:"SO1",chainId:68,networkId:68,testnet:!1,slug:"soterone"},Mmr={name:"Optimism Kovan",title:"Optimism Testnet Kovan",chain:"ETH",rpc:["https://optimism-kovan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kovan.optimism.io/"],faucets:["http://fauceth.komputing.org?chain=69&address=${ADDRESS}"],nativeCurrency:{name:"Kovan Ether",symbol:"ETH",decimals:18},explorers:[{name:"etherscan",url:"https://kovan-optimistic.etherscan.io",standard:"EIP3091"}],infoURL:"https://optimism.io",shortName:"okov",chainId:69,networkId:69,testnet:!0,slug:"optimism-kovan"},Nmr={name:"Hoo Smart Chain",chain:"HSC",rpc:["https://hoo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hoosmartchain.com","https://http-mainnet2.hoosmartchain.com","wss://ws-mainnet.hoosmartchain.com","wss://ws-mainnet2.hoosmartchain.com"],faucets:[],nativeCurrency:{name:"Hoo Smart Chain Native Token",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hsc",chainId:70,networkId:70,slip44:1170,explorers:[{name:"hooscan",url:"https://www.hooscan.com",standard:"EIP3091"}],testnet:!1,slug:"hoo-smart-chain"},Bmr={name:"Conflux eSpace (Testnet)",chain:"Conflux",rpc:["https://conflux-espace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmtestnet.confluxrpc.com"],faucets:["https://faucet.confluxnetwork.org"],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfxtest",chainId:71,networkId:71,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evmtestnet.confluxscan.net",standard:"none"}],testnet:!0,slug:"conflux-espace-testnet"},Dmr={name:"DxChain Testnet",chain:"DxChain",rpc:["https://dxchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-http.dxchain.com"],faucets:["https://faucet.dxscan.io"],nativeCurrency:{name:"DxChain Testnet",symbol:"DX",decimals:18},infoURL:"https://testnet.dxscan.io/",shortName:"dxc",chainId:72,networkId:72,testnet:!0,slug:"dxchain-testnet"},Omr={name:"FNCY",chain:"FNCY",rpc:["https://fncy.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-seed1.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan.fncy.world",shortName:"FNCY",chainId:73,networkId:73,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan",url:"https://fncyscan.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy"},Lmr={name:"IDChain Mainnet",chain:"IDChain",rpc:["https://idchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://idchain.one/rpc/","wss://idchain.one/ws/"],faucets:[],nativeCurrency:{name:"EIDI",symbol:"EIDI",decimals:18},infoURL:"https://idchain.one/begin/",shortName:"idchain",chainId:74,networkId:74,icon:{url:"ipfs://QmZVwsY6HPXScKqZCA9SWNrr4jrQAHkPhVhMWi6Fj1DsrJ",width:162,height:129,format:"png"},explorers:[{name:"explorer",url:"https://explorer.idchain.one",standard:"EIP3091"}],testnet:!1,slug:"idchain"},qmr={name:"Decimal Smart Chain Mainnet",chain:"DSC",rpc:["https://decimal-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"DEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"DSC",chainId:75,networkId:75,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Mainnet",url:"https://explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!1,slug:"decimal-smart-chain"},Fmr={name:"Mix",chain:"MIX",rpc:["https://mix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.mix-blockchain.org:8647"],faucets:[],nativeCurrency:{name:"Mix Ether",symbol:"MIX",decimals:18},infoURL:"https://mix-blockchain.org",shortName:"mix",chainId:76,networkId:76,slip44:76,testnet:!1,slug:"mix"},Wmr={name:"POA Network Sokol",chain:"POA",rpc:["https://poa-network-sokol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sokol.poa.network","wss://sokol.poa.network/wss","ws://sokol.poa.network:8546"],faucets:["https://faucet.poa.network"],nativeCurrency:{name:"POA Sokol Ether",symbol:"SPOA",decimals:18},infoURL:"https://poa.network",shortName:"spoa",chainId:77,networkId:77,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/sokol",standard:"none"}],testnet:!1,slug:"poa-network-sokol"},Umr={name:"PrimusChain mainnet",chain:"PC",rpc:["https://primuschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/mainnet"],faucets:[],nativeCurrency:{name:"Primus Ether",symbol:"PETH",decimals:18},infoURL:"https://primusmoney.com",shortName:"primuschain",chainId:78,networkId:78,testnet:!1,slug:"primuschain"},Hmr={name:"Zenith Mainnet",chain:"Zenith",rpc:["https://zenith.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataserver-us-1.zenithchain.co/","https://dataserver-asia-3.zenithchain.co/","https://dataserver-asia-4.zenithchain.co/","https://dataserver-asia-2.zenithchain.co/","https://dataserver-asia-5.zenithchain.co/","https://dataserver-asia-6.zenithchain.co/","https://dataserver-asia-7.zenithchain.co/"],faucets:[],nativeCurrency:{name:"ZENITH",symbol:"ZENITH",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:79,networkId:79,shortName:"zenith",explorers:[{name:"zenith scan",url:"https://scan.zenithchain.co",standard:"EIP3091"}],testnet:!1,slug:"zenith"},jmr={name:"GeneChain",chain:"GeneChain",rpc:["https://genechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.genechain.io"],faucets:[],nativeCurrency:{name:"RNA",symbol:"RNA",decimals:18},infoURL:"https://scan.genechain.io/",shortName:"GeneChain",chainId:80,networkId:80,explorers:[{name:"GeneChain Scan",url:"https://scan.genechain.io",standard:"EIP3091"}],testnet:!1,slug:"genechain"},zmr={name:"Zenith Testnet (Vilnius)",chain:"Zenith",rpc:["https://zenith-testnet-vilnius.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vilnius.zenithchain.co/http"],faucets:["https://faucet.zenithchain.co/"],nativeCurrency:{name:"Vilnius",symbol:"VIL",decimals:18},infoURL:"https://www.zenithchain.co/",chainId:81,networkId:81,shortName:"VIL",explorers:[{name:"vilnius scan",url:"https://vilnius.scan.zenithchain.co",standard:"EIP3091"}],testnet:!0,slug:"zenith-testnet-vilnius"},Kmr={name:"Meter Mainnet",chain:"METER",rpc:["https://meter.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.meter.io"],faucets:["https://faucet.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"Meter",chainId:82,networkId:82,explorers:[{name:"Meter Mainnet Scan",url:"https://scan.meter.io",standard:"EIP3091"}],testnet:!1,slug:"meter"},Gmr={name:"Meter Testnet",chain:"METER Testnet",rpc:["https://meter-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.meter.io"],faucets:["https://faucet-warringstakes.meter.io"],nativeCurrency:{name:"Meter",symbol:"MTR",decimals:18},infoURL:"https://www.meter.io",shortName:"MeterTest",chainId:83,networkId:83,explorers:[{name:"Meter Testnet Scan",url:"https://scan-warringstakes.meter.io",standard:"EIP3091"}],testnet:!0,slug:"meter-testnet"},Vmr={name:"GateChain Testnet",chainId:85,shortName:"gttest",chain:"GTTEST",networkId:85,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gatenode.cc"],faucets:["https://www.gatescan.org/testnet/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org/testnet",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!0,slug:"gatechain-testnet"},$mr={name:"GateChain Mainnet",chainId:86,shortName:"gt",chain:"GT",networkId:86,nativeCurrency:{name:"GateToken",symbol:"GT",decimals:18},rpc:["https://gatechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.gatenode.cc"],faucets:["https://www.gatescan.org/faucet"],explorers:[{name:"GateScan",url:"https://www.gatescan.org",standard:"EIP3091"}],infoURL:"https://www.gatechain.io",testnet:!1,slug:"gatechain"},Ymr={name:"Nova Network",chain:"NNW",icon:{url:"ipfs://QmTTamJ55YGQwMboq4aqf3JjTEy5WDtjo4GBRQ5VdsWA6U",width:512,height:512,format:"png"},rpc:["https://nova-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.novanetwork.io","https://0x57.redjackstudio.com","https://rpc.novanetwork.io:9070"],faucets:[],nativeCurrency:{name:"Supernova",symbol:"SNT",decimals:18},infoURL:"https://novanetwork.io",shortName:"nnw",chainId:87,networkId:87,explorers:[{name:"novanetwork",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!1,slug:"nova-network"},Jmr={name:"TomoChain",chain:"TOMO",rpc:["https://tomochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomo",chainId:88,networkId:88,slip44:889,testnet:!1,slug:"tomochain"},Qmr={name:"TomoChain Testnet",chain:"TOMO",rpc:["https://tomochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tomochain.com"],faucets:[],nativeCurrency:{name:"TomoChain",symbol:"TOMO",decimals:18},infoURL:"https://tomochain.com",shortName:"tomot",chainId:89,networkId:89,slip44:889,testnet:!0,slug:"tomochain-testnet"},Zmr={name:"Garizon Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s0",chainId:90,networkId:90,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!1,slug:"garizon-stage0"},Xmr={name:"Garizon Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s1",chainId:91,networkId:91,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage1"},e0r={name:"Garizon Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s2",chainId:92,networkId:92,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage2"},t0r={name:"Garizon Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3.garizon.net/rpc"],faucets:[],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-s3",chainId:93,networkId:93,explorers:[{name:"explorer",url:"https://explorer.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-90",type:"shard"},testnet:!1,slug:"garizon-stage3"},r0r={name:"CryptoKylin Testnet",chain:"EOS",rpc:["https://cryptokylin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://kylin.eosargentina.io"],faucets:[],nativeCurrency:{name:"EOS",symbol:"EOS",decimals:18},infoURL:"https://www.cryptokylin.io/",shortName:"KylinTestnet",chainId:95,networkId:95,explorers:[{name:"eosq",url:"https://kylin.eosargentina.io",standard:"EIP3091"}],testnet:!0,slug:"cryptokylin-testnet"},n0r={name:"Bitkub Chain",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitkubchain.io","wss://wss.bitkubchain.io"],faucets:[],nativeCurrency:{name:"Bitkub Coin",symbol:"KUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkc",chainId:96,networkId:96,explorers:[{name:"Bitkub Chain Explorer",url:"https://bkcscan.com",standard:"none",icon:"bkc"}],redFlags:["reusedChainId"],testnet:!1,slug:"bitkub-chain"},a0r={name:"Binance Smart Chain Testnet",chain:"BSC",rpc:["https://binance-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://data-seed-prebsc-2-s3.binance.org:8545","https://data-seed-prebsc-1-s3.binance.org:8545","https://data-seed-prebsc-2-s2.binance.org:8545","https://data-seed-prebsc-1-s2.binance.org:8545","https://data-seed-prebsc-2-s1.binance.org:8545","https://data-seed-prebsc-1-s1.binance.org:8545"],faucets:["https://testnet.binance.org/faucet-smart"],nativeCurrency:{name:"Binance Chain Native Token",symbol:"tBNB",decimals:18},infoURL:"https://testnet.binance.org/",shortName:"bnbt",chainId:97,networkId:97,explorers:[{name:"bscscan-testnet",url:"https://testnet.bscscan.com",standard:"EIP3091"}],icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/binance-coin/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"binance-testnet"},i0r={name:"POA Network Core",chain:"POA",rpc:["https://poa-network-core.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.poa.network"],faucets:[],nativeCurrency:{name:"POA Network Core Ether",symbol:"POA",decimals:18},infoURL:"https://poa.network",shortName:"poa",chainId:99,networkId:99,slip44:178,explorers:[{name:"blockscout",url:"https://blockscout.com/poa/core",standard:"none"}],testnet:!1,slug:"poa-network-core"},s0r={name:"Gnosis",chain:"GNO",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gnosischain.com","https://rpc.ankr.com/gnosis","https://gnosischain-rpc.gateway.pokt.network","https://gnosis-mainnet.public.blastapi.io","wss://rpc.gnosischain.com/wss"],faucets:["https://gnosisfaucet.com","https://faucet.gimlu.com/gnosis","https://stakely.io/faucet/gnosis-chain-xdai","https://faucet.prussia.dev/xdai"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"gno",chainId:100,networkId:100,slip44:700,explorers:[{name:"gnosisscan",url:"https://gnosisscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://blockscout.com/xdai/mainnet",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"gnosis"},o0r={name:"EtherInc",chain:"ETI",rpc:["https://etherinc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.einc.io/jsonrpc/mainnet"],faucets:[],nativeCurrency:{name:"EtherInc Ether",symbol:"ETI",decimals:18},infoURL:"https://einc.io",shortName:"eti",chainId:101,networkId:1,slip44:464,testnet:!1,slug:"etherinc"},c0r={name:"Web3Games Testnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc-0.web3games.org/evm","https://testnet-rpc-1.web3games.org/evm","https://testnet-rpc-2.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"tw3g",chainId:102,networkId:102,testnet:!0,slug:"web3games-testnet"},u0r={name:"Kaiba Lightning Chain Testnet",chain:"tKLC",rpc:["https://kaiba-lightning-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klc.live/"],faucets:[],nativeCurrency:{name:"Kaiba Testnet Token",symbol:"tKAIBA",decimals:18},infoURL:"https://kaibadefi.com",shortName:"tklc",chainId:104,networkId:104,icon:{url:"ipfs://bafybeihbsw3ky7yf6llpww6fabo4dicotcgwjpefscoxrppstjx25dvtea",width:932,height:932,format:"png"},explorers:[{name:"kaibascan",url:"https://kaibascan.io",icon:"kaibascan",standard:"EIP3091"}],testnet:!0,slug:"kaiba-lightning-chain-testnet"},l0r={name:"Web3Games Devnet",chain:"Web3Games",icon:{url:"ipfs://QmUc57w3UTHiWapNW9oQb1dP57ymtdemTTbpvGkjVHBRCo",width:192,height:192,format:"png"},rpc:["https://web3games-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.web3games.org/evm"],faucets:[],nativeCurrency:{name:"Web3Games",symbol:"W3G",decimals:18},infoURL:"https://web3games.org/",shortName:"dw3g",chainId:105,networkId:105,explorers:[{name:"Web3Games Explorer",url:"https://explorer-devnet.web3games.org",standard:"none"}],testnet:!1,slug:"web3games-devnet"},d0r={name:"Velas EVM Mainnet",chain:"Velas",icon:{url:"ipfs://QmNXiCXJxEeBd7ZYGYjPSMTSdbDd2nfodLC677gUfk9ku5",width:924,height:800,format:"png"},rpc:["https://velas-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmexplorer.velas.com/rpc","https://explorer.velas.com/rpc"],faucets:[],nativeCurrency:{name:"Velas",symbol:"VLX",decimals:18},infoURL:"https://velas.com",shortName:"vlx",chainId:106,networkId:106,explorers:[{name:"Velas Explorer",url:"https://evmexplorer.velas.com",standard:"EIP3091"}],testnet:!1,slug:"velas-evm"},p0r={name:"Nebula Testnet",chain:"NTN",icon:{url:"ipfs://QmeFaJtQqTKKuXQR7ysS53bLFPasFBcZw445cvYJ2HGeTo",width:512,height:512,format:"png"},rpc:["https://nebula-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.novanetwork.io:9070"],faucets:["https://faucet.novanetwork.io"],nativeCurrency:{name:"Nebula X",symbol:"NBX",decimals:18},infoURL:"https://novanetwork.io",shortName:"ntn",chainId:107,networkId:107,explorers:[{name:"nebulatestnet",url:"https://explorer.novanetwork.io",standard:"EIP3091"}],testnet:!0,slug:"nebula-testnet"},h0r={name:"ThunderCore Mainnet",chain:"TT",rpc:["https://thundercore.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.thundercore.com","https://mainnet-rpc.thundertoken.net","https://mainnet-rpc.thundercore.io"],faucets:["https://faucet.thundercore.com"],nativeCurrency:{name:"ThunderCore Token",symbol:"TT",decimals:18},infoURL:"https://thundercore.com",shortName:"TT",chainId:108,networkId:108,slip44:1001,explorers:[{name:"thundercore-viewblock",url:"https://viewblock.io/thundercore",standard:"EIP3091"}],testnet:!1,slug:"thundercore"},f0r={name:"Proton Testnet",chain:"XPR",rpc:["https://proton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://protontestnet.greymass.com/"],faucets:[],nativeCurrency:{name:"Proton",symbol:"XPR",decimals:4},infoURL:"https://protonchain.com",shortName:"xpr",chainId:110,networkId:110,testnet:!0,slug:"proton-testnet"},m0r={name:"EtherLite Chain",chain:"ETL",rpc:["https://etherlite-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherlite.org"],faucets:["https://etherlite.org/faucets"],nativeCurrency:{name:"EtherLite",symbol:"ETL",decimals:18},infoURL:"https://etherlite.org",shortName:"ETL",chainId:111,networkId:111,icon:{url:"ipfs://QmbNAai1KnBnw4SPQKgrf6vBddifPCQTg2PePry1bmmZYy",width:88,height:88,format:"png"},testnet:!1,slug:"etherlite-chain"},y0r={name:"Dehvo",chain:"Dehvo",rpc:["https://dehvo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.dehvo.com","https://rpc.dehvo.com","https://rpc1.dehvo.com","https://rpc2.dehvo.com"],faucets:["https://buy.dehvo.com"],nativeCurrency:{name:"Dehvo",symbol:"Deh",decimals:18},infoURL:"https://dehvo.com",shortName:"deh",chainId:113,networkId:113,slip44:714,explorers:[{name:"Dehvo Explorer",url:"https://explorer.dehvo.com",standard:"EIP3091"}],testnet:!1,slug:"dehvo"},g0r={name:"Flare Testnet Coston2",chain:"FLR",icon:{url:"ipfs://QmZhAYyazEBZSHWNQb9uCkNPq2MNTLoW3mjwiD3955hUjw",width:382,height:382,format:"png"},rpc:["https://flare-testnet-coston2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://coston2-api.flare.network/ext/bc/C/rpc"],faucets:["https://coston2-faucet.towolabs.com"],nativeCurrency:{name:"Coston2 Flare",symbol:"C2FLR",decimals:18},infoURL:"https://flare.xyz",shortName:"c2flr",chainId:114,networkId:114,explorers:[{name:"blockscout",url:"https://coston2-explorer.flare.network",standard:"EIP3091"}],testnet:!0,slug:"flare-testnet-coston2"},b0r={name:"DeBank Testnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-testnet",chainId:115,networkId:115,explorers:[],testnet:!0,slug:"debank-testnet"},v0r={name:"DeBank Mainnet",chain:"DeBank",rpc:[],faucets:[],icon:{url:"ipfs://QmW9pBps8WHRRWmyXhjLZrjZJUe8F48hUu7z98bu2RVsjN",width:400,height:400,format:"png"},nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://debank.com",shortName:"debank-mainnet",chainId:116,networkId:116,explorers:[],testnet:!1,slug:"debank"},w0r={name:"Arcology Testnet",chain:"Arcology",icon:{url:"ipfs://QmRD7itMvaZutfBjyA7V9xkMGDtsZiJSagPwd3ijqka8kE",width:288,height:288,format:"png"},rpc:["https://arcology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.arcology.network/rpc"],faucets:[],nativeCurrency:{name:"Arcology Coin",symbol:"Acol",decimals:18},infoURL:"https://arcology.network/",shortName:"arcology",chainId:118,networkId:118,explorers:[{name:"arcology",url:"https://testnet.arcology.network/explorer",standard:"none"}],testnet:!0,slug:"arcology-testnet"},_0r={name:"ENULS Mainnet",chain:"ENULS",rpc:["https://enuls.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evmapi.nuls.io","https://evmapi2.nuls.io"],faucets:[],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enuls",chainId:119,networkId:119,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!1,slug:"enuls"},x0r={name:"ENULS Testnet",chain:"ENULS",rpc:["https://enuls-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beta.evmapi.nuls.io","https://beta.evmapi2.nuls.io"],faucets:["http://faucet.nuls.io"],nativeCurrency:{name:"NULS",symbol:"NULS",decimals:18},infoURL:"https://nuls.io",shortName:"enulst",chainId:120,networkId:120,icon:{url:"ipfs://QmYz8LK5WkUN8UwqKfWUjnyLuYqQZWihT7J766YXft4TSy",width:26,height:41,format:"svg"},explorers:[{name:"enulsscan",url:"https://beta.evmscan.nuls.io",icon:"enuls",standard:"EIP3091"}],testnet:!0,slug:"enuls-testnet"},T0r={name:"Realchain Mainnet",chain:"REAL",rpc:["https://realchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rcl-dataseed1.rclsidechain.com","https://rcl-dataseed2.rclsidechain.com","https://rcl-dataseed3.rclsidechain.com","https://rcl-dataseed4.rclsidechain.com","wss://rcl-dataseed1.rclsidechain.com/v1/","wss://rcl-dataseed2.rclsidechain.com/v1/","wss://rcl-dataseed3.rclsidechain.com/v1/","wss://rcl-dataseed4.rclsidechain.com/v1/"],faucets:["https://faucet.rclsidechain.com"],nativeCurrency:{name:"Realchain",symbol:"REAL",decimals:18},infoURL:"https://www.rclsidechain.com/",shortName:"REAL",chainId:121,networkId:121,slip44:714,explorers:[{name:"realscan",url:"https://rclscan.com",standard:"EIP3091"}],testnet:!1,slug:"realchain"},E0r={name:"Fuse Mainnet",chain:"FUSE",rpc:["https://fuse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fuse.io"],faucets:[],nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},infoURL:"https://fuse.io/",shortName:"fuse",chainId:122,networkId:122,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},testnet:!1,slug:"fuse"},C0r={name:"Fuse Sparknet",chain:"fuse",rpc:["https://fuse-sparknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fusespark.io"],faucets:["https://get.fusespark.io"],nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},infoURL:"https://docs.fuse.io/general/fuse-network-blockchain/fuse-testnet",shortName:"spark",chainId:123,networkId:123,testnet:!0,icon:{url:"ipfs://QmQg8aqyeaMfHvjzFDtZkb8dUNRYhFezPp8UYVc1HnLpRW/green.png",format:"png",width:512,height:512},slug:"fuse-sparknet"},I0r={name:"Decentralized Web Mainnet",shortName:"dwu",chain:"DWU",chainId:124,networkId:124,rpc:["https://decentralized-web.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://decentralized-web.tech/dw_rpc.php"],faucets:[],infoURL:"https://decentralized-web.tech/dw_chain.php",nativeCurrency:{name:"Decentralized Web Utility",symbol:"DWU",decimals:18},testnet:!1,slug:"decentralized-web"},k0r={name:"OYchain Testnet",chain:"OYchain",rpc:["https://oychain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.oychain.io"],faucets:["https://faucet.oychain.io"],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainTestnet",chainId:125,networkId:125,slip44:125,explorers:[{name:"OYchain Testnet Explorer",url:"https://explorer.testnet.oychain.io",standard:"none"}],testnet:!0,slug:"oychain-testnet"},A0r={name:"OYchain Mainnet",chain:"OYchain",icon:{url:"ipfs://QmXW5T2MaGHznXUmQEXoyJjcdmX7dhLbj5fnqvZZKqeKzA",width:677,height:237,format:"png"},rpc:["https://oychain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oychain.io"],faucets:[],nativeCurrency:{name:"OYchain Token",symbol:"OY",decimals:18},infoURL:"https://www.oychain.io",shortName:"OYchainMainnet",chainId:126,networkId:126,slip44:126,explorers:[{name:"OYchain Mainnet Explorer",url:"https://explorer.oychain.io",standard:"none"}],testnet:!1,slug:"oychain"},S0r={name:"Factory 127 Mainnet",chain:"FETH",rpc:[],faucets:[],nativeCurrency:{name:"Factory 127 Token",symbol:"FETH",decimals:18},infoURL:"https://www.factory127.com",shortName:"feth",chainId:127,networkId:127,slip44:127,testnet:!1,slug:"factory-127"},P0r={name:"Huobi ECO Chain Mainnet",chain:"Heco",rpc:["https://huobi-eco-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.hecochain.com","wss://ws-mainnet.hecochain.com"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Huobi ECO Chain Native Token",symbol:"HT",decimals:18},infoURL:"https://www.hecochain.com",shortName:"heco",chainId:128,networkId:128,slip44:1010,explorers:[{name:"hecoinfo",url:"https://hecoinfo.com",standard:"EIP3091"}],testnet:!1,slug:"huobi-eco-chain"},R0r={name:"iExec Sidechain",chain:"Bellecour",icon:{url:"ipfs://QmUYKpVmZL4aS3TEZLG5wbrRJ6exxLiwm1rejfGYYNicfb",width:155,height:155,format:"png"},rpc:["https://iexec-sidechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bellecour.iex.ec"],faucets:[],nativeCurrency:{name:"xRLC",symbol:"xRLC",decimals:18},infoURL:"https://iex.ec",shortName:"rlc",chainId:134,networkId:134,explorers:[{name:"blockscout",url:"https://blockscout.bellecour.iex.ec",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"iexec-sidechain"},M0r={name:"Alyx Chain Testnet",chain:"Alyx Chain Testnet",rpc:["https://alyx-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.alyxchain.com"],faucets:["https://faucet.alyxchain.com"],nativeCurrency:{name:"Alyx Testnet Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"AlyxTestnet",chainId:135,networkId:135,explorers:[{name:"alyx testnet scan",url:"https://testnet.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!0,slug:"alyx-chain-testnet"},N0r={name:"Polygon Mainnet",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://polygon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mainnet.infura.io/v3/${INFURA_API_KEY}","https://polygon-rpc.com/","https://rpc-mainnet.matic.network","https://matic-mainnet.chainstacklabs.com","https://rpc-mainnet.maticvigil.com","https://rpc-mainnet.matic.quiknode.pro","https://matic-mainnet-full-rpc.bwarelabs.com","https://polygon-bor.publicnode.com"],faucets:[],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"matic",chainId:137,networkId:137,slip44:966,explorers:[{name:"polygonscan",url:"https://polygonscan.com",standard:"EIP3091"}],testnet:!1,slug:"polygon"},B0r={name:"Openpiece Testnet",chain:"OPENPIECE",icon:{url:"ipfs://QmVTahJkdSH3HPYsJMK2GmqfWZjLyxE7cXy1aHEnHU3vp2",width:250,height:250,format:"png"},rpc:["https://openpiece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.openpiece.io"],faucets:[],nativeCurrency:{name:"Belly",symbol:"BELLY",decimals:18},infoURL:"https://cryptopiece.online",shortName:"OPtest",chainId:141,networkId:141,explorers:[{name:"Belly Scan",url:"https://testnet.bellyscan.com",standard:"none"}],testnet:!0,slug:"openpiece-testnet"},D0r={name:"DAX CHAIN",chain:"DAX",rpc:["https://dax-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.prodax.io"],faucets:[],nativeCurrency:{name:"Prodax",symbol:"DAX",decimals:18},infoURL:"https://prodax.io/",shortName:"dax",chainId:142,networkId:142,testnet:!1,slug:"dax-chain"},O0r={name:"PHI Network v2",chain:"PHI",rpc:["https://phi-network-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHI",chainId:144,networkId:144,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"Phiscan",url:"https://phiscan.com",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v2"},L0r={name:"Armonia Eva Chain Mainnet",chain:"Eva",rpc:["https://armonia-eva-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"eva",chainId:160,networkId:160,status:"incubating",testnet:!1,slug:"armonia-eva-chain"},q0r={name:"Armonia Eva Chain Testnet",chain:"Wall-e",rpc:["https://armonia-eva-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.evascan.io/api/eth-rpc/"],faucets:[],nativeCurrency:{name:"Armonia Multichain Native Token",symbol:"AMAX",decimals:18},infoURL:"https://amax.network",shortName:"wall-e",chainId:161,networkId:161,explorers:[{name:"blockscout - evascan",url:"https://testnet.evascan.io",standard:"EIP3091"}],testnet:!0,slug:"armonia-eva-chain-testnet"},F0r={name:"Lightstreams Testnet",chain:"PHT",rpc:["https://lightstreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.sirius.lightstreams.io"],faucets:["https://discuss.lightstreams.network/t/request-test-tokens"],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.sirius.lightstreams.io",shortName:"tpht",chainId:162,networkId:162,testnet:!0,slug:"lightstreams-testnet"},W0r={name:"Lightstreams Mainnet",chain:"PHT",rpc:["https://lightstreams.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.mainnet.lightstreams.io"],faucets:[],nativeCurrency:{name:"Lightstreams PHT",symbol:"PHT",decimals:18},infoURL:"https://explorer.lightstreams.io",shortName:"pht",chainId:163,networkId:163,testnet:!1,slug:"lightstreams"},U0r={name:"Atoshi Testnet",chain:"ATOSHI",icon:{url:"ipfs://QmfFK6B4MFLrpSS46aLf7hjpt28poHFeTGEKEuH248Tbyj",width:200,height:200,format:"png"},rpc:["https://atoshi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.atoshi.io/"],faucets:[],nativeCurrency:{name:"ATOSHI",symbol:"ATOS",decimals:18},infoURL:"https://atoshi.org",shortName:"atoshi",chainId:167,networkId:167,explorers:[{name:"atoshiscan",url:"https://scan.atoverse.info",standard:"EIP3091"}],testnet:!0,slug:"atoshi-testnet"},H0r={name:"AIOZ Network",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-dataseed.aioz.network"],faucets:[],nativeCurrency:{name:"AIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz",chainId:168,networkId:168,slip44:60,explorers:[{name:"AIOZ Network Explorer",url:"https://explorer.aioz.network",standard:"EIP3091"}],testnet:!1,slug:"aioz-network"},j0r={name:"HOO Smart Chain Testnet",chain:"ETH",rpc:["https://hoo-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hoosmartchain.com"],faucets:["https://faucet-testnet.hscscan.com/"],nativeCurrency:{name:"HOO",symbol:"HOO",decimals:18},infoURL:"https://www.hoosmartchain.com",shortName:"hoosmartchain",chainId:170,networkId:170,testnet:!0,slug:"hoo-smart-chain-testnet"},z0r={name:"Latam-Blockchain Resil Testnet",chain:"Resil",rpc:["https://latam-blockchain-resil-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.latam-blockchain.com","wss://ws.latam-blockchain.com"],faucets:["https://faucet.latam-blockchain.com"],nativeCurrency:{name:"Latam-Blockchain Resil Test Native Token",symbol:"usd",decimals:18},infoURL:"https://latam-blockchain.com",shortName:"resil",chainId:172,networkId:172,testnet:!0,slug:"latam-blockchain-resil-testnet"},K0r={name:"AME Chain Mainnet",chain:"AME",rpc:["https://ame-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.amechain.io/"],faucets:[],nativeCurrency:{name:"AME",symbol:"AME",decimals:18},infoURL:"https://amechain.io/",shortName:"ame",chainId:180,networkId:180,explorers:[{name:"AME Scan",url:"https://amescan.io",standard:"EIP3091"}],testnet:!1,slug:"ame-chain"},G0r={name:"Seele Mainnet",chain:"Seele",rpc:["https://seele.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.seelen.pro/"],faucets:[],nativeCurrency:{name:"Seele",symbol:"Seele",decimals:18},infoURL:"https://seelen.pro/",shortName:"Seele",chainId:186,networkId:186,explorers:[{name:"seeleview",url:"https://seeleview.net",standard:"none"}],testnet:!1,slug:"seele"},V0r={name:"BMC Mainnet",chain:"BMC",rpc:["https://bmc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bmcchain.com/"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMC",chainId:188,networkId:188,explorers:[{name:"Blockmeta",url:"https://bmc.blockmeta.com",standard:"none"}],testnet:!1,slug:"bmc"},$0r={name:"BMC Testnet",chain:"BMC",rpc:["https://bmc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bmcchain.com"],faucets:[],nativeCurrency:{name:"BTM",symbol:"BTM",decimals:18},infoURL:"https://bmc.bytom.io/",shortName:"BMCT",chainId:189,networkId:189,explorers:[{name:"Blockmeta",url:"https://bmctestnet.blockmeta.com",standard:"none"}],testnet:!0,slug:"bmc-testnet"},Y0r={name:"Crypto Emergency",chain:"CEM",rpc:["https://crypto-emergency.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cemchain.com"],faucets:[],nativeCurrency:{name:"Crypto Emergency",symbol:"CEM",decimals:18},infoURL:"https://cemblockchain.com/",shortName:"cem",chainId:193,networkId:193,explorers:[{name:"cemscan",url:"https://cemscan.com",standard:"EIP3091"}],testnet:!1,slug:"crypto-emergency"},J0r={name:"OKBChain Testnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token in testnet",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"tokb",chainId:195,networkId:195,explorers:[],status:"incubating",testnet:!0,slug:"okbchain-testnet"},Q0r={name:"OKBChain Mainnet",chain:"okbchain",rpc:[],faucets:[],nativeCurrency:{name:"OKBChain Global Utility Token",symbol:"OKB",decimals:18},features:[],infoURL:"https://www.okex.com/okc",shortName:"okb",chainId:196,networkId:196,explorers:[],status:"incubating",testnet:!1,slug:"okbchain"},Z0r={name:"BitTorrent Chain Mainnet",chain:"BTTC",rpc:["https://bittorrent-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"BTT",chainId:199,networkId:199,explorers:[{name:"bttcscan",url:"https://scan.bittorrentchain.io",standard:"none"}],testnet:!1,slug:"bittorrent-chain"},X0r={name:"Arbitrum on xDai",chain:"AOX",rpc:["https://arbitrum-on-xdai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum.xdaichain.com/"],faucets:[],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://xdaichain.com",shortName:"aox",chainId:200,networkId:200,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/arbitrum",standard:"EIP3091"}],parent:{chain:"eip155-100",type:"L2"},testnet:!1,slug:"arbitrum-on-xdai"},eyr={name:"MOAC testnet",chain:"MOAC",rpc:["https://moac-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.moac.io/testnet"],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moactest",chainId:201,networkId:201,explorers:[{name:"moac testnet explorer",url:"https://testnet.moac.io",standard:"none"}],testnet:!0,slug:"moac-testnet"},tyr={name:"Freight Trust Network",chain:"EDI",rpc:["https://freight-trust-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://13.57.207.168:3435","https://app.freighttrust.net/ftn/${API_KEY}"],faucets:["http://faucet.freight.sh"],nativeCurrency:{name:"Freight Trust Native",symbol:"0xF",decimals:18},infoURL:"https://freighttrust.com",shortName:"EDI",chainId:211,networkId:0,testnet:!1,slug:"freight-trust-network"},ryr={name:"MAP Makalu",title:"MAP Testnet Makalu",chain:"MAP",rpc:["https://map-makalu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.maplabs.io"],faucets:["https://faucet.maplabs.io"],nativeCurrency:{name:"Makalu MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"makalu",chainId:212,networkId:212,explorers:[{name:"mapscan",url:"https://testnet.mapscan.io",standard:"EIP3091"}],testnet:!0,slug:"map-makalu"},nyr={name:"SiriusNet V2",chain:"SIN2",faucets:[],rpc:["https://siriusnet-v2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc2.siriusnet.io"],icon:{url:"ipfs://bafybeicxuxdzrzpwsil4owqmn7wpwka2rqsohpfqmukg57pifzyxr5om2q",width:100,height:100,format:"png"},nativeCurrency:{name:"MCD",symbol:"MCD",decimals:18},infoURL:"https://siriusnet.io",shortName:"SIN2",chainId:217,networkId:217,explorers:[{name:"siriusnet explorer",url:"https://scan.siriusnet.io",standard:"none"}],testnet:!1,slug:"siriusnet-v2"},ayr={name:"LACHAIN Mainnet",chain:"LA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.lachain.io"],faucets:[],nativeCurrency:{name:"LA",symbol:"LA",decimals:18},infoURL:"https://lachain.io",shortName:"LA",chainId:225,networkId:225,explorers:[{name:"blockscout",url:"https://scan.lachain.io",standard:"EIP3091"}],testnet:!1,slug:"lachain"},iyr={name:"LACHAIN Testnet",chain:"TLA",icon:{url:"ipfs://QmQxGA6rhuCQDXUueVcNvFRhMEWisyTmnF57TqL7h6k6cZ",width:1280,height:1280,format:"png"},rpc:["https://lachain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.lachain.io"],faucets:[],nativeCurrency:{name:"TLA",symbol:"TLA",decimals:18},infoURL:"https://lachain.io",shortName:"TLA",chainId:226,networkId:226,explorers:[{name:"blockscout",url:"https://scan-test.lachain.io",standard:"EIP3091"}],testnet:!0,slug:"lachain-testnet"},syr={name:"Energy Web Chain",chain:"Energy Web Chain",rpc:["https://energy-web-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.energyweb.org","wss://rpc.energyweb.org/ws"],faucets:["https://faucet.carbonswap.exchange","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Energy Web Token",symbol:"EWT",decimals:18},infoURL:"https://energyweb.org",shortName:"ewt",chainId:246,networkId:246,slip44:246,explorers:[{name:"blockscout",url:"https://explorer.energyweb.org",standard:"none"}],testnet:!1,slug:"energy-web-chain"},oyr={name:"Oasys Mainnet",chain:"Oasys",icon:{url:"ipfs://QmT84suD2ZmTSraJBfeHhTNst2vXctQijNCztok9XiVcUR",width:3600,height:3600,format:"png"},rpc:["https://oasys.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.games"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://oasys.games",shortName:"OAS",chainId:248,networkId:248,explorers:[{name:"blockscout",url:"https://explorer.oasys.games",standard:"EIP3091"}],testnet:!1,slug:"oasys"},cyr={name:"Fantom Opera",chain:"FTM",rpc:["https://fantom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fantom.publicnode.com","https://rpc.ftm.tools"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://fantom.foundation",shortName:"ftm",chainId:250,networkId:250,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!1,slug:"fantom"},uyr={name:"Huobi ECO Chain Testnet",chain:"Heco",rpc:["https://huobi-eco-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.hecochain.com","wss://ws-testnet.hecochain.com"],faucets:["https://scan-testnet.hecochain.com/faucet"],nativeCurrency:{name:"Huobi ECO Chain Test Native Token",symbol:"htt",decimals:18},infoURL:"https://testnet.hecoinfo.com",shortName:"hecot",chainId:256,networkId:256,testnet:!0,slug:"huobi-eco-chain-testnet"},lyr={name:"Setheum",chain:"Setheum",rpc:[],faucets:[],nativeCurrency:{name:"Setheum",symbol:"SETM",decimals:18},infoURL:"https://setheum.xyz",shortName:"setm",chainId:258,networkId:258,testnet:!1,slug:"setheum"},dyr={name:"SUR Blockchain Network",chain:"SUR",rpc:["https://sur-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sur.nilin.org"],faucets:[],nativeCurrency:{name:"Suren",symbol:"SRN",decimals:18},infoURL:"https://surnet.org",shortName:"SUR",chainId:262,networkId:1,icon:{url:"ipfs://QmbUcDQHCvheYQrWk9WFJRMW5fTJQmtZqkoGUed4bhCM7T",width:3e3,height:3e3,format:"png"},explorers:[{name:"Surnet Explorer",url:"https://explorer.surnet.org",icon:"SUR",standard:"EIP3091"}],testnet:!1,slug:"sur-blockchain-network"},pyr={name:"High Performance Blockchain",chain:"HPB",rpc:["https://high-performance-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hpbnode.com","wss://ws.hpbnode.com"],faucets:["https://myhpbwallet.com/"],nativeCurrency:{name:"High Performance Blockchain Ether",symbol:"HPB",decimals:18},infoURL:"https://hpb.io",shortName:"hpb",chainId:269,networkId:269,slip44:269,explorers:[{name:"hscan",url:"https://hscan.org",standard:"EIP3091"}],testnet:!1,slug:"high-performance-blockchain"},hyr={name:"zkSync Era Testnet",chain:"ETH",rpc:["https://zksync-era-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-testnet.zksync.dev"],faucets:["https://goerli.portal.zksync.io/faucet"],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://era.zksync.io/docs/",shortName:"zksync-goerli",chainId:280,networkId:280,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://goerli.explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://goerli.portal.zksync.io/bridge"}]},testnet:!0,slug:"zksync-era-testnet"},fyr={name:"Boba Network",chain:"ETH",rpc:["https://boba-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.boba.network/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Boba",chainId:288,networkId:288,explorers:[{name:"Bobascan",url:"https://bobascan.com",standard:"none"},{name:"Blockscout",url:"https://blockexplorer.boba.network",standard:"none"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://gateway.boba.network"}]},testnet:!1,slug:"boba-network"},myr={name:"Hedera Mainnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-mainnet",chainId:295,networkId:295,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/mainnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!1,slug:"hedera"},yyr={name:"Hedera Testnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-testnet",chainId:296,networkId:296,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/testnet/dashboard",standard:"none"},{name:"Arkhia Explorer",url:"https://explorer.arkhia.io",standard:"none"},{name:"DragonGlass",url:"https://app.dragonglass.me",standard:"none"},{name:"Hedera Explorer",url:"https://hederaexplorer.io",standard:"none"},{name:"Ledger Works Explore",url:"https://explore.lworks.io",standard:"none"}],testnet:!0,slug:"hedera-testnet"},gyr={name:"Hedera Previewnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:["https://hedera-previewnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://previewnet.hashio.io/api"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://portal.hedera.com"],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-previewnet",chainId:297,networkId:297,slip44:3030,explorers:[{name:"HashScan",url:"https://hashscan.io/previewnet/dashboard",standard:"none"}],testnet:!1,slug:"hedera-previewnet"},byr={name:"Hedera Localnet",chain:"Hedera",icon:{url:"ipfs://QmQikzhvZKyMmbZJd7BVLZb2YTBDMgNDnaMCAErsVjsfuz",width:1500,height:1500,format:"png"},rpc:[],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"hbar",symbol:"HBAR",decimals:8},infoURL:"https://hedera.com",shortName:"hedera-localnet",chainId:298,networkId:298,slip44:3030,explorers:[],testnet:!1,slug:"hedera-localnet"},vyr={name:"Optimism on Gnosis",chain:"OGC",rpc:["https://optimism-on-gnosis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://optimism.gnosischain.com","wss://optimism.gnosischain.com/wss"],faucets:["https://faucet.gimlu.com/gnosis"],nativeCurrency:{name:"xDAI",symbol:"xDAI",decimals:18},infoURL:"https://www.xdaichain.com/for-developers/optimism-optimistic-rollups-on-gc",shortName:"ogc",chainId:300,networkId:300,explorers:[{name:"blockscout",url:"https://blockscout.com/xdai/optimism",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"optimism-on-gnosis"},wyr={name:"Bobaopera",chain:"Bobaopera",rpc:["https://bobaopera.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobaopera.boba.network","wss://wss.bobaopera.boba.network","https://replica.bobaopera.boba.network","wss://replica-wss.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobaopera",chainId:301,networkId:301,explorers:[{name:"Bobaopera block explorer",url:"https://blockexplorer.bobaopera.boba.network",standard:"none"}],testnet:!1,slug:"bobaopera"},_yr={name:"Omax Mainnet",chain:"OMAX Chain",rpc:["https://omax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainapi.omaxray.com"],faucets:["https://faucet.omaxray.com/"],nativeCurrency:{name:"OMAX COIN",symbol:"OMAX",decimals:18},infoURL:"https://www.omaxcoin.com/",shortName:"omax",chainId:311,networkId:311,icon:{url:"ipfs://Qmd7omPxrehSuxHHPMYd5Nr7nfrtjKdRJQEhDLfTb87w8G",width:500,height:500,format:"png"},explorers:[{name:"Omax Chain Explorer",url:"https://omaxray.com",icon:"omaxray",standard:"EIP3091"}],testnet:!1,slug:"omax"},xyr={name:"Filecoin - Mainnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.node.glif.io/","https://rpc.ankr.com/filecoin","https://filecoin-mainnet.chainstacklabs.com/rpc/v1"],faucets:[],nativeCurrency:{name:"filecoin",symbol:"FIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin",chainId:314,networkId:314,slip44:461,explorers:[{name:"Filfox",url:"https://filfox.info/en",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Glif Explorer",url:"https://explorer.glif.io",standard:"EIP3091"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan",url:"https://filscan.io",standard:"none"},{name:"Filscout",url:"https://filscout.io/en",standard:"none"}],testnet:!1,slug:"filecoin"},Tyr={name:"KCC Mainnet",chain:"KCC",rpc:["https://kcc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.kcc.network","https://kcc.mytokenpocket.vip","https://public-rpc.blockpi.io/http/kcc"],faucets:["https://faucet.kcc.io/","https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"KuCoin Token",symbol:"KCS",decimals:18},infoURL:"https://kcc.io",shortName:"kcs",chainId:321,networkId:321,slip44:641,explorers:[{name:"KCC Explorer",url:"https://explorer.kcc.io/en",standard:"EIP3091"}],testnet:!1,slug:"kcc"},Eyr={name:"KCC Testnet",chain:"KCC",rpc:["https://kcc-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.kcc.network"],faucets:["https://faucet-testnet.kcc.network"],nativeCurrency:{name:"KuCoin Testnet Token",symbol:"tKCS",decimals:18},infoURL:"https://scan-testnet.kcc.network",shortName:"kcst",chainId:322,networkId:322,explorers:[{name:"kcc-scan-testnet",url:"https://scan-testnet.kcc.network",standard:"EIP3091"}],testnet:!0,slug:"kcc-testnet"},Cyr={name:"zkSync Era Mainnet",chain:"ETH",rpc:["https://zksync-era.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zksync2-mainnet.zksync.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://zksync.io/",shortName:"zksync",chainId:324,networkId:324,icon:{url:"ipfs://Qma6H9xd8Ydah1bAFnmDuau1jeMh5NjGEL8tpdnjLbJ7m2",width:512,height:512,format:"svg"},explorers:[{name:"zkSync Era Block Explorer",url:"https://explorer.zksync.io",icon:"zksync-era",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://portal.zksync.io/bridge"}]},testnet:!1,slug:"zksync-era"},Iyr={name:"Web3Q Mainnet",chain:"Web3Q",rpc:["https://web3q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://web3q.io/home.w3q/",shortName:"w3q",chainId:333,networkId:333,explorers:[{name:"w3q-mainnet",url:"https://explorer.mainnet.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q"},kyr={name:"DFK Chain Test",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain-testnet/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFKTEST",chainId:335,networkId:335,explorers:[{name:"ethernal",url:"https://explorer-test.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!0,slug:"dfk-chain-test"},Ayr={name:"Shiden",chain:"SDN",rpc:["https://shiden.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://shiden.api.onfinality.io/public","https://shiden-rpc.dwellir.com","https://shiden.public.blastapi.io","wss://shiden.api.onfinality.io/public-ws","wss://shiden.public.blastapi.io","wss://shiden-rpc.dwellir.com"],faucets:[],nativeCurrency:{name:"Shiden",symbol:"SDN",decimals:18},infoURL:"https://shiden.astar.network/",shortName:"sdn",chainId:336,networkId:336,icon:{url:"ipfs://QmQySjAoWHgk3ou1yvBi2TrTcgH6KhfGiU7GcrLzrAeRkE",width:250,height:250,format:"png"},explorers:[{name:"subscan",url:"https://shiden.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"shiden"},Syr={name:"Cronos Testnet",chain:"CRO",rpc:["https://cronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-t3.cronos.org"],faucets:["https://cronos.org/faucet"],nativeCurrency:{name:"Cronos Test Coin",symbol:"TCRO",decimals:18},infoURL:"https://cronos.org",shortName:"tcro",chainId:338,networkId:338,explorers:[{name:"Cronos Testnet Explorer",url:"https://testnet.cronoscan.com",standard:"none"}],testnet:!0,slug:"cronos-testnet"},Pyr={name:"Theta Mainnet",chain:"Theta",rpc:["https://theta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-mainnet",chainId:361,networkId:361,explorers:[{name:"Theta Mainnet Explorer",url:"https://explorer.thetatoken.org",standard:"EIP3091"}],testnet:!1,slug:"theta"},Ryr={name:"Theta Sapphire Testnet",chain:"Theta",rpc:["https://theta-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-sapphire.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-sapphire",chainId:363,networkId:363,explorers:[{name:"Theta Sapphire Testnet Explorer",url:"https://guardian-testnet-sapphire-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-sapphire-testnet"},Myr={name:"Theta Amber Testnet",chain:"Theta",rpc:["https://theta-amber-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-amber.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-amber",chainId:364,networkId:364,explorers:[{name:"Theta Amber Testnet Explorer",url:"https://guardian-testnet-amber-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-amber-testnet"},Nyr={name:"Theta Testnet",chain:"Theta",rpc:["https://theta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api-testnet.thetatoken.org/rpc"],faucets:[],nativeCurrency:{name:"Theta Fuel",symbol:"TFUEL",decimals:18},infoURL:"https://www.thetatoken.org/",shortName:"theta-testnet",chainId:365,networkId:365,explorers:[{name:"Theta Testnet Explorer",url:"https://testnet-explorer.thetatoken.org",standard:"EIP3091"}],testnet:!0,slug:"theta-testnet"},Byr={name:"PulseChain Mainnet",shortName:"pls",chain:"PLS",chainId:369,networkId:369,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.pulsechain.com/","wss://rpc.mainnet.pulsechain.com/"],faucets:[],nativeCurrency:{name:"Pulse",symbol:"PLS",decimals:18},testnet:!1,slug:"pulsechain"},Dyr={name:"Consta Testnet",chain:"tCNT",rpc:["https://consta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.theconsta.com"],faucets:[],nativeCurrency:{name:"tCNT",symbol:"tCNT",decimals:18},infoURL:"http://theconsta.com",shortName:"tCNT",chainId:371,networkId:371,icon:{url:"ipfs://QmfQ1yae6uvXgBSwnwJM4Mtp8ctH66tM6mB1Hsgu4XvsC9",width:2e3,height:2e3,format:"png"},explorers:[{name:"blockscout",url:"https://explorer-testnet.theconsta.com",standard:"EIP3091"}],testnet:!0,slug:"consta-testnet"},Oyr={name:"Lisinski",chain:"CRO",rpc:["https://lisinski.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-bitfalls1.lisinski.online"],faucets:["https://pipa.lisinski.online"],nativeCurrency:{name:"Lisinski Ether",symbol:"LISINS",decimals:18},infoURL:"https://lisinski.online",shortName:"lisinski",chainId:385,networkId:385,testnet:!1,slug:"lisinski"},Lyr={name:"HyperonChain TestNet",chain:"HPN",icon:{url:"ipfs://QmWxhyxXTEsWH98v7M3ck4ZL1qQoUaHG4HgtgxzD2KJQ5m",width:540,height:541,format:"png"},rpc:["https://hyperonchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.hyperonchain.com"],faucets:["https://faucet.hyperonchain.com"],nativeCurrency:{name:"HyperonChain",symbol:"HPN",decimals:18},infoURL:"https://docs.hyperonchain.com",shortName:"hpn",chainId:400,networkId:400,explorers:[{name:"blockscout",url:"https://testnet.hyperonchain.com",icon:"hyperonchain",standard:"EIP3091"}],testnet:!0,slug:"hyperonchain-testnet"},qyr={name:"SX Network Mainnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sx.technology"],faucets:[],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX",chainId:416,networkId:416,explorers:[{name:"SX Network Explorer",url:"https://explorer.sx.technology",standard:"EIP3091"}],testnet:!1,slug:"sx-network"},Fyr={name:"LA Testnet",chain:"LATestnet",rpc:["https://la-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.lachain.network"],faucets:[],nativeCurrency:{name:"Test La Coin",symbol:"TLA",decimals:18},features:[{name:"EIP155"}],infoURL:"",shortName:"latestnet",chainId:418,networkId:418,explorers:[],testnet:!0,slug:"la-testnet"},Wyr={name:"Optimism Goerli Testnet",chain:"ETH",rpc:["https://optimism-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://opt-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://optimism-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli.optimism.io/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://optimism.io",shortName:"ogor",chainId:420,networkId:420,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/optimism/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"optimism-goerli"},Uyr={name:"Zeeth Chain",chain:"ZeethChain",rpc:["https://zeeth-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeeth",chainId:427,networkId:427,explorers:[{name:"Zeeth Explorer",url:"https://explorer.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain"},Hyr={name:"Frenchain Testnet",chain:"tfren",rpc:["https://frenchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-01tn.frenchain.app"],faucets:[],nativeCurrency:{name:"tFREN",symbol:"FtREN",decimals:18},infoURL:"https://frenchain.app",shortName:"tFREN",chainId:444,networkId:444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://testnet.frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!0,slug:"frenchain-testnet"},jyr={name:"Rupaya",chain:"RUPX",rpc:[],faucets:[],nativeCurrency:{name:"Rupaya",symbol:"RUPX",decimals:18},infoURL:"https://www.rupx.io",shortName:"rupx",chainId:499,networkId:499,slip44:499,testnet:!1,slug:"rupaya"},zyr={name:"Camino C-Chain",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Camino",chainId:500,networkId:1e3,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation/mainnet",standard:"none"}],testnet:!1,slug:"camino-c-chain"},Kyr={name:"Columbus Test Network",chain:"CAM",rpc:[],faucets:[],nativeCurrency:{name:"Camino",symbol:"CAM",decimals:18},infoURL:"https://camino.foundation/",shortName:"Columbus",chainId:501,networkId:1001,icon:{url:"ipfs://QmSEoUonisawfCvT3osysuZzbqUEHugtgNraePKWL8PKYa",width:768,height:768,format:"png"},explorers:[{name:"blockexplorer",url:"https://explorer.camino.foundation",standard:"none"}],testnet:!0,slug:"columbus-test-network"},Gyr={name:"Double-A Chain Mainnet",chain:"AAC",rpc:["https://double-a-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.acuteangle.com"],faucets:[],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aac",chainId:512,networkId:512,slip44:1512,explorers:[{name:"aacscan",url:"https://scan.acuteangle.com",standard:"EIP3091"}],icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},testnet:!1,slug:"double-a-chain"},Vyr={name:"Double-A Chain Testnet",chain:"AAC",icon:{url:"ipfs://QmRUrz4dULaoaMpnqd8qXT7ehwz3aaqnYKY4ePsy7isGaF",width:512,height:512,format:"png"},rpc:["https://double-a-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.acuteangle.com"],faucets:["https://scan-testnet.acuteangle.com/faucet"],nativeCurrency:{name:"Acuteangle Native Token",symbol:"AAC",decimals:18},infoURL:"https://www.acuteangle.com/",shortName:"aact",chainId:513,networkId:513,explorers:[{name:"aacscan-testnet",url:"https://scan-testnet.acuteangle.com",standard:"EIP3091"}],testnet:!0,slug:"double-a-chain-testnet"},$yr={name:"Gear Zero Network Mainnet",chain:"GearZero",rpc:["https://gear-zero-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/mainnet",shortName:"gz-mainnet",chainId:516,networkId:516,slip44:516,explorers:[],testnet:!1,slug:"gear-zero-network"},Yyr={name:"XT Smart Chain Mainnet",chain:"XSC",icon:{url:"ipfs://QmNmAFgQKkjofaBR5mhB5ygE1Gna36YBVsGkgZQxrwW85s",width:98,height:96,format:"png"},rpc:["https://xt-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://datarpc1.xsc.pub","https://datarpc2.xsc.pub","https://datarpc3.xsc.pub"],faucets:["https://xsc.pub/faucet"],nativeCurrency:{name:"XT Smart Chain Native Token",symbol:"XT",decimals:18},infoURL:"https://xsc.pub/",shortName:"xt",chainId:520,networkId:1024,explorers:[{name:"xscscan",url:"https://xscscan.pub",standard:"EIP3091"}],testnet:!1,slug:"xt-smart-chain"},Jyr={name:"Firechain Mainnet",chain:"FIRE",icon:{url:"ipfs://QmYjuztyURb3Fc6ZTLgCbwQa64CcVoigF5j9cafzuSbqgf",width:512,height:512,format:"png"},rpc:["https://firechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rpc1.thefirechain.com"],faucets:[],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"fire",chainId:529,networkId:529,explorers:[],status:"incubating",testnet:!1,slug:"firechain"},Qyr={name:"F(x)Core Mainnet Network",chain:"Fxcore",rpc:["https://f-x-core-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fx-json-web3.functionx.io:8545"],faucets:[],nativeCurrency:{name:"Function X",symbol:"FX",decimals:18},infoURL:"https://functionx.io/",shortName:"FxCore",chainId:530,networkId:530,icon:{url:"ipfs://bafkreifrf2iq3k3dqfbvp3pacwuxu33up3usmrhojt5ielyfty7xkixu3i",width:500,height:500,format:"png"},explorers:[{name:"FunctionX Explorer",url:"https://fx-evm.functionx.io",standard:"EIP3091"}],testnet:!1,slug:"f-x-core-network"},Zyr={name:"Candle",chain:"Candle",rpc:["https://candle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://candle-rpc.com/","https://rpc.cndlchain.com"],faucets:[],nativeCurrency:{name:"CANDLE",symbol:"CNDL",decimals:18},infoURL:"https://candlelabs.org/",shortName:"CNDL",chainId:534,networkId:534,slip44:674,explorers:[{name:"candleexplorer",url:"https://candleexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"candle"},Xyr={name:"Vela1 Chain Mainnet",chain:"VELA1",rpc:["https://vela1-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.velaverse.io"],faucets:[],nativeCurrency:{name:"CLASS COIN",symbol:"CLASS",decimals:18},infoURL:"https://velaverse.io",shortName:"CLASS",chainId:555,networkId:555,explorers:[{name:"Vela1 Chain Mainnet Explorer",url:"https://exp.velaverse.io",standard:"EIP3091"}],testnet:!1,slug:"vela1-chain"},e1r={name:"Tao Network",chain:"TAO",rpc:["https://tao-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.tao.network","http://rpc.testnet.tao.network:8545","https://rpc.tao.network","wss://rpc.tao.network"],faucets:[],nativeCurrency:{name:"Tao",symbol:"TAO",decimals:18},infoURL:"https://tao.network",shortName:"tao",chainId:558,networkId:558,testnet:!0,slug:"tao-network"},t1r={name:"Dogechain Testnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.dogechain.dog"],faucets:["https://faucet.dogechain.dog"],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dct",chainId:568,networkId:568,explorers:[{name:"dogechain testnet explorer",url:"https://explorer-testnet.dogechain.dog",standard:"EIP3091"}],testnet:!0,slug:"dogechain-testnet"},r1r={name:"Astar",chain:"ASTR",rpc:["https://astar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astar.network:8545"],faucets:[],nativeCurrency:{name:"Astar",symbol:"ASTR",decimals:18},infoURL:"https://astar.network/",shortName:"astr",chainId:592,networkId:592,icon:{url:"ipfs://Qmdvmx3p6gXBCLUMU1qivscaTNkT6h3URdhUTZCHLwKudg",width:1e3,height:1e3,format:"png"},explorers:[{name:"subscan",url:"https://astar.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"astar"},n1r={name:"Acala Mandala Testnet",chain:"mACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Mandala Token",symbol:"mACA",decimals:18},infoURL:"https://acala.network",shortName:"maca",chainId:595,networkId:595,testnet:!0,slug:"acala-mandala-testnet"},a1r={name:"Karura Network Testnet",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"tkar",chainId:596,networkId:596,slip44:596,testnet:!0,slug:"karura-network-testnet"},i1r={name:"Acala Network Testnet",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"taca",chainId:597,networkId:597,slip44:597,testnet:!0,slug:"acala-network-testnet"},s1r={name:"Metis Goerli Testnet",chain:"ETH",rpc:["https://metis-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.gateway.metisdevops.link"],faucets:["https://goerli.faucet.metisdevops.link"],nativeCurrency:{name:"Goerli Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-goerli",chainId:599,networkId:599,explorers:[{name:"blockscout",url:"https://goerli.explorer.metisdevops.link",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://testnet-bridge.metis.io"}]},testnet:!0,slug:"metis-goerli-testnet"},o1r={name:"Meshnyan testnet",chain:"MeshTestChain",rpc:[],faucets:[],nativeCurrency:{name:"Meshnyan Testnet Native Token",symbol:"MESHT",decimals:18},infoURL:"",shortName:"mesh-chain-testnet",chainId:600,networkId:600,testnet:!0,slug:"meshnyan-testnet"},c1r={name:"Graphlinq Blockchain Mainnet",chain:"GLQ Blockchain",rpc:["https://graphlinq-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://glq-dataseed.graphlinq.io"],faucets:[],nativeCurrency:{name:"GLQ",symbol:"GLQ",decimals:18},infoURL:"https://graphlinq.io",shortName:"glq",chainId:614,networkId:614,explorers:[{name:"GLQ Explorer",url:"https://explorer.graphlinq.io",standard:"none"}],testnet:!1,slug:"graphlinq-blockchain"},u1r={name:"SX Network Testnet",chain:"SX",icon:{url:"ipfs://QmSXLXqyr2H6Ja5XrmznXbWTEvF2gFaL8RXNXgyLmDHjAF",width:896,height:690,format:"png"},rpc:["https://sx-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.toronto.sx.technology"],faucets:["https://faucet.toronto.sx.technology"],nativeCurrency:{name:"SX Network",symbol:"SX",decimals:18},infoURL:"https://www.sx.technology",shortName:"SX-Testnet",chainId:647,networkId:647,explorers:[{name:"SX Network Toronto Explorer",url:"https://explorer.toronto.sx.technology",standard:"EIP3091"}],testnet:!0,slug:"sx-network-testnet"},l1r={name:"Endurance Smart Chain Mainnet",chain:"ACE",rpc:["https://endurance-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-endurance.fusionist.io/"],faucets:[],nativeCurrency:{name:"Endurance Chain Native Token",symbol:"ACE",decimals:18},infoURL:"https://ace.fusionist.io/",shortName:"ace",chainId:648,networkId:648,explorers:[{name:"Endurance Scan",url:"https://explorer.endurance.fusionist.io",standard:"EIP3091"}],testnet:!1,slug:"endurance-smart-chain"},d1r={name:"Pixie Chain Testnet",chain:"PixieChain",rpc:["https://pixie-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.chain.pixie.xyz","wss://ws-testnet.chain.pixie.xyz"],faucets:["https://chain.pixie.xyz/faucet"],nativeCurrency:{name:"Pixie Chain Testnet Native Token",symbol:"PCTT",decimals:18},infoURL:"https://scan-testnet.chain.pixie.xyz",shortName:"pixie-chain-testnet",chainId:666,networkId:666,testnet:!0,slug:"pixie-chain-testnet"},p1r={name:"Karura Network",chain:"KAR",rpc:[],faucets:[],nativeCurrency:{name:"Karura Token",symbol:"KAR",decimals:18},infoURL:"https://karura.network",shortName:"kar",chainId:686,networkId:686,slip44:686,testnet:!1,slug:"karura-network"},h1r={name:"Star Social Testnet",chain:"SNS",rpc:["https://star-social-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avastar.cc/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Social",symbol:"SNS",decimals:18},infoURL:"https://info.avastar.cc",shortName:"SNS",chainId:700,networkId:700,explorers:[{name:"starscan",url:"https://avastar.info",standard:"EIP3091"}],testnet:!0,slug:"star-social-testnet"},f1r={name:"BlockChain Station Mainnet",chain:"BCS",rpc:["https://blockchain-station.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.bcsdev.io","wss://rpc-ws-mainnet.bcsdev.io"],faucets:[],nativeCurrency:{name:"BCS Token",symbol:"BCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"bcs",chainId:707,networkId:707,explorers:[{name:"BlockChain Station Explorer",url:"https://explorer.bcsdev.io",standard:"EIP3091"}],testnet:!1,slug:"blockchain-station"},m1r={name:"BlockChain Station Testnet",chain:"BCS",rpc:["https://blockchain-station-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bcsdev.io","wss://rpc-ws-testnet.bcsdev.io"],faucets:["https://faucet.bcsdev.io"],nativeCurrency:{name:"BCS Testnet Token",symbol:"tBCS",decimals:18},infoURL:"https://blockchainstation.io",shortName:"tbcs",chainId:708,networkId:708,explorers:[{name:"BlockChain Station Explorer",url:"https://testnet.bcsdev.io",standard:"EIP3091"}],testnet:!0,slug:"blockchain-station-testnet"},y1r={name:"Lycan Chain",chain:"LYC",rpc:["https://lycan-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lycanchain.com/"],faucets:[],nativeCurrency:{name:"Lycan",symbol:"LYC",decimals:18},infoURL:"https://lycanchain.com",shortName:"LYC",chainId:721,networkId:721,icon:{url:"ipfs://Qmc8hsCbUUjnJDnXrDhFh4V1xk1gJwZbUyNJ39p72javji",width:400,height:400,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.lycanchain.com",standard:"EIP3091"}],testnet:!1,slug:"lycan-chain"},g1r={name:"Canto Testnet",chain:"Canto Tesnet",rpc:["https://canto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.plexnode.wtf/"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"tcanto",chainId:740,networkId:740,explorers:[{name:"Canto Tesnet Explorer (Neobase)",url:"http://testnet-explorer.canto.neobase.one",standard:"none"}],testnet:!0,slug:"canto-testnet"},b1r={name:"Vention Smart Chain Testnet",chain:"VSCT",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node-testnet.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://testnet.ventionscan.io",shortName:"vsct",chainId:741,networkId:741,explorers:[{name:"ventionscan",url:"https://testnet.ventionscan.io",standard:"EIP3091"}],testnet:!0,slug:"vention-smart-chain-testnet"},v1r={name:"QL1",chain:"QOM",status:"incubating",rpc:["https://ql1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qom.one"],faucets:[],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"qom",chainId:766,networkId:766,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Mainnet Explorer",url:"https://mainnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!1,slug:"ql1"},w1r={name:"OpenChain Testnet",chain:"OpenChain Testnet",rpc:[],faucets:["https://faucet.openchain.info/"],nativeCurrency:{name:"Openchain Testnet",symbol:"TOPC",decimals:18},infoURL:"https://testnet.openchain.info/",shortName:"opc",chainId:776,networkId:776,explorers:[{name:"OPEN CHAIN TESTNET",url:"https://testnet.openchain.info",standard:"none"}],testnet:!0,slug:"openchain-testnet"},_1r={name:"cheapETH",chain:"cheapETH",rpc:["https://cheapeth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.cheapeth.org/rpc"],faucets:[],nativeCurrency:{name:"cTH",symbol:"cTH",decimals:18},infoURL:"https://cheapeth.org/",shortName:"cth",chainId:777,networkId:777,testnet:!1,slug:"cheapeth"},x1r={name:"Acala Network",chain:"ACA",rpc:[],faucets:[],nativeCurrency:{name:"Acala Token",symbol:"ACA",decimals:18},infoURL:"https://acala.network",shortName:"aca",chainId:787,networkId:787,slip44:787,testnet:!1,slug:"acala-network"},T1r={name:"Aerochain Testnet",chain:"Aerochain",rpc:["https://aerochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.aerochain.id/"],faucets:["https://faucet.aerochain.id/"],nativeCurrency:{name:"Aerochain Testnet",symbol:"TAero",decimals:18},infoURL:"https://aerochaincoin.org/",shortName:"taero",chainId:788,networkId:788,explorers:[{name:"aeroscan",url:"https://testnet.aeroscan.id",standard:"EIP3091"}],testnet:!0,slug:"aerochain-testnet"},E1r={name:"Lucid Blockchain",chain:"Lucid Blockchain",icon:{url:"ipfs://bafybeigxiyyxll4vst5cjjh732mr6zhsnligxubaldyiul2xdvvi6ibktu",width:800,height:800,format:"png"},rpc:["https://lucid-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.lucidcoin.io"],faucets:["https://faucet.lucidcoin.io"],nativeCurrency:{name:"LUCID",symbol:"LUCID",decimals:18},infoURL:"https://lucidcoin.io",shortName:"LUCID",chainId:800,networkId:800,explorers:[{name:"Lucid Explorer",url:"https://explorer.lucidcoin.io",standard:"none"}],testnet:!1,slug:"lucid-blockchain"},C1r={name:"Haic",chain:"Haic",rpc:["https://haic.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://orig.haichain.io/"],faucets:[],nativeCurrency:{name:"Haicoin",symbol:"HAIC",decimals:18},infoURL:"https://www.haichain.io/",shortName:"haic",chainId:803,networkId:803,testnet:!1,slug:"haic"},I1r={name:"Portal Fantasy Chain Test",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:["https://portal-fantasy-chain-test.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/portal-fantasy/testnet/rpc"],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PFTEST",chainId:808,networkId:808,explorers:[],testnet:!0,slug:"portal-fantasy-chain-test"},k1r={name:"Qitmeer",chain:"MEER",rpc:["https://qitmeer.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-dataseed1.meerscan.io","https://evm-dataseed2.meerscan.io","https://evm-dataseed3.meerscan.io","https://evm-dataseed.meerscan.com","https://evm-dataseed1.meerscan.com","https://evm-dataseed2.meerscan.com"],faucets:[],nativeCurrency:{name:"Qitmeer",symbol:"MEER",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meer",chainId:813,networkId:813,slip44:813,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan",url:"https://evm.meerscan.com",standard:"none"}],testnet:!1,slug:"qitmeer"},A1r={name:"Callisto Mainnet",chain:"CLO",rpc:["https://callisto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.callisto.network/"],faucets:[],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"clo",chainId:820,networkId:1,slip44:820,testnet:!1,slug:"callisto"},S1r={name:"Taraxa Mainnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"tara",chainId:841,networkId:841,explorers:[{name:"Taraxa Explorer",url:"https://explorer.mainnet.taraxa.io",standard:"none"}],testnet:!1,slug:"taraxa"},P1r={name:"Taraxa Testnet",chain:"Tara",icon:{url:"ipfs://QmQhdktNyBeXmCaVuQpi1B4yXheSUKrJA17L4wpECKzG5D",width:310,height:310,format:"png"},rpc:["https://taraxa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.taraxa.io/"],faucets:[],nativeCurrency:{name:"Tara",symbol:"TARA",decimals:18},infoURL:"https://taraxa.io",shortName:"taratest",chainId:842,networkId:842,explorers:[{name:"Taraxa Explorer",url:"https://explorer.testnet.taraxa.io",standard:"none"}],testnet:!0,slug:"taraxa-testnet"},R1r={name:"Zeeth Chain Dev",chain:"ZeethChainDev",rpc:["https://zeeth-chain-dev.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.zeeth.io"],faucets:[],nativeCurrency:{name:"Zeeth Token",symbol:"ZTH",decimals:18},infoURL:"",shortName:"zeethdev",chainId:859,networkId:859,explorers:[{name:"Zeeth Explorer Dev",url:"https://explorer.dev.zeeth.io",standard:"none"}],testnet:!1,slug:"zeeth-chain-dev"},M1r={name:"Fantasia Chain Mainnet",chain:"FSC",rpc:["https://fantasia-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-data1.fantasiachain.com/","https://mainnet-data2.fantasiachain.com/","https://mainnet-data3.fantasiachain.com/"],faucets:[],nativeCurrency:{name:"FST",symbol:"FST",decimals:18},infoURL:"https://fantasia.technology/",shortName:"FSCMainnet",chainId:868,networkId:868,explorers:[{name:"FSCScan",url:"https://explorer.fantasiachain.com",standard:"EIP3091"}],testnet:!1,slug:"fantasia-chain"},N1r={name:"Bandai Namco Research Verse Mainnet",chain:"Bandai Namco Research Verse",icon:{url:"ipfs://bafkreifhetalm3vpvjrg5u5d2momkcgvkz6rhltur5co3rslltbxzpr6yq",width:2048,height:2048,format:"png"},rpc:["https://bandai-namco-research-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.oasvrs.bnken.net"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.bandainamco-mirai.com/en/",shortName:"BNKEN",chainId:876,networkId:876,explorers:[{name:"Bandai Namco Research Verse Explorer",url:"https://explorer.main.oasvrs.bnken.net",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"bandai-namco-research-verse"},B1r={name:"Dexit Network",chain:"DXT",rpc:["https://dexit-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dxt.dexit.network"],faucets:["https://faucet.dexit.network"],nativeCurrency:{name:"Dexit network",symbol:"DXT",decimals:18},infoURL:"https://dexit.network",shortName:"DXT",chainId:877,networkId:877,explorers:[{name:"dxtscan",url:"https://dxtscan.com",standard:"EIP3091"}],testnet:!1,slug:"dexit-network"},D1r={name:"Ambros Chain Mainnet",chain:"ambroschain",rpc:["https://ambros-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ambros.network"],faucets:[],nativeCurrency:{name:"AMBROS",symbol:"AMBROS",decimals:18},infoURL:"https://ambros.network",shortName:"ambros",chainId:880,networkId:880,explorers:[{name:"Ambros Chain Explorer",url:"https://ambrosscan.com",standard:"none"}],testnet:!1,slug:"ambros-chain"},O1r={name:"Wanchain",chain:"WAN",rpc:["https://wanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:56891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://www.wanscan.org",shortName:"wan",chainId:888,networkId:888,slip44:5718350,testnet:!1,slug:"wanchain"},L1r={name:"Garizon Testnet Stage0",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s0-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s0",chainId:900,networkId:900,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],testnet:!0,slug:"garizon-testnet-stage0"},q1r={name:"Garizon Testnet Stage1",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s1-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s1",chainId:901,networkId:901,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage1"},F1r={name:"Garizon Testnet Stage2",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s2",chainId:902,networkId:902,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage2"},W1r={name:"Garizon Testnet Stage3",chain:"GAR",icon:{url:"ipfs://QmW3WRyuLZ95K8hvV2QN6rP5yWY98sSzWyVUxD2eUjXGrc",width:1024,height:613,format:"png"},rpc:["https://garizon-testnet-stage3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s3-testnet.garizon.net/rpc"],faucets:["https://faucet-testnet.garizon.com"],nativeCurrency:{name:"Garizon",symbol:"GAR",decimals:18},infoURL:"https://garizon.com",shortName:"gar-test-s3",chainId:903,networkId:903,explorers:[{name:"explorer",url:"https://explorer-testnet.garizon.com",icon:"garizon",standard:"EIP3091"}],parent:{chain:"eip155-900",type:"shard"},testnet:!0,slug:"garizon-testnet-stage3"},U1r={name:"Portal Fantasy Chain",chain:"PF",icon:{url:"ipfs://QmeMa6aw3ebUKJdGgbzDgcVtggzp7cQdfSrmzMYmnt5ywc",width:200,height:200,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Portal Fantasy Token",symbol:"PFT",decimals:18},infoURL:"https://portalfantasy.io",shortName:"PF",chainId:909,networkId:909,explorers:[],status:"incubating",testnet:!1,slug:"portal-fantasy-chain"},H1r={name:"Rinia Testnet",chain:"FIRE",icon:{url:"ipfs://QmRnnw2gtbU9TWJMLJ6tks7SN6HQV5rRugeoyN6csTYHt1",width:512,height:512,format:"png"},rpc:["https://rinia-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinia.rpc1.thefirechain.com"],faucets:["https://faucet.thefirechain.com"],nativeCurrency:{name:"Firechain",symbol:"FIRE",decimals:18},infoURL:"https://thefirechain.com",shortName:"tfire",chainId:917,networkId:917,explorers:[],status:"incubating",testnet:!0,slug:"rinia-testnet"},j1r={name:"PulseChain Testnet",shortName:"tpls",chain:"tPLS",chainId:940,networkId:940,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2.testnet.pulsechain.com/","wss://rpc.v2.testnet.pulsechain.com/"],faucets:["https://faucet.v2.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet"},z1r={name:"PulseChain Testnet v2b",shortName:"t2bpls",chain:"t2bPLS",chainId:941,networkId:941,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v2b.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v2b.testnet.pulsechain.com/","wss://rpc.v2b.testnet.pulsechain.com/"],faucets:["https://faucet.v2b.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v2b"},K1r={name:"PulseChain Testnet v3",shortName:"t3pls",chain:"t3PLS",chainId:942,networkId:942,infoURL:"https://pulsechain.com/",rpc:["https://pulsechain-testnet-v3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.v3.testnet.pulsechain.com/","wss://rpc.v3.testnet.pulsechain.com/"],faucets:["https://faucet.v3.testnet.pulsechain.com/"],nativeCurrency:{name:"Test Pulse",symbol:"tPLS",decimals:18},testnet:!0,slug:"pulsechain-testnet-v3"},G1r={name:"muNode Testnet",chain:"munode",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://munode.dev/",shortName:"munode",chainId:956,networkId:956,testnet:!0,slug:"munode-testnet"},V1r={name:"Oort Mainnet",chain:"Oort Mainnet",rpc:["https://oort.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"ccn",chainId:970,networkId:970,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort"},$1r={name:"Oort Huygens",chain:"Huygens",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"Huygens",chainId:971,networkId:971,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-huygens"},Y1r={name:"Oort Ascraeus",title:"Oort Ascraeus",chain:"Ascraeus",rpc:["https://oort-ascraeus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ascraeus-rpc.oortech.com"],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCNA",decimals:18},infoURL:"https://oortech.com",shortName:"Ascraeus",chainId:972,networkId:972,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-ascraeus"},J1r={name:"Nepal Blockchain Network",chain:"YETI",rpc:["https://nepal-blockchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.nepalblockchain.dev","https://api.nepalblockchain.network"],faucets:["https://faucet.nepalblockchain.network"],nativeCurrency:{name:"Nepal Blockchain Network Ether",symbol:"YETI",decimals:18},infoURL:"https://nepalblockchain.network",shortName:"yeti",chainId:977,networkId:977,testnet:!1,slug:"nepal-blockchain-network"},Q1r={name:"TOP Mainnet EVM",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:["https://top-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethapi.topnetwork.org"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://www.topnetwork.org/",shortName:"top_evm",chainId:980,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top-evm"},Z1r={name:"Memo Smart Chain Mainnet",chain:"MEMO",rpc:["https://memo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.metamemo.one:8501","wss://chain.metamemo.one:16801"],faucets:["https://faucet.metamemo.one/"],nativeCurrency:{name:"Memo",symbol:"CMEMO",decimals:18},infoURL:"www.memolabs.org",shortName:"memochain",chainId:985,networkId:985,icon:{url:"ipfs://bafkreig52paynhccs4o5ew6f7mk3xoqu2bqtitmfvlgnwarh2pm33gbdrq",width:128,height:128,format:"png"},explorers:[{name:"Memo Mainnet Explorer",url:"https://scan.metamemo.one:8080",icon:"memo",standard:"EIP3091"}],testnet:!1,slug:"memo-smart-chain"},X1r={name:"TOP Mainnet",chain:"TOP",icon:{url:"ipfs://QmYikaM849eZrL8pGNeVhEHVTKWpxdGMvCY5oFBfZ2ndhd",width:800,height:800,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"TOP",symbol:"TOP",decimals:6},infoURL:"https://www.topnetwork.org/",shortName:"top",chainId:989,networkId:0,explorers:[{name:"topscan.dev",url:"https://www.topscan.io",standard:"none"}],testnet:!1,slug:"top"},egr={name:"Lucky Network",chain:"LN",rpc:["https://lucky-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.luckynetwork.org","wss://ws.lnscan.org","https://rpc.lnscan.org"],faucets:[],nativeCurrency:{name:"Lucky",symbol:"L99",decimals:18},infoURL:"https://luckynetwork.org",shortName:"ln",chainId:998,networkId:998,icon:{url:"ipfs://bafkreidmvcd5i7touug55hj45mf2pgabxamy5fziva7mtx5n664s3yap6m",width:205,height:28,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.luckynetwork.org",standard:"none"},{name:"expedition",url:"https://lnscan.org",standard:"none"}],testnet:!1,slug:"lucky-network"},tgr={name:"Wanchain Testnet",chain:"WAN",rpc:["https://wanchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gwan-ssl.wandevs.org:46891/"],faucets:[],nativeCurrency:{name:"Wancoin",symbol:"WAN",decimals:18},infoURL:"https://testnet.wanscan.org",shortName:"twan",chainId:999,networkId:999,testnet:!0,slug:"wanchain-testnet"},rgr={name:"GTON Mainnet",chain:"GTON",rpc:["https://gton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"gton",chainId:1e3,networkId:1e3,explorers:[{name:"GTON Network Explorer",url:"https://explorer.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1"},testnet:!1,slug:"gton"},ngr={name:"Klaytn Testnet Baobab",chain:"KLAY",rpc:["https://klaytn-testnet-baobab.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.baobab.klaytn.net:8651"],faucets:["https://baobab.wallet.klaytn.com/access?next=faucet"],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Baobab",chainId:1001,networkId:1001,testnet:!0,slug:"klaytn-testnet-baobab"},agr={name:"T-EKTA",title:"EKTA Testnet T-EKTA",chain:"T-EKTA",rpc:["https://t-ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.ekta.io:8545"],faucets:[],nativeCurrency:{name:"T-EKTA",symbol:"T-EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"t-ekta",chainId:1004,networkId:1004,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"test-ektascan",url:"https://test.ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!0,slug:"t-ekta"},igr={name:"Newton Testnet",chain:"NEW",rpc:["https://newton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.newchain.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"tnew",chainId:1007,networkId:1007,testnet:!0,slug:"newton-testnet"},sgr={name:"Eurus Mainnet",chain:"EUN",rpc:["https://eurus.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eurus.network/"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"eun",chainId:1008,networkId:1008,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"eurusexplorer",url:"https://explorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!1,slug:"eurus"},ogr={name:"Evrice Network",chain:"EVC",rpc:["https://evrice-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://meta.evrice.com"],faucets:[],nativeCurrency:{name:"Evrice",symbol:"EVC",decimals:18},infoURL:"https://evrice.com",shortName:"EVC",chainId:1010,networkId:1010,slip44:1020,testnet:!1,slug:"evrice-network"},cgr={name:"Newton",chain:"NEW",rpc:["https://newton.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://global.rpc.mainnet.newtonproject.org"],faucets:[],nativeCurrency:{name:"Newton",symbol:"NEW",decimals:18},infoURL:"https://www.newtonproject.org/",shortName:"new",chainId:1012,networkId:1012,testnet:!1,slug:"newton"},ugr={name:"Sakura",chain:"Sakura",rpc:[],faucets:[],nativeCurrency:{name:"Sakura",symbol:"SKU",decimals:18},infoURL:"https://clover.finance/sakura",shortName:"sku",chainId:1022,networkId:1022,testnet:!1,slug:"sakura"},lgr={name:"Clover Testnet",chain:"Clover",rpc:[],faucets:[],nativeCurrency:{name:"Clover",symbol:"CLV",decimals:18},infoURL:"https://clover.finance",shortName:"tclv",chainId:1023,networkId:1023,testnet:!0,slug:"clover-testnet"},dgr={name:"CLV Parachain",chain:"CLV",rpc:["https://clv-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api-para.clover.finance"],faucets:[],nativeCurrency:{name:"CLV",symbol:"CLV",decimals:18},infoURL:"https://clv.org",shortName:"clv",chainId:1024,networkId:1024,testnet:!1,slug:"clv-parachain"},pgr={name:"BitTorrent Chain Testnet",chain:"BTTC",rpc:["https://bittorrent-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.bittorrentchain.io/"],faucets:[],nativeCurrency:{name:"BitTorrent",symbol:"BTT",decimals:18},infoURL:"https://bittorrentchain.io/",shortName:"tbtt",chainId:1028,networkId:1028,explorers:[{name:"testbttcscan",url:"https://testscan.bittorrentchain.io",standard:"none"}],testnet:!0,slug:"bittorrent-chain-testnet"},hgr={name:"Conflux eSpace",chain:"Conflux",rpc:["https://conflux-espace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.confluxrpc.com"],faucets:[],nativeCurrency:{name:"CFX",symbol:"CFX",decimals:18},infoURL:"https://confluxnetwork.org",shortName:"cfx",chainId:1030,networkId:1030,icon:{url:"ipfs://bafkreifj7n24u2dslfijfihwqvpdeigt5aj3k3sxv6s35lv75sxsfr3ojy",width:460,height:576,format:"png"},explorers:[{name:"Conflux Scan",url:"https://evm.confluxscan.net",standard:"none"}],testnet:!1,slug:"conflux-espace"},fgr={name:"Proxy Network Testnet",chain:"Proxy Network",rpc:["https://proxy-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://128.199.94.183:8041"],faucets:[],nativeCurrency:{name:"PRX",symbol:"PRX",decimals:18},infoURL:"https://theproxy.network",shortName:"prx",chainId:1031,networkId:1031,explorers:[{name:"proxy network testnet",url:"http://testnet-explorer.theproxy.network",standard:"EIP3091"}],testnet:!0,slug:"proxy-network-testnet"},mgr={name:"Bronos Testnet",chain:"Bronos",rpc:["https://bronos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-testnet.bronos.org"],faucets:["https://faucet.bronos.org"],nativeCurrency:{name:"tBRO",symbol:"tBRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-testnet",chainId:1038,networkId:1038,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Testnet Explorer",url:"https://tbroscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!0,slug:"bronos-testnet"},ygr={name:"Bronos Mainnet",chain:"Bronos",rpc:[],faucets:[],nativeCurrency:{name:"BRO",symbol:"BRO",decimals:18},infoURL:"https://bronos.org",shortName:"bronos-mainnet",chainId:1039,networkId:1039,icon:{url:"ipfs://bafybeifkgtmhnq4sxu6jn22i7ass7aih6ubodr77k6ygtu4tjbvpmkw2ga",width:500,height:500,format:"png"},explorers:[{name:"Bronos Explorer",url:"https://broscan.bronos.org",standard:"none",icon:"bronos"}],testnet:!1,slug:"bronos"},ggr={name:"Metis Andromeda Mainnet",chain:"ETH",rpc:["https://metis-andromeda.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://andromeda.metis.io/?owner=1088"],faucets:[],nativeCurrency:{name:"Metis",symbol:"METIS",decimals:18},infoURL:"https://www.metis.io",shortName:"metis-andromeda",chainId:1088,networkId:1088,explorers:[{name:"blockscout",url:"https://andromeda-explorer.metis.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.metis.io"}]},testnet:!1,slug:"metis-andromeda"},bgr={name:"MOAC mainnet",chain:"MOAC",rpc:[],faucets:[],nativeCurrency:{name:"MOAC",symbol:"mc",decimals:18},infoURL:"https://moac.io",shortName:"moac",chainId:1099,networkId:1099,slip44:314,explorers:[{name:"moac explorer",url:"https://explorer.moac.io",standard:"none"}],testnet:!1,slug:"moac"},vgr={name:"WEMIX3.0 Mainnet",chain:"WEMIX",rpc:["https://wemix3-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.wemix.com","wss://ws.wemix.com"],faucets:[],nativeCurrency:{name:"WEMIX",symbol:"WEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"wemix",chainId:1111,networkId:1111,explorers:[{name:"WEMIX Block Explorer",url:"https://explorer.wemix.com",standard:"EIP3091"}],testnet:!1,slug:"wemix3-0"},wgr={name:"WEMIX3.0 Testnet",chain:"TWEMIX",rpc:["https://wemix3-0-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.test.wemix.com","wss://ws.test.wemix.com"],faucets:["https://wallet.test.wemix.com/faucet"],nativeCurrency:{name:"TestnetWEMIX",symbol:"tWEMIX",decimals:18},infoURL:"https://wemix.com",shortName:"twemix",chainId:1112,networkId:1112,explorers:[{name:"WEMIX Testnet Microscope",url:"https://microscope.test.wemix.com",standard:"EIP3091"}],testnet:!0,slug:"wemix3-0-testnet"},_gr={name:"Core Blockchain Testnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.test.btcs.network/"],faucets:["https://scan.test.btcs.network/faucet"],nativeCurrency:{name:"Core Blockchain Testnet Native Token",symbol:"tCORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"tcore",chainId:1115,networkId:1115,explorers:[{name:"Core Scan Testnet",url:"https://scan.test.btcs.network",icon:"core",standard:"EIP3091"}],testnet:!0,slug:"core-blockchain-testnet"},xgr={name:"Core Blockchain Mainnet",chain:"Core",icon:{url:"ipfs://QmeTQaBCkpbsxNNWTpoNrMsnwnAEf1wYTcn7CiiZGfUXD2",width:200,height:217,format:"png"},rpc:["https://core-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.coredao.org/","https://rpc-core.icecreamswap.com"],faucets:[],nativeCurrency:{name:"Core Blockchain Native Token",symbol:"CORE",decimals:18},infoURL:"https://www.coredao.org",shortName:"core",chainId:1116,networkId:1116,explorers:[{name:"Core Scan",url:"https://scan.coredao.org",icon:"core",standard:"EIP3091"}],testnet:!1,slug:"core-blockchain"},Tgr={name:"Dogcoin Mainnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSm",chainId:1117,networkId:1117,explorers:[{name:"Dogcoin",url:"https://explorer.dogcoin.network",standard:"EIP3091"}],testnet:!1,slug:"dogcoin"},Egr={name:"DeFiChain EVM Network Mainnet",chain:"defichain-evm",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI",chainId:1130,networkId:1130,slip44:1130,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"defichain-evm-network"},Cgr={name:"DeFiChain EVM Network Testnet",chain:"defichain-evm-testnet",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"DeFiChain",symbol:"DFI",decimals:18},infoURL:"https://meta.defichain.com/",shortName:"DFI-T",chainId:1131,networkId:1131,icon:{url:"ipfs://QmdR3YL9F95ajwVwfxAGoEzYwm9w7JNsPSfUPjSaQogVjK",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"defichain-evm-network-testnet"},Igr={name:"AmStar Testnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASARt",chainId:1138,networkId:1138,explorers:[{name:"amstarscan-testnet",url:"https://testnet.amstarscan.com",standard:"EIP3091"}],testnet:!0,slug:"amstar-testnet"},kgr={name:"MathChain",chain:"MATH",rpc:["https://mathchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mathchain-asia.maiziqianbao.net/rpc","https://mathchain-us.maiziqianbao.net/rpc"],faucets:[],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"MATH",chainId:1139,networkId:1139,testnet:!1,slug:"mathchain"},Agr={name:"MathChain Testnet",chain:"MATH",rpc:["https://mathchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galois-hk.maiziqianbao.net/rpc"],faucets:["https://scan.boka.network/#/Galois/faucet"],nativeCurrency:{name:"MathChain",symbol:"MATH",decimals:18},infoURL:"https://mathchain.org",shortName:"tMATH",chainId:1140,networkId:1140,testnet:!0,slug:"mathchain-testnet"},Sgr={name:"Smart Host Teknoloji TESTNET",chain:"SHT",rpc:["https://smart-host-teknoloji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://s2.tl.web.tr:4041"],faucets:[],nativeCurrency:{name:"Smart Host Teknoloji TESTNET",symbol:"tSHT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://smart-host.com.tr",shortName:"sht",chainId:1177,networkId:1177,icon:{url:"ipfs://QmTrLGHyQ1Le25Q7EgNSF5Qq8D2SocKvroDkLqurdBuSQQ",width:1655,height:1029,format:"png"},explorers:[{name:"Smart Host Teknoloji TESTNET Explorer",url:"https://s2.tl.web.tr:4000",icon:"smarthost",standard:"EIP3091"}],testnet:!0,slug:"smart-host-teknoloji-testnet"},Pgr={name:"Iora Chain",chain:"IORA",icon:{url:"ipfs://bafybeiehps5cqdhqottu2efo4jeehwpkz5rbux3cjxd75rm6rjm4sgs2wi",width:250,height:250,format:"png"},rpc:["https://iora-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.iorachain.com"],faucets:[],nativeCurrency:{name:"Iora",symbol:"IORA",decimals:18},infoURL:"https://iorachain.com",shortName:"iora",chainId:1197,networkId:1197,explorers:[{name:"ioraexplorer",url:"https://explorer.iorachain.com",standard:"EIP3091"}],testnet:!1,slug:"iora-chain"},Rgr={name:"Evanesco Testnet",chain:"Evanesco Testnet",rpc:["https://evanesco-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed5.evanesco.org:8547"],faucets:[],nativeCurrency:{name:"AVIS",symbol:"AVIS",decimals:18},infoURL:"https://evanesco.org/",shortName:"avis",chainId:1201,networkId:1201,testnet:!0,slug:"evanesco-testnet"},Mgr={name:"World Trade Technical Chain Mainnet",chain:"WTT",rpc:["https://world-trade-technical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cadaut.com","wss://rpc.cadaut.com/ws"],faucets:[],nativeCurrency:{name:"World Trade Token",symbol:"WTT",decimals:18},infoURL:"http://www.cadaut.com",shortName:"wtt",chainId:1202,networkId:2048,explorers:[{name:"WTTScout",url:"https://explorer.cadaut.com",standard:"EIP3091"}],testnet:!1,slug:"world-trade-technical-chain"},Ngr={name:"Popcateum Mainnet",chain:"POPCATEUM",rpc:["https://popcateum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.popcateum.org"],faucets:[],nativeCurrency:{name:"Popcat",symbol:"POP",decimals:18},infoURL:"https://popcateum.org",shortName:"popcat",chainId:1213,networkId:1213,explorers:[{name:"popcateum explorer",url:"https://explorer.popcateum.org",standard:"none"}],testnet:!1,slug:"popcateum"},Bgr={name:"EnterChain Mainnet",chain:"ENTER",rpc:["https://enterchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.entercoin.net/"],faucets:[],nativeCurrency:{name:"EnterCoin",symbol:"ENTER",decimals:18},infoURL:"https://entercoin.net",shortName:"enter",chainId:1214,networkId:1214,icon:{url:"ipfs://Qmb2UYVc1MjLPi8vhszWRxqBJYoYkWQVxDJRSmtrgk6j2E",width:64,height:64,format:"png"},explorers:[{name:"Enter Explorer - Expenter",url:"https://explorer.entercoin.net",icon:"enter",standard:"EIP3091"}],testnet:!1,slug:"enterchain"},Dgr={name:"Exzo Network Mainnet",chain:"EXZO",icon:{url:"ipfs://QmeYpc2JfEsHa2Bh11SKRx3sgDtMeg6T8KpXNLepBEKnbJ",width:128,height:128,format:"png"},rpc:["https://exzo-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.exzo.technology"],faucets:[],nativeCurrency:{name:"Exzo",symbol:"XZO",decimals:18},infoURL:"https://exzo.network",shortName:"xzo",chainId:1229,networkId:1229,explorers:[{name:"blockscout",url:"https://exzoscan.io",standard:"EIP3091"}],testnet:!1,slug:"exzo-network"},Ogr={name:"Ultron Testnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-dev.io"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UltronTestnet",chainId:1230,networkId:1230,explorers:[{name:"Ultron Testnet Explorer",url:"https://explorer.ultron-dev.io",icon:"ultron",standard:"none"}],testnet:!0,slug:"ultron-testnet"},Lgr={name:"Ultron Mainnet",chain:"Ultron",icon:{url:"ipfs://QmS4W4kY7XYBA4f52vuuytXh3YaTcNBXF14V9tEY6SNqhz",width:512,height:512,format:"png"},rpc:["https://ultron.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ultron-rpc.net"],faucets:[],nativeCurrency:{name:"Ultron",symbol:"ULX",decimals:18},infoURL:"https://ultron.foundation",shortName:"UtronMainnet",chainId:1231,networkId:1231,explorers:[{name:"Ultron Explorer",url:"https://ulxscan.com",icon:"ultron",standard:"none"}],testnet:!1,slug:"ultron"},qgr={name:"Step Network",title:"Step Main Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.step.network"],faucets:[],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"step",chainId:1234,networkId:1234,explorers:[{name:"StepScan",url:"https://stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43114",bridges:[{url:"https://bridge.step.network"}]},testnet:!1,slug:"step-network"},Fgr={name:"OM Platform Mainnet",chain:"omplatform",rpc:["https://om-platform.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-cnx.omplatform.com/"],faucets:[],nativeCurrency:{name:"OMCOIN",symbol:"OM",decimals:18},infoURL:"https://omplatform.com/",shortName:"om",chainId:1246,networkId:1246,explorers:[{name:"OMSCAN - Expenter",url:"https://omscan.omplatform.com",standard:"none"}],testnet:!1,slug:"om-platform"},Wgr={name:"CIC Chain Testnet",chain:"CICT",rpc:["https://cic-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testapi.cicscan.com"],faucets:["https://cicfaucet.com"],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CICT",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CICT",chainId:1252,networkId:1252,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://testnet.cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!0,slug:"cic-chain-testnet"},Ugr={name:"HALO Mainnet",chain:"HALO",rpc:["https://halo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodes.halo.land"],faucets:[],nativeCurrency:{name:"HALO",symbol:"HO",decimals:18},infoURL:"https://halo.land/#/",shortName:"HO",chainId:1280,networkId:1280,explorers:[{name:"HALOexplorer",url:"https://browser.halo.land",standard:"none"}],testnet:!1,slug:"halo"},Hgr={name:"Moonbeam",chain:"MOON",rpc:["https://moonbeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbeam.network","wss://wss.api.moonbeam.network"],faucets:[],nativeCurrency:{name:"Glimmer",symbol:"GLMR",decimals:18},infoURL:"https://moonbeam.network/networks/moonbeam/",shortName:"mbeam",chainId:1284,networkId:1284,explorers:[{name:"moonscan",url:"https://moonbeam.moonscan.io",standard:"none"}],testnet:!1,slug:"moonbeam"},jgr={name:"Moonriver",chain:"MOON",rpc:["https://moonriver.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonriver.moonbeam.network","wss://wss.api.moonriver.moonbeam.network"],faucets:[],nativeCurrency:{name:"Moonriver",symbol:"MOVR",decimals:18},infoURL:"https://moonbeam.network/networks/moonriver/",shortName:"mriver",chainId:1285,networkId:1285,explorers:[{name:"moonscan",url:"https://moonriver.moonscan.io",standard:"none"}],testnet:!1,slug:"moonriver"},zgr={name:"Moonbase Alpha",chain:"MOON",rpc:["https://moonbase-alpha.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonbase.moonbeam.network","wss://wss.api.moonbase.moonbeam.network"],faucets:[],nativeCurrency:{name:"Dev",symbol:"DEV",decimals:18},infoURL:"https://docs.moonbeam.network/networks/testnet/",shortName:"mbase",chainId:1287,networkId:1287,explorers:[{name:"moonscan",url:"https://moonbase.moonscan.io",standard:"none"}],testnet:!0,slug:"moonbase-alpha"},Kgr={name:"Moonrock",chain:"MOON",rpc:["https://moonrock.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.api.moonrock.moonbeam.network","wss://wss.api.moonrock.moonbeam.network"],faucets:[],nativeCurrency:{name:"Rocs",symbol:"ROC",decimals:18},infoURL:"https://docs.moonbeam.network/learn/platform/networks/overview/",shortName:"mrock",chainId:1288,networkId:1288,testnet:!1,slug:"moonrock"},Ggr={name:"Bobabeam",chain:"Bobabeam",rpc:["https://bobabeam.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabeam.boba.network","wss://wss.bobabeam.boba.network","https://replica.bobabeam.boba.network","wss://replica-wss.bobabeam.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabeam",chainId:1294,networkId:1294,explorers:[{name:"Bobabeam block explorer",url:"https://blockexplorer.bobabeam.boba.network",standard:"none"}],testnet:!1,slug:"bobabeam"},Vgr={name:"Bobabase Testnet",chain:"Bobabase Testnet",rpc:["https://bobabase-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bobabase.boba.network","wss://wss.bobabase.boba.network","https://replica.bobabase.boba.network","wss://replica-wss.bobabase.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"Bobabase",chainId:1297,networkId:1297,explorers:[{name:"Bobabase block explorer",url:"https://blockexplorer.bobabase.boba.network",standard:"none"}],testnet:!0,slug:"bobabase-testnet"},$gr={name:"Dos Fuji Subnet",chain:"DOS",rpc:["https://dos-fuji-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.doschain.com/jsonrpc"],faucets:[],nativeCurrency:{name:"Dos Native Token",symbol:"DOS",decimals:18},infoURL:"http://doschain.io/",shortName:"DOS",chainId:1311,networkId:1311,explorers:[{name:"dos-testnet",url:"https://test.doscan.io",standard:"EIP3091"}],testnet:!0,slug:"dos-fuji-subnet"},Ygr={name:"Alyx Mainnet",chain:"ALYX",rpc:["https://alyx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alyxchain.com"],faucets:[],nativeCurrency:{name:"Alyx Chain Native Token",symbol:"ALYX",decimals:18},infoURL:"https://www.alyxchain.com",shortName:"alyx",chainId:1314,networkId:1314,explorers:[{name:"alyxscan",url:"https://www.alyxscan.com",standard:"EIP3091"}],icon:{url:"ipfs://bafkreifd43fcvh77mdcwjrpzpnlhthounc6b4u645kukqpqhduaveatf6i",width:2481,height:2481,format:"png"},testnet:!1,slug:"alyx"},Jgr={name:"Aitd Mainnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://walletrpc.aitd.io","https://node.aitd.io"],faucets:[],nativeCurrency:{name:"AITD Mainnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitd",chainId:1319,networkId:1319,explorers:[{name:"AITD Chain Explorer Mainnet",url:"https://aitd-explorer-new.aitd.io",standard:"EIP3091"}],testnet:!1,slug:"aitd"},Qgr={name:"Aitd Testnet",chain:"AITD",icon:{url:"ipfs://QmXbBMMhjTTGAGjmqMpJm3ufFrtdkfEXCFyXYgz7nnZzsy",width:160,height:160,format:"png"},rpc:["https://aitd-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://http-testnet.aitd.io"],faucets:["https://aitd-faucet-pre.aitdcoin.com/"],nativeCurrency:{name:"AITD Testnet",symbol:"AITD",decimals:18},infoURL:"https://www.aitd.io/",shortName:"aitdtestnet",chainId:1320,networkId:1320,explorers:[{name:"AITD Chain Explorer Testnet",url:"https://block-explorer-testnet.aitd.io",standard:"EIP3091"}],testnet:!0,slug:"aitd-testnet"},Zgr={name:"Elysium Testnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://elysium-test-rpc.vulcanforged.com"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELST",chainId:1338,networkId:1338,explorers:[{name:"Elysium testnet explorer",url:"https://elysium-explorer.vulcanforged.com",standard:"none"}],testnet:!0,slug:"elysium-testnet"},Xgr={name:"Elysium Mainnet",title:"An L1, carbon-neutral, tree-planting, metaverse dedicated blockchain created by VulcanForged",chain:"Elysium",rpc:["https://elysium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.elysiumchain.tech/"],faucets:[],nativeCurrency:{name:"LAVA",symbol:"LAVA",decimals:18},infoURL:"https://elysiumscan.vulcanforged.com",shortName:"ELSM",chainId:1339,networkId:1339,explorers:[{name:"Elysium mainnet explorer",url:"https://explorer.elysiumchain.tech",standard:"none"}],testnet:!1,slug:"elysium"},ebr={name:"CIC Chain Mainnet",chain:"CIC",rpc:["https://cic-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://xapi.cicscan.com"],faucets:[],nativeCurrency:{name:"Crazy Internet Coin",symbol:"CIC",decimals:18},infoURL:"https://www.cicchain.net",shortName:"CIC",chainId:1353,networkId:1353,icon:{url:"ipfs://QmNekc5gpyrQkeDQcmfJLBrP5fa6GMarB13iy6aHVdQJDU",width:1024,height:768,format:"png"},explorers:[{name:"CICscan",url:"https://cicscan.com",icon:"cicchain",standard:"EIP3091"}],testnet:!1,slug:"cic-chain"},tbr={name:"AmStar Mainnet",chain:"AmStar",icon:{url:"ipfs://Qmd4TMQdnYxaUZqnVddh5S37NGH72g2kkK38ccCEgdZz1C",width:599,height:563,format:"png"},rpc:["https://amstar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.amstarscan.com"],faucets:[],nativeCurrency:{name:"SINSO",symbol:"SINSO",decimals:18},infoURL:"https://sinso.io",shortName:"ASAR",chainId:1388,networkId:1388,explorers:[{name:"amstarscan",url:"https://mainnet.amstarscan.com",standard:"EIP3091"}],testnet:!1,slug:"amstar"},rbr={name:"Rikeza Network Mainnet",title:"Rikeza Network Mainnet",chain:"Rikeza",rpc:["https://rikeza-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"RIK",chainId:1433,networkId:1433,explorers:[{name:"Rikeza Blockchain explorer",url:"https://rikscan.com",standard:"EIP3091"}],testnet:!1,slug:"rikeza-network"},nbr={name:"Polygon zkEVM Testnet",title:"Polygon zkEVM Testnet",chain:"Polygon",rpc:["https://polygon-zkevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.public.zkevm-test.net"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://polygon.technology/solutions/polygon-zkevm/",shortName:"testnet-zkEVM-mango",chainId:1442,networkId:1442,explorers:[{name:"Polygon zkEVM explorer",url:"https://explorer.public.zkevm-test.net",standard:"EIP3091"}],testnet:!0,slug:"polygon-zkevm-testnet"},abr={name:"Ctex Scan Blockchain",chain:"Ctex Scan Blockchain",icon:{url:"ipfs://bafkreid5evn4qovxo6msuekizv5zn7va62tea7w2zpdx5sskconebuhqle",width:800,height:800,format:"png"},rpc:["https://ctex-scan-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ctexscan.com/"],faucets:["https://faucet.ctexscan.com"],nativeCurrency:{name:"CTEX",symbol:"CTEX",decimals:18},infoURL:"https://ctextoken.io",shortName:"CTEX",chainId:1455,networkId:1455,explorers:[{name:"Ctex Scan Explorer",url:"https://ctexscan.com",standard:"none"}],testnet:!1,slug:"ctex-scan-blockchain"},ibr={name:"Sherpax Mainnet",chain:"Sherpax Mainnet",rpc:["https://sherpax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.sherpax.io/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"Sherpax",chainId:1506,networkId:1506,explorers:[{name:"Sherpax Mainnet Explorer",url:"https://evm.sherpax.io",standard:"none"}],testnet:!1,slug:"sherpax"},sbr={name:"Sherpax Testnet",chain:"Sherpax Testnet",rpc:["https://sherpax-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sherpax-testnet.chainx.org/rpc"],faucets:[],nativeCurrency:{name:"KSX",symbol:"KSX",decimals:18},infoURL:"https://sherpax.io/",shortName:"SherpaxTestnet",chainId:1507,networkId:1507,explorers:[{name:"Sherpax Testnet Explorer",url:"https://evm-pre.sherpax.io",standard:"none"}],testnet:!0,slug:"sherpax-testnet"},obr={name:"Beagle Messaging Chain",chain:"BMC",rpc:["https://beagle-messaging-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beagle.chat/eth"],faucets:["https://faucet.beagle.chat/"],nativeCurrency:{name:"Beagle",symbol:"BG",decimals:18},infoURL:"https://beagle.chat/",shortName:"beagle",chainId:1515,networkId:1515,explorers:[{name:"Beagle Messaging Chain Explorer",url:"https://eth.beagle.chat",standard:"EIP3091"}],testnet:!1,slug:"beagle-messaging-chain"},cbr={name:"Catecoin Chain Mainnet",chain:"Catechain",rpc:["https://catecoin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://send.catechain.com"],faucets:[],nativeCurrency:{name:"Catecoin",symbol:"CATE",decimals:18},infoURL:"https://catechain.com",shortName:"cate",chainId:1618,networkId:1618,testnet:!1,slug:"catecoin-chain"},ubr={name:"Atheios",chain:"ATH",rpc:["https://atheios.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallet.atheios.com:8797"],faucets:[],nativeCurrency:{name:"Atheios Ether",symbol:"ATH",decimals:18},infoURL:"https://atheios.com",shortName:"ath",chainId:1620,networkId:11235813,slip44:1620,testnet:!1,slug:"atheios"},lbr={name:"Btachain",chain:"btachain",rpc:["https://btachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed1.btachain.com/"],faucets:[],nativeCurrency:{name:"Bitcoin Asset",symbol:"BTA",decimals:18},infoURL:"https://bitcoinasset.io/",shortName:"bta",chainId:1657,networkId:1657,testnet:!1,slug:"btachain"},dbr={name:"Horizen Yuma Testnet",shortName:"Yuma",chain:"Yuma",icon:{url:"ipfs://QmSFMBk3rMyu45Sy9KQHjgArFj4HdywANNYrSosLMUdcti",width:1213,height:1213,format:"png"},rpc:["https://horizen-yuma-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://yuma-testnet.horizenlabs.io/ethv1"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:["https://yuma-testnet-faucet.horizen.io"],nativeCurrency:{name:"Testnet Zen",symbol:"tZEN",decimals:18},infoURL:"https://horizen.io/",chainId:1662,networkId:1662,slip44:121,explorers:[{name:"Yuma Testnet Block Explorer",url:"https://yuma-explorer.horizen.io",icon:"eon",standard:"EIP3091"}],testnet:!0,slug:"horizen-yuma-testnet"},pbr={name:"LUDAN Mainnet",chain:"LUDAN",rpc:["https://ludan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ludan.org/"],faucets:[],nativeCurrency:{name:"LUDAN",symbol:"LUDAN",decimals:18},infoURL:"https://www.ludan.org/",shortName:"LUDAN",icon:{url:"ipfs://bafkreigzeanzqgxrzzep45t776ovbwi242poqxbryuu2go5eedeuwwcsay",width:512,height:512,format:"png"},chainId:1688,networkId:1688,testnet:!1,slug:"ludan"},hbr={name:"Anytype EVM Chain",chain:"ETH",icon:{url:"ipfs://QmaARJiAQUn4Z6wG8GLEry3kTeBB3k6RfHzSZU9SPhBgcG",width:200,height:200,format:"png"},rpc:["https://anytype-evm-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.anytype.io"],faucets:["https://evm.anytype.io/faucet"],nativeCurrency:{name:"ANY",symbol:"ANY",decimals:18},infoURL:"https://evm.anytype.io",shortName:"AnytypeChain",chainId:1701,networkId:1701,explorers:[{name:"Anytype Explorer",url:"https://explorer.anytype.io",icon:"any",standard:"EIP3091"}],testnet:!1,slug:"anytype-evm-chain"},fbr={name:"TBSI Mainnet",title:"Thai Blockchain Service Infrastructure Mainnet",chain:"TBSI",rpc:["https://tbsi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blockchain.or.th"],faucets:[],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"TBSI",chainId:1707,networkId:1707,testnet:!1,slug:"tbsi"},mbr={name:"TBSI Testnet",title:"Thai Blockchain Service Infrastructure Testnet",chain:"TBSI",rpc:["https://tbsi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.blockchain.or.th"],faucets:["https://faucet.blockchain.or.th"],nativeCurrency:{name:"Jinda",symbol:"JINDA",decimals:18},infoURL:"https://blockchain.or.th",shortName:"tTBSI",chainId:1708,networkId:1708,testnet:!0,slug:"tbsi-testnet"},ybr={name:"Palette Chain Mainnet",chain:"PLT",rpc:["https://palette-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palette-rpc.com:22000"],faucets:[],nativeCurrency:{name:"Palette Token",symbol:"PLT",decimals:18},features:[],infoURL:"https://hashpalette.com/",shortName:"PaletteChain",chainId:1718,networkId:1718,icon:{url:"ipfs://QmPCEGZD1p1keTT2YfPp725azx1r9Ci41hejeUuGL2whFA",width:800,height:800,format:"png"},explorers:[{name:"Palettescan",url:"https://palettescan.com",icon:"PLT",standard:"none"}],testnet:!1,slug:"palette-chain"},gbr={name:"Kerleano",title:"Proof of Carbon Reduction testnet",chain:"CRC",status:"active",rpc:["https://kerleano.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cacib-saturn-test.francecentral.cloudapp.azure.com","wss://cacib-saturn-test.francecentral.cloudapp.azure.com:9443"],faucets:["https://github.com/ethereum-pocr/kerleano/blob/main/docs/faucet.md"],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/kerleano",shortName:"kerleano",chainId:1804,networkId:1804,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/kerleano",standard:"EIP3091"}],testnet:!0,slug:"kerleano"},bbr={name:"Rabbit Analog Testnet Chain",chain:"rAna",icon:{url:"ipfs://QmdfbjjF3ZzN2jTkH9REgrA8jDS6A6c21n7rbWSVbSnvQc",width:310,height:251,format:"svg"},rpc:["https://rabbit-analog-testnet-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rabbit.analog-rpc.com"],faucets:["https://analogfaucet.com"],nativeCurrency:{name:"Rabbit Analog Test Chain Native Token ",symbol:"rAna",decimals:18},infoURL:"https://rabbit.analogscan.com",shortName:"rAna",chainId:1807,networkId:1807,explorers:[{name:"blockscout",url:"https://rabbit.analogscan.com",standard:"none"}],testnet:!0,slug:"rabbit-analog-testnet-chain"},vbr={name:"Cube Chain Mainnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.cube.network","wss://ws-mainnet.cube.network","https://http-mainnet-sg.cube.network","wss://ws-mainnet-sg.cube.network","https://http-mainnet-us.cube.network","wss://ws-mainnet-us.cube.network"],faucets:[],nativeCurrency:{name:"Cube Chain Native Token",symbol:"CUBE",decimals:18},infoURL:"https://www.cube.network",shortName:"cube",chainId:1818,networkId:1818,slip44:1818,explorers:[{name:"cube-scan",url:"https://cubescan.network",standard:"EIP3091"}],testnet:!1,slug:"cube-chain"},wbr={name:"Cube Chain Testnet",chain:"Cube",icon:{url:"ipfs://QmbENgHTymTUUArX5MZ2XXH69WGenirU3oamkRD448hYdz",width:282,height:250,format:"png"},rpc:["https://cube-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-testnet.cube.network","wss://ws-testnet.cube.network","https://http-testnet-sg.cube.network","wss://ws-testnet-sg.cube.network","https://http-testnet-jp.cube.network","wss://ws-testnet-jp.cube.network","https://http-testnet-us.cube.network","wss://ws-testnet-us.cube.network"],faucets:["https://faucet.cube.network"],nativeCurrency:{name:"Cube Chain Test Native Token",symbol:"CUBET",decimals:18},infoURL:"https://www.cube.network",shortName:"cubet",chainId:1819,networkId:1819,slip44:1819,explorers:[{name:"cubetest-scan",url:"https://testnet.cubescan.network",standard:"EIP3091"}],testnet:!0,slug:"cube-chain-testnet"},_br={name:"Teslafunds",chain:"TSF",rpc:["https://teslafunds.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tsfapi.europool.me"],faucets:[],nativeCurrency:{name:"Teslafunds Ether",symbol:"TSF",decimals:18},infoURL:"https://teslafunds.io",shortName:"tsf",chainId:1856,networkId:1,testnet:!1,slug:"teslafunds"},xbr={name:"Gitshock Cartenz Testnet",chain:"Gitshock Cartenz",icon:{url:"ipfs://bafkreifqpj5jkjazvh24muc7wv4r22tihzzl75cevgecxhvojm4ls6mzpq",width:512,height:512,format:"png"},rpc:["https://gitshock-cartenz-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.cartenz.works"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Gitshock Cartenz",symbol:"tGTFX",decimals:18},infoURL:"https://gitshock.com",shortName:"gitshockchain",chainId:1881,networkId:1881,explorers:[{name:"blockscout",url:"https://scan.cartenz.works",standard:"EIP3091"}],testnet:!0,slug:"gitshock-cartenz-testnet"},Tbr={name:"BON Network",chain:"BON",rpc:["https://bon-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://rpc.boyanet.org:8545","ws://rpc.boyanet.org:8546"],faucets:[],nativeCurrency:{name:"BOYACoin",symbol:"BOY",decimals:18},infoURL:"https://boyanet.org",shortName:"boya",chainId:1898,networkId:1,explorers:[{name:"explorer",url:"https://explorer.boyanet.org:4001",standard:"EIP3091"}],testnet:!1,slug:"bon-network"},Ebr={name:"Bitcichain Mainnet",chain:"BITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bitci.com"],faucets:[],nativeCurrency:{name:"Bitci",symbol:"BITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"bitci",chainId:1907,networkId:1907,explorers:[{name:"Bitci Explorer",url:"https://bitciexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"bitcichain"},Cbr={name:"Bitcichain Testnet",chain:"TBITCI",icon:{url:"ipfs://QmbxmfWw5sVMASz5EbR1DCgLfk8PnqpSJGQKpYuEUpoxqn",width:64,height:64,format:"svg"},rpc:["https://bitcichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bitcichain.com"],faucets:["https://faucet.bitcichain.com"],nativeCurrency:{name:"Test Bitci",symbol:"TBITCI",decimals:18},infoURL:"https://www.bitcichain.com",shortName:"tbitci",chainId:1908,networkId:1908,explorers:[{name:"Bitci Explorer Testnet",url:"https://testnet.bitciexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"bitcichain-testnet"},Ibr={name:"ONUS Chain Testnet",title:"ONUS Chain Testnet",chain:"onus",rpc:["https://onus-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-testnet",chainId:1945,networkId:1945,explorers:[{name:"Onus explorer testnet",url:"https://explorer-testnet.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!0,slug:"onus-chain-testnet"},kbr={name:"D-Chain Mainnet",chain:"D-Chain",rpc:["https://d-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.d-chain.network/ext/bc/2ZiR1Bro5E59siVuwdNuRFzqL95NkvkbzyLBdrsYR9BLSHV7H4/rpc"],nativeCurrency:{name:"DOINX",symbol:"DOINX",decimals:18},shortName:"dchain-mainnet",chainId:1951,networkId:1951,icon:{url:"ipfs://QmV2vhTqS9UyrX9Q6BSCbK4JrKBnS8ErHvstMjfb2oVWaj",width:700,height:495,format:"png"},faucets:[],infoURL:"",testnet:!1,slug:"d-chain"},Abr={name:"Eleanor",title:"Metatime Testnet Eleanor",chain:"MTC",rpc:["https://eleanor.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metatime.com/eleanor","wss://ws.metatime.com/eleanor"],faucets:["https://faucet.metatime.com/eleanor"],nativeCurrency:{name:"Eleanor Metacoin",symbol:"MTC",decimals:18},infoURL:"https://eleanor.metatime.com",shortName:"mtc",chainId:1967,networkId:1967,explorers:[{name:"metaexplorer-eleanor",url:"https://explorer.metatime.com/eleanor",standard:"EIP3091"}],testnet:!0,slug:"eleanor"},Sbr={name:"Atelier",title:"Atelier Test Network",chain:"ALTR",rpc:["https://atelier.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://1971.network/atlr","wss://1971.network/atlr"],faucets:[],nativeCurrency:{name:"ATLR",symbol:"ATLR",decimals:18},infoURL:"https://1971.network/",shortName:"atlr",chainId:1971,networkId:1971,icon:{url:"ipfs://bafkreigcquvoalec3ll2m26v4wsx5enlxwyn6nk2mgfqwncyqrgwivla5u",width:200,height:200,format:"png"},testnet:!0,slug:"atelier"},Pbr={name:"ONUS Chain Mainnet",title:"ONUS Chain Mainnet",chain:"onus",rpc:["https://onus-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.onuschain.io","wss://ws.onuschain.io"],faucets:[],nativeCurrency:{name:"ONUS",symbol:"ONUS",decimals:18},infoURL:"https://onuschain.io",shortName:"onus-mainnet",chainId:1975,networkId:1975,explorers:[{name:"Onus explorer mainnet",url:"https://explorer.onuschain.io",icon:"onus",standard:"EIP3091"}],testnet:!1,slug:"onus-chain"},Rbr={name:"Eurus Testnet",chain:"EUN",rpc:["https://eurus-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.eurus.network"],faucets:[],nativeCurrency:{name:"Eurus",symbol:"EUN",decimals:18},infoURL:"https://eurus.network",shortName:"euntest",chainId:1984,networkId:1984,icon:{url:"ipfs://QmaGd5L9jGPbfyGXBFhu9gjinWJ66YtNrXq8x6Q98Eep9e",width:471,height:471,format:"svg"},explorers:[{name:"testnetexplorer",url:"https://testnetexplorer.eurus.network",icon:"eurus",standard:"none"}],testnet:!0,slug:"eurus-testnet"},Mbr={name:"EtherGem",chain:"EGEM",rpc:["https://ethergem.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.egem.io/custom"],faucets:[],nativeCurrency:{name:"EtherGem Ether",symbol:"EGEM",decimals:18},infoURL:"https://egem.io",shortName:"egem",chainId:1987,networkId:1987,slip44:1987,testnet:!1,slug:"ethergem"},Nbr={name:"Ekta",chain:"EKTA",rpc:["https://ekta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://main.ekta.io"],faucets:[],nativeCurrency:{name:"EKTA",symbol:"EKTA",decimals:18},infoURL:"https://www.ekta.io",shortName:"ekta",chainId:1994,networkId:1994,icon:{url:"ipfs://QmfMd564KUPK8eKZDwGCT71ZC2jMnUZqP6LCtLpup3rHH1",width:2100,height:2100,format:"png"},explorers:[{name:"ektascan",url:"https://ektascan.io",icon:"ekta",standard:"EIP3091"}],testnet:!1,slug:"ekta"},Bbr={name:"edeXa Testnet",chain:"edeXa TestNetwork",rpc:["https://edexa-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.edexa.com/rpc","https://io-dataseed1.testnet.edexa.io-market.com/rpc"],faucets:["https://faucet.edexa.com/"],nativeCurrency:{name:"EDEXA",symbol:"EDX",decimals:18},infoURL:"https://edexa.com/",shortName:"edx",chainId:1995,networkId:1995,icon:{url:"ipfs://QmSgvmLpRsCiu2ySqyceA5xN4nwi7URJRNEZLffwEKXdoR",width:1028,height:1042,format:"png"},explorers:[{name:"edexa-testnet",url:"https://explorer.edexa.com",standard:"EIP3091"}],testnet:!0,slug:"edexa-testnet"},Dbr={name:"Dogechain Mainnet",chain:"DC",icon:{url:"ipfs://QmNS6B6L8FfgGSMTEi2SxD3bK5cdmKPNtQKcYaJeRWrkHs",width:732,height:732,format:"png"},rpc:["https://dogechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dogechain.dog","https://rpc-us.dogechain.dog","https://rpc01.dogechain.dog"],faucets:[],nativeCurrency:{name:"Dogecoin",symbol:"DOGE",decimals:18},infoURL:"https://dogechain.dog",shortName:"dc",chainId:2e3,networkId:2e3,explorers:[{name:"dogechain explorer",url:"https://explorer.dogechain.dog",standard:"EIP3091"}],testnet:!1,slug:"dogechain"},Obr={name:"Milkomeda C1 Mainnet",chain:"milkAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-cardano-evm.c1.milkomeda.com","wss://rpc-mainnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkAda",symbol:"mADA",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkAda",chainId:2001,networkId:2001,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-c1"},Lbr={name:"Milkomeda A1 Mainnet",chain:"milkALGO",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet-algorand-rollup.a1.milkomeda.com","wss://rpc-mainnet-algorand-rollup.a1.milkomeda.com/ws"],faucets:[],nativeCurrency:{name:"milkALGO",symbol:"mALGO",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkALGO",chainId:2002,networkId:2002,explorers:[{name:"Blockscout",url:"https://explorer-mainnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!1,slug:"milkomeda-a1"},qbr={name:"CloudWalk Testnet",chain:"CloudWalk Testnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_testnet",chainId:2008,networkId:2008,explorers:[{name:"CloudWalk Testnet Explorer",url:"https://explorer.testnet.cloudwalk.io",standard:"none"}],testnet:!0,slug:"cloudwalk-testnet"},Fbr={name:"CloudWalk Mainnet",chain:"CloudWalk Mainnet",rpc:[],faucets:[],nativeCurrency:{name:"CloudWalk Native Token",symbol:"CWN",decimals:18},infoURL:"https://cloudwalk.io",shortName:"cloudwalk_mainnet",chainId:2009,networkId:2009,explorers:[{name:"CloudWalk Mainnet Explorer",url:"https://explorer.mainnet.cloudwalk.io",standard:"none"}],testnet:!1,slug:"cloudwalk"},Wbr={name:"MainnetZ Mainnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-mainnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://mainnetz.io",shortName:"NetZm",chainId:2016,networkId:2016,explorers:[{name:"MainnetZ",url:"https://explorer.mainnetz.io",standard:"EIP3091"}],testnet:!1,slug:"z-mainnet"},Ubr={name:"PublicMint Devnet",title:"Public Mint Devnet",chain:"PublicMint",rpc:["https://publicmint-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.dev.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_dev",chainId:2018,networkId:2018,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.dev.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint-devnet"},Hbr={name:"PublicMint Testnet",title:"Public Mint Testnet",chain:"PublicMint",rpc:["https://publicmint-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint_test",chainId:2019,networkId:2019,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.tst.publicmint.io",standard:"EIP3091"}],testnet:!0,slug:"publicmint-testnet"},jbr={name:"PublicMint Mainnet",title:"Public Mint Mainnet",chain:"PublicMint",rpc:["https://publicmint.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.publicmint.io:8545"],faucets:[],nativeCurrency:{name:"USD",symbol:"USD",decimals:18},infoURL:"https://publicmint.com",shortName:"pmint",chainId:2020,networkId:2020,slip44:60,explorers:[{name:"PublicMint Explorer",url:"https://explorer.publicmint.io",standard:"EIP3091"}],testnet:!1,slug:"publicmint"},zbr={name:"Edgeware EdgeEVM Mainnet",chain:"EDG",icon:{url:"ipfs://QmS3ERgAKYTmV7bSWcUPSvrrCC9wHQYxtZqEQYx9Rw4RGA",width:352,height:304,format:"png"},rpc:["https://edgeware-edgeevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgeware-evm.jelliedowl.net","https://mainnet2.edgewa.re/evm","https://mainnet3.edgewa.re/evm","https://mainnet4.edgewa.re/evm","https://mainnet5.edgewa.re/evm","wss://edgeware.jelliedowl.net","wss://mainnet2.edgewa.re","wss://mainnet3.edgewa.re","wss://mainnet4.edgewa.re","wss://mainnet5.edgewa.re"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Edgeware",symbol:"EDG",decimals:18},infoURL:"https://edgeware.io",shortName:"edg",chainId:2021,networkId:2021,slip44:523,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://edgscan.live",standard:"EIP3091"},{name:"Subscan",url:"https://edgeware.subscan.io",standard:"none",icon:"subscan"}],testnet:!1,slug:"edgeware-edgeevm"},Kbr={name:"Beresheet BereEVM Testnet",chain:"EDG",rpc:["https://beresheet-bereevm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://beresheet-evm.jelliedowl.net","wss://beresheet.jelliedowl.net"],faucets:[],nativeCurrency:{name:"Testnet EDG",symbol:"tEDG",decimals:18},infoURL:"https://edgeware.io/build",shortName:"edgt",chainId:2022,networkId:2022,explorers:[{name:"Edgscan by Bharathcoorg",url:"https://testnet.edgscan.live",standard:"EIP3091"}],testnet:!0,slug:"beresheet-bereevm-testnet"},Gbr={name:"Taycan Testnet",chain:"Taycan",rpc:["https://taycan-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test-taycan.hupayx.io"],faucets:["https://ttaycan-faucet.hupayx.io/"],nativeCurrency:{name:"test-Shuffle",symbol:"tSFL",decimals:18},infoURL:"https://hupayx.io",shortName:"taycan-testnet",chainId:2023,networkId:2023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://evmscan-test.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer",url:"https://cosmoscan-test.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!0,slug:"taycan-testnet"},Vbr={name:"Rangers Protocol Mainnet",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.rangersprotocol.com/api/jsonrpc"],faucets:[],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"RPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"rpg",chainId:2025,networkId:2025,slip44:1008,explorers:[{name:"rangersscan",url:"https://scan.rangersprotocol.com",standard:"none"}],testnet:!1,slug:"rangers-protocol"},$br={name:"OriginTrail Parachain",chain:"OTP",rpc:["https://origintrail-parachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://astrosat.origintrail.network","wss://parachain-rpc.origin-trail.network"],faucets:[],nativeCurrency:{name:"OriginTrail Parachain Token",symbol:"OTP",decimals:12},infoURL:"https://parachain.origintrail.io",shortName:"otp",chainId:2043,networkId:2043,testnet:!1,slug:"origintrail-parachain"},Ybr={name:"Stratos Testnet",chain:"STOS",rpc:["https://stratos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://web3-testnet-rpc.thestratos.org"],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-testnet",chainId:2047,networkId:2047,explorers:[{name:"Stratos EVM Explorer (Blockscout)",url:"https://web3-testnet-explorer.thestratos.org",standard:"none"},{name:"Stratos Cosmos Explorer (BigDipper)",url:"https://big-dipper-dev.thestratos.org",standard:"none"}],testnet:!0,slug:"stratos-testnet"},Jbr={name:"Stratos Mainnet",chain:"STOS",rpc:[],faucets:[],nativeCurrency:{name:"STOS",symbol:"STOS",decimals:18},infoURL:"https://www.thestratos.org",shortName:"stos-mainnet",chainId:2048,networkId:2048,status:"incubating",testnet:!1,slug:"stratos"},Qbr={name:"Quokkacoin Mainnet",chain:"Qkacoin",rpc:["https://quokkacoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qkacoin.org"],faucets:[],nativeCurrency:{name:"Qkacoin",symbol:"QKA",decimals:18},infoURL:"https://qkacoin.org",shortName:"QKA",chainId:2077,networkId:2077,explorers:[{name:"blockscout",url:"https://explorer.qkacoin.org",standard:"EIP3091"}],testnet:!1,slug:"quokkacoin"},Zbr={name:"Ecoball Mainnet",chain:"ECO",rpc:["https://ecoball.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/ecoball/"],faucets:[],nativeCurrency:{name:"Ecoball Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"eco",chainId:2100,networkId:2100,explorers:[{name:"Ecoball Explorer",url:"https://scan.ecoball.org",standard:"EIP3091"}],testnet:!1,slug:"ecoball"},Xbr={name:"Ecoball Testnet Espuma",chain:"ECO",rpc:["https://ecoball-testnet-espuma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ecoball.org/espuma/"],faucets:[],nativeCurrency:{name:"Espuma Coin",symbol:"ECO",decimals:18},infoURL:"https://ecoball.org",shortName:"esp",chainId:2101,networkId:2101,explorers:[{name:"Ecoball Testnet Explorer",url:"https://espuma-scan.ecoball.org",standard:"EIP3091"}],testnet:!0,slug:"ecoball-testnet-espuma"},evr={name:"Exosama Network",chain:"EXN",rpc:["https://exosama-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exosama.com","wss://rpc.exosama.com"],faucets:[],nativeCurrency:{name:"Sama Token",symbol:"SAMA",decimals:18},infoURL:"https://moonsama.com",shortName:"exn",chainId:2109,networkId:2109,slip44:2109,icon:{url:"ipfs://QmaQxfwpXYTomUd24PMx5tKjosupXcm99z1jL1XLq9LWBS",width:468,height:468,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.exosama.com",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"exosama-network"},tvr={name:"Metaplayerone Mainnet",chain:"METAD",icon:{url:"ipfs://QmZyxS9BfRGYWWDtvrV6qtthCYV4TwdjLoH2sF6MkiTYFf",width:1280,height:1280,format:"png"},rpc:["https://metaplayerone.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.metaplayer.one/"],faucets:[],nativeCurrency:{name:"METAD",symbol:"METAD",decimals:18},infoURL:"https://docs.metaplayer.one/",shortName:"Metad",chainId:2122,networkId:2122,explorers:[{name:"Metad Scan",url:"https://scan.metaplayer.one",icon:"metad",standard:"EIP3091"}],testnet:!1,slug:"metaplayerone"},rvr={name:"BOSagora Mainnet",chain:"ETH",rpc:["https://bosagora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bosagora.org","https://rpc.bosagora.org"],faucets:[],nativeCurrency:{name:"BOSAGORA",symbol:"BOA",decimals:18},infoURL:"https://docs.bosagora.org",shortName:"boa",chainId:2151,networkId:2151,icon:{url:"ipfs://QmW3CT4SHmso5dRJdsjR8GL1qmt79HkdAebCn2uNaWXFYh",width:256,height:257,format:"png"},explorers:[{name:"BOASCAN",url:"https://boascan.io",icon:"agora",standard:"EIP3091"}],testnet:!1,slug:"bosagora"},nvr={name:"Findora Mainnet",chain:"Findora",rpc:["https://findora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.findora.org"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"fra",chainId:2152,networkId:2152,explorers:[{name:"findorascan",url:"https://evm.findorascan.io",standard:"EIP3091"}],testnet:!1,slug:"findora"},avr={name:"Findora Testnet",chain:"Testnet-anvil",rpc:["https://findora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-testnet.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-testnet",chainId:2153,networkId:2153,explorers:[{name:"findorascan",url:"https://testnet-anvil.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-testnet"},ivr={name:"Findora Forge",chain:"Testnet-forge",rpc:["https://findora-forge.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prod-forge.prod.findora.org:8545/"],faucets:[],nativeCurrency:{name:"FRA",symbol:"FRA",decimals:18},infoURL:"https://findora.org/",shortName:"findora-forge",chainId:2154,networkId:2154,explorers:[{name:"findorascan",url:"https://testnet-forge.evm.findorascan.io",standard:"EIP3091"}],testnet:!0,slug:"findora-forge"},svr={name:"Bitcoin EVM",chain:"Bitcoin EVM",rpc:["https://bitcoin-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.bitcoinevm.com"],faucets:[],nativeCurrency:{name:"Bitcoin",symbol:"eBTC",decimals:18},infoURL:"https://bitcoinevm.com",shortName:"eBTC",chainId:2203,networkId:2203,icon:{url:"ipfs://bafkreic4aq265oaf6yze7ba5okefqh6vnqudyrz6ovukvbnrlhet36itle",width:200,height:200,format:"png"},explorers:[{name:"Explorer",url:"https://explorer.bitcoinevm.com",icon:"ebtc",standard:"none"}],testnet:!1,slug:"bitcoin-evm"},ovr={name:"Evanesco Mainnet",chain:"EVA",rpc:["https://evanesco.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed4.evanesco.org:8546"],faucets:[],nativeCurrency:{name:"EVA",symbol:"EVA",decimals:18},infoURL:"https://evanesco.org/",shortName:"evanesco",chainId:2213,networkId:2213,icon:{url:"ipfs://QmZbmGYdfbMRrWJore3c7hyD6q7B5pXHJqTSNjbZZUK6V8",width:200,height:200,format:"png"},explorers:[{name:"Evanesco Explorer",url:"https://explorer.evanesco.org",standard:"none"}],testnet:!1,slug:"evanesco"},cvr={name:"Kava EVM Testnet",chain:"KAVA",rpc:["https://kava-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.testnet.kava.io","wss://wevm.testnet.kava.io"],faucets:["https://faucet.kava.io"],nativeCurrency:{name:"TKava",symbol:"TKAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"tkava",chainId:2221,networkId:2221,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava Testnet Explorer",url:"https://explorer.testnet.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!0,slug:"kava-evm-testnet"},uvr={name:"Kava EVM",chain:"KAVA",rpc:["https://kava-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.kava.io","https://evm2.kava.io","wss://wevm.kava.io","wss://wevm2.kava.io"],faucets:[],nativeCurrency:{name:"Kava",symbol:"KAVA",decimals:18},infoURL:"https://www.kava.io",shortName:"kava",chainId:2222,networkId:2222,icon:{url:"ipfs://QmdpRTk6oL1HRW9xC6cAc4Rnf9gs6zgdAcr4Z3HcLztusm",width:1186,height:360,format:"svg"},explorers:[{name:"Kava EVM Explorer",url:"https://explorer.kava.io",standard:"EIP3091",icon:"kava"}],testnet:!1,slug:"kava-evm"},lvr={name:"VChain Mainnet",chain:"VChain",rpc:["https://vchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bc.vcex.xyz"],faucets:[],nativeCurrency:{name:"VNDT",symbol:"VNDT",decimals:18},infoURL:"https://bo.vcex.xyz/",shortName:"VChain",chainId:2223,networkId:2223,explorers:[{name:"VChain Scan",url:"https://scan.vcex.xyz",standard:"EIP3091"}],testnet:!1,slug:"vchain"},dvr={name:"BOMB Chain",chain:"BOMB",rpc:["https://bomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.bombchain.com"],faucets:[],nativeCurrency:{name:"BOMB Token",symbol:"BOMB",decimals:18},infoURL:"https://www.bombchain.com",shortName:"bomb",chainId:2300,networkId:2300,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan",icon:"bomb",url:"https://bombscan.com",standard:"EIP3091"}],testnet:!1,slug:"bomb-chain"},pvr={name:"Arevia",chain:"Arevia",rpc:[],faucets:[],nativeCurrency:{name:"Arev",symbol:"AR\xC9V",decimals:18},infoURL:"",shortName:"arevia",chainId:2309,networkId:2309,explorers:[],status:"incubating",testnet:!1,slug:"arevia"},hvr={name:"Altcoinchain",chain:"mainnet",rpc:["https://altcoinchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc0.altcoinchain.org/rpc"],faucets:[],nativeCurrency:{name:"Altcoin",symbol:"ALT",decimals:18},infoURL:"https://altcoinchain.org",shortName:"alt",chainId:2330,networkId:2330,icon:{url:"ipfs://QmYwHmGC9CRVcKo1LSesqxU31SDj9vk2iQxcFjQArzhix4",width:720,height:720,format:"png"},status:"active",explorers:[{name:"expedition",url:"http://expedition.altcoinchain.org",icon:"altcoinchain",standard:"none"}],testnet:!1,slug:"altcoinchain"},fvr={name:"BOMB Chain Testnet",chain:"BOMB",rpc:["https://bomb-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bombchain-testnet.ankr.com/bas_full_rpc_1"],faucets:["https://faucet.bombchain-testnet.ankr.com/"],nativeCurrency:{name:"BOMB Token",symbol:"tBOMB",decimals:18},infoURL:"https://www.bombmoney.com",shortName:"bombt",chainId:2399,networkId:2399,icon:{url:"ipfs://Qmc44uSjfdNHdcxPTgZAL8eZ8TLe4UmSHibcvKQFyGJxTB",width:1024,height:1024,format:"png"},explorers:[{name:"bombscan-testnet",icon:"bomb",url:"https://explorer.bombchain-testnet.ankr.com",standard:"EIP3091"}],testnet:!0,slug:"bomb-chain-testnet"},mvr={name:"TCG Verse Mainnet",chain:"TCG Verse",icon:{url:"ipfs://bafkreidg4wpewve5mdxrofneqblydkrjl3oevtgpdf3fk3z3vjqam6ocoe",width:350,height:350,format:"png"},rpc:["https://tcg-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tcgverse.xyz"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://tcgverse.xyz/",shortName:"TCGV",chainId:2400,networkId:2400,explorers:[{name:"TCG Verse Explorer",url:"https://explorer.tcgverse.xyz",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"tcg-verse"},yvr={name:"XODEX",chain:"XODEX",rpc:["https://xodex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xo-dex.com/rpc","https://xo-dex.io"],faucets:[],nativeCurrency:{name:"XODEX Native Token",symbol:"XODEX",decimals:18},infoURL:"https://xo-dex.com",shortName:"xodex",chainId:2415,networkId:10,icon:{url:"ipfs://QmXt49jPfHUmDF4n8TF7ks6txiPztx6qUHanWmHnCoEAhW",width:256,height:256,format:"png"},explorers:[{name:"XODEX Explorer",url:"https://explorer.xo-dex.com",standard:"EIP3091",icon:"xodex"}],testnet:!1,slug:"xodex"},gvr={name:"Kortho Mainnet",chain:"Kortho Chain",rpc:["https://kortho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.kortho-chain.com"],faucets:[],nativeCurrency:{name:"KorthoChain",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"ktoc",chainId:2559,networkId:2559,testnet:!1,slug:"kortho"},bvr={name:"TechPay Mainnet",chain:"TPC",rpc:["https://techpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.techpay.io/"],faucets:[],nativeCurrency:{name:"TechPay",symbol:"TPC",decimals:18},infoURL:"https://techpay.io/",shortName:"tpc",chainId:2569,networkId:2569,icon:{url:"ipfs://QmQyTyJUnhD1dca35Vyj96pm3v3Xyw8xbG9m8HXHw3k2zR",width:578,height:701,format:"svg"},explorers:[{name:"tpcscan",url:"https://tpcscan.com",icon:"techpay",standard:"EIP3091"}],testnet:!1,slug:"techpay"},vvr={name:"PoCRNet",title:"Proof of Carbon Reduction mainnet",chain:"CRC",status:"active",rpc:["https://pocrnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pocrnet.westeurope.cloudapp.azure.com/http","wss://pocrnet.westeurope.cloudapp.azure.com/ws"],faucets:[],nativeCurrency:{name:"Carbon Reduction Coin",symbol:"CRC",decimals:18},infoURL:"https://github.com/ethereum-pocr/pocrnet",shortName:"pocrnet",chainId:2606,networkId:2606,explorers:[{name:"Lite Explorer",url:"https://ethereum-pocr.github.io/explorer/pocrnet",standard:"EIP3091"}],testnet:!1,slug:"pocrnet"},wvr={name:"Redlight Chain Mainnet",chain:"REDLC",rpc:["https://redlight-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed2.redlightscan.finance"],faucets:[],nativeCurrency:{name:"Redlight Coin",symbol:"REDLC",decimals:18},infoURL:"https://redlight.finance/",shortName:"REDLC",chainId:2611,networkId:2611,explorers:[{name:"REDLC Explorer",url:"https://redlightscan.finance",standard:"EIP3091"}],testnet:!1,slug:"redlight-chain"},_vr={name:"EZChain C-Chain Mainnet",chain:"EZC",rpc:["https://ezchain-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.ezchain.com/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"EZChain",chainId:2612,networkId:2612,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!1,slug:"ezchain-c-chain"},xvr={name:"EZChain C-Chain Testnet",chain:"EZC",rpc:["https://ezchain-c-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-api.ezchain.com/ext/bc/C/rpc"],faucets:["https://testnet-faucet.ezchain.com"],nativeCurrency:{name:"EZChain",symbol:"EZC",decimals:18},infoURL:"https://ezchain.com",shortName:"Fuji-EZChain",chainId:2613,networkId:2613,icon:{url:"ipfs://QmPKJbYCFjGmY9X2cA4b9YQjWYHQncmKnFtKyQh9rHkFTb",width:146,height:48,format:"png"},explorers:[{name:"ezchain",url:"https://testnet-cchain-explorer.ezchain.com",standard:"EIP3091"}],testnet:!0,slug:"ezchain-c-chain-testnet"},Tvr={name:"Boba Network Goerli Testnet",chain:"ETH",rpc:["https://boba-network-goerli-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.boba.network/"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://boba.network",shortName:"Bobagoerli",chainId:2888,networkId:2888,explorers:[{name:"Blockscout",url:"https://testnet.bobascan.com",standard:"none"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://gateway.goerli.boba.network"}]},testnet:!0,slug:"boba-network-goerli-testnet"},Evr={name:"BitYuan Mainnet",chain:"BTY",rpc:["https://bityuan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.bityuan.com/eth"],faucets:[],nativeCurrency:{name:"BTY",symbol:"BTY",decimals:18},infoURL:"https://www.bityuan.com",shortName:"bty",chainId:2999,networkId:2999,icon:{url:"ipfs://QmUmJVof2m5e4HUXb3GmijWUFsLUNhrQiwwQG3CqcXEtHt",width:91,height:24,format:"png"},explorers:[{name:"BitYuan Block Chain Explorer",url:"https://mainnet.bityuan.com",standard:"none"}],testnet:!1,slug:"bityuan"},Cvr={name:"CENNZnet Rata",chain:"CENNZnet",rpc:[],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-r",chainId:3e3,networkId:3e3,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},testnet:!1,slug:"cennznet-rata"},Ivr={name:"CENNZnet Nikau",chain:"CENNZnet",rpc:["https://cennznet-nikau.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nikau.centrality.me/public"],faucets:["https://app-faucet.centrality.me"],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-n",chainId:3001,networkId:3001,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://www.uncoverexplorer.com/?network=Nikau",standard:"none"}],testnet:!1,slug:"cennznet-nikau"},kvr={name:"Orlando Chain",chain:"ORL",rpc:["https://orlando-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.orlchain.com"],faucets:[],nativeCurrency:{name:"Orlando",symbol:"ORL",decimals:18},infoURL:"https://orlchain.com",shortName:"ORL",chainId:3031,networkId:3031,icon:{url:"ipfs://QmNsuuBBTHErnuFDcdyzaY8CKoVJtobsLJx2WQjaPjcp7g",width:512,height:528,format:"png"},explorers:[{name:"Orlando (ORL) Explorer",url:"https://orlscan.com",icon:"orl",standard:"EIP3091"}],testnet:!0,slug:"orlando-chain"},Avr={name:"Bifrost Mainnet",title:"The Bifrost Mainnet network",chain:"BFC",rpc:["https://bifrost.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.mainnet.thebifrost.io/rpc","https://public-02.mainnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"bfc",chainId:3068,networkId:3068,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.mainnet.thebifrost.io",standard:"EIP3091"}],testnet:!1,slug:"bifrost"},Svr={name:"Filecoin - Hyperspace testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-hyperspace-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.hyperspace.node.glif.io/rpc/v1","https://rpc.ankr.com/filecoin_testnet","https://filecoin-hyperspace.chainstacklabs.com/rpc/v1"],faucets:["https://hyperspace.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-hyperspace",chainId:3141,networkId:3141,slip44:1,explorers:[{name:"Filfox - Hyperspace",url:"https://hyperspace.filfox.info/en",standard:"none"},{name:"Glif Explorer - Hyperspace",url:"https://explorer.glif.io/?network=hyperspace",standard:"none"},{name:"Beryx",url:"https://beryx.zondax.ch",standard:"none"},{name:"Dev.storage",url:"https://dev.storage",standard:"none"},{name:"Filscan - Hyperspace",url:"https://hyperspace.filscan.io",standard:"none"}],testnet:!0,slug:"filecoin-hyperspace-testnet"},Pvr={name:"Debounce Subnet Testnet",chain:"Debounce Network",icon:{url:"ipfs://bafybeib5q4hez37s7b2fx4hqt2q4ji2tuudxjhfdgnp6q3d5mqm6wsxdfq",width:256,height:256,format:"png"},rpc:["https://debounce-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-rpc.debounce.network"],faucets:[],nativeCurrency:{name:"Debounce Network",symbol:"DB",decimals:18},infoURL:"https://debounce.network",shortName:"debounce-devnet",chainId:3306,networkId:3306,explorers:[{name:"Debounce Devnet Explorer",url:"https://explorer.debounce.network",standard:"EIP3091"}],testnet:!0,slug:"debounce-subnet-testnet"},Rvr={name:"ZCore Testnet",chain:"Beach",icon:{url:"ipfs://QmQnXu13ym8W1VA3QxocaNVXGAuEPmamSCkS7bBscVk1f4",width:1050,height:1050,format:"png"},rpc:["https://zcore-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.zcore.cash"],faucets:["https://faucet.zcore.cash"],nativeCurrency:{name:"ZCore",symbol:"ZCR",decimals:18},infoURL:"https://zcore.cash",shortName:"zcrbeach",chainId:3331,networkId:3331,testnet:!0,slug:"zcore-testnet"},Mvr={name:"Web3Q Testnet",chain:"Web3Q",rpc:["https://web3q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://testnet.web3q.io/home.w3q/",shortName:"w3q-t",chainId:3333,networkId:3333,explorers:[{name:"w3q-testnet",url:"https://explorer.testnet.web3q.io",standard:"EIP3091"}],testnet:!0,slug:"web3q-testnet"},Nvr={name:"Web3Q Galileo",chain:"Web3Q",rpc:["https://web3q-galileo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galileo.web3q.io:8545"],faucets:[],nativeCurrency:{name:"Web3Q",symbol:"W3Q",decimals:18},infoURL:"https://galileo.web3q.io/home.w3q/",shortName:"w3q-g",chainId:3334,networkId:3334,explorers:[{name:"w3q-galileo",url:"https://explorer.galileo.web3q.io",standard:"EIP3091"}],testnet:!1,slug:"web3q-galileo"},Bvr={name:"Paribu Net Mainnet",chain:"PRB",rpc:["https://paribu-net.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.paribu.network"],faucets:[],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prb",chainId:3400,networkId:3400,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Explorer",url:"https://explorer.paribu.network",standard:"EIP3091"}],testnet:!1,slug:"paribu-net"},Dvr={name:"Paribu Net Testnet",chain:"PRB",rpc:["https://paribu-net-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.paribuscan.com"],faucets:["https://faucet.paribuscan.com"],nativeCurrency:{name:"PRB",symbol:"PRB",decimals:18},infoURL:"https://net.paribu.com",shortName:"prbtestnet",chainId:3500,networkId:3500,icon:{url:"ipfs://QmVgc77jYo2zrxQjhYwT4KzvSrSZ1DBJraJVX57xAvP8MD",width:2362,height:2362,format:"png"},explorers:[{name:"Paribu Net Testnet Explorer",url:"https://testnet.paribuscan.com",standard:"EIP3091"}],testnet:!0,slug:"paribu-net-testnet"},Ovr={name:"JFIN Chain",chain:"JFIN",rpc:["https://jfin-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.jfinchain.com"],faucets:[],nativeCurrency:{name:"JFIN Coin",symbol:"jfin",decimals:18},infoURL:"https://jfinchain.com",shortName:"jfin",chainId:3501,networkId:3501,explorers:[{name:"JFIN Chain Explorer",url:"https://exp.jfinchain.com",standard:"EIP3091"}],testnet:!1,slug:"jfin-chain"},Lvr={name:"PandoProject Mainnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-rpc-api.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-mainnet",chainId:3601,networkId:3601,explorers:[{name:"Pando Mainnet Explorer",url:"https://explorer.pandoproject.org",standard:"none"}],testnet:!1,slug:"pandoproject"},qvr={name:"PandoProject Testnet",chain:"PandoProject",icon:{url:"ipfs://QmNduBtT5BNGDw7DjRwDvaZBb6gjxf46WD7BYhn4gauGc9",width:1e3,height:1628,format:"png"},rpc:["https://pandoproject-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.ethrpc.pandoproject.org/rpc"],faucets:[],nativeCurrency:{name:"pando-token",symbol:"PTX",decimals:18},infoURL:"https://www.pandoproject.org/",shortName:"pando-testnet",chainId:3602,networkId:3602,explorers:[{name:"Pando Testnet Explorer",url:"https://testnet.explorer.pandoproject.org",standard:"none"}],testnet:!0,slug:"pandoproject-testnet"},Fvr={name:"Metacodechain",chain:"metacode",rpc:["https://metacodechain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://j.blockcoach.com:8503"],faucets:[],nativeCurrency:{name:"J",symbol:"J",decimals:18},infoURL:"https://j.blockcoach.com:8089",shortName:"metacode",chainId:3666,networkId:3666,explorers:[{name:"meta",url:"https://j.blockcoach.com:8089",standard:"EIP3091"}],testnet:!1,slug:"metacodechain"},Wvr={name:"Bittex Mainnet",chain:"BTX",rpc:["https://bittex.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bittexscan.info","https://rpc2.bittexscan.info"],faucets:[],nativeCurrency:{name:"Bittex",symbol:"BTX",decimals:18},infoURL:"https://bittexscan.com",shortName:"btx",chainId:3690,networkId:3690,explorers:[{name:"bittexscan",url:"https://bittexscan.com",standard:"EIP3091"}],testnet:!1,slug:"bittex"},Uvr={name:"Empire Network",chain:"EMPIRE",rpc:["https://empire-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.empirenetwork.io"],faucets:[],nativeCurrency:{name:"Empire",symbol:"EMPIRE",decimals:18},infoURL:"https://www.empirenetwork.io/",shortName:"empire",chainId:3693,networkId:3693,explorers:[{name:"Empire Explorer",url:"https://explorer.empirenetwork.io",standard:"none"}],testnet:!1,slug:"empire-network"},Hvr={name:"Crossbell",chain:"Crossbell",rpc:["https://crossbell.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.crossbell.io"],faucets:["https://faucet.crossbell.io"],nativeCurrency:{name:"Crossbell Token",symbol:"CSB",decimals:18},infoURL:"https://crossbell.io",shortName:"csb",chainId:3737,networkId:3737,icon:{url:"ipfs://QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t",format:"svg",width:408,height:408},explorers:[{name:"Crossbell Explorer",url:"https://scan.crossbell.io",standard:"EIP3091"}],testnet:!1,slug:"crossbell"},jvr={name:"DRAC Network",chain:"DRAC",rpc:["https://drac-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.dracscan.com/rpc"],faucets:["https://www.dracscan.io/faucet"],nativeCurrency:{name:"DRAC",symbol:"DRAC",decimals:18},infoURL:"https://drac.io/",shortName:"drac",features:[{name:"EIP155"},{name:"EIP1559"}],chainId:3912,networkId:3912,icon:{url:"ipfs://QmXbsQe7QsVFZJZdBmbZVvS6LgX9ZFoaTMBs9MiQXUzJTw",width:256,height:256,format:"png"},explorers:[{name:"DRAC_Network Scan",url:"https://www.dracscan.io",standard:"EIP3091"}],testnet:!1,slug:"drac-network"},zvr={name:"DYNO Mainnet",chain:"DYNO",rpc:["https://dyno.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"DYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"dyno",chainId:3966,networkId:3966,explorers:[{name:"DYNO Explorer",url:"https://dynoscan.io",standard:"EIP3091"}],testnet:!1,slug:"dyno"},Kvr={name:"DYNO Testnet",chain:"DYNO",rpc:["https://dyno-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tapi.dynoprotocol.com"],faucets:["https://faucet.dynoscan.io"],nativeCurrency:{name:"DYNO Token",symbol:"tDYNO",decimals:18},infoURL:"https://dynoprotocol.com",shortName:"tdyno",chainId:3967,networkId:3967,explorers:[{name:"DYNO Explorer",url:"https://testnet.dynoscan.io",standard:"EIP3091"}],testnet:!0,slug:"dyno-testnet"},Gvr={name:"YuanChain Mainnet",chain:"YCC",rpc:["https://yuanchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.yuan.org/eth"],faucets:[],nativeCurrency:{name:"YCC",symbol:"YCC",decimals:18},infoURL:"https://www.yuan.org",shortName:"ycc",chainId:3999,networkId:3999,icon:{url:"ipfs://QmdbPhiB5W2gbHZGkYsN7i2VTKKP9casmAN2hRnpDaL9W4",width:96,height:96,format:"png"},explorers:[{name:"YuanChain Explorer",url:"https://mainnet.yuan.org",standard:"none"}],testnet:!1,slug:"yuanchain"},Vvr={name:"Fantom Testnet",chain:"FTM",rpc:["https://fantom-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fantom.network"],faucets:["https://faucet.fantom.network"],nativeCurrency:{name:"Fantom",symbol:"FTM",decimals:18},infoURL:"https://docs.fantom.foundation/quick-start/short-guide#fantom-testnet",shortName:"tftm",chainId:4002,networkId:4002,icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/fantom/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},explorers:[{name:"ftmscan",url:"https://testnet.ftmscan.com",icon:"ftmscan",standard:"EIP3091"}],testnet:!0,slug:"fantom-testnet"},$vr={name:"Bobaopera Testnet",chain:"Bobaopera Testnet",rpc:["https://bobaopera-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bobaopera.boba.network","wss://wss.testnet.bobaopera.boba.network","https://replica.testnet.bobaopera.boba.network","wss://replica-wss.testnet.bobaopera.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaoperaTestnet",chainId:4051,networkId:4051,explorers:[{name:"Bobaopera Testnet block explorer",url:"https://blockexplorer.testnet.bobaopera.boba.network",standard:"none"}],testnet:!0,slug:"bobaopera-testnet"},Yvr={name:"Nahmii 3 Mainnet",chain:"Nahmii",rpc:[],status:"incubating",faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Mainnet",chainId:4061,networkId:4061,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii-3"},Jvr={name:"Nahmii 3 Testnet",chain:"Nahmii",rpc:["https://nahmii-3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ngeth.testnet.n3.nahmii.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii3Testnet",chainId:4062,networkId:4062,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii 3 Testnet Explorer",url:"https://explorer.testnet.n3.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.testnet.n3.nahmii.io"}]},testnet:!0,slug:"nahmii-3-testnet"},Qvr={name:"Bitindi Testnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIt",chainId:4096,networkId:4096,explorers:[{name:"Bitindi",url:"https://testnet.bitindiscan.com",standard:"EIP3091"}],testnet:!0,slug:"bitindi-testnet"},Zvr={name:"Bitindi Mainnet",chain:"BNI",icon:{url:"ipfs://QmRAFFPiLiSgjGTs9QaZdnR9fsDgyUdTejwSxcnPXo292s",width:60,height:72,format:"png"},rpc:["https://bitindi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bitindi.org"],faucets:["https://faucet.bitindi.org"],nativeCurrency:{name:"BNI",symbol:"$BNI",decimals:18},infoURL:"https://bitindi.org",shortName:"BNIm",chainId:4099,networkId:4099,explorers:[{name:"Bitindi",url:"https://bitindiscan.com",standard:"EIP3091"}],testnet:!1,slug:"bitindi"},Xvr={name:"AIOZ Network Testnet",chain:"AIOZ",icon:{url:"ipfs://QmRAGPFhvQiXgoJkui7WHajpKctGFrJNhHqzYdwcWt5V3Z",width:1024,height:1024,format:"png"},rpc:["https://aioz-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth-ds.testnet.aioz.network"],faucets:[],nativeCurrency:{name:"testAIOZ",symbol:"AIOZ",decimals:18},infoURL:"https://aioz.network",shortName:"aioz-testnet",chainId:4102,networkId:4102,slip44:60,explorers:[{name:"AIOZ Network Testnet Explorer",url:"https://testnet.explorer.aioz.network",standard:"EIP3091"}],testnet:!0,slug:"aioz-network-testnet"},e2r={name:"Tipboxcoin Testnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXt",chainId:4141,networkId:4141,explorers:[{name:"Tipboxcoin",url:"https://testnet.tipboxcoin.net",standard:"EIP3091"}],testnet:!0,slug:"tipboxcoin-testnet"},t2r={name:"PHI Network V1",chain:"PHI V1",rpc:["https://phi-network-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.phi.network","https://rpc2.phi.network"],faucets:[],nativeCurrency:{name:"PHI",symbol:"\u03A6",decimals:18},infoURL:"https://phi.network",shortName:"PHIv1",chainId:4181,networkId:4181,icon:{url:"ipfs://bafkreid6pm3mic7izp3a6zlfwhhe7etd276bjfsq2xash6a4s2vmcdf65a",width:512,height:512,format:"png"},explorers:[{name:"PHI Explorer",url:"https://explorer.phi.network",icon:"phi",standard:"none"}],testnet:!1,slug:"phi-network-v1"},r2r={name:"Bobafuji Testnet",chain:"Bobafuji Testnet",rpc:["https://bobafuji-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.avax.boba.network","wss://wss.testnet.avax.boba.network","https://replica.testnet.avax.boba.network","wss://replica-wss.testnet.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaFujiTestnet",chainId:4328,networkId:4328,explorers:[{name:"Bobafuji Testnet block explorer",url:"https://blockexplorer.testnet.avax.boba.network",standard:"none"}],testnet:!0,slug:"bobafuji-testnet"},n2r={name:"Htmlcoin Mainnet",chain:"mainnet",rpc:["https://htmlcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://janus.htmlcoin.com/api/"],faucets:["https://gruvin.me/htmlcoin"],nativeCurrency:{name:"Htmlcoin",symbol:"HTML",decimals:8},infoURL:"https://htmlcoin.com",shortName:"html",chainId:4444,networkId:4444,icon:{url:"ipfs://QmR1oDRSadPerfyWMhKHNP268vPKvpczt5zPawgFSZisz2",width:1e3,height:1e3,format:"png"},status:"active",explorers:[{name:"htmlcoin",url:"https://explorer.htmlcoin.com",icon:"htmlcoin",standard:"none"}],testnet:!1,slug:"htmlcoin"},a2r={name:"IoTeX Network Mainnet",chain:"iotex.io",rpc:["https://iotex-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.mainnet.iotex.io"],faucets:[],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-mainnet",chainId:4689,networkId:4689,explorers:[{name:"iotexscan",url:"https://iotexscan.io",standard:"EIP3091"}],testnet:!1,slug:"iotex-network"},i2r={name:"IoTeX Network Testnet",chain:"iotex.io",rpc:["https://iotex-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://babel-api.testnet.iotex.io"],faucets:["https://faucet.iotex.io/"],nativeCurrency:{name:"IoTeX",symbol:"IOTX",decimals:18},infoURL:"https://iotex.io",shortName:"iotex-testnet",chainId:4690,networkId:4690,explorers:[{name:"testnet iotexscan",url:"https://testnet.iotexscan.io",standard:"EIP3091"}],testnet:!0,slug:"iotex-network-testnet"},s2r={name:"BlackFort Exchange Network Testnet",chain:"TBXN",rpc:["https://blackfort-exchange-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Testnet Token",symbol:"TBXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"TBXN",chainId:4777,networkId:4777,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://testnet-explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"blackfort-exchange-network-testnet"},o2r={name:"Venidium Testnet",chain:"XVM",rpc:["https://venidium-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-evm-testnet.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"txvm",chainId:4918,networkId:4918,explorers:[{name:"Venidium EVM Testnet Explorer",url:"https://evm-testnet.venidiumexplorer.com",standard:"EIP3091"}],testnet:!0,slug:"venidium-testnet"},c2r={name:"Venidium Mainnet",chain:"XVM",icon:{url:"ipfs://bafkreiaplwlym5g27jm4mjhotfqq6al2cxp3fnkmzdusqjg7wnipq5wn2e",width:1e3,height:1e3,format:"png"},rpc:["https://venidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.venidium.io"],faucets:[],nativeCurrency:{name:"Venidium",symbol:"XVM",decimals:18},infoURL:"https://venidium.io",shortName:"xvm",chainId:4919,networkId:4919,explorers:[{name:"Venidium Explorer",url:"https://evm.venidiumexplorer.com",standard:"EIP3091"}],testnet:!1,slug:"venidium"},u2r={name:"BlackFort Exchange Network",chain:"BXN",rpc:["https://blackfort-exchange-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.blackfort.network/rpc","https://mainnet-1.blackfort.network/rpc","https://mainnet-2.blackfort.network/rpc","https://mainnet-3.blackfort.network/rpc"],faucets:[],nativeCurrency:{name:"BlackFort Token",symbol:"BXN",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://blackfort.exchange",shortName:"BXN",chainId:4999,networkId:4999,icon:{url:"ipfs://QmPasA8xykRtJDivB2bcKDiRCUNWDPtfUTTKVAcaF2wVxC",width:1968,height:1968,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.blackfort.network",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"blackfort-exchange-network"},l2r={name:"Mantle",chain:"ETH",rpc:["https://mantle.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mantle.xyz"],faucets:[],nativeCurrency:{name:"BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle",chainId:5e3,networkId:5e3,explorers:[{name:"Mantle Explorer",url:"https://explorer.mantle.xyz",standard:"EIP3091"}],testnet:!1,slug:"mantle"},d2r={name:"Mantle Testnet",chain:"ETH",rpc:["https://mantle-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.mantle.xyz"],faucets:["https://faucet.testnet.mantle.xyz"],nativeCurrency:{name:"Testnet BitDAO",symbol:"BIT",decimals:18},infoURL:"https://mantle.xyz",shortName:"mantle-testnet",chainId:5001,networkId:5001,explorers:[{name:"Mantle Testnet Explorer",url:"https://explorer.testnet.mantle.xyz",standard:"EIP3091"}],testnet:!0,slug:"mantle-testnet"},p2r={name:"TLChain Network Mainnet",chain:"TLC",icon:{url:"ipfs://QmaR5TsgnWSjLys6wGaciKUbc5qYL3Es4jtgQcosVqDWR3",width:2048,height:2048,format:"png"},rpc:["https://tlchain-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tlxscan.com/"],faucets:[],nativeCurrency:{name:"TLChain Network",symbol:"TLC",decimals:18},infoURL:"https://tlchain.network/",shortName:"tlc",chainId:5177,networkId:5177,explorers:[{name:"TLChain Explorer",url:"https://explorer.tlchain.network",standard:"none"}],testnet:!1,slug:"tlchain-network"},h2r={name:"EraSwap Mainnet",chain:"ESN",icon:{url:"ipfs://QmV1wZ1RVXeD7216aiVBpLkbBBHWNuoTvcSzpVQsqi2uaH",width:200,height:200,format:"png"},rpc:["https://eraswap.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.eraswap.network","https://rpc-mumbai.mainnet.eraswap.network"],faucets:[],nativeCurrency:{name:"EraSwap",symbol:"ES",decimals:18},infoURL:"https://eraswap.info/",shortName:"es",chainId:5197,networkId:5197,testnet:!1,slug:"eraswap"},f2r={name:"Humanode Mainnet",chain:"HMND",rpc:["https://humanode.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://explorer-rpc-http.mainnet.stages.humanode.io"],faucets:[],nativeCurrency:{name:"HMND",symbol:"HMND",decimals:18},infoURL:"https://humanode.io",shortName:"hmnd",chainId:5234,networkId:5234,explorers:[],testnet:!1,slug:"humanode"},m2r={name:"Uzmi Network Mainnet",chain:"UZMI",rpc:["https://uzmi-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.uzmigames.com.br/"],faucets:[],nativeCurrency:{name:"UZMI",symbol:"UZMI",decimals:18},infoURL:"https://uzmigames.com.br/",shortName:"UZMI",chainId:5315,networkId:5315,testnet:!1,slug:"uzmi-network"},y2r={name:"Nahmii Mainnet",chain:"Nahmii",rpc:["https://nahmii.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"Nahmii",chainId:5551,networkId:5551,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"Nahmii mainnet explorer",url:"https://explorer.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!1,slug:"nahmii"},g2r={name:"Nahmii Testnet",chain:"Nahmii",rpc:["https://nahmii-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://l2.testnet.nahmii.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://nahmii.io",shortName:"NahmiiTestnet",chainId:5553,networkId:5553,icon:{url:"ipfs://QmZhKXgoGpzvthr2eh8ZNgT75YvMtEBegdELAaMPPzf5QT",width:384,height:384,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.testnet.nahmii.io",icon:"nahmii",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3",bridges:[{url:"https://bridge.nahmii.io"}]},testnet:!0,slug:"nahmii-testnet"},b2r={name:"Chain Verse Mainnet",chain:"CVERSE",icon:{url:"ipfs://QmQyJt28h4wN3QHPXUQJQYQqGiFUD77han3zibZPzHbitk",width:1e3,height:1436,format:"png"},rpc:["https://chain-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chainverse.info"],faucets:[],nativeCurrency:{name:"Oasys",symbol:"OAS",decimals:18},infoURL:"https://chainverse.info",shortName:"cverse",chainId:5555,networkId:5555,explorers:[{name:"Chain Verse Explorer",url:"https://explorer.chainverse.info",standard:"EIP3091"}],testnet:!1,slug:"chain-verse"},v2r={name:"Syscoin Tanenbaum Testnet",chain:"SYS",rpc:["https://syscoin-tanenbaum-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tanenbaum.io","wss://rpc.tanenbaum.io/wss"],faucets:["https://faucet.tanenbaum.io"],nativeCurrency:{name:"Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys",chainId:5700,networkId:5700,explorers:[{name:"Syscoin Testnet Block Explorer",url:"https://tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-tanenbaum-testnet"},w2r={name:"Hika Network Testnet",title:"Hika Network Testnet",chain:"HIK",icon:{url:"ipfs://QmW44FPm3CMM2JDs8BQxLNvUtykkUtrGkQkQsUDJSi3Gmp",width:350,height:84,format:"png"},rpc:["https://hika-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.hika.network/"],faucets:[],nativeCurrency:{name:"Hik Token",symbol:"HIK",decimals:18},infoURL:"https://hika.network/",shortName:"hik",chainId:5729,networkId:5729,explorers:[{name:"Hika Network Testnet Explorer",url:"https://scan-testnet.hika.network",standard:"none"}],testnet:!0,slug:"hika-network-testnet"},_2r={name:"Ganache",title:"Ganache GUI Ethereum Testnet",chain:"ETH",icon:{url:"ipfs://Qmc9N7V8CiLB4r7FEcG7GojqfiGGsRCZqcFWCahwMohbDW",width:267,height:300,format:"png"},rpc:["https://ganache.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://127.0.0.1:7545"],faucets:[],nativeCurrency:{name:"Ganache Test Ether",symbol:"ETH",decimals:18},infoURL:"https://trufflesuite.com/ganache/",shortName:"ggui",chainId:5777,networkId:5777,explorers:[],testnet:!0,slug:"ganache"},x2r={name:"Ontology Testnet",chain:"Ontology",icon:{url:"ipfs://bafkreigmvn6spvbiirtutowpq6jmetevbxoof5plzixjoerbeswy4htfb4",width:400,height:400,format:"png"},rpc:["https://ontology-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://polaris1.ont.io:20339","http://polaris2.ont.io:20339","http://polaris3.ont.io:20339","http://polaris4.ont.io:20339","https://polaris1.ont.io:10339","https://polaris2.ont.io:10339","https://polaris3.ont.io:10339","https://polaris4.ont.io:10339"],faucets:["https://developer.ont.io/"],nativeCurrency:{name:"ONG",symbol:"ONG",decimals:18},infoURL:"https://ont.io/",shortName:"OntologyTestnet",chainId:5851,networkId:5851,explorers:[{name:"explorer",url:"https://explorer.ont.io/testnet",standard:"EIP3091"}],testnet:!0,slug:"ontology-testnet"},T2r={name:"Wegochain Rubidium Mainnet",chain:"RBD",rpc:["https://wegochain-rubidium.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.wegochain.io","http://wallet.wegochain.io:7764"],faucets:[],nativeCurrency:{name:"Rubid",symbol:"RBD",decimals:18},infoURL:"https://www.wegochain.io",shortName:"rbd",chainId:5869,networkId:5869,explorers:[{name:"wegoscan2",url:"https://scan2.wegochain.io",standard:"EIP3091"}],testnet:!1,slug:"wegochain-rubidium"},E2r={name:"Tres Testnet",chain:"TresLeches",rpc:["https://tres-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-test.tresleches.finance/"],faucets:["http://faucet.tresleches.finance:8080"],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESTEST",chainId:6065,networkId:6065,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer-test.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!0,slug:"tres-testnet"},C2r={name:"Tres Mainnet",chain:"TresLeches",rpc:["https://tres.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tresleches.finance/","https://rpc.treschain.io/"],faucets:[],nativeCurrency:{name:"TRES",symbol:"TRES",decimals:18},infoURL:"https://treschain.com",shortName:"TRESMAIN",chainId:6066,networkId:6066,icon:{url:"ipfs://QmS33ypsZ1Hx5LMMACaJaxePy9QNYMwu4D12niobExLK74",width:512,height:512,format:"png"},explorers:[{name:"treslechesexplorer",url:"https://explorer.tresleches.finance",icon:"treslechesexplorer",standard:"EIP3091"}],testnet:!1,slug:"tres"},I2r={name:"Scolcoin WeiChain Testnet",chain:"SCOLWEI-testnet",rpc:["https://scolcoin-weichain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.scolcoin.com"],faucets:["https://faucet.scolcoin.com"],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC-test",chainId:6552,networkId:6552,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Testnet Explorer",url:"https://testnet-explorer.scolcoin.com",standard:"EIP3091"}],testnet:!0,slug:"scolcoin-weichain-testnet"},k2r={name:"Pixie Chain Mainnet",chain:"PixieChain",rpc:["https://pixie-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://http-mainnet.chain.pixie.xyz","wss://ws-mainnet.chain.pixie.xyz"],faucets:[],nativeCurrency:{name:"Pixie Chain Native Token",symbol:"PIX",decimals:18},infoURL:"https://chain.pixie.xyz",shortName:"pixie-chain",chainId:6626,networkId:6626,explorers:[{name:"blockscout",url:"https://scan.chain.pixie.xyz",standard:"none"}],testnet:!1,slug:"pixie-chain"},A2r={name:"Gold Smart Chain Mainnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDm",chainId:6789,networkId:6789,explorers:[{name:"Gold Smart Chain",url:"https://mainnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!1,slug:"gold-smart-chain"},S2r={name:"Tomb Chain Mainnet",chain:"Tomb Chain",rpc:["https://tomb-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tombchain.com/"],faucets:[],nativeCurrency:{name:"Tomb",symbol:"TOMB",decimals:18},infoURL:"https://tombchain.com/",shortName:"tombchain",chainId:6969,networkId:6969,explorers:[{name:"tombscout",url:"https://tombscout.com",standard:"none"}],parent:{type:"L2",chain:"eip155-250",bridges:[{url:"https://lif3.com/bridge"}]},testnet:!1,slug:"tomb-chain"},P2r={name:"PolySmartChain",chain:"PSC",rpc:["https://polysmartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed0.polysmartchain.com/","https://seed1.polysmartchain.com/","https://seed2.polysmartchain.com/"],faucets:[],nativeCurrency:{name:"PSC",symbol:"PSC",decimals:18},infoURL:"https://www.polysmartchain.com/",shortName:"psc",chainId:6999,networkId:6999,testnet:!1,slug:"polysmartchain"},R2r={name:"ZetaChain Mainnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnet.zetachain.com/evm"],faucets:[],nativeCurrency:{name:"Zeta",symbol:"ZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-mainnet",chainId:7e3,networkId:7e3,status:"incubating",explorers:[{name:"ZetaChain Mainnet Explorer",url:"https://explorer.mainnet.zetachain.com",standard:"none"}],testnet:!1,slug:"zetachain"},M2r={name:"ZetaChain Athens Testnet",chain:"ZetaChain",icon:{url:"ipfs://QmeABfwZ2nAxDzYyqZ1LEypPgQFMjEyrx8FfnoPLkF8R3f",width:1280,height:1280,format:"png"},rpc:["https://zetachain-athens-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.athens2.zetachain.com/evm"],faucets:["https://labs.zetachain.com/get-zeta"],nativeCurrency:{name:"Zeta",symbol:"aZETA",decimals:18},infoURL:"https://docs.zetachain.com/",shortName:"zetachain-athens",chainId:7001,networkId:7001,status:"active",explorers:[{name:"ZetaChain Athens Testnet Explorer",url:"https://explorer.athens.zetachain.com",standard:"none"}],testnet:!0,slug:"zetachain-athens-testnet"},N2r={name:"Ella the heart",chain:"ella",icon:{url:"ipfs://QmVkAhSaHhH3wKoLT56Aq8dNyEH4RySPEpqPcLwsptGBDm",width:512,height:512,format:"png"},rpc:["https://ella-the-heart.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ella.network"],faucets:[],nativeCurrency:{name:"Ella",symbol:"ELLA",decimals:18},infoURL:"https://ella.network",shortName:"ELLA",chainId:7027,networkId:7027,explorers:[{name:"Ella",url:"https://ella.network",standard:"EIP3091"}],testnet:!1,slug:"ella-the-heart"},B2r={name:"Planq Mainnet",chain:"Planq",icon:{url:"ipfs://QmWEy9xK5BoqxPuVs7T48WM4exJrxzkEFt45iHcxWqUy8D",width:256,height:256,format:"png"},rpc:["https://planq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.planq.network"],faucets:[],nativeCurrency:{name:"Planq",symbol:"PLQ",decimals:18},infoURL:"https://planq.network",shortName:"planq",chainId:7070,networkId:7070,explorers:[{name:"Planq EVM Explorer (Blockscout)",url:"https://evm.planq.network",standard:"none"},{name:"Planq Cosmos Explorer (BigDipper)",url:"https://explorer.planq.network",standard:"none"}],testnet:!1,slug:"planq"},D2r={name:"KLYNTAR",chain:"KLY",rpc:["https://klyntar.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.klyntar.org/kly_evm_rpc","https://evm.klyntarscan.org/kly_evm_rpc"],faucets:[],nativeCurrency:{name:"KLYNTAR",symbol:"KLY",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://klyntar.org",shortName:"kly",chainId:7331,networkId:7331,icon:{url:"ipfs://QmaDr9R6dKnZLsogRxojjq4dwXuXcudR8UeTZ8Nq553K4u",width:400,height:400,format:"png"},explorers:[],status:"incubating",testnet:!1,slug:"klyntar"},O2r={name:"Shyft Mainnet",chain:"SHYFT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:["https://shyft.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.shyft.network/"],faucets:[],nativeCurrency:{name:"Shyft",symbol:"SHYFT",decimals:18},infoURL:"https://shyft.network",shortName:"shyft",chainId:7341,networkId:7341,slip44:2147490989,explorers:[{name:"Shyft BX",url:"https://bx.shyft.network",standard:"EIP3091"}],testnet:!1,slug:"shyft"},L2r={name:"Canto",chain:"Canto",rpc:["https://canto.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://canto.slingshot.finance","https://canto.neobase.one","https://mainnode.plexnode.org:8545"],faucets:[],nativeCurrency:{name:"Canto",symbol:"CANTO",decimals:18},infoURL:"https://canto.io",shortName:"canto",chainId:7700,networkId:7700,explorers:[{name:"Canto EVM Explorer (Blockscout)",url:"https://evm.explorer.canto.io",standard:"none"},{name:"Canto Cosmos Explorer",url:"https://cosmos-explorers.neobase.one",standard:"none"},{name:"Canto EVM Explorer (Blockscout)",url:"https://tuber.build",standard:"none"}],testnet:!1,slug:"canto"},q2r={name:"Rise of the Warbots Testnet",chain:"nmactest",rpc:["https://rise-of-the-warbots-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.riseofthewarbots.com","https://testnet2.riseofthewarbots.com","https://testnet3.riseofthewarbots.com","https://testnet4.riseofthewarbots.com","https://testnet5.riseofthewarbots.com"],faucets:[],nativeCurrency:{name:"Nano Machines",symbol:"NMAC",decimals:18},infoURL:"https://riseofthewarbots.com/",shortName:"RiseOfTheWarbotsTestnet",chainId:7777,networkId:7777,explorers:[{name:"avascan",url:"https://testnet.avascan.info/blockchain/2mZ9doojfwHzXN3VXDQELKnKyZYxv7833U8Yq5eTfFx3hxJtiy",standard:"none"}],testnet:!0,slug:"rise-of-the-warbots-testnet"},F2r={name:"Hazlor Testnet",chain:"SCAS",rpc:["https://hazlor-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hatlas.rpc.hazlor.com:8545","wss://hatlas.rpc.hazlor.com:8546"],faucets:["https://faucet.hazlor.com"],nativeCurrency:{name:"Hazlor Test Coin",symbol:"TSCAS",decimals:18},infoURL:"https://hazlor.com",shortName:"tscas",chainId:7878,networkId:7878,explorers:[{name:"Hazlor Testnet Explorer",url:"https://explorer.hazlor.com",standard:"none"}],testnet:!0,slug:"hazlor-testnet"},W2r={name:"Teleport",chain:"Teleport",rpc:["https://teleport.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.teleport.network"],faucets:[],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport",chainId:8e3,networkId:8e3,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.teleport.network",standard:"none",icon:"teleport"}],testnet:!1,slug:"teleport"},U2r={name:"Teleport Testnet",chain:"Teleport",rpc:["https://teleport-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm-rpc.testnet.teleport.network"],faucets:["https://chain-docs.teleport.network/testnet/faucet.html"],nativeCurrency:{name:"Tele",symbol:"TELE",decimals:18},infoURL:"https://teleport.network",shortName:"teleport-testnet",chainId:8001,networkId:8001,icon:{url:"ipfs://QmdP1sLnsmW9dwnfb1GxAXU1nHDzCvWBQNumvMXpdbCSuz",width:390,height:390,format:"svg"},explorers:[{name:"Teleport EVM Explorer (Blockscout)",url:"https://evm-explorer.testnet.teleport.network",standard:"none",icon:"teleport"},{name:"Teleport Cosmos Explorer (Big Dipper)",url:"https://explorer.testnet.teleport.network",standard:"none",icon:"teleport"}],testnet:!0,slug:"teleport-testnet"},H2r={name:"MDGL Testnet",chain:"MDGL",rpc:["https://mdgl-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.mdgl.io"],faucets:[],nativeCurrency:{name:"MDGL Token",symbol:"MDGLT",decimals:18},infoURL:"https://mdgl.io",shortName:"mdgl",chainId:8029,networkId:8029,testnet:!0,slug:"mdgl-testnet"},j2r={name:"Shardeum Liberty 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty10.shardeum.org/"],faucets:["https://faucet.liberty10.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty10",chainId:8080,networkId:8080,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty10.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-1-x"},z2r={name:"Shardeum Liberty 2.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-liberty-2-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://liberty20.shardeum.org/"],faucets:["https://faucet.liberty20.shardeum.org"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Liberty20",chainId:8081,networkId:8081,explorers:[{name:"Shardeum Scan",url:"https://explorer-liberty20.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-liberty-2-x"},K2r={name:"Shardeum Sphinx 1.X",chain:"Shardeum",icon:{url:"ipfs://Qma1bfuubpepKn7DLDy4NPSKDeT3S4VPCNhu6UmdGrb6YD",width:609,height:533,format:"png"},rpc:["https://shardeum-sphinx-1-x.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sphinx.shardeum.org/"],faucets:["https://faucet-sphinx.shardeum.org/"],nativeCurrency:{name:"Shardeum SHM",symbol:"SHM",decimals:18},infoURL:"https://docs.shardeum.org/",shortName:"Sphinx10",chainId:8082,networkId:8082,explorers:[{name:"Shardeum Scan",url:"https://explorer-sphinx.shardeum.org",standard:"none"}],redFlags:["reusedChainId"],testnet:!1,slug:"shardeum-sphinx-1-x"},G2r={name:"StreamuX Blockchain",chain:"StreamuX",rpc:["https://streamux-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://u0ma6t6heb:KDNwOsRDGcyM2Oeui1p431Bteb4rvcWkuPgQNHwB4FM@u0xy4x6x82-u0e2mg517m-rpc.us0-aws.kaleido.io/"],faucets:[],nativeCurrency:{name:"StreamuX",symbol:"SmuX",decimals:18},infoURL:"https://www.streamux.cloud",shortName:"StreamuX",chainId:8098,networkId:8098,testnet:!1,slug:"streamux-blockchain"},V2r={name:"Qitmeer Network Testnet",chain:"MEER",rpc:[],faucets:[],nativeCurrency:{name:"Qitmeer Testnet",symbol:"MEER-T",decimals:18},infoURL:"https://github.com/Qitmeer",shortName:"meertest",chainId:8131,networkId:8131,icon:{url:"ipfs://QmWSbMuCwQzhBB6GRLYqZ87n5cnpzpYCehCAMMQmUXj4mm",width:512,height:512,format:"png"},explorers:[{name:"meerscan testnet",url:"https://testnet.qng.meerscan.io",standard:"none"}],testnet:!0,slug:"qitmeer-network-testnet"},$2r={name:"BeOne Chain Testnet",chain:"BOC",rpc:["https://beone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://pre-boc1.beonechain.com","https://pre-boc2.beonechain.com","https://pre-boc3.beonechain.com"],faucets:["https://testnet.beonescan.com/faucet"],nativeCurrency:{name:"BeOne Chain Testnet",symbol:"BOC",decimals:18},infoURL:"https://testnet.beonescan.com",shortName:"tBOC",chainId:8181,networkId:8181,icon:{url:"ipfs://QmbVLQnaMDu86bPyKgCvTGhFBeYwjr15hQnrCcsp1EkAGL",width:500,height:500,format:"png"},explorers:[{name:"BeOne Chain Testnet",url:"https://testnet.beonescan.com",icon:"beonechain",standard:"none"}],testnet:!0,slug:"beone-chain-testnet"},Y2r={name:"Klaytn Mainnet Cypress",chain:"KLAY",rpc:["https://klaytn-cypress.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://klaytn.blockpi.network/v1/rpc/public","https://klaytn-mainnet-rpc.allthatnode.com:8551","https://public-en-cypress.klaytn.net","https://public-node-api.klaytnapi.com/v1/cypress"],faucets:[],nativeCurrency:{name:"KLAY",symbol:"KLAY",decimals:18},infoURL:"https://www.klaytn.com/",shortName:"Cypress",chainId:8217,networkId:8217,slip44:8217,explorers:[{name:"klaytnfinder",url:"https://www.klaytnfinder.io/",standard:"none"},{name:"Klaytnscope",url:"https://scope.klaytn.com",standard:"none"}],icon:{format:"png",url:"ipfs://bafkreigtgdivlmfvf7trqjqy4vkz2d26xk3iif6av265v4klu5qavsugm4",height:1e3,width:1e3},testnet:!1,slug:"klaytn-cypress"},J2r={name:"Blockton Blockchain",chain:"Blockton Blockchain",icon:{url:"ipfs://bafkreig3hoedafisrgc6iffdo2jcblm6kov35h72gcblc3zkmt7t4ucwhy",width:800,height:800,format:"png"},rpc:["https://blockton-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blocktonscan.com/"],faucets:["https://faucet.blocktonscan.com/"],nativeCurrency:{name:"BLOCKTON",symbol:"BTON",decimals:18},infoURL:"https://blocktoncoin.com",shortName:"BTON",chainId:8272,networkId:8272,explorers:[{name:"Blockton Explorer",url:"https://blocktonscan.com",standard:"none"}],testnet:!1,slug:"blockton-blockchain"},Q2r={name:"KorthoTest",chain:"Kortho",rpc:["https://korthotest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.krotho-test.net"],faucets:[],nativeCurrency:{name:"Kortho Test",symbol:"KTO",decimals:11},infoURL:"https://www.kortho.io/",shortName:"Kortho",chainId:8285,networkId:8285,testnet:!0,slug:"korthotest"},Z2r={name:"Dracones Financial Services",title:"The Dracones Mainnet",chain:"FUCK",rpc:["https://dracones-financial-services.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.dracones.net/"],faucets:[],nativeCurrency:{name:"Functionally Universal Coin Kind",symbol:"FUCK",decimals:18},infoURL:"https://wolfery.com",shortName:"fuck",chainId:8387,networkId:8387,icon:{url:"ipfs://bafybeibpyckp65pqjvrvqhdt26wqoqk55m6anshbfgyqnaemn6l34nlwya",width:1024,height:1024,format:"png"},explorers:[],testnet:!1,slug:"dracones-financial-services"},X2r={name:"Base",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"base",chainId:8453,networkId:8453,status:"incubating",icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},testnet:!1,slug:"base"},ewr={name:"Toki Network",chain:"TOKI",rpc:["https://toki-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki",chainId:8654,networkId:8654,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!1,slug:"toki-network"},twr={name:"Toki Testnet",chain:"TOKI",rpc:["https://toki-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.buildwithtoki.com/v0/rpc"],faucets:[],nativeCurrency:{name:"Toki",symbol:"TOKI",decimals:18},infoURL:"https://www.buildwithtoki.com",shortName:"toki-testnet",chainId:8655,networkId:8655,icon:{url:"ipfs://QmbCBBH4dFHGr8u1yQspCieQG9hLcPFNYdRx1wnVsX8hUw",width:512,height:512,format:"svg"},explorers:[],testnet:!0,slug:"toki-testnet"},rwr={name:"TOOL Global Mainnet",chain:"OLO",rpc:["https://tool-global.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-web3.wolot.io"],faucets:[],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://ibdt.io",shortName:"olo",chainId:8723,networkId:8723,slip44:479,explorers:[{name:"OLO Block Explorer",url:"https://www.olo.network",standard:"EIP3091"}],testnet:!1,slug:"tool-global"},nwr={name:"TOOL Global Testnet",chain:"OLO",rpc:["https://tool-global-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-web3.wolot.io"],faucets:["https://testnet-explorer.wolot.io"],nativeCurrency:{name:"TOOL Global",symbol:"OLO",decimals:18},infoURL:"https://testnet-explorer.wolot.io",shortName:"tolo",chainId:8724,networkId:8724,slip44:479,testnet:!0,slug:"tool-global-testnet"},awr={name:"Alph Network",chain:"ALPH",rpc:["https://alph-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.alph.network","wss://rpc.alph.network"],faucets:[],nativeCurrency:{name:"Alph Network",symbol:"ALPH",decimals:18},infoURL:"https://alph.network",shortName:"alph",chainId:8738,networkId:8738,explorers:[{name:"alphscan",url:"https://explorer.alph.network",standard:"EIP3091"}],testnet:!1,slug:"alph-network"},iwr={name:"TMY Chain",chain:"TMY",icon:{url:"ipfs://QmXQu3ib9gTo23mdVgMqmrExga6SmAzDQTTctpVBNtfDu9",width:1024,height:1023,format:"svg"},rpc:["https://tmy-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.tmyblockchain.org/rpc"],faucets:["https://faucet.tmychain.org/"],nativeCurrency:{name:"TMY",symbol:"TMY",decimals:18},infoURL:"https://tmychain.org/",shortName:"tmy",chainId:8768,networkId:8768,testnet:!1,slug:"tmy-chain"},swr={name:"MARO Blockchain Mainnet",chain:"MARO Blockchain",icon:{url:"ipfs://bafkreig47k53aipns6nu3u5fxpysp7mogzk6zyvatgpbam7yut3yvtuefa",width:160,height:160,format:"png"},rpc:["https://maro-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-mainnet.ma.ro"],faucets:[],nativeCurrency:{name:"MARO",symbol:"MARO",decimals:18},infoURL:"https://ma.ro/",shortName:"maro",chainId:8848,networkId:8848,explorers:[{name:"MARO Scan",url:"https://scan.ma.ro/#",standard:"none"}],testnet:!1,slug:"maro-blockchain"},owr={name:"Unique",icon:{url:"ipfs://QmbJ7CGZ2GxWMp7s6jy71UGzRsMe4w3KANKXDAExYWdaFR",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.unique.network","https://eu-rpc.unique.network","https://asia-rpc.unique.network","https://us-rpc.unique.network"],faucets:[],nativeCurrency:{name:"Unique",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"unq",chainId:8880,networkId:8880,explorers:[{name:"Unique Scan",url:"https://uniquescan.io/unique",standard:"none"}],testnet:!1,slug:"unique"},cwr={name:"Quartz by Unique",icon:{url:"ipfs://QmaGPdccULQEFcCGxzstnmE8THfac2kSiGwvWRAiaRq4dp",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://quartz-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-quartz.unique.network","https://quartz.api.onfinality.io/public-ws","https://eu-rpc-quartz.unique.network","https://asia-rpc-quartz.unique.network","https://us-rpc-quartz.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"qtz",chainId:8881,networkId:8881,explorers:[{name:"Unique Scan / Quartz",url:"https://uniquescan.io/quartz",standard:"none"}],testnet:!1,slug:"quartz-by-unique"},uwr={name:"Opal testnet by Unique",icon:{url:"ipfs://QmYJDpmWyjDa3H6BxweFmQXk4fU8b1GU7M9EqYcaUNvXzc",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://opal-testnet-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-opal.unique.network","https://us-rpc-opal.unique.network","https://eu-rpc-opal.unique.network","https://asia-rpc-opal.unique.network"],faucets:["https://t.me/unique2faucet_opal_bot"],nativeCurrency:{name:"Opal",symbol:"UNQ",decimals:18},infoURL:"https://unique.network",shortName:"opl",chainId:8882,networkId:8882,explorers:[{name:"Unique Scan / Opal",url:"https://uniquescan.io/opal",standard:"none"}],testnet:!0,slug:"opal-testnet-by-unique"},lwr={name:"Sapphire by Unique",icon:{url:"ipfs://Qmd1PGt4cDRjFbh4ihP5QKEd4XQVwN1MkebYKdF56V74pf",width:48,height:48,format:"svg"},chain:"UNQ",rpc:["https://sapphire-by-unique.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-sapphire.unique.network","https://us-rpc-sapphire.unique.network","https://eu-rpc-sapphire.unique.network","https://asia-rpc-sapphire.unique.network"],faucets:[],nativeCurrency:{name:"Quartz",symbol:"QTZ",decimals:18},infoURL:"https://unique.network",shortName:"sph",chainId:8883,networkId:8883,explorers:[{name:"Unique Scan / Sapphire",url:"https://uniquescan.io/sapphire",standard:"none"}],testnet:!1,slug:"sapphire-by-unique"},dwr={name:"XANAChain",chain:"XANAChain",rpc:["https://xanachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.xana.net/rpc"],faucets:[],nativeCurrency:{name:"XETA",symbol:"XETA",decimals:18},infoURL:"https://xanachain.xana.net/",shortName:"XANAChain",chainId:8888,networkId:8888,icon:{url:"ipfs://QmWGNfwJ9o2vmKD3E6fjrxpbFP8W5q45zmYzHHoXwqqAoj",width:512,height:512,format:"png"},explorers:[{name:"XANAChain",url:"https://xanachain.xana.net",standard:"EIP3091"}],redFlags:["reusedChainId"],testnet:!1,slug:"xanachain"},pwr={name:"Vyvo Smart Chain",chain:"VSC",rpc:["https://vyvo-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vsc-dataseed.vyvo.org:8889"],faucets:[],nativeCurrency:{name:"VSC",symbol:"VSC",decimals:18},infoURL:"https://vsc-dataseed.vyvo.org",shortName:"vsc",chainId:8889,networkId:8889,testnet:!1,slug:"vyvo-smart-chain"},hwr={name:"Mammoth Mainnet",title:"Mammoth Chain",chain:"MMT",rpc:["https://mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dataseed.mmtscan.io","https://dataseed1.mmtscan.io","https://dataseed2.mmtscan.io"],faucets:["https://faucet.mmtscan.io/"],nativeCurrency:{name:"Mammoth Token",symbol:"MMT",decimals:18},infoURL:"https://mmtchain.io/",shortName:"mmt",chainId:8898,networkId:8898,icon:{url:"ipfs://QmaF5gi2CbDKsJ2UchNkjBqmWjv8JEDP3vePBmxeUHiaK4",width:250,height:250,format:"png"},explorers:[{name:"mmtscan",url:"https://mmtscan.io",standard:"EIP3091",icon:"mmt"}],testnet:!1,slug:"mammoth"},fwr={name:"JIBCHAIN L1",chain:"JBC",rpc:["https://jibchain-l1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-l1.jibchain.net"],faucets:[],features:[{name:"EIP155"},{name:"EIP1559"}],nativeCurrency:{name:"JIBCOIN",symbol:"JBC",decimals:18},infoURL:"https://jibchain.net",shortName:"jbc",chainId:8899,networkId:8899,explorers:[{name:"JIBCHAIN Explorer",url:"https://exp-l1.jibchain.net",standard:"EIP3091"}],testnet:!1,slug:"jibchain-l1"},mwr={name:"Giant Mammoth Mainnet",title:"Giant Mammoth Chain",chain:"GMMT",rpc:["https://giant-mammoth.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-asia.gmmtchain.io"],faucets:[],nativeCurrency:{name:"Giant Mammoth Coin",symbol:"GMMT",decimals:18},infoURL:"https://gmmtchain.io/",shortName:"gmmt",chainId:8989,networkId:8989,icon:{url:"ipfs://QmVth4aPeskDTFqRifUugJx6gyEHCmx2PFbMWUtsCSQFkF",width:468,height:518,format:"png"},explorers:[{name:"gmmtscan",url:"https://scan.gmmtchain.io",standard:"EIP3091",icon:"gmmt"}],testnet:!1,slug:"giant-mammoth"},ywr={name:"bloxberg",chain:"bloxberg",rpc:["https://bloxberg.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://core.bloxberg.org"],faucets:["https://faucet.bloxberg.org/"],nativeCurrency:{name:"BERG",symbol:"U+25B3",decimals:18},infoURL:"https://bloxberg.org",shortName:"berg",chainId:8995,networkId:8995,testnet:!1,slug:"bloxberg"},gwr={name:"Evmos Testnet",chain:"Evmos",rpc:["https://evmos-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.dev:8545"],faucets:["https://faucet.evmos.dev"],nativeCurrency:{name:"test-Evmos",symbol:"tEVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos-testnet",chainId:9e3,networkId:9e3,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer",url:"https://evm.evmos.dev",standard:"EIP3091",icon:"evmos"},{name:"Evmos Cosmos Explorer",url:"https://explorer.evmos.dev",standard:"none",icon:"evmos"}],testnet:!0,slug:"evmos-testnet"},bwr={name:"Evmos",chain:"Evmos",rpc:["https://evmos.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eth.bd.evmos.org:8545","https://evmos-evm.publicnode.com"],faucets:[],nativeCurrency:{name:"Evmos",symbol:"EVMOS",decimals:18},infoURL:"https://evmos.org",shortName:"evmos",chainId:9001,networkId:9001,icon:{url:"ipfs://QmeZW6VKUFTbz7PPW8PmDR3ZHa6osYPLBFPnW8T5LSU49c",width:400,height:400,format:"png"},explorers:[{name:"Evmos EVM Explorer (Escan)",url:"https://escan.live",standard:"none",icon:"evmos"},{name:"Evmos Cosmos Explorer (Mintscan)",url:"https://www.mintscan.io/evmos",standard:"none",icon:"evmos"}],testnet:!1,slug:"evmos"},vwr={name:"BerylBit Mainnet",chain:"BRB",rpc:["https://berylbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.berylbit.io"],faucets:["https://t.me/BerylBit"],nativeCurrency:{name:"BerylBit Chain Native Token",symbol:"BRB",decimals:18},infoURL:"https://www.beryl-bit.com",shortName:"brb",chainId:9012,networkId:9012,icon:{url:"ipfs://QmeDXHkpranzqGN1BmQqZSrFp4vGXf4JfaB5iq8WHHiwDi",width:162,height:162,format:"png"},explorers:[{name:"berylbit-explorer",url:"https://explorer.berylbit.io",standard:"EIP3091"}],testnet:!1,slug:"berylbit"},wwr={name:"Genesis Coin",chain:"Genesis",rpc:["https://genesis-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://genesis-gn.com","wss://genesis-gn.com"],faucets:[],nativeCurrency:{name:"GN Coin",symbol:"GNC",decimals:18},infoURL:"https://genesis-gn.com",shortName:"GENEC",chainId:9100,networkId:9100,testnet:!1,slug:"genesis-coin"},_wr={name:"Dogcoin Testnet",chain:"DOGS",icon:{url:"ipfs://QmZCadkExKThak3msvszZjo6UnAbUJKE61dAcg4TixuMC3",width:160,height:171,format:"png"},rpc:["https://dogcoin-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.dogcoin.me"],faucets:["https://faucet.dogcoin.network"],nativeCurrency:{name:"Dogcoin",symbol:"DOGS",decimals:18},infoURL:"https://dogcoin.network",shortName:"DOGSt",chainId:9339,networkId:9339,explorers:[{name:"Dogcoin",url:"https://testnet.dogcoin.network",standard:"EIP3091"}],testnet:!0,slug:"dogcoin-testnet"},xwr={name:"Rangers Protocol Testnet Robin",chain:"Rangers",icon:{url:"ipfs://QmXR5e5SDABWfQn6XT9uMsVYAo5Bv7vUv4jVs8DFqatZWG",width:2e3,height:2e3,format:"png"},rpc:["https://rangers-protocol-testnet-robin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://robin.rangersprotocol.com/api/jsonrpc"],faucets:["https://robin-faucet.rangersprotocol.com"],nativeCurrency:{name:"Rangers Protocol Gas",symbol:"tRPG",decimals:18},infoURL:"https://rangersprotocol.com",shortName:"trpg",chainId:9527,networkId:9527,explorers:[{name:"rangersscan-robin",url:"https://robin-rangersscan.rangersprotocol.com",standard:"none"}],testnet:!0,slug:"rangers-protocol-testnet-robin"},Twr={name:"QEasyWeb3 Testnet",chain:"QET",rpc:["https://qeasyweb3-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://qeasyweb3.com"],faucets:["http://faucet.qeasyweb3.com"],nativeCurrency:{name:"QET",symbol:"QET",decimals:18},infoURL:"https://www.qeasyweb3.com",shortName:"QETTest",chainId:9528,networkId:9528,explorers:[{name:"QEasyWeb3 Explorer",url:"https://www.qeasyweb3.com",standard:"EIP3091"}],testnet:!0,slug:"qeasyweb3-testnet"},Ewr={name:"Oort MainnetDev",title:"Oort MainnetDev",chain:"MainnetDev",rpc:[],faucets:[],nativeCurrency:{name:"Oort",symbol:"CCN",decimals:18},infoURL:"https://oortech.com",shortName:"MainnetDev",chainId:9700,networkId:9700,icon:{url:"ipfs://QmZ1jbxFZcuotj3eZ6iKFrg9ZXnaV8AK6sGRa7ELrceWyD",width:1043,height:1079,format:"png"},testnet:!1,slug:"oort-dev"},Cwr={name:"Boba BNB Testnet",chain:"Boba BNB Testnet",rpc:["https://boba-bnb-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.bnb.boba.network","wss://wss.testnet.bnb.boba.network","https://replica.testnet.bnb.boba.network","wss://replica-wss.testnet.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnbTestnet",chainId:9728,networkId:9728,explorers:[{name:"Boba BNB Testnet block explorer",url:"https://blockexplorer.testnet.bnb.boba.network",standard:"none"}],testnet:!0,slug:"boba-bnb-testnet"},Iwr={name:"MainnetZ Testnet",chain:"NetZ",icon:{url:"ipfs://QmT5gJ5weBiLT3GoYuF5yRTRLdPLCVZ3tXznfqW7M8fxgG",width:400,height:400,format:"png"},rpc:["https://z-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.mainnetz.io"],faucets:["https://faucet.mainnetz.io"],nativeCurrency:{name:"MainnetZ",symbol:"NetZ",decimals:18},infoURL:"https://testnet.mainnetz.io",shortName:"NetZt",chainId:9768,networkId:9768,explorers:[{name:"MainnetZ",url:"https://testnet.mainnetz.io",standard:"EIP3091"}],testnet:!0,slug:"z-testnet"},kwr={name:"myOwn Testnet",chain:"myOwn",rpc:["https://myown-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.dev.bccloud.net"],faucets:[],nativeCurrency:{name:"MYN",symbol:"MYN",decimals:18},infoURL:"https://docs.bccloud.net/",shortName:"myn",chainId:9999,networkId:9999,testnet:!0,slug:"myown-testnet"},Awr={name:"Smart Bitcoin Cash",chain:"smartBCH",rpc:["https://smart-bitcoin-cash.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smartbch.greyh.at","https://rpc-mainnet.smartbch.org","https://smartbch.fountainhead.cash/mainnet","https://smartbch.devops.cash/mainnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash",symbol:"BCH",decimals:18},infoURL:"https://smartbch.org/",shortName:"smartbch",chainId:1e4,networkId:1e4,testnet:!1,slug:"smart-bitcoin-cash"},Swr={name:"Smart Bitcoin Cash Testnet",chain:"smartBCHTest",rpc:["https://smart-bitcoin-cash-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.smartbch.org","https://smartbch.devops.cash/testnet"],faucets:[],nativeCurrency:{name:"Bitcoin Cash Test Token",symbol:"BCHT",decimals:18},infoURL:"http://smartbch.org/",shortName:"smartbchtest",chainId:10001,networkId:10001,testnet:!0,slug:"smart-bitcoin-cash-testnet"},Pwr={name:"Gon Chain",chain:"GonChain",icon:{url:"ipfs://QmPtiJGaApbW3ATZhPW3pKJpw3iGVrRGsZLWhrDKF9ZK18",width:1024,height:1024,format:"png"},rpc:["https://gon-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.testnet.gaiaopen.network","http://database1.gaiaopen.network"],faucets:[],nativeCurrency:{name:"Gon Token",symbol:"GT",decimals:18},infoURL:"",shortName:"gon",chainId:10024,networkId:10024,explorers:[{name:"Gon Explorer",url:"https://gonscan.com",standard:"none"}],testnet:!0,slug:"gon-chain"},Rwr={name:"SJATSH",chain:"ETH",rpc:["https://sjatsh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://geth.free.idcfengye.com"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://sjis.me",shortName:"SJ",chainId:10086,networkId:10086,testnet:!1,slug:"sjatsh"},Mwr={name:"Blockchain Genesis Mainnet",chain:"GEN",rpc:["https://blockchain-genesis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eu.mainnet.xixoio.com","https://us.mainnet.xixoio.com","https://asia.mainnet.xixoio.com"],faucets:[],nativeCurrency:{name:"GEN",symbol:"GEN",decimals:18},infoURL:"https://www.xixoio.com/",shortName:"GEN",chainId:10101,networkId:10101,testnet:!1,slug:"blockchain-genesis"},Nwr={name:"Chiado Testnet",chain:"CHI",icon:{url:"ipfs://bafybeidk4swpgdyqmpz6shd5onvpaujvwiwthrhypufnwr6xh3dausz2dm",width:1800,height:1800,format:"png"},rpc:["https://chiado-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.chiadochain.net","https://rpc.eu-central-2.gateway.fm/v3/gnosis/archival/chiado"],faucets:["https://gnosisfaucet.com"],nativeCurrency:{name:"Chiado xDAI",symbol:"xDAI",decimals:18},infoURL:"https://docs.gnosischain.com",shortName:"chi",chainId:10200,networkId:10200,explorers:[{name:"blockscout",url:"https://blockscout.chiadochain.net",icon:"blockscout",standard:"EIP3091"}],testnet:!0,slug:"chiado-testnet"},Bwr={name:"0XTade",chain:"0XTade Chain",rpc:["https://0xtade.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.0xtchain.com"],faucets:[],nativeCurrency:{name:"0XT",symbol:"0XT",decimals:18},infoURL:"https://www.0xtrade.finance/",shortName:"0xt",chainId:10248,networkId:10248,explorers:[{name:"0xtrade Scan",url:"https://www.0xtscan.com",standard:"none"}],testnet:!1,slug:"0xtade"},Dwr={name:"Numbers Mainnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnetrpc.num.network"],faucets:[],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Jade",chainId:10507,networkId:10507,explorers:[{name:"ethernal",url:"https://mainnet.num.network",standard:"EIP3091"}],testnet:!1,slug:"numbers"},Owr={name:"Numbers Testnet",chain:"NUM",icon:{url:"ipfs://bafkreie3ba6ofosjqqiya6empkyw6u5xdrtcfzi2evvyt4u6utzeiezyhi",width:1500,height:1500,format:"png"},rpc:["https://numbers-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnetrpc.num.network"],faucets:["https://faucet.avax.network/?subnet=num","https://faucet.num.network"],nativeCurrency:{name:"NUM Token",symbol:"NUM",decimals:18},infoURL:"https://numbersprotocol.io",shortName:"Snow",chainId:10508,networkId:10508,explorers:[{name:"ethernal",url:"https://testnet.num.network",standard:"EIP3091"}],testnet:!0,slug:"numbers-testnet"},Lwr={name:"CryptoCoinPay",chain:"CCP",rpc:["https://cryptocoinpay.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node106.cryptocoinpay.info:8545","ws://node106.cryptocoinpay.info:8546"],faucets:[],icon:{url:"ipfs://QmPw1ixYYeXvTiRWoCt2jWe4YMd3B5o7TzL18SBEHXvhXX",width:200,height:200,format:"png"},nativeCurrency:{name:"CryptoCoinPay",symbol:"CCP",decimals:18},infoURL:"https://www.cryptocoinpay.co",shortName:"CCP",chainId:10823,networkId:10823,explorers:[{name:"CCP Explorer",url:"https://cryptocoinpay.info",standard:"EIP3091"}],testnet:!1,slug:"cryptocoinpay"},qwr={name:"Quadrans Blockchain",chain:"QDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.quadrans.io","https://rpcna.quadrans.io","https://rpceu.quadrans.io"],faucets:[],nativeCurrency:{name:"Quadrans Coin",symbol:"QDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadrans",chainId:10946,networkId:10946,explorers:[{name:"explorer",url:"https://explorer.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!1,slug:"quadrans-blockchain"},Fwr={name:"Quadrans Blockchain Testnet",chain:"tQDC",icon:{url:"ipfs://QmZFiYHnE4TrezPz8wSap9nMxG6m98w4fv7ataj2TfLNck",width:1024,height:1024,format:"png"},rpc:["https://quadrans-blockchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpctest.quadrans.io","https://rpctest2.quadrans.io"],faucets:["https://faucetpage.quadrans.io"],nativeCurrency:{name:"Quadrans Testnet Coin",symbol:"tQDC",decimals:18},infoURL:"https://quadrans.io",shortName:"quadranstestnet",chainId:10947,networkId:10947,explorers:[{name:"explorer",url:"https://explorer.testnet.quadrans.io",icon:"quadrans",standard:"EIP3091"}],testnet:!0,slug:"quadrans-blockchain-testnet"},Wwr={name:"Astra",chain:"Astra",rpc:["https://astra.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.io","https://rpc1.astranaut.io"],faucets:[],nativeCurrency:{name:"Astra",symbol:"ASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra",chainId:11110,networkId:11110,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer (Blockscout)",url:"https://explorer.astranaut.io",standard:"none",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.io/astra",standard:"none",icon:"astra"}],testnet:!1,slug:"astra"},Uwr={name:"WAGMI",chain:"WAGMI",icon:{url:"ipfs://QmNoyUXxnak8B3xgFxErkVfyVEPJUMHBzq7qJcYzkUrPR4",width:1920,height:1920,format:"png"},rpc:["https://wagmi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/wagmi/wagmi-chain-testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=wagmi"],nativeCurrency:{name:"WAGMI",symbol:"WGM",decimals:18},infoURL:"https://subnets-test.avax.network/wagmi/details",shortName:"WAGMI",chainId:11111,networkId:11111,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets-test.avax.network/wagmi",standard:"EIP3091"}],testnet:!0,slug:"wagmi"},Hwr={name:"Astra Testnet",chain:"Astra",rpc:["https://astra-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.astranaut.dev"],faucets:["https://faucet.astranaut.dev"],nativeCurrency:{name:"test-Astra",symbol:"tASA",decimals:18},infoURL:"https://astranaut.io",shortName:"astra-testnet",chainId:11115,networkId:11115,icon:{url:"ipfs://QmaBtaukPNNUNjdJSUAwuFFQMLbZX1Pc3fvXKTKQcds7Kf",width:104,height:80,format:"png"},explorers:[{name:"Astra EVM Explorer",url:"https://explorer.astranaut.dev",standard:"EIP3091",icon:"astra"},{name:"Astra PingPub Explorer",url:"https://ping.astranaut.dev/astra",standard:"none",icon:"astra"}],testnet:!0,slug:"astra-testnet"},jwr={name:"HashBit Mainnet",chain:"HBIT",rpc:["https://hashbit.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hashbit.org","https://rpc.hashbit.org"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"HashBit Native Token",symbol:"HBIT",decimals:18},infoURL:"https://hashbit.org",shortName:"hbit",chainId:11119,networkId:11119,explorers:[{name:"hashbitscan",url:"https://explorer.hashbit.org",standard:"EIP3091"}],testnet:!1,slug:"hashbit"},zwr={name:"Haqq Network",chain:"Haqq",rpc:["https://haqq-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.haqq.network"],faucets:[],nativeCurrency:{name:"Islamic Coin",symbol:"ISLM",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLM",chainId:11235,networkId:11235,explorers:[{name:"Mainnet HAQQ Explorer",url:"https://explorer.haqq.network",standard:"EIP3091"}],testnet:!1,slug:"haqq-network"},Kwr={name:"Shyft Testnet",chain:"SHYFTT",icon:{url:"ipfs://QmUkFZC2ZmoYPTKf7AHdjwRPZoV2h1MCuHaGM4iu8SNFpi",width:400,height:400,format:"svg"},rpc:[],faucets:[],nativeCurrency:{name:"Shyft Test Token",symbol:"SHYFTT",decimals:18},infoURL:"https://shyft.network",shortName:"shyftt",chainId:11437,networkId:11437,explorers:[{name:"Shyft Testnet BX",url:"https://bx.testnet.shyft.network",standard:"EIP3091"}],testnet:!0,slug:"shyft-testnet"},Gwr={name:"Sardis Testnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXt",chainId:11612,networkId:11612,explorers:[{name:"Sardis",url:"https://testnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!0,slug:"sardis-testnet"},Vwr={name:"SanR Chain",chain:"SanRChain",rpc:["https://sanr-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sanrchain-node.santiment.net"],faucets:[],nativeCurrency:{name:"nSAN",symbol:"nSAN",decimals:18},infoURL:"https://sanr.app",shortName:"SAN",chainId:11888,networkId:11888,icon:{url:"ipfs://QmPLMg5mYD8XRknvYbDkD2x7FXxYan7MPTeUWZC2CihwDM",width:2048,height:2048,format:"png"},parent:{chain:"eip155-1",type:"L2",bridges:[{url:"https://sanr.app"}]},explorers:[{name:"SanR Chain Explorer",url:"https://sanrchain-explorer.santiment.net",standard:"none"}],testnet:!1,slug:"sanr-chain"},$wr={name:"Singularity ZERO Testnet",chain:"ZERO",rpc:["https://singularity-zero-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://betaenv.singularity.gold:18545"],faucets:["https://nft.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"tZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"tZERO",chainId:12051,networkId:12051,explorers:[{name:"zeroscan",url:"https://betaenv.singularity.gold:18002",standard:"EIP3091"}],testnet:!0,slug:"singularity-zero-testnet"},Ywr={name:"Singularity ZERO Mainnet",chain:"ZERO",rpc:["https://singularity-zero.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://zerorpc.singularity.gold"],faucets:["https://zeroscan.singularity.gold"],nativeCurrency:{name:"ZERO",symbol:"ZERO",decimals:18},infoURL:"https://www.singularity.gold",shortName:"ZERO",chainId:12052,networkId:12052,slip44:621,explorers:[{name:"zeroscan",url:"https://zeroscan.singularity.gold",standard:"EIP3091"}],testnet:!1,slug:"singularity-zero"},Jwr={name:"Fibonacci Mainnet",chain:"FIBO",icon:{url:"ipfs://bafkreidiedaz3jugxmh2ylzlc4nympbd5iwab33adhwkcnblyop6vvj25y",width:1494,height:1494,format:"png"},rpc:["https://fibonacci.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.fibo-api.asia"],faucets:[],nativeCurrency:{name:"FIBONACCI UTILITY TOKEN",symbol:"FIBO",decimals:18},infoURL:"https://fibochain.org",shortName:"fibo",chainId:12306,networkId:1230,explorers:[{name:"fiboscan",url:"https://scan.fibochain.org",standard:"EIP3091"}],testnet:!1,slug:"fibonacci"},Qwr={name:"BLG Testnet",chain:"BLG",icon:{url:"ipfs://QmUN5j2cre8GHKv52JE8ag88aAnRmuHMGFxePPvKMogisC",width:512,height:512,format:"svg"},rpc:["https://blg-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.blgchain.com"],faucets:["https://faucet.blgchain.com"],nativeCurrency:{name:"Blg",symbol:"BLG",decimals:18},infoURL:"https://blgchain.com",shortName:"blgchain",chainId:12321,networkId:12321,testnet:!0,slug:"blg-testnet"},Zwr={name:"Step Testnet",title:"Step Test Network",chain:"STEP",icon:{url:"ipfs://QmVp9jyb3UFW71867yVtymmiRw7dPY4BTnsp3hEjr9tn8L",width:512,height:512,format:"png"},rpc:["https://step-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.step.network"],faucets:["https://faucet.step.network"],nativeCurrency:{name:"FITFI",symbol:"FITFI",decimals:18},infoURL:"https://step.network",shortName:"steptest",chainId:12345,networkId:12345,explorers:[{name:"StepScan",url:"https://testnet.stepscan.io",icon:"step",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-43113"},testnet:!0,slug:"step-testnet"},Xwr={name:"Rikeza Network Testnet",title:"Rikeza Network Testnet",chain:"Rikeza",rpc:["https://rikeza-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.rikscan.com"],faucets:[],nativeCurrency:{name:"Rikeza",symbol:"RIK",decimals:18},infoURL:"https://rikeza.io",shortName:"tRIK",chainId:12715,networkId:12715,explorers:[{name:"Rikeza Blockchain explorer",url:"https://testnet.rikscan.com",standard:"EIP3091"}],testnet:!0,slug:"rikeza-network-testnet"},e5r={name:"SPS",chain:"SPS",rpc:["https://sps.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ssquad.games"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS",chainId:13e3,networkId:13e3,explorers:[{name:"SPS Explorer",url:"http://spsscan.ssquad.games",standard:"EIP3091"}],testnet:!1,slug:"sps"},t5r={name:"Credit Smartchain Mainnet",chain:"CREDIT",rpc:["https://credit-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cscscan.io"],faucets:[],nativeCurrency:{name:"Credit",symbol:"CREDIT",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://creditsmartchain.com",shortName:"Credit",chainId:13308,networkId:1,icon:{url:"ipfs://bafkreifbso3gd4wu5wxl27xyurxctmuae2jyuy37guqtzx23nga6ba4ag4",width:1e3,height:1628,format:"png"},explorers:[{name:"CSC Scan",url:"https://explorer.cscscan.io",icon:"credit",standard:"EIP3091"}],testnet:!1,slug:"credit-smartchain"},r5r={name:"Phoenix Mainnet",chain:"Phoenix",rpc:["https://phoenix.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.phoenixplorer.com/"],faucets:[],nativeCurrency:{name:"Phoenix",symbol:"PHX",decimals:18},infoURL:"https://cryptophoenix.org/phoenix",shortName:"Phoenix",chainId:13381,networkId:13381,icon:{url:"ipfs://QmYiLMeKDXMSNuQmtxNdxm53xR588pcRXMf7zuiZLjQnc6",width:1501,height:1501,format:"png"},explorers:[{name:"phoenixplorer",url:"https://phoenixplorer.com",standard:"EIP3091"}],testnet:!1,slug:"phoenix"},n5r={name:"Susono",chain:"SUS",rpc:["https://susono.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gateway.opn.network/node/ext/bc/2VsZe5DstWw2bfgdx3YbjKcMsJnNDjni95sZorBEdk9L9Qr9Fr/rpc"],faucets:[],nativeCurrency:{name:"Susono",symbol:"OPN",decimals:18},infoURL:"",shortName:"sus",chainId:13812,networkId:13812,explorers:[{name:"Susono",url:"http://explorer.opn.network",standard:"none"}],testnet:!1,slug:"susono"},a5r={name:"SPS Testnet",chain:"SPS-Testnet",rpc:["https://sps-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.3sps.net"],faucets:[],nativeCurrency:{name:"ECG",symbol:"ECG",decimals:18},infoURL:"https://ssquad.games/",shortName:"SPS-Test",chainId:14e3,networkId:14e3,explorers:[{name:"SPS Test Explorer",url:"https://explorer.3sps.net",standard:"EIP3091"}],testnet:!0,slug:"sps-testnet"},i5r={name:"LoopNetwork Mainnet",chain:"LoopNetwork",rpc:["https://loopnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.mainnetloop.com"],faucets:[],nativeCurrency:{name:"LOOP",symbol:"LOOP",decimals:18},infoURL:"http://theloopnetwork.org/",shortName:"loop",chainId:15551,networkId:15551,explorers:[{name:"loopscan",url:"http://explorer.mainnetloop.com",standard:"none"}],testnet:!1,slug:"loopnetwork"},s5r={name:"Trust EVM Testnet",chain:"Trust EVM Testnet",rpc:["https://trust-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.testnet-dev.trust.one"],faucets:["https://faucet.testnet-dev.trust.one/"],nativeCurrency:{name:"Trust EVM",symbol:"EVM",decimals:18},infoURL:"https://www.trust.one/",shortName:"TrustTestnet",chainId:15555,networkId:15555,explorers:[{name:"Trust EVM Explorer",url:"https://trustscan.one",standard:"EIP3091"}],testnet:!0,slug:"trust-evm-testnet"},o5r={name:"MetaDot Mainnet",chain:"MTT",rpc:["https://metadot.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.metadot.network"],faucets:[],nativeCurrency:{name:"MetaDot Token",symbol:"MTT",decimals:18},infoURL:"https://metadot.network",shortName:"mtt",chainId:16e3,networkId:16e3,testnet:!1,slug:"metadot"},c5r={name:"MetaDot Testnet",chain:"MTTTest",rpc:["https://metadot-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.metadot.network"],faucets:["https://faucet.metadot.network/"],nativeCurrency:{name:"MetaDot Token TestNet",symbol:"MTTest",decimals:18},infoURL:"https://metadot.network",shortName:"mtttest",chainId:16001,networkId:16001,testnet:!0,slug:"metadot-testnet"},u5r={name:"AirDAO Mainnet",chain:"ambnet",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://airdao.io",shortName:"airdao",chainId:16718,networkId:16718,explorers:[{name:"AirDAO Network Explorer",url:"https://airdao.io/explorer",standard:"none"}],testnet:!1,slug:"airdao"},l5r={name:"IVAR Chain Testnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.ivarex.com"],faucets:["https://tfaucet.ivarex.com/"],nativeCurrency:{name:"tIvar",symbol:"tIVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"tivar",chainId:16888,networkId:16888,explorers:[{name:"ivarscan",url:"https://testnet.ivarscan.com",standard:"EIP3091"}],testnet:!0,slug:"ivar-chain-testnet"},d5r={name:"Frontier of Dreams Testnet",chain:"Game Network",rpc:["https://frontier-of-dreams-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.fod.games/"],nativeCurrency:{name:"ZKST",symbol:"ZKST",decimals:18},faucets:[],shortName:"ZKST",chainId:18e3,networkId:18e3,infoURL:"https://goexosphere.com",explorers:[{name:"Game Network",url:"https://explorer.fod.games",standard:"EIP3091"}],testnet:!0,slug:"frontier-of-dreams-testnet"},p5r={name:"Proof Of Memes",title:"Proof Of Memes Mainnet",chain:"POM",icon:{url:"ipfs://QmePhfibWz9jnGUqF9Rven4x734br1h3LxrChYTEjbbQvo",width:256,height:256,format:"png"},rpc:["https://proof-of-memes.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.memescan.io","https://mainnet-rpc2.memescan.io","https://mainnet-rpc3.memescan.io","https://mainnet-rpc4.memescan.io"],faucets:[],nativeCurrency:{name:"Proof Of Memes",symbol:"POM",decimals:18},infoURL:"https://proofofmemes.org",shortName:"pom",chainId:18159,networkId:18159,explorers:[{name:"explorer-proofofmemes",url:"https://memescan.io",standard:"EIP3091"}],testnet:!1,slug:"proof-of-memes"},h5r={name:"HOME Verse Mainnet",chain:"HOME Verse",icon:{url:"ipfs://QmeGb65zSworzoHmwK3jdkPtEsQZMUSJRxf8K8Feg56soU",width:597,height:597,format:"png"},rpc:["https://home-verse.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mainnet.oasys.homeverse.games/"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://www.homeverse.games/",shortName:"HMV",chainId:19011,networkId:19011,explorers:[{name:"HOME Verse Explorer",url:"https://explorer.oasys.homeverse.games",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-248"},testnet:!1,slug:"home-verse"},f5r={name:"BTCIX Network",chain:"BTCIX",rpc:["https://btcix-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.btcix.org/rpc"],faucets:[],nativeCurrency:{name:"BTCIX Network",symbol:"BTCIX",decimals:18},infoURL:"https://bitcolojix.org",shortName:"btcix",chainId:19845,networkId:19845,explorers:[{name:"BTCIXScan",url:"https://btcixscan.com",standard:"none"}],testnet:!1,slug:"btcix-network"},m5r={name:"Callisto Testnet",chain:"CLO",rpc:["https://callisto-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.callisto.network/"],faucets:["https://faucet.callisto.network/"],nativeCurrency:{name:"Callisto",symbol:"CLO",decimals:18},infoURL:"https://callisto.network",shortName:"CLOTestnet",chainId:20729,networkId:79,testnet:!0,slug:"callisto-testnet"},y5r={name:"P12 Chain",chain:"P12",icon:{url:"ipfs://bafkreieiro4imoujeewc4r4thf5hxj47l56j2iwuz6d6pdj6ieb6ub3h7e",width:512,height:512,format:"png"},rpc:["https://p12-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-chain.p12.games"],faucets:[],nativeCurrency:{name:"Hooked P2",symbol:"hP2",decimals:18},infoURL:"https://p12.network",features:[{name:"EIP155"},{name:"EIP1559"}],shortName:"p12",chainId:20736,networkId:20736,explorers:[{name:"P12 Chain Explorer",url:"https://explorer.p12.games",standard:"EIP3091"}],testnet:!1,slug:"p12-chain"},g5r={name:"CENNZnet Azalea",chain:"CENNZnet",rpc:["https://cennznet-azalea.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://cennznet.unfrastructure.io/public"],faucets:[],nativeCurrency:{name:"CPAY",symbol:"CPAY",decimals:18},infoURL:"https://cennz.net",shortName:"cennz-a",chainId:21337,networkId:21337,icon:{url:"ipfs://QmWhNm7tTi6SYbiumULDRk956hxgqaZSX77vcxBNn8fvnw",width:112,height:112,format:"svg"},explorers:[{name:"UNcover",url:"https://uncoverexplorer.com",standard:"none"}],testnet:!1,slug:"cennznet-azalea"},b5r={name:"omChain Mainnet",chain:"OML",icon:{url:"ipfs://QmQtEHaejiDbmiCvbBYw9jNQv3DLK5XHCQwLRfnLNpdN5j",width:256,height:256,format:"png"},rpc:["https://omchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://seed.omchain.io"],faucets:[],nativeCurrency:{name:"omChain",symbol:"OMC",decimals:18},infoURL:"https://omchain.io",shortName:"omc",chainId:21816,networkId:21816,explorers:[{name:"omChain Explorer",url:"https://explorer.omchain.io",standard:"EIP3091"}],testnet:!1,slug:"omchain"},v5r={name:"Taycan",chain:"Taycan",rpc:["https://taycan.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://taycan-rpc.hupayx.io:8545"],faucets:[],nativeCurrency:{name:"shuffle",symbol:"SFL",decimals:18},infoURL:"https://hupayx.io",shortName:"SFL",chainId:22023,networkId:22023,icon:{url:"ipfs://bafkreidvjcc73v747lqlyrhgbnkvkdepdvepo6baj6hmjsmjtvdyhmzzmq",width:1e3,height:1206,format:"png"},explorers:[{name:"Taycan Explorer(Blockscout)",url:"https://taycan-evmscan.hupayx.io",standard:"none",icon:"shuffle"},{name:"Taycan Cosmos Explorer(BigDipper)",url:"https://taycan-cosmoscan.hupayx.io",standard:"none",icon:"shuffle"}],testnet:!1,slug:"taycan"},w5r={name:"AirDAO Testnet",chain:"ambnet-test",icon:{url:"ipfs://QmSxXjvWng3Diz4YwXDV2VqSPgMyzLYBNfkjJcr7rzkxom",width:400,height:400,format:"png"},rpc:["https://airdao-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://network.ambrosus-test.io"],faucets:[],nativeCurrency:{name:"Amber",symbol:"AMB",decimals:18},infoURL:"https://testnet.airdao.io",shortName:"airdao-test",chainId:22040,networkId:22040,explorers:[{name:"AirDAO Network Explorer",url:"https://testnet.airdao.io/explorer",standard:"none"}],testnet:!0,slug:"airdao-testnet"},_5r={name:"MAP Mainnet",chain:"MAP",icon:{url:"ipfs://QmcLdQ8gM4iHv3CCKA9HuxmzTxY4WhjWtepUVCc3dpzKxD",width:512,height:512,format:"png"},rpc:["https://map.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.maplabs.io"],faucets:[],nativeCurrency:{name:"MAP",symbol:"MAP",decimals:18},infoURL:"https://maplabs.io",shortName:"map",chainId:22776,networkId:22776,slip44:60,explorers:[{name:"mapscan",url:"https://mapscan.io",standard:"EIP3091"}],testnet:!1,slug:"map"},x5r={name:"Opside Testnet",chain:"Opside",rpc:["https://opside-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testrpc.opside.network"],faucets:["https://faucet.opside.network"],nativeCurrency:{name:"IDE",symbol:"IDE",decimals:18},infoURL:"https://opside.network",shortName:"opside",chainId:23118,networkId:23118,icon:{url:"ipfs://QmeCyZeibUoHNoYGzy1GkzH2uhxyRHKvH51PdaUMer4VTo",width:591,height:591,format:"png"},explorers:[{name:"opsideInfo",url:"https://opside.info",standard:"EIP3091"}],testnet:!0,slug:"opside-testnet"},T5r={name:"Oasis Sapphire",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sapphire.oasis.io","wss://sapphire.oasis.io/ws"],faucets:[],nativeCurrency:{name:"Sapphire Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire",chainId:23294,networkId:23294,explorers:[{name:"Oasis Sapphire Explorer",url:"https://explorer.sapphire.oasis.io",standard:"EIP3091"}],testnet:!1,slug:"oasis-sapphire"},E5r={name:"Oasis Sapphire Testnet",chain:"Sapphire",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-sapphire-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.sapphire.oasis.dev","wss://testnet.sapphire.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Sapphire Test Rose",symbol:"TEST",decimals:18},infoURL:"https://docs.oasis.io/dapp/sapphire",shortName:"sapphire-testnet",chainId:23295,networkId:23295,explorers:[{name:"Oasis Sapphire Testnet Explorer",url:"https://testnet.explorer.sapphire.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-sapphire-testnet"},C5r={name:"Webchain",chain:"WEB",rpc:[],faucets:[],nativeCurrency:{name:"Webchain Ether",symbol:"WEB",decimals:18},infoURL:"https://webchain.network",shortName:"web",chainId:24484,networkId:37129,slip44:227,testnet:!1,slug:"webchain"},I5r={name:"MintMe.com Coin",chain:"MINTME",rpc:["https://mintme-com-coin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node1.mintme.com"],faucets:[],nativeCurrency:{name:"MintMe.com Coin",symbol:"MINTME",decimals:18},infoURL:"https://www.mintme.com",shortName:"mintme",chainId:24734,networkId:37480,testnet:!1,slug:"mintme-com-coin"},k5r={name:"Hammer Chain Mainnet",chain:"HammerChain",rpc:["https://hammer-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://www.hammerchain.io/rpc"],faucets:[],nativeCurrency:{name:"GOLDT",symbol:"GOLDT",decimals:18},infoURL:"https://www.hammerchain.io",shortName:"GOLDT",chainId:25888,networkId:25888,explorers:[{name:"Hammer Chain Explorer",url:"https://www.hammerchain.io",standard:"none"}],testnet:!1,slug:"hammer-chain"},A5r={name:"Bitkub Chain Testnet",chain:"BKC",icon:{url:"ipfs://QmYFYwyquipwc9gURQGcEd4iAq7pq15chQrJ3zJJe9HuFT",width:1e3,height:1e3,format:"png"},rpc:["https://bitkub-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.bitkubchain.io","wss://wss-testnet.bitkubchain.io"],faucets:["https://faucet.bitkubchain.com"],nativeCurrency:{name:"Bitkub Coin",symbol:"tKUB",decimals:18},infoURL:"https://www.bitkubchain.com/",shortName:"bkct",chainId:25925,networkId:25925,explorers:[{name:"bkcscan-testnet",url:"https://testnet.bkcscan.com",standard:"none",icon:"bkc"}],testnet:!0,slug:"bitkub-chain-testnet"},S5r={name:"Hertz Network Mainnet",chain:"HTZ",rpc:["https://hertz-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.hertzscan.com"],faucets:[],nativeCurrency:{name:"Hertz",symbol:"HTZ",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://www.hertz-network.com",shortName:"HTZ",chainId:26600,networkId:26600,icon:{url:"ipfs://Qmf3GYbPXmTDpSP6t7Ug2j5HjEwrY5oGhBDP7d4TQHvGnG",width:162,height:129,format:"png"},explorers:[{name:"Hertz Scan",url:"https://hertzscan.com",icon:"hertz-network",standard:"EIP3091"}],testnet:!1,slug:"hertz-network"},P5r={name:"OasisChain Mainnet",chain:"OasisChain",rpc:["https://oasischain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.oasischain.io","https://rpc2.oasischain.io","https://rpc3.oasischain.io"],faucets:["http://faucet.oasischain.io"],nativeCurrency:{name:"OAC",symbol:"OAC",decimals:18},infoURL:"https://scan.oasischain.io",shortName:"OAC",chainId:26863,networkId:26863,explorers:[{name:"OasisChain Explorer",url:"https://scan.oasischain.io",standard:"EIP3091"}],testnet:!1,slug:"oasischain"},R5r={name:"Optimism Bedrock (Goerli Alpha Testnet)",chain:"ETH",rpc:["https://optimism-bedrock-goerli-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-1-replica-0.bedrock-goerli.optimism.io","https://alpha-1-replica-1.bedrock-goerli.optimism.io","https://alpha-1-replica-2.bedrock-goerli.optimism.io"],faucets:[],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://community.optimism.io/docs/developers/bedrock",shortName:"obgor",chainId:28528,networkId:28528,explorers:[{name:"blockscout",url:"https://blockscout.com/optimism/bedrock-alpha",standard:"EIP3091"}],testnet:!0,slug:"optimism-bedrock-goerli-alpha-testnet"},M5r={name:"Piece testnet",chain:"PieceNetwork",icon:{url:"ipfs://QmWAU39z1kcYshAqkENRH8qUjfR5CJehCxA4GiC33p3HpH",width:800,height:800,format:"png"},rpc:["https://piece-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc0.piecenetwork.com"],faucets:["https://piecenetwork.com/faucet"],nativeCurrency:{name:"ECE",symbol:"ECE",decimals:18},infoURL:"https://piecenetwork.com",shortName:"Piece",chainId:30067,networkId:30067,explorers:[{name:"Piece Scan",url:"https://testnet-scan.piecenetwork.com",standard:"EIP3091"}],testnet:!0,slug:"piece-testnet"},N5r={name:"Ethersocial Network",chain:"ESN",rpc:["https://ethersocial-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.esn.gonspool.com"],faucets:[],nativeCurrency:{name:"Ethersocial Network Ether",symbol:"ESN",decimals:18},infoURL:"https://ethersocial.org",shortName:"esn",chainId:31102,networkId:1,slip44:31102,testnet:!1,slug:"ethersocial-network"},B5r={name:"CloudTx Mainnet",chain:"CLD",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.cloudtx.finance"],faucets:[],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance",shortName:"CLDTX",chainId:31223,networkId:31223,explorers:[{name:"cloudtxscan",url:"https://scan.cloudtx.finance",standard:"EIP3091"}],testnet:!1,slug:"cloudtx"},D5r={name:"CloudTx Testnet",chain:"CloudTx",icon:{url:"ipfs://QmSEsi71AdA5HYH6VNC5QUQezFg1C7BiVQJdx1VVfGz3g3",width:713,height:830,format:"png"},rpc:["https://cloudtx-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.cloudtx.finance"],faucets:["https://faucet.cloudtx.finance"],nativeCurrency:{name:"CloudTx",symbol:"CLD",decimals:18},infoURL:"https://cloudtx.finance/",shortName:"CLD",chainId:31224,networkId:31224,explorers:[{name:"cloudtxexplorer",url:"https://explorer.cloudtx.finance",standard:"EIP3091"}],testnet:!0,slug:"cloudtx-testnet"},O5r={name:"GoChain Testnet",chain:"GO",rpc:["https://gochain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.gochain.io"],faucets:[],nativeCurrency:{name:"GoChain Coin",symbol:"GO",decimals:18},infoURL:"https://gochain.io",shortName:"got",chainId:31337,networkId:31337,slip44:6060,explorers:[{name:"GoChain Testnet Explorer",url:"https://testnet-explorer.gochain.io",standard:"EIP3091"}],testnet:!0,slug:"gochain-testnet"},L5r={name:"Filecoin - Wallaby testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-wallaby-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallaby.node.glif.io/rpc/v1"],faucets:["https://wallaby.yoga/#faucet"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-wallaby",chainId:31415,networkId:31415,slip44:1,explorers:[],testnet:!0,slug:"filecoin-wallaby-testnet"},q5r={name:"Bitgert Mainnet",chain:"Brise",rpc:["https://bitgert.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.icecreamswap.com","https://mainnet-rpc.brisescan.com","https://chainrpc.com","https://serverrpc.com"],faucets:[],nativeCurrency:{name:"Bitrise Token",symbol:"Brise",decimals:18},infoURL:"https://bitgert.com/",shortName:"Brise",chainId:32520,networkId:32520,icon:{url:"ipfs://QmY3vKe1rG9AyHSGH1ouP3ER3EVUZRtRrFbFZEfEpMSd4V",width:512,height:512,format:"png"},explorers:[{name:"Brise Scan",url:"https://brisescan.com",icon:"brise",standard:"EIP3091"}],testnet:!1,slug:"bitgert"},F5r={name:"Fusion Mainnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.fusionnetwork.io","wss://mainnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Fusion",symbol:"FSN",decimals:18},infoURL:"https://fusion.org",shortName:"fsn",chainId:32659,networkId:32659,slip44:288,explorers:[{name:"fsnscan",url:"https://fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!1,slug:"fusion"},W5r={name:"Zilliqa EVM Testnet",chain:"ZIL",rpc:["https://zilliqa-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://dev-api.zilliqa.com"],faucets:["https://dev-wallet.zilliqa.com/faucet?network=testnet"],nativeCurrency:{name:"Zilliqa",symbol:"ZIL",decimals:18},infoURL:"https://www.zilliqa.com/",shortName:"zil-testnet",chainId:33101,networkId:33101,explorers:[{name:"Zilliqa EVM Explorer",url:"https://evmx.zilliqa.com",standard:"none"}],testnet:!0,slug:"zilliqa-evm-testnet"},U5r={name:"Aves Mainnet",chain:"AVS",rpc:["https://aves.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.avescoin.io"],faucets:[],nativeCurrency:{name:"Aves",symbol:"AVS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://avescoin.io",shortName:"avs",chainId:33333,networkId:33333,icon:{url:"ipfs://QmeKQVv2QneHaaggw2NfpZ7DGMdjVhPywTdse5RzCs4oGn",width:232,height:232,format:"png"},explorers:[{name:"avescan",url:"https://avescan.io",icon:"avescan",standard:"EIP3091"}],testnet:!1,slug:"aves"},H5r={name:"J2O Taro",chain:"TARO",rpc:["https://j2o-taro.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.j2o.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"TARO Coin",symbol:"taro",decimals:18},infoURL:"https://j2o.io",shortName:"j2o",chainId:35011,networkId:35011,explorers:[{name:"J2O Taro Explorer",url:"https://exp.j2o.io",icon:"j2otaro",standard:"EIP3091"}],testnet:!1,slug:"j2o-taro"},j5r={name:"Q Mainnet",chain:"Q",rpc:["https://q.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.q.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org",shortName:"q",chainId:35441,networkId:35441,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.q.org",icon:"q",standard:"EIP3091"}],testnet:!1,slug:"q"},z5r={name:"Q Testnet",chain:"Q",rpc:["https://q-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.qtestnet.org"],faucets:[],nativeCurrency:{name:"Q token",symbol:"Q",decimals:18},infoURL:"https://q.org/",shortName:"q-testnet",chainId:35443,networkId:35443,icon:{url:"ipfs://QmQUQKe8VEtSthhgXnJ3EmEz94YhpVCpUDZAiU9KYyNLya",width:585,height:603,format:"png"},explorers:[{name:"Q explorer",url:"https://explorer.qtestnet.org",icon:"q",standard:"EIP3091"}],testnet:!0,slug:"q-testnet"},K5r={name:"Energi Mainnet",chain:"NRG",rpc:["https://energi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"nrg",chainId:39797,networkId:39797,slip44:39797,testnet:!1,slug:"energi"},G5r={name:"OHO Mainnet",chain:"OHO",rpc:["https://oho.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.oho.ai"],faucets:[],nativeCurrency:{name:"OHO",symbol:"OHO",decimals:18},infoURL:"https://oho.ai",shortName:"oho",chainId:39815,networkId:39815,icon:{url:"ipfs://QmZt75xixnEtFzqHTrJa8kJkV4cTXmUZqeMeHM8BcvomQc",width:512,height:512,format:"png"},explorers:[{name:"ohoscan",url:"https://ohoscan.com",icon:"ohoscan",standard:"EIP3091"}],testnet:!1,slug:"oho"},V5r={name:"Opulent-X BETA",chainId:41500,shortName:"ox-beta",chain:"Opulent-X",networkId:41500,nativeCurrency:{name:"Oxyn Gas",symbol:"OXYN",decimals:18},rpc:["https://opulent-x-beta.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://connect.opulent-x.com"],faucets:[],infoURL:"https://beta.opulent-x.com",explorers:[{name:"Opulent-X BETA Explorer",url:"https://explorer.opulent-x.com",standard:"none"}],testnet:!1,slug:"opulent-x-beta"},$5r={name:"pegglecoin",chain:"42069",rpc:[],faucets:[],nativeCurrency:{name:"pegglecoin",symbol:"peggle",decimals:18},infoURL:"https://teampeggle.com",shortName:"PC",chainId:42069,networkId:42069,testnet:!1,slug:"pegglecoin"},Y5r={name:"Arbitrum One",chainId:42161,shortName:"arb1",chain:"ETH",networkId:42161,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arbitrum-mainnet.infura.io/v3/${INFURA_API_KEY}","https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://arb1.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Explorer",url:"https://explorer.arbitrum.io",standard:"EIP3091"},{name:"Arbiscan",url:"https://arbiscan.io",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!1,slug:"arbitrum"},J5r={name:"Arbitrum Nova",chainId:42170,shortName:"arb-nova",chain:"ETH",networkId:42170,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-nova.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nova.arbitrum.io/rpc"],faucets:[],explorers:[{name:"Arbitrum Nova Chain Explorer",url:"https://nova-explorer.arbitrum.io",icon:"blockscout",standard:"EIP3091"}],infoURL:"https://arbitrum.io",parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!1,slug:"arbitrum-nova"},Q5r={name:"Celo Mainnet",chainId:42220,shortName:"celo",chain:"CELO",networkId:42220,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://forno.celo.org","wss://forno.celo.org/ws"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"},{name:"blockscout",url:"https://explorer.celo.org",standard:"none"}],testnet:!1,slug:"celo"},Z5r={name:"Oasis Emerald Testnet",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.emerald.oasis.dev/","wss://testnet.emerald.oasis.dev/ws"],faucets:["https://faucet.testnet.oasis.dev/"],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald-testnet",chainId:42261,networkId:42261,explorers:[{name:"Oasis Emerald Testnet Explorer",url:"https://testnet.explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!0,slug:"oasis-emerald-testnet"},X5r={name:"Oasis Emerald",chain:"Emerald",icon:{url:"ipfs://bafkreiespupb52akiwrexxg7g72mh7m7h7lum5hmqijmpdh3kmuunzclha",width:2e3,height:2e3,format:"png"},rpc:["https://oasis-emerald.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://emerald.oasis.dev","wss://emerald.oasis.dev/ws"],faucets:[],nativeCurrency:{name:"Emerald Rose",symbol:"ROSE",decimals:18},infoURL:"https://docs.oasis.io/dapp/emerald",shortName:"emerald",chainId:42262,networkId:42262,explorers:[{name:"Oasis Emerald Explorer",url:"https://explorer.emerald.oasis.dev",standard:"EIP3091"}],testnet:!1,slug:"oasis-emerald"},e3r={name:"Athereum",chain:"ATH",rpc:["https://athereum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ava.network:21015/ext/evm/rpc"],faucets:["http://athfaucet.ava.network//?address=${ADDRESS}"],nativeCurrency:{name:"Athereum Ether",symbol:"ATH",decimals:18},infoURL:"https://athereum.ava.network",shortName:"avaeth",chainId:43110,networkId:43110,testnet:!1,slug:"athereum"},t3r={name:"Avalanche Fuji Testnet",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche-fuji.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-fuji.infura.io/v3/${INFURA_API_KEY}","https://api.avax-test.network/ext/bc/C/rpc"],faucets:["https://faucet.avax-test.network/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://cchain.explorer.avax-test.network",shortName:"Fuji",chainId:43113,networkId:1,explorers:[{name:"snowtrace",url:"https://testnet.snowtrace.io",standard:"EIP3091"}],testnet:!0,slug:"avalanche-fuji"},r3r={name:"Avalanche C-Chain",chain:"AVAX",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/avalanche/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://avalanche.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avalanche-mainnet.infura.io/v3/${INFURA_API_KEY}","https://api.avax.network/ext/bc/C/rpc","https://avalanche-c-chain.publicnode.com"],features:[{name:"EIP1559"}],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"Avalanche",symbol:"AVAX",decimals:18},infoURL:"https://www.avax.network/",shortName:"avax",chainId:43114,networkId:43114,slip44:9005,explorers:[{name:"snowtrace",url:"https://snowtrace.io",standard:"EIP3091"}],testnet:!1,slug:"avalanche"},n3r={name:"Boba Avax",chain:"Boba Avax",rpc:["https://boba-avax.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://avax.boba.network","wss://wss.avax.boba.network","https://replica.avax.boba.network","wss://replica-wss.avax.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://docs.boba.network/for-developers/network-avalanche",shortName:"bobaavax",chainId:43288,networkId:43288,explorers:[{name:"Boba Avax Explorer",url:"https://blockexplorer.avax.boba.network",standard:"none"}],testnet:!1,slug:"boba-avax"},a3r={name:"Frenchain",chain:"fren",rpc:["https://frenchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-02.frenscan.io"],faucets:[],nativeCurrency:{name:"FREN",symbol:"FREN",decimals:18},infoURL:"https://frenchain.app",shortName:"FREN",chainId:44444,networkId:44444,icon:{url:"ipfs://QmQk41bYX6WpYyUAdRgomZekxP5mbvZXhfxLEEqtatyJv4",width:128,height:128,format:"png"},explorers:[{name:"blockscout",url:"https://frenscan.io",icon:"fren",standard:"EIP3091"}],testnet:!1,slug:"frenchain"},i3r={name:"Celo Alfajores Testnet",chainId:44787,shortName:"ALFA",chain:"CELO",networkId:44787,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-alfajores-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alfajores-forno.celo-testnet.org","wss://alfajores-forno.celo-testnet.org/ws"],faucets:["https://celo.org/developers/faucet","https://cauldron.pretoriaresearchlab.io/alfajores-faucet"],infoURL:"https://docs.celo.org/",explorers:[{name:"Celoscan",url:"https://celoscan.io",standard:"EIP3091"}],testnet:!0,slug:"celo-alfajores-testnet"},s3r={name:"Autobahn Network",chain:"TXL",rpc:["https://autobahn-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.autobahn.network"],faucets:[],nativeCurrency:{name:"TXL",symbol:"TXL",decimals:18},infoURL:"https://autobahn.network",shortName:"AutobahnNetwork",chainId:45e3,networkId:45e3,icon:{url:"ipfs://QmZP19pbqTco4vaP9siduLWP8pdYArFK3onfR55tvjr12s",width:489,height:489,format:"png"},explorers:[{name:"autobahn explorer",url:"https://explorer.autobahn.network",icon:"autobahn",standard:"EIP3091"}],testnet:!1,slug:"autobahn-network"},o3r={name:"Fusion Testnet",chain:"FSN",icon:{url:"ipfs://QmX3tsEoj7SdaBLLV8VyyCUAmymdEGiSGeuTbxMrEMVvth",width:31,height:31,format:"svg"},rpc:["https://fusion-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.fusionnetwork.io","wss://testnet.fusionnetwork.io"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Testnet Fusion",symbol:"T-FSN",decimals:18},infoURL:"https://fusion.org",shortName:"tfsn",chainId:46688,networkId:46688,slip44:288,explorers:[{name:"fsnscan",url:"https://testnet.fsnscan.com",icon:"fsnscan",standard:"EIP3091"}],testnet:!0,slug:"fusion-testnet"},c3r={name:"REI Network",chain:"REI",rpc:["https://rei-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.rei.network","wss://rpc.rei.network"],faucets:[],nativeCurrency:{name:"REI",symbol:"REI",decimals:18},infoURL:"https://rei.network/",shortName:"REI",chainId:47805,networkId:47805,explorers:[{name:"rei-scan",url:"https://scan.rei.network",standard:"none"}],testnet:!1,slug:"rei-network"},u3r={name:"Floripa",title:"Wireshape Testnet Floripa",chain:"Wireshape",rpc:["https://floripa.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-floripa.wireshape.org"],faucets:[],nativeCurrency:{name:"WIRE",symbol:"WIRE",decimals:18},infoURL:"https://wireshape.org",shortName:"floripa",chainId:49049,networkId:49049,explorers:[{name:"Wire Explorer",url:"https://floripa-explorer.wireshape.org",standard:"EIP3091"}],testnet:!0,slug:"floripa"},l3r={name:"Bifrost Testnet",title:"The Bifrost Testnet network",chain:"BFC",rpc:["https://bifrost-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://public-01.testnet.thebifrost.io/rpc","https://public-02.testnet.thebifrost.io/rpc"],faucets:[],nativeCurrency:{name:"Bifrost",symbol:"BFC",decimals:18},infoURL:"https://thebifrost.io",shortName:"tbfc",chainId:49088,networkId:49088,icon:{url:"ipfs://QmcHvn2Wq91ULyEH5s3uHjosX285hUgyJHwggFJUd3L5uh",width:128,height:128,format:"png"},explorers:[{name:"explorer-thebifrost",url:"https://explorer.testnet.thebifrost.io",standard:"EIP3091"}],testnet:!0,slug:"bifrost-testnet"},d3r={name:"Energi Testnet",chain:"NRG",rpc:["https://energi-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://nodeapi.test.energi.network"],faucets:[],nativeCurrency:{name:"Energi",symbol:"NRG",decimals:18},infoURL:"https://www.energi.world/",shortName:"tnrg",chainId:49797,networkId:49797,slip44:49797,testnet:!0,slug:"energi-testnet"},p3r={name:"Liveplex OracleEVM",chain:"Liveplex OracleEVM Network",rpc:["https://liveplex-oracleevm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.oracle.liveplex.io"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"",shortName:"LOE",chainId:50001,networkId:50001,explorers:[],testnet:!1,slug:"liveplex-oracleevm"},h3r={name:"GTON Testnet",chain:"GTON Testnet",rpc:["https://gton-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gton.network/"],faucets:[],nativeCurrency:{name:"GCD",symbol:"GCD",decimals:18},infoURL:"https://gton.capital",shortName:"tgton",chainId:50021,networkId:50021,explorers:[{name:"GTON Testnet Network Explorer",url:"https://explorer.testnet.gton.network",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-3"},testnet:!0,slug:"gton-testnet"},f3r={name:"Sardis Mainnet",chain:"SRDX",icon:{url:"ipfs://QmdR9QJjQEh1mBnf2WbJfehverxiP5RDPWMtEECbDP2rc3",width:512,height:512,format:"png"},rpc:["https://sardis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.sardisnetwork.com"],faucets:["https://faucet.sardisnetwork.com"],nativeCurrency:{name:"Sardis",symbol:"SRDX",decimals:18},infoURL:"https://mysardis.com",shortName:"SRDXm",chainId:51712,networkId:51712,explorers:[{name:"Sardis",url:"https://contract-mainnet.sardisnetwork.com",standard:"EIP3091"}],testnet:!1,slug:"sardis"},m3r={name:"DFK Chain",chain:"DFK",icon:{url:"ipfs://QmQB48m15TzhUFrmu56QCRQjkrkgUaKfgCmKE8o3RzmuPJ",width:500,height:500,format:"png"},rpc:["https://dfk-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/defi-kingdoms/dfk-chain/rpc"],faucets:[],nativeCurrency:{name:"Jewel",symbol:"JEWEL",decimals:18},infoURL:"https://defikingdoms.com",shortName:"DFK",chainId:53935,networkId:53935,explorers:[{name:"ethernal",url:"https://explorer.dfkchain.com",icon:"ethereum",standard:"none"}],testnet:!1,slug:"dfk-chain"},y3r={name:"Haqq Chain Testnet",chain:"TestEdge2",rpc:["https://haqq-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.eth.testedge2.haqq.network"],faucets:["https://testedge2.haqq.network"],nativeCurrency:{name:"Islamic Coin",symbol:"ISLMT",decimals:18},infoURL:"https://islamiccoin.net",shortName:"ISLMT",chainId:54211,networkId:54211,explorers:[{name:"TestEdge HAQQ Explorer",url:"https://explorer.testedge2.haqq.network",standard:"EIP3091"}],testnet:!0,slug:"haqq-chain-testnet"},g3r={name:"REI Chain Mainnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55555"],nativeCurrency:{name:"Rei",symbol:"REI",decimals:18},infoURL:"https://reichain.io",shortName:"reichain",chainId:55555,networkId:55555,explorers:[{name:"reiscan",url:"https://reiscan.com",standard:"EIP3091"}],testnet:!1,slug:"rei-chain"},b3r={name:"REI Chain Testnet",chain:"REI",icon:{url:"ipfs://QmNy5d5knHVjJJS9g4kLsh9i73RTjckpKL6KZvRk6ptbhf",width:591,height:591,format:"svg"},rpc:["https://rei-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rei-testnet-rpc.moonrhythm.io"],faucets:["http://kururu.finance/faucet?chainId=55556"],nativeCurrency:{name:"tRei",symbol:"tREI",decimals:18},infoURL:"https://reichain.io",shortName:"trei",chainId:55556,networkId:55556,explorers:[{name:"reiscan",url:"https://testnet.reiscan.com",standard:"EIP3091"}],testnet:!0,slug:"rei-chain-testnet"},v3r={name:"Boba BNB Mainnet",chain:"Boba BNB Mainnet",rpc:["https://boba-bnb.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://bnb.boba.network","wss://wss.bnb.boba.network","https://replica.bnb.boba.network","wss://replica-wss.bnb.boba.network"],faucets:[],nativeCurrency:{name:"Boba Token",symbol:"BOBA",decimals:18},infoURL:"https://boba.network",shortName:"BobaBnb",chainId:56288,networkId:56288,explorers:[{name:"Boba BNB block explorer",url:"https://blockexplorer.bnb.boba.network",standard:"none"}],testnet:!1,slug:"boba-bnb"},w3r={name:"Syscoin Rollux Testnet",chain:"SYS",rpc:["https://syscoin-rollux-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-tanenbaum.rollux.com","wss://rpc-tanenbaum.rollux.com/wss"],faucets:[],nativeCurrency:{name:"Rollux Testnet Syscoin",symbol:"tSYS",decimals:18},infoURL:"https://syscoin.org",shortName:"tsys-rollux",chainId:57e3,networkId:57e3,explorers:[{name:"Syscoin Rollux Testnet Explorer",url:"https://rollux.tanenbaum.io",standard:"EIP3091"}],testnet:!0,slug:"syscoin-rollux-testnet"},_3r={name:"Thinkium Testnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test0",chainId:6e4,networkId:6e4,explorers:[{name:"thinkiumscan",url:"https://test0.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-0"},x3r={name:"Thinkium Testnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test1.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test1",chainId:60001,networkId:60001,explorers:[{name:"thinkiumscan",url:"https://test1.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-1"},T3r={name:"Thinkium Testnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test2.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test2",chainId:60002,networkId:60002,explorers:[{name:"thinkiumscan",url:"https://test2.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-2"},E3r={name:"Thinkium Testnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-testnet-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://test103.thinkiumrpc.net/"],faucets:["https://www.thinkiumdev.net/faucet"],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM-test103",chainId:60103,networkId:60103,explorers:[{name:"thinkiumscan",url:"https://test103.thinkiumscan.net",standard:"EIP3091"}],testnet:!0,slug:"thinkium-testnet-chain-103"},C3r={name:"Etica Mainnet",chain:"Etica Protocol (ETI/EGAZ)",icon:{url:"ipfs://QmYSyhUqm6ArWyALBe3G64823ZpEUmFdkzKZ93hUUhNKgU",width:360,height:361,format:"png"},rpc:["https://etica.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://eticamainnet.eticascan.org","https://eticamainnet.eticaprotocol.org"],faucets:["http://faucet.etica-stats.org/"],nativeCurrency:{name:"EGAZ",symbol:"EGAZ",decimals:18},infoURL:"https://eticaprotocol.org",shortName:"Etica",chainId:61803,networkId:61803,explorers:[{name:"eticascan",url:"https://eticascan.org",standard:"EIP3091"},{name:"eticastats",url:"http://explorer.etica-stats.org",standard:"EIP3091"}],testnet:!1,slug:"etica"},I3r={name:"DoKEN Super Chain Mainnet",chain:"DoKEN Super Chain",rpc:["https://doken-super-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sgrpc.doken.dev","https://nyrpc.doken.dev","https://ukrpc.doken.dev"],faucets:[],nativeCurrency:{name:"DoKEN",symbol:"DKN",decimals:18},infoURL:"https://doken.dev/",shortName:"DoKEN",chainId:61916,networkId:61916,icon:{url:"ipfs://bafkreifms4eio6v56oyeemnnu5luq3sc44hptan225lr45itgzu3u372iu",width:200,height:200,format:"png"},explorers:[{name:"DSC Scan",url:"https://explore.doken.dev",icon:"doken",standard:"EIP3091"}],testnet:!1,slug:"doken-super-chain"},k3r={name:"Celo Baklava Testnet",chainId:62320,shortName:"BKLV",chain:"CELO",networkId:62320,nativeCurrency:{name:"CELO",symbol:"CELO",decimals:18},rpc:["https://celo-baklava-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baklava-forno.celo-testnet.org"],faucets:["https://docs.google.com/forms/d/e/1FAIpQLSdfr1BwUTYepVmmvfVUDRCwALejZ-TUva2YujNpvrEmPAX2pg/viewform","https://cauldron.pretoriaresearchlab.io/baklava-faucet"],infoURL:"https://docs.celo.org/",testnet:!0,slug:"celo-baklava-testnet"},A3r={name:"MultiVAC Mainnet",chain:"MultiVAC",icon:{url:"ipfs://QmWb1gthhbzkiLdgcP8ccZprGbJVjFcW8Rn4uJjrw4jd3B",width:200,height:200,format:"png"},rpc:["https://multivac.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.mtv.ac","https://rpc-eu.mtv.ac"],faucets:[],nativeCurrency:{name:"MultiVAC",symbol:"MTV",decimals:18},infoURL:"https://mtv.ac",shortName:"mtv",chainId:62621,networkId:62621,explorers:[{name:"MultiVAC Explorer",url:"https://e.mtv.ac",standard:"none"}],testnet:!1,slug:"multivac"},S3r={name:"eCredits Mainnet",chain:"ECS",rpc:["https://ecredits.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ecredits.com"],faucets:[],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs",chainId:63e3,networkId:63e3,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits MainNet Explorer",url:"https://explorer.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!1,slug:"ecredits"},P3r={name:"eCredits Testnet",chain:"ECS",rpc:["https://ecredits-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tst.ecredits.com"],faucets:["https://faucet.tst.ecredits.com"],nativeCurrency:{name:"eCredits",symbol:"ECS",decimals:18},infoURL:"https://ecredits.com",shortName:"ecs-testnet",chainId:63001,networkId:63001,icon:{url:"ipfs://QmU9H9JE1KtLh2Fxrd8EWTMjKGJBpgRWKUeEx7u6ic4kBY",width:32,height:32,format:"png"},explorers:[{name:"eCredits TestNet Explorer",url:"https://explorer.tst.ecredits.com",icon:"ecredits",standard:"EIP3091"}],testnet:!0,slug:"ecredits-testnet"},R3r={name:"Scolcoin Mainnet",chain:"SCOLWEI",rpc:["https://scolcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.scolcoin.com"],faucets:[],nativeCurrency:{name:"Scolcoin",symbol:"SCOL",decimals:18},infoURL:"https://scolcoin.com",shortName:"SRC",chainId:65450,networkId:65450,icon:{url:"ipfs://QmVES1eqDXhP8SdeCpM85wvjmhrQDXGRquQebDrSdvJqpt",width:792,height:822,format:"png"},explorers:[{name:"Scolscan Explorer",url:"https://explorer.scolcoin.com",standard:"EIP3091"}],testnet:!1,slug:"scolcoin"},M3r={name:"Condrieu",title:"Ethereum Verkle Testnet Condrieu",chain:"ETH",rpc:["https://condrieu.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.condrieu.ethdevops.io:8545"],faucets:["https://faucet.condrieu.ethdevops.io"],nativeCurrency:{name:"Condrieu Testnet Ether",symbol:"CTE",decimals:18},infoURL:"https://condrieu.ethdevops.io",shortName:"cndr",chainId:69420,networkId:69420,explorers:[{name:"Condrieu explorer",url:"https://explorer.condrieu.ethdevops.io",standard:"none"}],testnet:!0,slug:"condrieu"},N3r={name:"Thinkium Mainnet Chain 0",chain:"Thinkium",rpc:["https://thinkium-chain-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM0",chainId:7e4,networkId:7e4,explorers:[{name:"thinkiumscan",url:"https://chain0.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-0"},B3r={name:"Thinkium Mainnet Chain 1",chain:"Thinkium",rpc:["https://thinkium-chain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy1.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM1",chainId:70001,networkId:70001,explorers:[{name:"thinkiumscan",url:"https://chain1.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-1"},D3r={name:"Thinkium Mainnet Chain 2",chain:"Thinkium",rpc:["https://thinkium-chain-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy2.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM2",chainId:70002,networkId:70002,explorers:[{name:"thinkiumscan",url:"https://chain2.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-2"},O3r={name:"Thinkium Mainnet Chain 103",chain:"Thinkium",rpc:["https://thinkium-chain-103.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://proxy103.thinkiumrpc.net/"],faucets:[],nativeCurrency:{name:"TKM",symbol:"TKM",decimals:18},infoURL:"https://thinkium.net/",shortName:"TKM103",chainId:70103,networkId:70103,explorers:[{name:"thinkiumscan",url:"https://chain103.thinkiumscan.net",standard:"EIP3091"}],testnet:!1,slug:"thinkium-chain-103"},L3r={name:"Polyjuice Testnet",chain:"CKB",icon:{url:"ipfs://QmZ5gFWUxLFqqT3DkefYfRsVksMwMTc5VvBjkbHpeFMsNe",width:1001,height:1629,format:"png"},rpc:["https://polyjuice-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-web3-rpc.ckbapp.dev","ws://godwoken-testnet-web3-rpc.ckbapp.dev/ws"],faucets:["https://faucet.nervos.org/"],nativeCurrency:{name:"CKB",symbol:"CKB",decimals:8},infoURL:"https://github.com/nervosnetwork/godwoken",shortName:"ckb",chainId:71393,networkId:1,testnet:!0,slug:"polyjuice-testnet"},q3r={name:"Godwoken Testnet v1",chain:"GWT",rpc:["https://godwoken-testnet-v1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://godwoken-testnet-v1.ckbapp.dev","https://v1.testnet.godwoken.io/rpc"],faucets:["https://testnet.bridge.godwoken.io"],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-testnet-v1",chainId:71401,networkId:71401,explorers:[{name:"GWScout Explorer",url:"https://gw-testnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.testnet.gwscan.com",standard:"none"}],testnet:!0,slug:"godwoken-testnet-v1"},F3r={name:"Godwoken Mainnet",chain:"GWT",rpc:["https://godwoken.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://v1.mainnet.godwoken.io/rpc"],faucets:[],nativeCurrency:{name:"pCKB",symbol:"pCKB",decimals:18},infoURL:"https://www.nervos.org",shortName:"gw-mainnet-v1",chainId:71402,networkId:71402,explorers:[{name:"GWScout Explorer",url:"https://gw-mainnet-explorer.nervosdao.community",standard:"none"},{name:"GWScan Block Explorer",url:"https://v1.gwscan.com",standard:"none"}],testnet:!1,slug:"godwoken"},W3r={name:"Energy Web Volta Testnet",chain:"Volta",rpc:["https://energy-web-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://volta-rpc.energyweb.org","wss://volta-rpc.energyweb.org/ws"],faucets:["https://voltafaucet.energyweb.org"],nativeCurrency:{name:"Volta Token",symbol:"VT",decimals:18},infoURL:"https://energyweb.org",shortName:"vt",chainId:73799,networkId:73799,testnet:!0,slug:"energy-web-volta-testnet"},U3r={name:"Mixin Virtual Machine",chain:"MVM",rpc:["https://mixin-virtual-machine.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://geth.mvm.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://mvm.dev",shortName:"mvm",chainId:73927,networkId:73927,icon:{url:"ipfs://QmeuDgSprukzfV7fi9XYHYcfmT4aZZZU7idgShtRS8Vf6V",width:471,height:512,format:"png"},explorers:[{name:"mvmscan",url:"https://scan.mvm.dev",icon:"mvm",standard:"EIP3091"}],testnet:!1,slug:"mixin-virtual-machine"},H3r={name:"ResinCoin Mainnet",chain:"RESIN",icon:{url:"ipfs://QmTBszPzBeWPhjozf4TxpL2ws1NkG9yJvisx9h6MFii1zb",width:460,height:460,format:"png"},rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"RESIN",decimals:18},infoURL:"https://resincoin.dev",shortName:"resin",chainId:75e3,networkId:75e3,explorers:[{name:"ResinScan",url:"https://explorer.resincoin.dev",standard:"none"}],testnet:!1,slug:"resincoin"},j3r={name:"Vention Smart Chain Mainnet",chain:"VSC",icon:{url:"ipfs://QmcNepHmbmHW1BZYM3MFqJW4awwhmDqhUPRXXmRnXwg1U4",width:250,height:250,format:"png"},rpc:["https://vention-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.vention.network"],faucets:["https://faucet.vention.network"],nativeCurrency:{name:"VNT",symbol:"VNT",decimals:18},infoURL:"https://ventionscan.io",shortName:"vscm",chainId:77612,networkId:77612,explorers:[{name:"ventionscan",url:"https://ventionscan.io",standard:"EIP3091"}],testnet:!1,slug:"vention-smart-chain"},z3r={name:"Firenze test network",chain:"ETH",rpc:["https://firenze-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://ethnode.primusmoney.com/firenze"],faucets:[],nativeCurrency:{name:"Firenze Ether",symbol:"FIN",decimals:18},infoURL:"https://primusmoney.com",shortName:"firenze",chainId:78110,networkId:78110,testnet:!0,slug:"firenze-test-network"},K3r={name:"Gold Smart Chain Testnet",chain:"STAND",icon:{url:"ipfs://QmPNuymyaKLJhCaXnyrsL8358FeTxabZFsaxMmWNU4Tzt3",width:396,height:418,format:"png"},rpc:["https://gold-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.goldsmartchain.com"],faucets:["https://faucet.goldsmartchain.com"],nativeCurrency:{name:"Standard in Gold",symbol:"STAND",decimals:18},infoURL:"https://goldsmartchain.com",shortName:"STANDt",chainId:79879,networkId:79879,explorers:[{name:"Gold Smart Chain",url:"https://testnet.goldsmartchain.com",standard:"EIP3091"}],testnet:!0,slug:"gold-smart-chain-testnet"},G3r={name:"Mumbai",title:"Polygon Testnet Mumbai",chain:"Polygon",icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/polygon/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},rpc:["https://mumbai.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://polygon-mumbai.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://polygon-mumbai.infura.io/v3/${INFURA_API_KEY}","https://matic-mumbai.chainstacklabs.com","https://rpc-mumbai.maticvigil.com","https://matic-testnet-archive-rpc.bwarelabs.com"],faucets:["https://faucet.polygon.technology/"],nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},infoURL:"https://polygon.technology/",shortName:"maticmum",chainId:80001,networkId:80001,explorers:[{name:"polygonscan",url:"https://mumbai.polygonscan.com",standard:"EIP3091"}],testnet:!0,slug:"mumbai"},V3r={name:"Base Goerli Testnet",chain:"ETH",rpc:["https://base-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://goerli.base.org"],faucets:["https://www.coinbase.com/faucets/base-ethereum-goerli-faucet"],nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},infoURL:"https://base.org",shortName:"basegor",chainId:84531,networkId:84531,explorers:[{name:"basescout",url:"https://base-goerli.blockscout.com",standard:"none"},{name:"basescan",url:"https://goerli.basescan.org",standard:"none"}],testnet:!0,icon:{url:"ipfs://QmW5Vn15HeRkScMfPcW12ZdZcC2yUASpu6eCsECRdEmjjj/base-512.png",height:512,width:512,format:"png"},slug:"base-goerli"},$3r={name:"Chiliz Scoville Testnet",chain:"CHZ",rpc:["https://chiliz-scoville-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://scoville-rpc.chiliz.com"],faucets:["https://scoville-faucet.chiliz.com"],nativeCurrency:{name:"Chiliz",symbol:"CHZ",decimals:18},icon:{url:"ipfs://QmYV5xUVZhHRzLy7ie9D8qZeygJHvNZZAxwnB9GXYy6EED",width:400,height:400,format:"png"},infoURL:"https://www.chiliz.com/en/chain",shortName:"chz",chainId:88880,networkId:88880,explorers:[{name:"scoville-explorer",url:"https://scoville-explorer.chiliz.com",standard:"none"}],testnet:!0,slug:"chiliz-scoville-testnet"},Y3r={name:"IVAR Chain Mainnet",chain:"IVAR",icon:{url:"ipfs://QmV8UmSwqGF2fxrqVEBTHbkyZueahqyYtkfH2RBF5pNysM",width:519,height:519,format:"svg"},rpc:["https://ivar-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.ivarex.com"],faucets:["https://faucet.ivarex.com/"],nativeCurrency:{name:"Ivar",symbol:"IVAR",decimals:18},infoURL:"https://ivarex.com",shortName:"ivar",chainId:88888,networkId:88888,explorers:[{name:"ivarscan",url:"https://ivarscan.com",standard:"EIP3091"}],testnet:!1,slug:"ivar-chain"},J3r={name:"Beverly Hills",title:"Ethereum multi-client Verkle Testnet Beverly Hills",chain:"ETH",rpc:["https://beverly-hills.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.beverlyhills.ethdevops.io:8545"],faucets:["https://faucet.beverlyhills.ethdevops.io"],nativeCurrency:{name:"Beverly Hills Testnet Ether",symbol:"BVE",decimals:18},infoURL:"https://beverlyhills.ethdevops.io",shortName:"bvhl",chainId:90210,networkId:90210,status:"incubating",explorers:[{name:"Beverly Hills explorer",url:"https://explorer.beverlyhills.ethdevops.io",standard:"none"}],testnet:!0,slug:"beverly-hills"},Q3r={name:"Lambda Testnet",chain:"Lambda",rpc:["https://lambda-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.lambda.top/"],faucets:["https://faucet.lambda.top"],nativeCurrency:{name:"test-Lamb",symbol:"LAMB",decimals:18},infoURL:"https://lambda.im",shortName:"lambda-testnet",chainId:92001,networkId:92001,icon:{url:"ipfs://QmWsoME6LCghQTpGYf7EnUojaDdYo7kfkWVjE6VvNtkjwy",width:500,height:500,format:"png"},explorers:[{name:"Lambda EVM Explorer",url:"https://explorer.lambda.top",standard:"EIP3091",icon:"lambda"}],testnet:!0,slug:"lambda-testnet"},Z3r={name:"UB Smart Chain(testnet)",chain:"USC",rpc:["https://ub-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site",shortName:"usctest",chainId:99998,networkId:99998,testnet:!0,slug:"ub-smart-chain-testnet"},X3r={name:"UB Smart Chain",chain:"USC",rpc:["https://ub-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.uschain.network"],faucets:[],nativeCurrency:{name:"UBC",symbol:"UBC",decimals:18},infoURL:"https://www.ubchain.site/",shortName:"usc",chainId:99999,networkId:99999,testnet:!1,slug:"ub-smart-chain"},e_r={name:"QuarkChain Mainnet Root",chain:"QuarkChain",rpc:["https://quarkchain-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.mainnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-r",chainId:1e5,networkId:1e5,testnet:!1,slug:"quarkchain-root"},t_r={name:"QuarkChain Mainnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s0-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39000"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s0",chainId:100001,networkId:100001,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-0"},r_r={name:"QuarkChain Mainnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s1-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39001"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s1",chainId:100002,networkId:100002,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-1"},n_r={name:"QuarkChain Mainnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s2-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39002"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s2",chainId:100003,networkId:100003,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-2"},a_r={name:"QuarkChain Mainnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s3-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39003"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s3",chainId:100004,networkId:100004,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-3"},i_r={name:"QuarkChain Mainnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s4-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39004"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s4",chainId:100005,networkId:100005,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-4"},s_r={name:"QuarkChain Mainnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s5-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39005"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s5",chainId:100006,networkId:100006,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-5"},o_r={name:"QuarkChain Mainnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s6-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39006"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s6",chainId:100007,networkId:100007,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-6"},c_r={name:"QuarkChain Mainnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-s7-ethapi.quarkchain.io","http://eth-jrpc.mainnet.quarkchain.io:39007"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-s7",chainId:100008,networkId:100008,parent:{chain:"eip155-100000",type:"shard"},explorers:[{name:"quarkchain-mainnet",url:"https://mainnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-shard-7"},u_r={name:"VeChain",chain:"VeChain",rpc:[],faucets:[],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain",chainId:100009,networkId:100009,explorers:[{name:"VeChain Stats",url:"https://vechainstats.com",standard:"none"},{name:"VeChain Explorer",url:"https://explore.vechain.org",standard:"none"}],testnet:!1,slug:"vechain"},l_r={name:"VeChain Testnet",chain:"VeChain",rpc:[],faucets:["https://faucet.vecha.in"],nativeCurrency:{name:"VeChain",symbol:"VET",decimals:18},infoURL:"https://vechain.org",shortName:"vechain-testnet",chainId:100010,networkId:100010,explorers:[{name:"VeChain Explorer",url:"https://explore-testnet.vechain.org",standard:"none"}],testnet:!0,slug:"vechain-testnet"},d_r={name:"Soverun Testnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNt",chainId:101010,networkId:101010,explorers:[{name:"Soverun",url:"https://testnet.soverun.com",standard:"EIP3091"}],testnet:!0,slug:"soverun-testnet"},p_r={name:"Crystaleum",chain:"crystal",rpc:["https://crystaleum.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://evm.cryptocurrencydevs.org","https://rpc.crystaleum.org"],faucets:[],nativeCurrency:{name:"CRFI",symbol:"\u25C8",decimals:18},infoURL:"https://crystaleum.org",shortName:"CRFI",chainId:103090,networkId:1,icon:{url:"ipfs://Qmbry1Uc6HnXmqFNXW5dFJ7To8EezCCjNr4TqqvAyzXS4h",width:150,height:150,format:"png"},explorers:[{name:"blockscout",url:"https://scan.crystaleum.org",icon:"crystal",standard:"EIP3091"}],testnet:!1,slug:"crystaleum"},h_r={name:"BROChain Mainnet",chain:"BRO",rpc:["https://brochain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.brochain.org","http://rpc.brochain.org","https://rpc.brochain.org/mainnet","http://rpc.brochain.org/mainnet"],faucets:[],nativeCurrency:{name:"Brother",symbol:"BRO",decimals:18},infoURL:"https://brochain.org",shortName:"bro",chainId:108801,networkId:108801,explorers:[{name:"BROChain Explorer",url:"https://explorer.brochain.org",standard:"EIP3091"}],testnet:!1,slug:"brochain"},f_r={name:"QuarkChain Devnet Root",chain:"QuarkChain",rpc:["https://quarkchain-devnet-root.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://jrpc.devnet.quarkchain.io:38391"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-r",chainId:11e4,networkId:11e4,testnet:!1,slug:"quarkchain-devnet-root"},m_r={name:"QuarkChain Devnet Shard 0",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s0-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39900"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s0",chainId:110001,networkId:110001,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/0",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-0"},y_r={name:"QuarkChain Devnet Shard 1",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s1-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39901"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s1",chainId:110002,networkId:110002,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/1",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-1"},g_r={name:"QuarkChain Devnet Shard 2",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s2-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39902"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s2",chainId:110003,networkId:110003,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/2",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-2"},b_r={name:"QuarkChain Devnet Shard 3",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s3-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39903"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s3",chainId:110004,networkId:110004,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/3",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-3"},v_r={name:"QuarkChain Devnet Shard 4",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-4.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s4-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39904"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s4",chainId:110005,networkId:110005,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/4",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-4"},w_r={name:"QuarkChain Devnet Shard 5",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-5.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s5-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39905"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s5",chainId:110006,networkId:110006,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/5",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-5"},__r={name:"QuarkChain Devnet Shard 6",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-6.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s6-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39906"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s6",chainId:110007,networkId:110007,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/6",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-6"},x_r={name:"QuarkChain Devnet Shard 7",chain:"QuarkChain",rpc:["https://quarkchain-devnet-shard-7.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet-s7-ethapi.quarkchain.io","http://eth-jrpc.devnet.quarkchain.io:39907"],faucets:[],nativeCurrency:{name:"QKC",symbol:"QKC",decimals:18},infoURL:"https://www.quarkchain.io",shortName:"qkc-d-s7",chainId:110008,networkId:110008,parent:{chain:"eip155-110000",type:"shard"},explorers:[{name:"quarkchain-devnet",url:"https://devnet.quarkchain.io/7",standard:"EIP3091"}],testnet:!1,slug:"quarkchain-devnet-shard-7"},T_r={name:"Siberium Network",chain:"SBR",rpc:["https://siberium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.main.siberium.net","https://rpc.main.siberium.net.ru"],faucets:[],nativeCurrency:{name:"Siberium",symbol:"SBR",decimals:18},infoURL:"https://siberium.net",shortName:"sbr",chainId:111111,networkId:111111,icon:{url:"ipfs://QmVDeoGo2TZPDWiaNDdPCnH2tz2BCQ7viw8ugdDWnU5LFq",width:1920,height:1920,format:"svg"},explorers:[{name:"Siberium Mainnet Explorer - blockscout - 1",url:"https://explorer.main.siberium.net",icon:"siberium",standard:"EIP3091"},{name:"Siberium Mainnet Explorer - blockscout - 2",url:"https://explorer.main.siberium.net.ru",icon:"siberium",standard:"EIP3091"}],testnet:!1,slug:"siberium-network"},E_r={name:"ETND Chain Mainnets",chain:"ETND",rpc:["https://etnd-chain-s.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.node1.etnd.pro/"],faucets:[],nativeCurrency:{name:"ETND",symbol:"ETND",decimals:18},infoURL:"https://www.etnd.pro",shortName:"ETND",chainId:131419,networkId:131419,icon:{url:"ipfs://Qmd26eRJxPb1jJg5Q4mC2M4kD9Jrs5vmcnr5LczHFMGwSD",width:128,height:128,format:"png"},explorers:[{name:"etndscan",url:"https://scan.etnd.pro",icon:"ETND",standard:"none"}],testnet:!1,slug:"etnd-chain-s"},C_r={name:"Condor Test Network",chain:"CONDOR",icon:{url:"ipfs://QmPRDuEJSTqp2cDUvWCp71Wns6XV8nvdeAVKWH6srpk4xM",width:752,height:752,format:"png"},rpc:["https://condor-test-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.condor.systems/rpc"],faucets:["https://faucet.condor.systems"],nativeCurrency:{name:"Condor Native Token",symbol:"CONDOR",decimals:18},infoURL:"https://condor.systems",shortName:"condor",chainId:188881,networkId:188881,explorers:[{name:"CondorScan",url:"https://explorer.condor.systems",standard:"none"}],testnet:!0,slug:"condor-test-network"},I_r={name:"Milkomeda C1 Testnet",chain:"milkTAda",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-c1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-cardano-evm.c1.milkomeda.com","wss://rpc-devnet-cardano-evm.c1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAda",symbol:"mTAda",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAda",chainId:200101,networkId:200101,explorers:[{name:"Blockscout",url:"https://explorer-devnet-cardano-evm.c1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-c1-testnet"},k_r={name:"Milkomeda A1 Testnet",chain:"milkTAlgo",icon:{url:"ipfs://QmdoUtvHDybu5ppYBZT8BMRp6AqByVSoQs8nFwKbaS55jd",width:367,height:367,format:"svg"},rpc:["https://milkomeda-a1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-devnet-algorand-rollup.a1.milkomeda.com"],faucets:[],nativeCurrency:{name:"milkTAlgo",symbol:"mTAlgo",decimals:18},infoURL:"https://milkomeda.com",shortName:"milkTAlgo",chainId:200202,networkId:200202,explorers:[{name:"Blockscout",url:"https://explorer-devnet-algorand-rollup.a1.milkomeda.com",standard:"none"}],testnet:!0,slug:"milkomeda-a1-testnet"},A_r={name:"Akroma",chain:"AKA",rpc:["https://akroma.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://remote.akroma.io"],faucets:[],nativeCurrency:{name:"Akroma Ether",symbol:"AKA",decimals:18},infoURL:"https://akroma.io",shortName:"aka",chainId:200625,networkId:200625,slip44:200625,testnet:!1,slug:"akroma"},S_r={name:"Alaya Mainnet",chain:"Alaya",rpc:["https://alaya.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi.alaya.network/rpc","wss://openapi.alaya.network/ws"],faucets:[],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alaya",chainId:201018,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://scan.alaya.network",standard:"none"}],testnet:!1,slug:"alaya"},P_r={name:"Alaya Dev Testnet",chain:"Alaya",rpc:["https://alaya-dev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnetopenapi.alaya.network/rpc","wss://devnetopenapi.alaya.network/ws"],faucets:["https://faucet.alaya.network/faucet/?id=f93426c0887f11eb83b900163e06151c"],nativeCurrency:{name:"ATP",symbol:"atp",decimals:18},infoURL:"https://www.alaya.network/",shortName:"alayadev",chainId:201030,networkId:1,icon:{url:"ipfs://Qmci6vPcWAwmq19j98yuQxjV6UPzHtThMdCAUDbKeb8oYu",width:1140,height:1140,format:"png"},explorers:[{name:"alaya explorer",url:"https://devnetscan.alaya.network",standard:"none"}],testnet:!0,slug:"alaya-dev-testnet"},R_r={name:"Mythical Chain",chain:"MYTH",rpc:["https://mythical-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain-rpc.mythicalgames.com"],faucets:[],nativeCurrency:{name:"Mythos",symbol:"MYTH",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://mythicalgames.com/",shortName:"myth",chainId:201804,networkId:201804,icon:{url:"ipfs://bafkreihru6cccfblrjz5bv36znq2l3h67u6xj5ivtc4bj5l6gzofbgtnb4",width:350,height:350,format:"png"},explorers:[{name:"Mythical Chain Explorer",url:"https://explorer.mythicalgames.com",icon:"mythical",standard:"EIP3091"}],testnet:!1,slug:"mythical-chain"},M_r={name:"Decimal Smart Chain Testnet",chain:"tDSC",rpc:["https://decimal-smart-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-val.decimalchain.com/web3"],faucets:[],nativeCurrency:{name:"Decimal",symbol:"tDEL",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://decimalchain.com",shortName:"tDSC",chainId:202020,networkId:202020,icon:{url:"ipfs://QmSgzwKnJJjys3Uq2aVVdwJ3NffLj3CXMVCph9uByTBegc",width:256,height:256,format:"png"},explorers:[{name:"DSC Explorer Testnet",url:"https://testnet.explorer.decimalchain.com",icon:"dsc",standard:"EIP3091"}],testnet:!0,slug:"decimal-smart-chain-testnet"},N_r={name:"Jellie",title:"Twala Testnet Jellie",shortName:"twl-jellie",chain:"ETH",chainId:202624,networkId:202624,icon:{url:"ipfs://QmTXJVhVKvVC7DQEnGKXvydvwpvVaUEBJrMHvsCr4nr1sK",width:1326,height:1265,format:"png"},nativeCurrency:{name:"Twala Coin",symbol:"TWL",decimals:18},rpc:["https://jellie.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jellie-rpc.twala.io/","wss://jellie-rpc-wss.twala.io/"],faucets:[],infoURL:"https://twala.io/",explorers:[{name:"Jellie Blockchain Explorer",url:"https://jellie.twala.io",standard:"EIP3091",icon:"twala"}],testnet:!0,slug:"jellie"},B_r={name:"PlatON Mainnet",chain:"PlatON",rpc:["https://platon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://openapi2.platon.network/rpc","wss://openapi2.platon.network/ws"],faucets:[],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platon",chainId:210425,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://scan.platon.network",standard:"none"}],testnet:!1,slug:"platon"},D_r={name:"Mas Mainnet",chain:"MAS",rpc:["https://mas.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://node.masnet.ai:8545"],faucets:[],nativeCurrency:{name:"Master Bank",symbol:"MAS",decimals:18},features:[{name:"EIP155"},{name:"EIP1559"}],infoURL:"https://masterbank.org",shortName:"mas",chainId:220315,networkId:220315,icon:{url:"ipfs://QmZ9njQhhKkpJKGnoYy6XTuDtk5CYiDFUd8atqWthqUT3Q",width:1024,height:1024,format:"png"},explorers:[{name:"explorer masnet",url:"https://explorer.masnet.ai",standard:"EIP3091"}],testnet:!1,slug:"mas"},O_r={name:"Haymo Testnet",chain:"tHYM",rpc:["https://haymo-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet1.haymo.network"],faucets:[],nativeCurrency:{name:"HAYMO",symbol:"HYM",decimals:18},infoURL:"https://haymoswap.web.app/",shortName:"hym",chainId:234666,networkId:234666,testnet:!0,slug:"haymo-testnet"},L_r={name:"ARTIS sigma1",chain:"ARTIS",rpc:["https://artis-sigma1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sigma1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS sigma1 Ether",symbol:"ATS",decimals:18},infoURL:"https://artis.eco",shortName:"ats",chainId:246529,networkId:246529,slip44:246529,testnet:!1,slug:"artis-sigma1"},q_r={name:"ARTIS Testnet tau1",chain:"ARTIS",rpc:["https://artis-testnet-tau1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.tau1.artis.network"],faucets:[],nativeCurrency:{name:"ARTIS tau1 Ether",symbol:"tATS",decimals:18},infoURL:"https://artis.network",shortName:"atstau",chainId:246785,networkId:246785,testnet:!0,slug:"artis-testnet-tau1"},F_r={name:"Saakuru Testnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc-testnet.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru-testnet",chainId:247253,networkId:247253,explorers:[{name:"saakuru-explorer-testnet",url:"https://explorer-testnet.saakuru.network",standard:"EIP3091"}],testnet:!0,slug:"saakuru-testnet"},W_r={name:"CMP-Mainnet",chain:"CMP",rpc:["https://cmp.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.block.caduceus.foundation","wss://mainnet.block.caduceus.foundation"],faucets:[],nativeCurrency:{name:"Caduceus Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp-mainnet",chainId:256256,networkId:256256,explorers:[{name:"Mainnet Scan",url:"https://mainnet.scan.caduceus.foundation",standard:"none"}],testnet:!1,slug:"cmp"},U_r={name:"Gear Zero Network Testnet",chain:"GearZero",rpc:["https://gear-zero-network-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://gzn-test.linksme.info"],faucets:[],nativeCurrency:{name:"Gear Zero Network Native Token",symbol:"GZN",decimals:18},infoURL:"https://token.gearzero.ca/testnet",shortName:"gz-testnet",chainId:266256,networkId:266256,slip44:266256,explorers:[],testnet:!0,slug:"gear-zero-network-testnet"},H_r={name:"Social Smart Chain Mainnet",chain:"SoChain",rpc:["https://social-smart-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://socialsmartchain.digitalnext.business"],faucets:[],nativeCurrency:{name:"SoChain",symbol:"$OC",decimals:18},infoURL:"https://digitalnext.business/SocialSmartChain",shortName:"SoChain",chainId:281121,networkId:281121,explorers:[],testnet:!1,slug:"social-smart-chain"},j_r={name:"Filecoin - Calibration testnet",chain:"FIL",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},rpc:["https://filecoin-calibration-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.calibration.node.glif.io/rpc/v1"],faucets:["https://faucet.calibration.fildev.network/"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-calibration",chainId:314159,networkId:314159,slip44:1,explorers:[{name:"Filscan - Calibration",url:"https://calibration.filscan.io",standard:"none"},{name:"Filscout - Calibration",url:"https://calibration.filscout.com/en",standard:"none"},{name:"Filfox - Calibration",url:"https://calibration.filfox.info",standard:"none"}],testnet:!0,slug:"filecoin-calibration-testnet"},z_r={name:"Oone Chain Testnet",chain:"OONE",rpc:["https://oone-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain-test.adigium.world"],faucets:["https://apps-test.adigium.com/faucet"],nativeCurrency:{name:"Oone",symbol:"tOONE",decimals:18},infoURL:"https://oone.world",shortName:"oonetest",chainId:333777,networkId:333777,explorers:[{name:"expedition",url:"https://explorer-test.adigium.world",standard:"none"}],testnet:!0,slug:"oone-chain-testnet"},K_r={name:"Polis Testnet",chain:"Sparta",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://sparta-rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"tPolis",symbol:"tPOLIS",decimals:18},infoURL:"https://polis.tech",shortName:"sparta",chainId:333888,networkId:333888,testnet:!0,slug:"polis-testnet"},G_r={name:"Polis Mainnet",chain:"Olympus",icon:{url:"ipfs://QmagWrtyApex28H2QeXcs3jJ2F7p2K7eESz3cDbHdQ3pjG",width:1050,height:1050,format:"png"},rpc:["https://polis.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.polis.tech"],faucets:["https://faucet.polis.tech"],nativeCurrency:{name:"Polis",symbol:"POLIS",decimals:18},infoURL:"https://polis.tech",shortName:"olympus",chainId:333999,networkId:333999,testnet:!1,slug:"polis"},V_r={name:"HAPchain Testnet",chain:"HAPchain",rpc:["https://hapchain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap-testnet",chainId:373737,networkId:373737,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout-test.hap.land",standard:"none",icon:"hap"}],testnet:!0,slug:"hapchain-testnet"},$_r={name:"Metal C-Chain",chain:"Metal",rpc:["https://metal-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"metal",chainId:381931,networkId:381931,slip44:9005,explorers:[{name:"metalscan",url:"https://metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-c-chain"},Y_r={name:"Metal Tahoe C-Chain",chain:"Metal",rpc:["https://metal-tahoe-c-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://tahoe.metalblockchain.org/ext/bc/C/rpc"],faucets:[],nativeCurrency:{name:"Metal",symbol:"METAL",decimals:18},infoURL:"https://www.metalblockchain.org/",shortName:"Tahoe",chainId:381932,networkId:381932,slip44:9005,explorers:[{name:"metalscan",url:"https://tahoe.metalscan.io",standard:"EIP3091"}],testnet:!1,slug:"metal-tahoe-c-chain"},J_r={name:"Tipboxcoin Mainnet",chain:"TPBX",icon:{url:"ipfs://QmbiaHnR3fVVofZ7Xq2GYZxwHkLEy3Fh5qDtqnqXD6ACAh",width:192,height:192,format:"png"},rpc:["https://tipboxcoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.tipboxcoin.net"],faucets:["https://faucet.tipboxcoin.net"],nativeCurrency:{name:"Tipboxcoin",symbol:"TPBX",decimals:18},infoURL:"https://tipboxcoin.net",shortName:"TPBXm",chainId:404040,networkId:404040,explorers:[{name:"Tipboxcoin",url:"https://tipboxcoin.net",standard:"EIP3091"}],testnet:!1,slug:"tipboxcoin"},Q_r={name:"Kekchain",chain:"kek",rpc:["https://kekchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.kekchain.com"],faucets:[],nativeCurrency:{name:"KEK",symbol:"KEK",decimals:18},infoURL:"https://kekchain.com",shortName:"KEK",chainId:420420,networkId:103090,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://mainnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!1,slug:"kekchain"},Z_r={name:"Kekchain (kektest)",chain:"kek",rpc:["https://kekchain-kektest.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.kekchain.com"],faucets:[],nativeCurrency:{name:"tKEK",symbol:"tKEK",decimals:18},infoURL:"https://kekchain.com",shortName:"tKEK",chainId:420666,networkId:1,icon:{url:"ipfs://QmNzwHAmaaQyuvKudrzGkrTT2GMshcmCmJ9FH8gG2mNJtM",width:401,height:401,format:"svg"},explorers:[{name:"blockscout",url:"https://testnet-explorer.kekchain.com",icon:"kek",standard:"EIP3091"}],testnet:!0,slug:"kekchain-kektest"},X_r={name:"Arbitrum Rinkeby",title:"Arbitrum Testnet Rinkeby",chainId:421611,shortName:"arb-rinkeby",chain:"ETH",networkId:421611,nativeCurrency:{name:"Arbitrum Rinkeby Ether",symbol:"ETH",decimals:18},rpc:["https://arbitrum-rinkeby.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rinkeby.arbitrum.io/rpc"],faucets:["http://fauceth.komputing.org?chain=421611&address=${ADDRESS}"],infoURL:"https://arbitrum.io",explorers:[{name:"arbiscan-testnet",url:"https://testnet.arbiscan.io",standard:"EIP3091"},{name:"arbitrum-rinkeby",url:"https://rinkeby-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-4",bridges:[{url:"https://bridge.arbitrum.io"}]},testnet:!0,slug:"arbitrum-rinkeby"},exr={name:"Arbitrum Goerli",title:"Arbitrum Goerli Rollup Testnet",chainId:421613,shortName:"arb-goerli",chain:"ETH",networkId:421613,nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18},rpc:["https://arbitrum-goerli.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://arb-goerli.g.alchemy.com/v2/${ALCHEMY_API_KEY}","https://abritrum-goerli.infura.io/v3/${INFURA_API_KEY}","https://goerli-rollup.arbitrum.io/rpc/"],faucets:[],infoURL:"https://arbitrum.io/",explorers:[{name:"Arbitrum Goerli Rollup Explorer",url:"https://goerli-rollup-explorer.arbitrum.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[{url:"https://bridge.arbitrum.io/"}]},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/arbitrum/512.png",height:512,width:512,format:"png",sizes:[512,256,128,64,32,16]},testnet:!0,slug:"arbitrum-goerli"},txr={name:"Fastex Chain testnet",chain:"FTN",title:"Fastex Chain testnet",rpc:["https://fastex-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.fastexchain.com"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"FTN",symbol:"FTN",decimals:18},infoURL:"https://fastex.com",shortName:"ftn",chainId:424242,networkId:424242,explorers:[{name:"blockscout",url:"https://testnet.ftnscan.com",standard:"none"}],testnet:!0,slug:"fastex-chain-testnet"},rxr={name:"Dexalot Subnet Testnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/testnet/rpc"],faucets:["https://faucet.avax.network/?subnet=dexalot"],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot-testnet",chainId:432201,networkId:432201,explorers:[{name:"Avalanche Subnet Testnet Explorer",url:"https://subnets-test.avax.network/dexalot",standard:"EIP3091"}],testnet:!0,slug:"dexalot-subnet-testnet"},nxr={name:"Dexalot Subnet",chain:"DEXALOT",icon:{url:"ipfs://QmfVxdrWjtUKiGzqFDzAxHH2FqwP2aRuZTGcYWdWg519Xy",width:256,height:256,format:"png"},rpc:["https://dexalot-subnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://subnets.avax.network/dexalot/mainnet/rpc"],faucets:[],nativeCurrency:{name:"Dexalot",symbol:"ALOT",decimals:18},infoURL:"https://dexalot.com",shortName:"dexalot",chainId:432204,networkId:432204,explorers:[{name:"Avalanche Subnet Explorer",url:"https://subnets.avax.network/dexalot",standard:"EIP3091"}],testnet:!1,slug:"dexalot-subnet"},axr={name:"Weelink Testnet",chain:"WLK",rpc:["https://weelink-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://weelinknode1c.gw002.oneitfarm.com"],faucets:["https://faucet.weelink.gw002.oneitfarm.com"],nativeCurrency:{name:"Weelink Chain Token",symbol:"tWLK",decimals:18},infoURL:"https://weelink.cloud",shortName:"wlkt",chainId:444900,networkId:444900,explorers:[{name:"weelink-testnet",url:"https://weelink.cloud/#/blockView/overview",standard:"none"}],testnet:!0,slug:"weelink-testnet"},ixr={name:"OpenChain Mainnet",chain:"OpenChain",rpc:["https://openchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://baas-rpc.luniverse.io:18545?lChainId=1641349324562974539"],faucets:[],nativeCurrency:{name:"OpenCoin",symbol:"OPC",decimals:10},infoURL:"https://www.openchain.live",shortName:"oc",chainId:474142,networkId:474142,explorers:[{name:"SIDE SCAN",url:"https://sidescan.luniverse.io/1641349324562974539",standard:"none"}],testnet:!1,slug:"openchain"},sxr={name:"CMP-Testnet",chain:"CMP",rpc:["https://cmp-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://galaxy.block.caduceus.foundation","wss://galaxy.block.caduceus.foundation"],faucets:["https://dev.caduceus.foundation/testNetwork"],nativeCurrency:{name:"Caduceus Testnet Token",symbol:"CMP",decimals:18},infoURL:"https://caduceus.foundation/",shortName:"cmp",chainId:512512,networkId:512512,explorers:[{name:"Galaxy Scan",url:"https://galaxy.scan.caduceus.foundation",standard:"none"}],testnet:!0,slug:"cmp-testnet"},oxr={name:"ethereum Fair",chainId:513100,networkId:513100,shortName:"etf",chain:"ETF",nativeCurrency:{name:"EthereumFair",symbol:"ETHF",decimals:18},rpc:["https://ethereum-fair.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.etherfair.org"],faucets:[],explorers:[{name:"etherfair",url:"https://explorer.etherfair.org",standard:"EIP3091"}],infoURL:"https://etherfair.org",testnet:!1,slug:"ethereum-fair"},cxr={name:"Scroll",chain:"ETH",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr",chainId:534352,networkId:534352,explorers:[],parent:{type:"L2",chain:"eip155-1",bridges:[]},testnet:!1,slug:"scroll"},uxr={name:"Scroll Alpha Testnet",chain:"ETH",status:"incubating",rpc:["https://scroll-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://alpha-rpc.scroll.io/l2"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-alpha",chainId:534353,networkId:534353,explorers:[{name:"Scroll Alpha Testnet Block Explorer",url:"https://blockscout.scroll.io",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-5",bridges:[]},testnet:!0,slug:"scroll-alpha-testnet"},lxr={name:"Scroll Pre-Alpha Testnet",chain:"ETH",rpc:["https://scroll-pre-alpha-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://prealpha-rpc.scroll.io/l2"],faucets:["https://prealpha.scroll.io/faucet"],nativeCurrency:{name:"Ether",symbol:"TSETH",decimals:18},infoURL:"https://scroll.io",shortName:"scr-prealpha",chainId:534354,networkId:534354,explorers:[{name:"Scroll L2 Block Explorer",url:"https://l2scan.scroll.io",standard:"EIP3091"}],testnet:!0,slug:"scroll-pre-alpha-testnet"},dxr={name:"BeanEco SmartChain",title:"BESC Mainnet",chain:"BESC",rpc:["https://beaneco-smartchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.bescscan.io"],faucets:["faucet.bescscan.ion"],nativeCurrency:{name:"BeanEco SmartChain",symbol:"BESC",decimals:18},infoURL:"besceco.finance",shortName:"BESC",chainId:535037,networkId:535037,explorers:[{name:"bescscan",url:"https://Bescscan.io",standard:"EIP3091"}],testnet:!1,slug:"beaneco-smartchain"},pxr={name:"Bear Network Chain Mainnet",chain:"BRNKC",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-mainnet.bearnetwork.net","https://brnkc-mainnet1.bearnetwork.net"],faucets:[],nativeCurrency:{name:"Bear Network Chain Native Token",symbol:"BRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKC",chainId:641230,networkId:641230,explorers:[{name:"brnkscan",url:"https://brnkscan.bearnetwork.net",standard:"EIP3091"}],testnet:!1,slug:"bear-network-chain"},hxr={name:"Vision - Vpioneer Test Chain",chain:"Vision-Vpioneer",rpc:["https://vision-vpioneer-test-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://vpioneer.infragrid.v.network/ethereum/compatible"],faucets:["https://vpioneerfaucet.visionscan.org"],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://visionscan.org",shortName:"vpioneer",chainId:666666,networkId:666666,slip44:60,testnet:!0,slug:"vision-vpioneer-test-chain"},fxr={name:"Bear Network Chain Testnet",chain:"BRNKCTEST",icon:{url:"ipfs://QmQqhH28QpUrreoRw5Gj8YShzdHxxVGMjfVrx3TqJNLSLv",width:1067,height:1067,format:"png"},rpc:["https://bear-network-chain-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://brnkc-test.bearnetwork.net"],faucets:["https://faucet.bearnetwork.net"],nativeCurrency:{name:"Bear Network Chain Testnet Token",symbol:"tBRNKC",decimals:18},infoURL:"https://bearnetwork.net",shortName:"BRNKCTEST",chainId:751230,networkId:751230,explorers:[{name:"brnktestscan",url:"https://brnktest-scan.bearnetwork.net",standard:"EIP3091"}],testnet:!0,slug:"bear-network-chain-testnet"},mxr={name:"OctaSpace",chain:"OCTA",rpc:["https://octaspace.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.octa.space","wss://rpc.octa.space"],faucets:[],nativeCurrency:{name:"OctaSpace",symbol:"OCTA",decimals:18},infoURL:"https://octa.space",shortName:"octa",chainId:800001,networkId:800001,icon:{url:"ipfs://QmVhezQHkqSZ5Tvtsw18giA1yBjV1URSsBQ7HenUh6p6oC",width:512,height:512,format:"png"},explorers:[{name:"blockscout",url:"https://explorer.octa.space",icon:"blockscout",standard:"EIP3091"}],testnet:!1,slug:"octaspace"},yxr={name:"4GoodNetwork",chain:"4GN",rpc:["https://4goodnetwork.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://chain.deptofgood.com"],faucets:[],nativeCurrency:{name:"APTA",symbol:"APTA",decimals:18},infoURL:"https://bloqs4good.com",shortName:"bloqs4good",chainId:846e3,networkId:846e3,testnet:!1,slug:"4goodnetwork"},gxr={name:"Vision - Mainnet",chain:"Vision",rpc:["https://vision.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://infragrid.v.network/ethereum/compatible"],faucets:[],nativeCurrency:{name:"VS",symbol:"VS",decimals:18},infoURL:"https://www.v.network",explorers:[{name:"Visionscan",url:"https://www.visionscan.org",standard:"EIP3091"}],shortName:"vision",chainId:888888,networkId:888888,slip44:60,testnet:!1,slug:"vision"},bxr={name:"Posichain Mainnet Shard 0",chain:"PSC",rpc:["https://posichain-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.posichain.org","https://api.s0.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-s0",chainId:9e5,networkId:9e5,explorers:[{name:"Posichain Explorer",url:"https://explorer.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-shard-0"},vxr={name:"Posichain Testnet Shard 0",chain:"PSC",rpc:["https://posichain-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.t.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-t-s0",chainId:91e4,networkId:91e4,explorers:[{name:"Posichain Explorer Testnet",url:"https://explorer-testnet.posichain.org",standard:"EIP3091"}],testnet:!0,slug:"posichain-testnet-shard-0"},wxr={name:"Posichain Devnet Shard 0",chain:"PSC",rpc:["https://posichain-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s0",chainId:92e4,networkId:92e4,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-0"},_xr={name:"Posichain Devnet Shard 1",chain:"PSC",rpc:["https://posichain-devnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.d.posichain.org"],faucets:["https://faucet.posichain.org/"],nativeCurrency:{name:"Posichain Native Token",symbol:"POSI",decimals:18},infoURL:"https://posichain.org",shortName:"psc-d-s1",chainId:920001,networkId:920001,explorers:[{name:"Posichain Explorer Devnet",url:"https://explorer-devnet.posichain.org",standard:"EIP3091"}],testnet:!1,slug:"posichain-devnet-shard-1"},xxr={name:"FNCY Testnet",chain:"FNCY",rpc:["https://fncy-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://fncy-testnet-seed.fncy.world"],faucets:["https://faucet-testnet.fncy.world"],nativeCurrency:{name:"FNCY",symbol:"FNCY",decimals:18},infoURL:"https://fncyscan-testnet.fncy.world",shortName:"tFNCY",chainId:923018,networkId:923018,icon:{url:"ipfs://QmfXCh6UnaEHn3Evz7RFJ3p2ggJBRm9hunDHegeoquGuhD",width:256,height:256,format:"png"},explorers:[{name:"fncy scan testnet",url:"https://fncyscan-testnet.fncy.world",icon:"fncy",standard:"EIP3091"}],testnet:!0,slug:"fncy-testnet"},Txr={name:"Eluvio Content Fabric",chain:"Eluvio",rpc:["https://eluvio-content-fabric.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://host-76-74-28-226.contentfabric.io/eth/","https://host-76-74-28-232.contentfabric.io/eth/","https://host-76-74-29-2.contentfabric.io/eth/","https://host-76-74-29-8.contentfabric.io/eth/","https://host-76-74-29-34.contentfabric.io/eth/","https://host-76-74-29-35.contentfabric.io/eth/","https://host-154-14-211-98.contentfabric.io/eth/","https://host-154-14-192-66.contentfabric.io/eth/","https://host-60-240-133-202.contentfabric.io/eth/","https://host-64-235-250-98.contentfabric.io/eth/"],faucets:[],nativeCurrency:{name:"ELV",symbol:"ELV",decimals:18},infoURL:"https://eluv.io",shortName:"elv",chainId:955305,networkId:955305,slip44:1011,explorers:[{name:"blockscout",url:"https://explorer.eluv.io",standard:"EIP3091"}],testnet:!1,slug:"eluvio-content-fabric"},Exr={name:"Etho Protocol",chain:"ETHO",rpc:["https://etho-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ethoprotocol.com"],faucets:[],nativeCurrency:{name:"Etho Protocol",symbol:"ETHO",decimals:18},infoURL:"https://ethoprotocol.com",shortName:"etho",chainId:1313114,networkId:1313114,slip44:1313114,explorers:[{name:"blockscout",url:"https://explorer.ethoprotocol.com",standard:"none"}],testnet:!1,slug:"etho-protocol"},Cxr={name:"Xerom",chain:"XERO",rpc:["https://xerom.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.xerom.org"],faucets:[],nativeCurrency:{name:"Xerom Ether",symbol:"XERO",decimals:18},infoURL:"https://xerom.org",shortName:"xero",chainId:1313500,networkId:1313500,testnet:!1,slug:"xerom"},Ixr={name:"Kintsugi",title:"Kintsugi merge testnet",chain:"ETH",rpc:["https://kintsugi.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kintsugi.themerge.dev"],faucets:["http://fauceth.komputing.org?chain=1337702&address=${ADDRESS}","https://faucet.kintsugi.themerge.dev"],nativeCurrency:{name:"kintsugi Ethere",symbol:"kiETH",decimals:18},infoURL:"https://kintsugi.themerge.dev/",shortName:"kintsugi",chainId:1337702,networkId:1337702,explorers:[{name:"kintsugi explorer",url:"https://explorer.kintsugi.themerge.dev",standard:"EIP3091"}],testnet:!0,slug:"kintsugi"},kxr={name:"Kiln",chain:"ETH",rpc:["https://kiln.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.kiln.themerge.dev"],faucets:["https://faucet.kiln.themerge.dev","https://kiln-faucet.pk910.de","https://kilnfaucet.com"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://kiln.themerge.dev/",shortName:"kiln",chainId:1337802,networkId:1337802,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Kiln Explorer",url:"https://explorer.kiln.themerge.dev",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"kiln"},Axr={name:"Zhejiang",chain:"ETH",rpc:["https://zhejiang.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.zhejiang.ethpandaops.io"],faucets:["https://faucet.zhejiang.ethpandaops.io","https://zhejiang-faucet.pk910.de"],nativeCurrency:{name:"Testnet ETH",symbol:"ETH",decimals:18},infoURL:"https://zhejiang.ethpandaops.io",shortName:"zhejiang",chainId:1337803,networkId:1337803,icon:{url:"ipfs://QmdwQDr6vmBtXmK2TmknkEuZNoaDqTasFdZdu3DRw8b2wt",width:1e3,height:1628,format:"png"},explorers:[{name:"Zhejiang Explorer",url:"https://zhejiang.beaconcha.in",icon:"ethereum",standard:"EIP3091"}],testnet:!0,slug:"zhejiang"},Sxr={name:"Plian Mainnet Main",chain:"Plian",rpc:["https://plian-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/pchain"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-mainnet",chainId:2099156,networkId:2099156,explorers:[{name:"piscan",url:"https://piscan.plian.org/pchain",standard:"EIP3091"}],testnet:!1,slug:"plian-main"},Pxr={name:"PlatON Dev Testnet2",chain:"PlatON",rpc:["https://platon-dev-testnet2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet2openapi.platon.network/rpc","wss://devnet2openapi.platon.network/ws"],faucets:["https://devnet2faucet.platon.network/faucet"],nativeCurrency:{name:"LAT",symbol:"lat",decimals:18},infoURL:"https://www.platon.network",shortName:"platondev2",chainId:2206132,networkId:1,icon:{url:"ipfs://QmT7PSXBiVBma6E15hNkivmstqLu3JSnG1jXN5pTmcCGRC",width:200,height:200,format:"png"},explorers:[{name:"PlatON explorer",url:"https://devnet2scan.platon.network",standard:"none"}],testnet:!0,slug:"platon-dev-testnet2"},Rxr={name:"Filecoin - Butterfly testnet",chain:"FIL",status:"incubating",rpc:[],faucets:["https://faucet.butterfly.fildev.network"],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-butterfly",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:3141592,networkId:3141592,slip44:1,explorers:[],testnet:!0,slug:"filecoin-butterfly-testnet"},Mxr={name:"Imversed Mainnet",chain:"Imversed",rpc:["https://imversed.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.imversed.network","https://ws-jsonrpc.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed",chainId:5555555,networkId:5555555,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM explorer (Blockscout)",url:"https://txe.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-c.imversed.com",icon:"imversed",standard:"none"}],testnet:!1,slug:"imversed"},Nxr={name:"Imversed Testnet",chain:"Imversed",rpc:["https://imversed-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc-test.imversed.network","https://ws-jsonrpc-test.imversed.network"],faucets:[],nativeCurrency:{name:"Imversed Token",symbol:"IMV",decimals:18},infoURL:"https://imversed.com",shortName:"imversed-testnet",chainId:5555558,networkId:5555558,icon:{url:"ipfs://QmYwvmJZ1bgTdiZUKXk4SifTpTj286CkZjMCshUyJuBFH1",width:400,height:400,format:"png"},explorers:[{name:"Imversed EVM Explorer (Blockscout)",url:"https://txe-test.imversed.network",icon:"imversed",standard:"EIP3091"},{name:"Imversed Cosmos Explorer (Big Dipper)",url:"https://tex-t.imversed.com",icon:"imversed",standard:"none"}],testnet:!0,slug:"imversed-testnet"},Bxr={name:"Saakuru Mainnet",chain:"Saakuru",icon:{url:"ipfs://QmduEdtFobPpZWSc45MU6RKxZfTEzLux2z8ikHFhT8usqv",width:1024,height:1024,format:"png"},rpc:["https://saakuru.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.saakuru.network"],faucets:[],nativeCurrency:{name:"OAS",symbol:"OAS",decimals:18},infoURL:"https://saakuru.network",shortName:"saakuru",chainId:7225878,networkId:7225878,explorers:[{name:"saakuru-explorer",url:"https://explorer.saakuru.network",standard:"EIP3091"}],testnet:!1,slug:"saakuru"},Dxr={name:"OpenVessel",chain:"VSL",icon:{url:"ipfs://QmeknNzGCZXQK7egwfwyxQan7Lw8bLnqYsyoEgEbDNCzJX",width:600,height:529,format:"png"},rpc:["https://openvessel.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-external.openvessel.io"],faucets:[],nativeCurrency:{name:"Vessel ETH",symbol:"VETH",decimals:18},infoURL:"https://www.openvessel.io",shortName:"vsl",chainId:7355310,networkId:7355310,explorers:[{name:"openvessel-mainnet",url:"https://mainnet-explorer.openvessel.io",standard:"none"}],testnet:!1,slug:"openvessel"},Oxr={name:"QL1 Testnet",chain:"QOM",status:"incubating",rpc:["https://ql1-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.testnet.qom.one"],faucets:["https://faucet.qom.one"],nativeCurrency:{name:"Shiba Predator",symbol:"QOM",decimals:18},infoURL:"https://qom.one",shortName:"tqom",chainId:7668378,networkId:7668378,icon:{url:"ipfs://QmRc1kJ7AgcDL1BSoMYudatWHTrz27K6WNTwGifQb5V17D",width:518,height:518,format:"png"},explorers:[{name:"QL1 Testnet Explorer",url:"https://testnet.qom.one",icon:"qom",standard:"EIP3091"}],testnet:!0,slug:"ql1-testnet"},Lxr={name:"Musicoin",chain:"MUSIC",rpc:["https://musicoin.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mewapi.musicoin.tw"],faucets:[],nativeCurrency:{name:"Musicoin",symbol:"MUSIC",decimals:18},infoURL:"https://musicoin.tw",shortName:"music",chainId:7762959,networkId:7762959,slip44:184,testnet:!1,slug:"musicoin"},qxr={name:"Plian Mainnet Subchain 1",chain:"Plian",rpc:["https://plian-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.plian.io/child_0"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"PI",decimals:18},infoURL:"https://plian.org",shortName:"plian-mainnet-l2",chainId:8007736,networkId:8007736,explorers:[{name:"piscan",url:"https://piscan.plian.org/child_0",standard:"EIP3091"}],parent:{chain:"eip155-2099156",type:"L2"},testnet:!1,slug:"plian-subchain-1"},Fxr={name:"HAPchain",chain:"HAPchain",rpc:["https://hapchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonrpc.hap.land"],faucets:[],nativeCurrency:{name:"HAP",symbol:"HAP",decimals:18},infoURL:"https://hap.land",shortName:"hap",chainId:8794598,networkId:8794598,icon:{url:"ipfs://QmQ4V9JC25yUrYk2kFJwmKguSsZBQvtGcg6q9zkDV8mkJW",width:400,height:400,format:"png"},explorers:[{name:"HAP EVM Explorer (Blockscout)",url:"https://blockscout.hap.land",standard:"none",icon:"hap"}],testnet:!1,slug:"hapchain"},Wxr={name:"Plian Testnet Subchain 1",chain:"Plian",rpc:["https://plian-testnet-subchain-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/child_test"],faucets:[],nativeCurrency:{name:"Plian Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org/",shortName:"plian-testnet-l2",chainId:10067275,networkId:10067275,explorers:[{name:"piscan",url:"https://testnet.plian.org/child_test",standard:"EIP3091"}],parent:{chain:"eip155-16658437",type:"L2"},testnet:!0,slug:"plian-testnet-subchain-1"},Uxr={name:"Soverun Mainnet",chain:"SVRN",icon:{url:"ipfs://QmTYazUzgY9Nn2mCjWwFUSLy3dG6i2PvALpwCNQvx1zXyi",width:1154,height:1154,format:"png"},rpc:["https://soverun.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.soverun.com"],faucets:["https://faucet.soverun.com"],nativeCurrency:{name:"Soverun",symbol:"SVRN",decimals:18},infoURL:"https://soverun.com",shortName:"SVRNm",chainId:10101010,networkId:10101010,explorers:[{name:"Soverun",url:"https://explorer.soverun.com",standard:"EIP3091"}],testnet:!1,slug:"soverun"},Hxr={name:"Sepolia",title:"Ethereum Testnet Sepolia",chain:"ETH",rpc:["https://sepolia.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.sepolia.org","https://rpc2.sepolia.org","https://rpc-sepolia.rockx.com"],faucets:["http://fauceth.komputing.org?chain=11155111&address=${ADDRESS}"],nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},infoURL:"https://sepolia.otterscan.io",shortName:"sep",chainId:11155111,networkId:11155111,explorers:[{name:"etherscan-sepolia",url:"https://sepolia.etherscan.io",standard:"EIP3091"},{name:"otterscan-sepolia",url:"https://sepolia.otterscan.io",standard:"EIP3091"}],testnet:!0,slug:"sepolia"},jxr={name:"PepChain Churchill",chain:"PEP",rpc:["https://pepchain-churchill.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://churchill-rpc.pepchain.io"],faucets:[],nativeCurrency:{name:"PepChain Churchill Ether",symbol:"TPEP",decimals:18},infoURL:"https://pepchain.io",shortName:"tpep",chainId:13371337,networkId:13371337,testnet:!1,slug:"pepchain-churchill"},zxr={name:"Anduschain Mainnet",chain:"anduschain",rpc:["https://anduschain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.anduschain.io/rpc","wss://rpc.anduschain.io/ws"],faucets:[],nativeCurrency:{name:"DAON",symbol:"DEB",decimals:18},infoURL:"https://anduschain.io/",shortName:"anduschain-mainnet",chainId:14288640,networkId:14288640,explorers:[{name:"anduschain explorer",url:"https://explorer.anduschain.io",icon:"daon",standard:"none"}],testnet:!1,slug:"anduschain"},Kxr={name:"Plian Testnet Main",chain:"Plian",rpc:["https://plian-testnet-main.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.plian.io/testnet"],faucets:[],nativeCurrency:{name:"Plian Testnet Token",symbol:"TPI",decimals:18},infoURL:"https://plian.org",shortName:"plian-testnet",chainId:16658437,networkId:16658437,explorers:[{name:"piscan",url:"https://testnet.plian.org/testnet",standard:"EIP3091"}],testnet:!0,slug:"plian-testnet-main"},Gxr={name:"IOLite",chain:"ILT",rpc:["https://iolite.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://net.iolite.io"],faucets:[],nativeCurrency:{name:"IOLite Ether",symbol:"ILT",decimals:18},infoURL:"https://iolite.io",shortName:"ilt",chainId:18289463,networkId:18289463,testnet:!1,slug:"iolite"},Vxr={name:"SmartMesh Mainnet",chain:"Spectrum",rpc:["https://smartmesh.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://jsonapi1.smartmesh.cn"],faucets:[],nativeCurrency:{name:"SmartMesh Native Token",symbol:"SMT",decimals:18},infoURL:"https://smartmesh.io",shortName:"spectrum",chainId:20180430,networkId:1,explorers:[{name:"spectrum",url:"https://spectrum.pub",standard:"none"}],testnet:!1,slug:"smartmesh"},$xr={name:"quarkblockchain",chain:"QKI",rpc:["https://quarkblockchain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://hz.rpc.qkiscan.cn","https://jp.rpc.qkiscan.io"],faucets:[],nativeCurrency:{name:"quarkblockchain Native Token",symbol:"QKI",decimals:18},infoURL:"https://quarkblockchain.org/",shortName:"qki",chainId:20181205,networkId:20181205,testnet:!1,slug:"quarkblockchain"},Yxr={name:"Excelon Mainnet",chain:"XLON",icon:{url:"ipfs://QmTV45o4jTe6ayscF1XWh1WXk5DPck4QohR5kQocSWjvQP",width:300,height:300,format:"png"},rpc:["https://excelon.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://edgewallet1.xlon.org/"],faucets:[],nativeCurrency:{name:"Excelon",symbol:"xlon",decimals:18},infoURL:"https://xlon.org",shortName:"xlon",chainId:22052002,networkId:22052002,explorers:[{name:"Excelon explorer",url:"https://explorer.excelon.io",standard:"EIP3091"}],testnet:!1,slug:"excelon"},Jxr={name:"Excoincial Chain Volta-Testnet",chain:"TEXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain-volta-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet-rpc.exlscan.com"],faucets:["https://faucet.exlscan.com"],nativeCurrency:{name:"TExlcoin",symbol:"TEXL",decimals:18},infoURL:"",shortName:"exlvolta",chainId:27082017,networkId:27082017,explorers:[{name:"exlscan",url:"https://testnet-explorer.exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!0,slug:"excoincial-chain-volta-testnet"},Qxr={name:"Excoincial Chain Mainnet",chain:"EXL",icon:{url:"ipfs://QmeooM7QicT1YbgY93XPd5p7JsCjYhN3qjWt68X57g6bVC",width:400,height:400,format:"png"},rpc:["https://excoincial-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.exlscan.com"],faucets:[],nativeCurrency:{name:"Exlcoin",symbol:"EXL",decimals:18},infoURL:"",shortName:"exl",chainId:27082022,networkId:27082022,explorers:[{name:"exlscan",url:"https://exlscan.com",icon:"exl",standard:"EIP3091"}],testnet:!1,slug:"excoincial-chain"},Zxr={name:"Auxilium Network Mainnet",chain:"AUX",rpc:["https://auxilium-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.auxilium.global"],faucets:[],nativeCurrency:{name:"Auxilium coin",symbol:"AUX",decimals:18},infoURL:"https://auxilium.global",shortName:"auxi",chainId:28945486,networkId:28945486,slip44:344,testnet:!1,slug:"auxilium-network"},Xxr={name:"Flachain Mainnet",chain:"FLX",icon:{url:"ipfs://bafybeiadlvc4pfiykehyt2z67nvgt5w4vlov27olu5obvmryv4xzua4tae",width:256,height:256,format:"png"},rpc:["https://flachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://flachain.flaexchange.top/"],features:[{name:"EIP155"},{name:"EIP1559"}],faucets:[],nativeCurrency:{name:"Flacoin",symbol:"FLA",decimals:18},infoURL:"https://www.flaexchange.top",shortName:"fla",chainId:29032022,networkId:29032022,explorers:[{name:"FLXExplorer",url:"https://explorer.flaexchange.top",standard:"EIP3091"}],testnet:!1,slug:"flachain"},eTr={name:"Filecoin - Local testnet",chain:"FIL",status:"incubating",rpc:[],faucets:[],nativeCurrency:{name:"testnet filecoin",symbol:"tFIL",decimals:18},infoURL:"https://filecoin.io",shortName:"filecoin-local",icon:{url:"ipfs://QmS9r9XQkMHVomWcSBNDkKkz9n87h9bH9ssabeiKZtANoU",width:1e3,height:1e3,format:"png"},chainId:31415926,networkId:31415926,slip44:1,explorers:[],testnet:!0,slug:"filecoin-local-testnet"},tTr={name:"Joys Digital Mainnet",chain:"JOYS",rpc:["https://joys-digital.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://node.joys.digital"],faucets:[],nativeCurrency:{name:"JOYS",symbol:"JOYS",decimals:18},infoURL:"https://joys.digital",shortName:"JOYS",chainId:35855456,networkId:35855456,testnet:!1,slug:"joys-digital"},rTr={name:"maistestsubnet",chain:"MAI",rpc:["https://maistestsubnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://174.138.9.169:9650/ext/bc/VUKSzFZKckx4PoZF9gX5QAqLPxbLzvu1vcssPG5QuodaJtdHT/rpc"],faucets:[],nativeCurrency:{name:"maistestsubnet",symbol:"MAI",decimals:18},infoURL:"",shortName:"mais",chainId:43214913,networkId:43214913,explorers:[{name:"maistesntet",url:"http://174.138.9.169:3006/?network=maistesntet",standard:"none"}],testnet:!0,slug:"maistestsubnet"},nTr={name:"Aquachain",chain:"AQUA",rpc:["https://aquachain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://c.onical.org","https://tx.aquacha.in/api"],faucets:["https://aquacha.in/faucet"],nativeCurrency:{name:"Aquachain Ether",symbol:"AQUA",decimals:18},infoURL:"https://aquachain.github.io",shortName:"aqua",chainId:61717561,networkId:61717561,slip44:61717561,testnet:!1,slug:"aquachain"},aTr={name:"Autonity Bakerloo (Thames) Testnet",chain:"AUT",rpc:["https://autonity-bakerloo-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.bakerloo.autonity.org/","wss://rpc1.bakerloo.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Bakerloo Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"bakerloo-0",chainId:6501e4,networkId:6501e4,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://bakerloo.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-bakerloo-thames-testnet"},iTr={name:"Autonity Piccadilly (Thames) Testnet",chain:"AUT",rpc:["https://autonity-piccadilly-thames-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc1.piccadilly.autonity.org/","wss://rpc1.piccadilly.autonity.org/ws/"],faucets:["https://faucet.autonity.org/"],nativeCurrency:{name:"Piccadilly Auton",symbol:"ATN",decimals:18},infoURL:"https://autonity.org/",shortName:"piccadilly-0",chainId:651e5,networkId:651e5,icon:{url:"ipfs://Qme5nxFZZoNNpiT8u9WwcBot4HyLTg2jxMxRnsbc5voQwB",width:1e3,height:1e3,format:"png"},explorers:[{name:"autonity-blockscout",url:"https://piccadilly.autonity.org",standard:"EIP3091"}],testnet:!0,slug:"autonity-piccadilly-thames-testnet"},sTr={name:"Joys Digital TestNet",chain:"TOYS",rpc:["https://joys-digital-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://toys.joys.cash/"],faucets:["https://faucet.joys.digital/"],nativeCurrency:{name:"TOYS",symbol:"TOYS",decimals:18},infoURL:"https://joys.digital",shortName:"TOYS",chainId:99415706,networkId:99415706,testnet:!0,slug:"joys-digital-testnet"},oTr={name:"Gather Mainnet Network",chain:"GTH",rpc:["https://gather-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"GTH",chainId:192837465,networkId:192837465,explorers:[{name:"Blockscout",url:"https://explorer.gather.network",standard:"none"}],icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},testnet:!1,slug:"gather-network"},cTr={name:"Neon EVM DevNet",chain:"Solana",rpc:["https://neon-evm-devnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.neonevm.org"],faucets:["https://neonfaucet.org"],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-devnet",chainId:245022926,networkId:245022926,explorers:[{name:"native",url:"https://devnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://devnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm-devnet"},uTr={name:"Neon EVM MainNet",chain:"Solana",rpc:["https://neon-evm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-mainnet",chainId:245022934,networkId:245022934,explorers:[{name:"native",url:"https://mainnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://mainnet.neonscan.org",standard:"EIP3091"}],testnet:!1,slug:"neon-evm"},lTr={name:"Neon EVM TestNet",chain:"Solana",rpc:["https://neon-evm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.neonevm.org"],faucets:[],icon:{url:"ipfs://Qmcxevb3v8PEvnvfYgcG3bCBuPhe5YAdsHeaufDChSSR3Q",width:512,height:512,format:"png"},nativeCurrency:{name:"Neon",symbol:"NEON",decimals:18},infoURL:"https://neon-labs.org",shortName:"neonevm-testnet",chainId:245022940,networkId:245022940,explorers:[{name:"native",url:"https://testnet.explorer.neon-labs.org",standard:"EIP3091"},{name:"neonscan",url:"https://testnet.neonscan.org",standard:"EIP3091"}],testnet:!0,slug:"neon-evm-testnet"},dTr={name:"OneLedger Mainnet",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet-rpc.oneledger.network"],faucets:[],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"oneledger",chainId:311752642,networkId:311752642,explorers:[{name:"OneLedger Block Explorer",url:"https://mainnet-explorer.oneledger.network",standard:"EIP3091"}],testnet:!1,slug:"oneledger"},pTr={name:"Calypso NFT Hub (SKALE Testnet)",title:"Calypso NFT Hub Testnet",chain:"staging-utter-unripe-menkar",rpc:["https://calypso-nft-hub-skale-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-utter-unripe-menkar"],faucets:["https://sfuel.dirtroad.dev/staging"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-testnet",chainId:344106930,networkId:344106930,explorers:[{name:"Blockscout",url:"https://staging-utter-unripe-menkar.explorer.staging-v3.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!0,slug:"calypso-nft-hub-skale-testnet"},hTr={name:"Gather Testnet Network",chain:"GTH",rpc:["https://gather-testnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.gather.network"],faucets:["https://testnet-faucet.gather.network/"],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"tGTH",chainId:356256156,networkId:356256156,explorers:[{name:"Blockscout",url:"https://testnet-explorer.gather.network",standard:"none"}],testnet:!0,icon:{url:"ipfs://Qmc9AJGg9aNhoH56n3deaZeUc8Ty1jDYJsW6Lu6hgSZH4S",height:512,width:512,format:"png"},slug:"gather-testnet-network"},fTr={name:"Gather Devnet Network",chain:"GTH",rpc:["https://gather-devnet-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://devnet.gather.network"],faucets:[],nativeCurrency:{name:"Gather",symbol:"GTH",decimals:18},infoURL:"https://gather.network",shortName:"dGTH",chainId:486217935,networkId:486217935,explorers:[{name:"Blockscout",url:"https://devnet-explorer.gather.network",standard:"none"}],testnet:!1,slug:"gather-devnet-network"},mTr={name:"Nebula Staging",chain:"staging-faint-slimy-achird",rpc:["https://nebula-staging.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://staging-v3.skalenodes.com/v1/staging-faint-slimy-achird","wss://staging-v3.skalenodes.com/v1/ws/staging-faint-slimy-achird"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-staging",chainId:503129905,networkId:503129905,explorers:[{name:"nebula",url:"https://staging-faint-slimy-achird.explorer.staging-v3.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula-staging"},yTr={name:"IPOS Network",chain:"IPOS",rpc:["https://ipos-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.iposlab.com","https://rpc2.iposlab.com"],faucets:[],nativeCurrency:{name:"IPOS Network Ether",symbol:"IPOS",decimals:18},infoURL:"https://iposlab.com",shortName:"ipos",chainId:1122334455,networkId:1122334455,testnet:!1,slug:"ipos-network"},gTr={name:"CyberdeckNet",chain:"cyberdeck",rpc:["https://cyberdecknet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","http://cybeth1.cyberdeck.eu:8545"],faucets:[],nativeCurrency:{name:"Cyb",symbol:"CYB",decimals:18},infoURL:"https://cyberdeck.eu",shortName:"cyb",chainId:1146703430,networkId:1146703430,icon:{url:"ipfs://QmTvYMJXeZeWxYPuoQ15mHCS8K5EQzkMMCHQVs3GshooyR",width:193,height:214,format:"png"},status:"active",explorers:[{name:"CybEthExplorer",url:"http://cybeth1.cyberdeck.eu:8000",icon:"cyberdeck",standard:"none"}],testnet:!1,slug:"cyberdecknet"},bTr={name:"HUMAN Protocol",title:"HUMAN Protocol",chain:"wan-red-ain",rpc:["https://human-protocol.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/wan-red-ain"],faucets:["https://dashboard.humanprotocol.org/faucet"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://www.humanprotocol.org",shortName:"human-mainnet",chainId:1273227453,networkId:1273227453,explorers:[{name:"Blockscout",url:"https://wan-red-ain.explorer.mainnet.skalenodes.com",icon:"human",standard:"EIP3091"}],testnet:!1,slug:"human-protocol"},vTr={name:"Aurora Mainnet",chain:"NEAR",rpc:["https://aurora.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.aurora.dev"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora",chainId:1313161554,networkId:1313161554,explorers:[{name:"aurorascan.dev",url:"https://aurorascan.dev",standard:"EIP3091"}],testnet:!1,slug:"aurora"},wTr={name:"Aurora Testnet",chain:"NEAR",rpc:["https://aurora-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://testnet.aurora.dev/"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-testnet",chainId:1313161555,networkId:1313161555,explorers:[{name:"aurorascan.dev",url:"https://testnet.aurorascan.dev",standard:"EIP3091"}],testnet:!0,slug:"aurora-testnet"},_Tr={name:"Aurora Betanet",chain:"NEAR",rpc:[],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},infoURL:"https://aurora.dev",shortName:"aurora-betanet",chainId:1313161556,networkId:1313161556,testnet:!1,slug:"aurora-betanet"},xTr={name:"Nebula Mainnet",chain:"green-giddy-denebola",rpc:["https://nebula.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/green-giddy-denebola","wss://mainnet-proxy.skalenodes.com/v1/ws/green-giddy-denebola"],faucets:[],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://nebulachain.io/",shortName:"nebula-mainnet",chainId:1482601649,networkId:1482601649,explorers:[{name:"nebula",url:"https://green-giddy-denebola.explorer.mainnet.skalenodes.com",icon:"nebula",standard:"EIP3091"}],testnet:!1,slug:"nebula"},TTr={name:"Calypso NFT Hub (SKALE)",title:"Calypso NFT Hub Mainnet",chain:"honorable-steel-rasalhague",rpc:["https://calypso-nft-hub-skale.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/honorable-steel-rasalhague"],faucets:["https://sfuel.dirtroad.dev"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://calypsohub.network/",shortName:"calypso-mainnet",chainId:1564830818,networkId:1564830818,explorers:[{name:"Blockscout",url:"https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com",icon:"calypso",standard:"EIP3091"}],testnet:!1,slug:"calypso-nft-hub-skale"},ETr={name:"Harmony Mainnet Shard 0",chain:"Harmony",rpc:["https://harmony-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.harmony.one","https://api.s0.t.hmny.io"],faucets:["https://free-online-app.com/faucet-for-eth-evm-chains/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s0",chainId:16666e5,networkId:16666e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.harmony.one",standard:"EIP3091"}],testnet:!1,slug:"harmony-shard-0"},CTr={name:"Harmony Mainnet Shard 1",chain:"Harmony",rpc:["https://harmony-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s1",chainId:1666600001,networkId:1666600001,testnet:!1,slug:"harmony-shard-1"},ITr={name:"Harmony Mainnet Shard 2",chain:"Harmony",rpc:["https://harmony-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s2",chainId:1666600002,networkId:1666600002,testnet:!1,slug:"harmony-shard-2"},kTr={name:"Harmony Mainnet Shard 3",chain:"Harmony",rpc:["https://harmony-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.t.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-s3",chainId:1666600003,networkId:1666600003,testnet:!1,slug:"harmony-shard-3"},ATr={name:"Harmony Testnet Shard 0",chain:"Harmony",rpc:["https://harmony-testnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s0.b.hmny.io"],faucets:["https://faucet.pops.one"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s0",chainId:16667e5,networkId:16667e5,explorers:[{name:"Harmony Testnet Block Explorer",url:"https://explorer.pops.one",standard:"EIP3091"}],testnet:!0,slug:"harmony-testnet-shard-0"},STr={name:"Harmony Testnet Shard 1",chain:"Harmony",rpc:["https://harmony-testnet-shard-1.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s1",chainId:1666700001,networkId:1666700001,testnet:!0,slug:"harmony-testnet-shard-1"},PTr={name:"Harmony Testnet Shard 2",chain:"Harmony",rpc:["https://harmony-testnet-shard-2.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s2.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s2",chainId:1666700002,networkId:1666700002,testnet:!0,slug:"harmony-testnet-shard-2"},RTr={name:"Harmony Testnet Shard 3",chain:"Harmony",rpc:["https://harmony-testnet-shard-3.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s3.b.hmny.io"],faucets:[],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-b-s3",chainId:1666700003,networkId:1666700003,testnet:!0,slug:"harmony-testnet-shard-3"},MTr={name:"Harmony Devnet Shard 0",chain:"Harmony",rpc:["https://harmony-devnet-shard-0.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://api.s1.ps.hmny.io"],faucets:["http://dev.faucet.easynode.one/"],nativeCurrency:{name:"ONE",symbol:"ONE",decimals:18},infoURL:"https://www.harmony.one/",shortName:"hmy-ps-s0",chainId:16669e5,networkId:16669e5,explorers:[{name:"Harmony Block Explorer",url:"https://explorer.ps.hmny.io",standard:"EIP3091"}],testnet:!1,slug:"harmony-devnet-shard-0"},NTr={name:"DataHopper",chain:"HOP",rpc:["https://datahopper.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://23.92.21.121:8545"],faucets:[],nativeCurrency:{name:"DataHoppers",symbol:"HOP",decimals:18},infoURL:"https://www.DataHopper.com",shortName:"hop",chainId:2021121117,networkId:2021121117,testnet:!1,slug:"datahopper"},BTr={name:"Europa SKALE Chain",chain:"europa",icon:{url:"ipfs://bafkreiezcwowhm6xjrkt44cmiu6ml36rhrxx3amcg3cfkcntv2vgcvgbre",width:600,height:600,format:"png"},rpc:["https://europa-skale-chain.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.skalenodes.com/v1/elated-tan-skat","wss://mainnet.skalenodes.com/v1/elated-tan-skat"],faucets:["https://ruby.exchange/faucet.html","https://sfuel.mylilius.com/"],nativeCurrency:{name:"sFUEL",symbol:"sFUEL",decimals:18},infoURL:"https://europahub.network/",shortName:"europa",chainId:2046399126,networkId:2046399126,explorers:[{name:"Blockscout",url:"https://elated-tan-skat.explorer.mainnet.skalenodes.com",standard:"EIP3091"}],parent:{type:"L2",chain:"eip155-1",bridges:[{url:"https://ruby.exchange/bridge.html"}]},testnet:!1,slug:"europa-skale-chain"},DTr={name:"Pirl",chain:"PIRL",rpc:["https://pirl.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://wallrpc.pirl.io"],faucets:[],nativeCurrency:{name:"Pirl Ether",symbol:"PIRL",decimals:18},infoURL:"https://pirl.io",shortName:"pirl",chainId:3125659152,networkId:3125659152,slip44:164,testnet:!1,slug:"pirl"},OTr={name:"OneLedger Testnet Frankenstein",chain:"OLT",icon:{url:"ipfs://QmRhqq4Gp8G9w27ND3LeFW49o5PxcxrbJsqHbpBFtzEMfC",width:225,height:225,format:"png"},rpc:["https://oneledger-testnet-frankenstein.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://frankenstein-rpc.oneledger.network"],faucets:["https://frankenstein-faucet.oneledger.network"],nativeCurrency:{name:"OLT",symbol:"OLT",decimals:18},infoURL:"https://oneledger.io",shortName:"frankenstein",chainId:4216137055,networkId:4216137055,explorers:[{name:"OneLedger Block Explorer",url:"https://frankenstein-explorer.oneledger.network",standard:"EIP3091"}],testnet:!0,slug:"oneledger-testnet-frankenstein"},LTr={name:"Palm Testnet",chain:"Palm",rpc:["https://palm-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-testnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"tpalm",chainId:11297108099,networkId:11297108099,explorers:[{name:"Palm Testnet Explorer",url:"https://explorer.palm-uat.xyz",standard:"EIP3091"}],testnet:!0,slug:"palm-testnet"},qTr={name:"Palm",chain:"Palm",rpc:["https://palm.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://palm-mainnet.infura.io/v3/${INFURA_API_KEY}"],faucets:[],nativeCurrency:{name:"PALM",symbol:"PALM",decimals:18},infoURL:"https://palm.io",shortName:"palm",chainId:11297108109,networkId:11297108109,explorers:[{name:"Palm Explorer",url:"https://explorer.palm.io",standard:"EIP3091"}],testnet:!1,slug:"palm"},FTr={name:"Ntity Mainnet",chain:"Ntity",rpc:["https://ntity.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://rpc.ntity.io"],faucets:[],nativeCurrency:{name:"Ntity",symbol:"NTT",decimals:18},infoURL:"https://ntity.io",shortName:"ntt",chainId:197710212030,networkId:197710212030,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Blockscout",url:"https://blockscout.ntity.io",icon:"ntity",standard:"EIP3091"}],testnet:!1,slug:"ntity"},WTr={name:"Haradev Testnet",chain:"Ntity",rpc:["https://haradev-testnet.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://blockchain.haradev.com"],faucets:[],nativeCurrency:{name:"Ntity Haradev",symbol:"NTTH",decimals:18},infoURL:"https://ntity.io",shortName:"ntt-haradev",chainId:197710212031,networkId:197710212031,icon:{url:"ipfs://QmSW2YhCvMpnwtPGTJAuEK2QgyWfFjmnwcrapUg6kqFsPf",width:711,height:715,format:"svg"},explorers:[{name:"Ntity Haradev Blockscout",url:"https://blockscout.haradev.com",icon:"ntity",standard:"EIP3091"}],testnet:!0,slug:"haradev-testnet"},UTr={name:"Zeniq",chain:"ZENIQ",rpc:["https://zeniq.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://smart.zeniq.network:9545"],faucets:["https://faucet.zeniq.net/"],nativeCurrency:{name:"Zeniq",symbol:"ZENIQ",decimals:18},infoURL:"https://www.zeniq.dev/",shortName:"zeniq",chainId:383414847825,networkId:383414847825,explorers:[{name:"zeniq-smart-chain-explorer",url:"https://smart.zeniq.net",standard:"EIP3091"}],testnet:!1,slug:"zeniq"},HTr={name:"PDC Mainnet",chain:"IPDC",rpc:["https://pdc.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://mainnet.ipdc.io/"],faucets:[],nativeCurrency:{name:"PDC",symbol:"PDC",decimals:18},infoURL:"https://ipdc.io",shortName:"ipdc",chainId:666301171999,networkId:666301171999,explorers:[{name:"ipdcscan",url:"https://scan.ipdc.io",standard:"EIP3091"}],testnet:!1,slug:"pdc"},jTr={name:"Molereum Network",chain:"ETH",rpc:["https://molereum-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}","https://molereum.jdubedition.com"],faucets:[],nativeCurrency:{name:"Molereum Ether",symbol:"MOLE",decimals:18},infoURL:"https://github.com/Jdubedition/molereum",shortName:"mole",chainId:6022140761023,networkId:6022140761023,testnet:!1,slug:"molereum-network"},zTr={name:"Localhost",chain:"ETH",rpc:["http://localhost:8545"],faucets:[],nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},icon:{url:"ipfs://QmcxZHpyJa8T4i63xqjPYrZ6tKrt55tZJpbXcjSDKuKaf9/ethereum/512.png",height:512,width:512,format:"png",sizes:[16,32,64,128,256,512]},shortName:"local",chainId:1337,networkId:1337,testnet:!0,slug:"localhost"},KTr={mode:"http"};function Mqe(r,e){let{thirdwebApiKey:t,alchemyApiKey:n,infuraApiKey:a,mode:i}={...KTr,...e},s=r.rpc.filter(f=>!!(f.startsWith("http")&&i==="http"||f.startsWith("ws")&&i==="ws")),o=s.filter(f=>f.includes("${THIRDWEB_API_KEY}")&&t).map(f=>t?f.replace("${THIRDWEB_API_KEY}",t):f),c=s.filter(f=>f.includes("${ALCHEMY_API_KEY}")&&n).map(f=>n?f.replace("${ALCHEMY_API_KEY}",n):f),u=s.filter(f=>f.includes("${INFURA_API_KEY}")&&a).map(f=>a?f.replace("${INFURA_API_KEY}",a):f),l=s.filter(f=>!f.includes("${")),h=[...o,...u,...c,...l];if(h.length===0)throw new Error(`No RPC available for chainId "${r.chainId}" with mode ${i}`);return h}function GTr(r,e){return Mqe(r,e)[0]}function VTr(r){let[e]=r.rpc;return{name:r.name,chain:r.chain,rpc:[e],nativeCurrency:r.nativeCurrency,shortName:r.shortName,chainId:r.chainId,testnet:r.testnet,slug:r.slug}}function $Tr(r,e){let t=[];return e?.rpc&&(typeof e.rpc=="string"?t=[e.rpc]:t=e.rpc),{...r,rpc:[...t,...r.rpc]}}var mQ=vfr,Nqe=wfr,Bqe=_fr,Dqe=xfr,yQ=Tfr,Oqe=Efr,Lqe=Cfr,qqe=Ifr,Fqe=kfr,gQ=Afr,Wqe=Sfr,Uqe=Pfr,Hqe=Rfr,jqe=Mfr,zqe=Nfr,Kqe=Bfr,Gqe=Dfr,Vqe=Ofr,$qe=Lfr,Yqe=qfr,Jqe=Ffr,Qqe=Wfr,Zqe=Ufr,Xqe=Hfr,eFe=jfr,tFe=zfr,rFe=Kfr,nFe=Gfr,aFe=Vfr,iFe=$fr,sFe=Yfr,oFe=Jfr,cFe=Qfr,uFe=Zfr,lFe=Xfr,dFe=emr,pFe=tmr,hFe=rmr,fFe=nmr,mFe=amr,yFe=imr,gFe=smr,bFe=omr,vFe=cmr,wFe=umr,_Fe=lmr,xFe=dmr,TFe=pmr,EFe=hmr,CFe=fmr,IFe=mmr,kFe=ymr,AFe=gmr,SFe=bmr,bQ=vmr,PFe=wmr,RFe=_mr,MFe=xmr,NFe=Tmr,BFe=Emr,DFe=Cmr,OFe=Imr,LFe=kmr,qFe=Amr,FFe=Smr,WFe=Pmr,UFe=Rmr,HFe=Mmr,jFe=Nmr,zFe=Bmr,KFe=Dmr,GFe=Omr,VFe=Lmr,$Fe=qmr,YFe=Fmr,JFe=Wmr,QFe=Umr,ZFe=Hmr,XFe=jmr,eWe=zmr,tWe=Kmr,rWe=Gmr,nWe=Vmr,aWe=$mr,iWe=Ymr,sWe=Jmr,oWe=Qmr,cWe=Zmr,uWe=Xmr,lWe=e0r,dWe=t0r,pWe=r0r,hWe=n0r,vQ=a0r,fWe=i0r,mWe=s0r,yWe=o0r,gWe=c0r,bWe=u0r,vWe=l0r,wWe=d0r,_We=p0r,xWe=h0r,TWe=f0r,EWe=m0r,CWe=y0r,IWe=g0r,kWe=b0r,AWe=v0r,SWe=w0r,PWe=_0r,RWe=x0r,MWe=T0r,NWe=E0r,BWe=C0r,DWe=I0r,OWe=k0r,LWe=A0r,qWe=S0r,FWe=P0r,WWe=R0r,UWe=M0r,wQ=N0r,HWe=B0r,jWe=D0r,zWe=O0r,KWe=L0r,GWe=q0r,VWe=F0r,$We=W0r,YWe=U0r,JWe=H0r,QWe=j0r,ZWe=z0r,XWe=K0r,eUe=G0r,tUe=V0r,rUe=$0r,nUe=Y0r,aUe=J0r,iUe=Q0r,sUe=Z0r,oUe=X0r,cUe=eyr,uUe=tyr,lUe=ryr,dUe=nyr,pUe=ayr,hUe=iyr,fUe=syr,mUe=oyr,_Q=cyr,yUe=uyr,gUe=lyr,bUe=dyr,vUe=pyr,wUe=hyr,_Ue=fyr,xUe=myr,TUe=yyr,EUe=gyr,CUe=byr,IUe=vyr,kUe=wyr,AUe=_yr,SUe=xyr,PUe=Tyr,RUe=Eyr,MUe=Cyr,NUe=Iyr,BUe=kyr,DUe=Ayr,OUe=Syr,LUe=Pyr,qUe=Ryr,FUe=Myr,WUe=Nyr,UUe=Byr,HUe=Dyr,jUe=Oyr,zUe=Lyr,KUe=qyr,GUe=Fyr,xQ=Wyr,VUe=Uyr,$Ue=Hyr,YUe=jyr,JUe=zyr,QUe=Kyr,ZUe=Gyr,XUe=Vyr,eHe=$yr,tHe=Yyr,rHe=Jyr,nHe=Qyr,aHe=Zyr,iHe=Xyr,sHe=e1r,oHe=t1r,cHe=r1r,uHe=n1r,lHe=a1r,dHe=i1r,pHe=s1r,hHe=o1r,fHe=c1r,mHe=u1r,yHe=l1r,gHe=d1r,bHe=p1r,vHe=h1r,wHe=f1r,_He=m1r,xHe=y1r,THe=g1r,EHe=b1r,CHe=v1r,IHe=w1r,kHe=_1r,AHe=x1r,SHe=T1r,PHe=E1r,RHe=C1r,MHe=I1r,NHe=k1r,BHe=A1r,DHe=S1r,OHe=P1r,LHe=R1r,qHe=M1r,FHe=N1r,WHe=B1r,UHe=D1r,HHe=O1r,jHe=L1r,zHe=q1r,KHe=F1r,GHe=W1r,VHe=U1r,$He=H1r,YHe=j1r,JHe=z1r,QHe=K1r,ZHe=G1r,XHe=V1r,eje=$1r,tje=Y1r,rje=J1r,nje=Q1r,aje=Z1r,ije=X1r,sje=egr,oje=tgr,cje=rgr,uje=ngr,lje=agr,dje=igr,pje=sgr,hje=ogr,fje=cgr,mje=ugr,yje=lgr,gje=dgr,bje=pgr,vje=hgr,wje=fgr,_je=mgr,xje=ygr,Tje=ggr,Eje=bgr,Cje=vgr,Ije=wgr,kje=_gr,Aje=xgr,Sje=Tgr,Pje=Egr,Rje=Cgr,Mje=Igr,Nje=kgr,Bje=Agr,Dje=Sgr,Oje=Pgr,Lje=Rgr,qje=Mgr,Fje=Ngr,Wje=Bgr,Uje=Dgr,Hje=Ogr,jje=Lgr,zje=qgr,Kje=Fgr,Gje=Wgr,Vje=Ugr,$je=Hgr,Yje=jgr,Jje=zgr,Qje=Kgr,Zje=Ggr,Xje=Vgr,eze=$gr,tze=Ygr,rze=Jgr,nze=Qgr,aze=Zgr,ize=Xgr,sze=ebr,oze=tbr,cze=rbr,uze=nbr,lze=abr,dze=ibr,pze=sbr,hze=obr,fze=cbr,mze=ubr,yze=lbr,gze=dbr,bze=pbr,vze=hbr,wze=fbr,_ze=mbr,xze=ybr,Tze=gbr,Eze=bbr,Cze=vbr,Ize=wbr,kze=_br,Aze=xbr,Sze=Tbr,Pze=Ebr,Rze=Cbr,Mze=Ibr,Nze=kbr,Bze=Abr,Dze=Sbr,Oze=Pbr,Lze=Rbr,qze=Mbr,Fze=Nbr,Wze=Bbr,Uze=Dbr,Hze=Obr,jze=Lbr,zze=qbr,Kze=Fbr,Gze=Wbr,Vze=Ubr,$ze=Hbr,Yze=jbr,Jze=zbr,Qze=Kbr,Zze=Gbr,Xze=Vbr,eKe=$br,tKe=Ybr,rKe=Jbr,nKe=Qbr,aKe=Zbr,iKe=Xbr,sKe=evr,oKe=tvr,cKe=rvr,uKe=nvr,lKe=avr,dKe=ivr,pKe=svr,hKe=ovr,fKe=cvr,mKe=uvr,yKe=lvr,gKe=dvr,bKe=pvr,vKe=hvr,wKe=fvr,_Ke=mvr,xKe=yvr,TKe=gvr,EKe=bvr,CKe=vvr,IKe=wvr,kKe=_vr,AKe=xvr,SKe=Tvr,PKe=Evr,RKe=Cvr,MKe=Ivr,NKe=kvr,BKe=Avr,DKe=Svr,OKe=Pvr,LKe=Rvr,qKe=Mvr,FKe=Nvr,WKe=Bvr,UKe=Dvr,HKe=Ovr,jKe=Lvr,zKe=qvr,KKe=Fvr,GKe=Wvr,VKe=Uvr,$Ke=Hvr,YKe=jvr,JKe=zvr,QKe=Kvr,ZKe=Gvr,TQ=Vvr,XKe=$vr,eGe=Yvr,tGe=Jvr,rGe=Qvr,nGe=Zvr,aGe=Xvr,iGe=e2r,sGe=t2r,oGe=r2r,cGe=n2r,uGe=a2r,lGe=i2r,dGe=s2r,pGe=o2r,hGe=c2r,fGe=u2r,mGe=l2r,yGe=d2r,gGe=p2r,bGe=h2r,vGe=f2r,wGe=m2r,_Ge=y2r,xGe=g2r,TGe=b2r,EGe=v2r,CGe=w2r,IGe=_2r,kGe=x2r,AGe=T2r,SGe=E2r,PGe=C2r,RGe=I2r,MGe=k2r,NGe=A2r,BGe=S2r,DGe=P2r,OGe=R2r,LGe=M2r,qGe=N2r,FGe=B2r,WGe=D2r,UGe=O2r,HGe=L2r,jGe=q2r,zGe=F2r,KGe=W2r,GGe=U2r,VGe=H2r,$Ge=j2r,YGe=z2r,JGe=K2r,QGe=G2r,ZGe=V2r,XGe=$2r,eVe=Y2r,tVe=J2r,rVe=Q2r,nVe=Z2r,aVe=X2r,iVe=ewr,sVe=twr,oVe=rwr,cVe=nwr,uVe=awr,lVe=iwr,dVe=swr,pVe=owr,hVe=cwr,fVe=uwr,mVe=lwr,yVe=dwr,gVe=pwr,bVe=hwr,vVe=fwr,wVe=mwr,_Ve=ywr,xVe=gwr,TVe=bwr,EVe=vwr,CVe=wwr,IVe=_wr,kVe=xwr,AVe=Twr,SVe=Ewr,PVe=Cwr,RVe=Iwr,MVe=kwr,NVe=Awr,BVe=Swr,DVe=Pwr,OVe=Rwr,LVe=Mwr,qVe=Nwr,FVe=Bwr,WVe=Dwr,UVe=Owr,HVe=Lwr,jVe=qwr,zVe=Fwr,KVe=Wwr,GVe=Uwr,VVe=Hwr,$Ve=jwr,YVe=zwr,JVe=Kwr,QVe=Gwr,ZVe=Vwr,XVe=$wr,e$e=Ywr,t$e=Jwr,r$e=Qwr,n$e=Zwr,a$e=Xwr,i$e=e5r,s$e=t5r,o$e=r5r,c$e=n5r,u$e=a5r,l$e=i5r,d$e=s5r,p$e=o5r,h$e=c5r,f$e=u5r,m$e=l5r,y$e=d5r,g$e=p5r,b$e=h5r,v$e=f5r,w$e=m5r,_$e=y5r,x$e=g5r,T$e=b5r,E$e=v5r,C$e=w5r,I$e=_5r,k$e=x5r,A$e=T5r,S$e=E5r,P$e=C5r,R$e=I5r,M$e=k5r,N$e=A5r,B$e=S5r,D$e=P5r,O$e=R5r,L$e=M5r,q$e=N5r,F$e=B5r,W$e=D5r,U$e=O5r,H$e=L5r,j$e=q5r,z$e=F5r,K$e=W5r,G$e=U5r,V$e=H5r,$$e=j5r,Y$e=z5r,J$e=K5r,Q$e=G5r,Z$e=V5r,X$e=$5r,EQ=Y5r,eYe=J5r,tYe=Q5r,rYe=Z5r,nYe=X5r,aYe=e3r,CQ=t3r,IQ=r3r,iYe=n3r,sYe=a3r,oYe=i3r,cYe=s3r,uYe=o3r,lYe=c3r,dYe=u3r,pYe=l3r,hYe=d3r,fYe=p3r,mYe=h3r,yYe=f3r,gYe=m3r,bYe=y3r,vYe=g3r,wYe=b3r,_Ye=v3r,xYe=w3r,TYe=_3r,EYe=x3r,CYe=T3r,IYe=E3r,kYe=C3r,AYe=I3r,SYe=k3r,PYe=A3r,RYe=S3r,MYe=P3r,NYe=R3r,BYe=M3r,DYe=N3r,OYe=B3r,LYe=D3r,qYe=O3r,FYe=L3r,WYe=q3r,UYe=F3r,HYe=W3r,jYe=U3r,zYe=H3r,KYe=j3r,GYe=z3r,VYe=K3r,kQ=G3r,$Ye=V3r,YYe=$3r,JYe=Y3r,QYe=J3r,ZYe=Q3r,XYe=Z3r,eJe=X3r,tJe=e_r,rJe=t_r,nJe=r_r,aJe=n_r,iJe=a_r,sJe=i_r,oJe=s_r,cJe=o_r,uJe=c_r,lJe=u_r,dJe=l_r,pJe=d_r,hJe=p_r,fJe=h_r,mJe=f_r,yJe=m_r,gJe=y_r,bJe=g_r,vJe=b_r,wJe=v_r,_Je=w_r,xJe=__r,TJe=x_r,EJe=T_r,CJe=E_r,IJe=C_r,kJe=I_r,AJe=k_r,SJe=A_r,PJe=S_r,RJe=P_r,MJe=R_r,NJe=M_r,BJe=N_r,DJe=B_r,OJe=D_r,LJe=O_r,qJe=L_r,FJe=q_r,WJe=F_r,UJe=W_r,HJe=U_r,jJe=H_r,zJe=j_r,KJe=z_r,GJe=K_r,VJe=G_r,$Je=V_r,YJe=$_r,JJe=Y_r,QJe=J_r,ZJe=Q_r,XJe=Z_r,eQe=X_r,AQ=exr,tQe=txr,rQe=rxr,nQe=nxr,aQe=axr,iQe=ixr,sQe=sxr,oQe=oxr,cQe=cxr,uQe=uxr,lQe=lxr,dQe=dxr,pQe=pxr,hQe=hxr,fQe=fxr,mQe=mxr,yQe=yxr,gQe=gxr,bQe=bxr,vQe=vxr,wQe=wxr,_Qe=_xr,xQe=xxr,TQe=Txr,EQe=Exr,CQe=Cxr,IQe=Ixr,kQe=kxr,AQe=Axr,SQe=Sxr,PQe=Pxr,RQe=Rxr,MQe=Mxr,NQe=Nxr,BQe=Bxr,DQe=Dxr,OQe=Oxr,LQe=Lxr,qQe=qxr,FQe=Fxr,WQe=Wxr,UQe=Uxr,HQe=Hxr,jQe=jxr,zQe=zxr,KQe=Kxr,GQe=Gxr,VQe=Vxr,$Qe=$xr,YQe=Yxr,JQe=Jxr,QQe=Qxr,ZQe=Zxr,XQe=Xxr,eZe=eTr,tZe=tTr,rZe=rTr,nZe=nTr,aZe=aTr,iZe=iTr,sZe=sTr,oZe=oTr,cZe=cTr,uZe=uTr,lZe=lTr,dZe=dTr,pZe=pTr,hZe=hTr,fZe=fTr,mZe=mTr,yZe=yTr,gZe=gTr,bZe=bTr,vZe=vTr,wZe=wTr,_Ze=_Tr,xZe=xTr,TZe=TTr,EZe=ETr,CZe=CTr,IZe=ITr,kZe=kTr,AZe=ATr,SZe=STr,PZe=PTr,RZe=RTr,MZe=MTr,NZe=NTr,BZe=BTr,DZe=DTr,OZe=OTr,LZe=LTr,qZe=qTr,FZe=FTr,WZe=WTr,UZe=UTr,HZe=HTr,jZe=jTr,SQ=zTr,YTr=[mQ,yQ,wQ,kQ,EQ,AQ,gQ,xQ,bQ,vQ,_Q,TQ,IQ,CQ,SQ],PQ=[mQ,Nqe,Bqe,Dqe,yQ,Oqe,Lqe,qqe,Fqe,gQ,Wqe,Uqe,Hqe,jqe,zqe,Kqe,Gqe,Vqe,$qe,Yqe,Jqe,Qqe,Zqe,Xqe,eFe,tFe,rFe,nFe,aFe,iFe,sFe,oFe,cFe,uFe,lFe,dFe,pFe,hFe,fFe,mFe,yFe,gFe,bFe,vFe,wFe,_Fe,xFe,TFe,EFe,CFe,IFe,kFe,AFe,SFe,bQ,PFe,RFe,MFe,NFe,BFe,DFe,OFe,LFe,qFe,FFe,WFe,UFe,HFe,jFe,zFe,KFe,GFe,VFe,$Fe,YFe,JFe,QFe,ZFe,XFe,eWe,tWe,rWe,nWe,aWe,iWe,sWe,oWe,cWe,uWe,lWe,dWe,pWe,hWe,vQ,fWe,mWe,yWe,gWe,bWe,vWe,wWe,_We,xWe,TWe,EWe,CWe,IWe,kWe,AWe,SWe,PWe,RWe,MWe,NWe,BWe,DWe,OWe,LWe,qWe,FWe,WWe,UWe,wQ,HWe,jWe,zWe,KWe,GWe,VWe,$We,YWe,JWe,QWe,ZWe,XWe,eUe,tUe,rUe,nUe,aUe,iUe,sUe,oUe,cUe,uUe,lUe,dUe,pUe,hUe,fUe,mUe,_Q,yUe,gUe,bUe,vUe,wUe,_Ue,xUe,TUe,EUe,CUe,IUe,kUe,AUe,SUe,PUe,RUe,MUe,NUe,BUe,DUe,OUe,LUe,qUe,FUe,WUe,UUe,HUe,jUe,zUe,KUe,GUe,xQ,VUe,$Ue,YUe,JUe,QUe,ZUe,XUe,eHe,tHe,rHe,nHe,aHe,iHe,sHe,oHe,cHe,uHe,lHe,dHe,pHe,hHe,fHe,mHe,yHe,gHe,bHe,vHe,wHe,_He,xHe,THe,EHe,CHe,IHe,kHe,AHe,SHe,PHe,RHe,MHe,NHe,BHe,DHe,OHe,LHe,qHe,FHe,WHe,UHe,HHe,jHe,zHe,KHe,GHe,VHe,$He,YHe,JHe,QHe,ZHe,XHe,eje,tje,rje,nje,aje,ije,sje,oje,cje,uje,lje,dje,pje,hje,fje,mje,yje,gje,bje,vje,wje,_je,xje,Tje,Eje,Cje,Ije,kje,Aje,Sje,Pje,Rje,Mje,Nje,Bje,Dje,Oje,Lje,qje,Fje,Wje,Uje,Hje,jje,zje,Kje,Gje,Vje,$je,Yje,Jje,Qje,Zje,Xje,eze,tze,rze,nze,aze,ize,sze,oze,cze,uze,lze,dze,pze,hze,fze,mze,yze,gze,bze,vze,wze,_ze,xze,Tze,Eze,Cze,Ize,kze,Aze,Sze,Pze,Rze,Mze,Nze,Bze,Dze,Oze,Lze,qze,Fze,Wze,Uze,Hze,jze,zze,Kze,Gze,Vze,$ze,Yze,Jze,Qze,Zze,Xze,eKe,tKe,rKe,nKe,aKe,iKe,sKe,oKe,cKe,uKe,lKe,dKe,pKe,hKe,fKe,mKe,yKe,gKe,bKe,vKe,wKe,_Ke,xKe,TKe,EKe,CKe,IKe,kKe,AKe,SKe,PKe,RKe,MKe,NKe,BKe,DKe,OKe,LKe,qKe,FKe,WKe,UKe,HKe,jKe,zKe,KKe,GKe,VKe,$Ke,YKe,JKe,QKe,ZKe,TQ,XKe,eGe,tGe,rGe,nGe,aGe,iGe,sGe,oGe,cGe,uGe,lGe,dGe,pGe,hGe,fGe,mGe,yGe,gGe,bGe,vGe,wGe,_Ge,xGe,TGe,EGe,CGe,IGe,kGe,AGe,SGe,PGe,RGe,MGe,NGe,BGe,DGe,OGe,LGe,qGe,FGe,WGe,UGe,HGe,jGe,zGe,KGe,GGe,VGe,$Ge,YGe,JGe,QGe,ZGe,XGe,eVe,tVe,rVe,nVe,aVe,iVe,sVe,oVe,cVe,uVe,lVe,dVe,pVe,hVe,fVe,mVe,yVe,gVe,bVe,vVe,wVe,_Ve,xVe,TVe,EVe,CVe,IVe,kVe,AVe,SVe,PVe,RVe,MVe,NVe,BVe,DVe,OVe,LVe,qVe,FVe,WVe,UVe,HVe,jVe,zVe,KVe,GVe,VVe,$Ve,YVe,JVe,QVe,ZVe,XVe,e$e,t$e,r$e,n$e,a$e,i$e,s$e,o$e,c$e,u$e,l$e,d$e,p$e,h$e,f$e,m$e,y$e,g$e,b$e,v$e,w$e,_$e,x$e,T$e,E$e,C$e,I$e,k$e,A$e,S$e,P$e,R$e,M$e,N$e,B$e,D$e,O$e,L$e,q$e,F$e,W$e,U$e,H$e,j$e,z$e,K$e,G$e,V$e,$$e,Y$e,J$e,Q$e,Z$e,X$e,EQ,eYe,tYe,rYe,nYe,aYe,CQ,IQ,iYe,sYe,oYe,cYe,uYe,lYe,dYe,pYe,hYe,fYe,mYe,yYe,gYe,bYe,vYe,wYe,_Ye,xYe,TYe,EYe,CYe,IYe,kYe,AYe,SYe,PYe,RYe,MYe,NYe,BYe,DYe,OYe,LYe,qYe,FYe,WYe,UYe,HYe,jYe,zYe,KYe,GYe,VYe,kQ,$Ye,YYe,JYe,QYe,ZYe,XYe,eJe,tJe,rJe,nJe,aJe,iJe,sJe,oJe,cJe,uJe,lJe,dJe,pJe,hJe,fJe,mJe,yJe,gJe,bJe,vJe,wJe,_Je,xJe,TJe,EJe,CJe,IJe,kJe,AJe,SJe,PJe,RJe,MJe,NJe,BJe,DJe,OJe,LJe,qJe,FJe,WJe,UJe,HJe,jJe,zJe,KJe,GJe,VJe,$Je,YJe,JJe,QJe,ZJe,XJe,eQe,AQ,tQe,rQe,nQe,aQe,iQe,sQe,oQe,cQe,uQe,lQe,dQe,pQe,hQe,fQe,mQe,yQe,gQe,bQe,vQe,wQe,_Qe,xQe,TQe,EQe,CQe,IQe,kQe,AQe,SQe,PQe,RQe,MQe,NQe,BQe,DQe,OQe,LQe,qQe,FQe,WQe,UQe,HQe,jQe,zQe,KQe,GQe,VQe,$Qe,YQe,JQe,QQe,ZQe,XQe,eZe,tZe,rZe,nZe,aZe,iZe,sZe,oZe,cZe,uZe,lZe,dZe,pZe,hZe,fZe,mZe,yZe,gZe,bZe,vZe,wZe,_Ze,xZe,TZe,EZe,CZe,IZe,kZe,AZe,SZe,PZe,RZe,MZe,NZe,BZe,DZe,OZe,LZe,qZe,FZe,WZe,UZe,HZe,jZe,SQ];function JTr(r){let e=PQ.find(t=>t.chainId===r);if(!e)throw new Error(`Chain with chainId "${r}" not found`);return e}function QTr(r){let e=PQ.find(t=>t.slug===r);if(!e)throw new Error(`Chain with slug "${r}" not found`);return e}M.AcalaMandalaTestnet=uHe;M.AcalaNetwork=AHe;M.AcalaNetworkTestnet=dHe;M.AerochainTestnet=SHe;M.AiozNetwork=JWe;M.AiozNetworkTestnet=aGe;M.Airdao=f$e;M.AirdaoTestnet=C$e;M.Aitd=rze;M.AitdTestnet=nze;M.Akroma=SJe;M.Alaya=PJe;M.AlayaDevTestnet=RJe;M.AlphNetwork=uVe;M.Altcoinchain=vKe;M.Alyx=tze;M.AlyxChainTestnet=UWe;M.AmbrosChain=UHe;M.AmeChain=XWe;M.Amstar=oze;M.AmstarTestnet=Mje;M.Anduschain=zQe;M.AnytypeEvmChain=vze;M.Aquachain=nZe;M.Arbitrum=EQ;M.ArbitrumGoerli=AQ;M.ArbitrumNova=eYe;M.ArbitrumOnXdai=oUe;M.ArbitrumRinkeby=eQe;M.ArcologyTestnet=SWe;M.Arevia=bKe;M.ArmoniaEvaChain=KWe;M.ArmoniaEvaChainTestnet=GWe;M.ArtisSigma1=qJe;M.ArtisTestnetTau1=FJe;M.Astar=cHe;M.Astra=KVe;M.AstraTestnet=VVe;M.Atelier=Dze;M.Atheios=mze;M.Athereum=aYe;M.AtoshiTestnet=YWe;M.Aurora=vZe;M.AuroraBetanet=_Ze;M.AuroraTestnet=wZe;M.AutobahnNetwork=cYe;M.AutonityBakerlooThamesTestnet=aZe;M.AutonityPiccadillyThamesTestnet=iZe;M.AuxiliumNetwork=ZQe;M.Avalanche=IQ;M.AvalancheFuji=CQ;M.Aves=G$e;M.BandaiNamcoResearchVerse=FHe;M.Base=aVe;M.BaseGoerli=$Ye;M.BeagleMessagingChain=hze;M.BeanecoSmartchain=dQe;M.BearNetworkChain=pQe;M.BearNetworkChainTestnet=fQe;M.BeoneChainTestnet=XGe;M.BeresheetBereevmTestnet=Qze;M.Berylbit=EVe;M.BeverlyHills=QYe;M.Bifrost=BKe;M.BifrostTestnet=pYe;M.Binance=bQ;M.BinanceTestnet=vQ;M.Bitcichain=Pze;M.BitcichainTestnet=Rze;M.BitcoinEvm=pKe;M.Bitgert=j$e;M.Bitindi=nGe;M.BitindiTestnet=rGe;M.BitkubChain=hWe;M.BitkubChainTestnet=N$e;M.Bittex=GKe;M.BittorrentChain=sUe;M.BittorrentChainTestnet=bje;M.Bityuan=PKe;M.BlackfortExchangeNetwork=fGe;M.BlackfortExchangeNetworkTestnet=dGe;M.BlgTestnet=r$e;M.BlockchainGenesis=LVe;M.BlockchainStation=wHe;M.BlockchainStationTestnet=_He;M.BlocktonBlockchain=tVe;M.Bloxberg=_Ve;M.Bmc=tUe;M.BmcTestnet=rUe;M.BobaAvax=iYe;M.BobaBnb=_Ye;M.BobaBnbTestnet=PVe;M.BobaNetwork=_Ue;M.BobaNetworkGoerliTestnet=SKe;M.BobaNetworkRinkebyTestnet=nFe;M.BobabaseTestnet=Xje;M.Bobabeam=Zje;M.BobafujiTestnet=oGe;M.Bobaopera=kUe;M.BobaoperaTestnet=XKe;M.BombChain=gKe;M.BombChainTestnet=wKe;M.BonNetwork=Sze;M.Bosagora=cKe;M.Brochain=fJe;M.Bronos=xje;M.BronosTestnet=_je;M.Btachain=yze;M.BtcixNetwork=v$e;M.Callisto=BHe;M.CallistoTestnet=w$e;M.CalypsoNftHubSkale=TZe;M.CalypsoNftHubSkaleTestnet=pZe;M.CaminoCChain=JUe;M.Candle=aHe;M.Canto=HGe;M.CantoTestnet=THe;M.CatecoinChain=fze;M.Celo=tYe;M.CeloAlfajoresTestnet=oYe;M.CeloBaklavaTestnet=SYe;M.CennznetAzalea=x$e;M.CennznetNikau=MKe;M.CennznetRata=RKe;M.ChainVerse=TGe;M.Cheapeth=kHe;M.ChiadoTestnet=qVe;M.ChilizScovilleTestnet=YYe;M.CicChain=sze;M.CicChainTestnet=Gje;M.Cloudtx=F$e;M.CloudtxTestnet=W$e;M.Cloudwalk=Kze;M.CloudwalkTestnet=zze;M.CloverTestnet=yje;M.ClvParachain=gje;M.Cmp=UJe;M.CmpTestnet=sQe;M.CoinexSmartChain=IFe;M.CoinexSmartChainTestnet=kFe;M.ColumbusTestNetwork=QUe;M.CondorTestNetwork=IJe;M.Condrieu=BYe;M.ConfluxEspace=vje;M.ConfluxEspaceTestnet=zFe;M.ConstaTestnet=HUe;M.CoreBlockchain=Aje;M.CoreBlockchainTestnet=kje;M.CreditSmartchain=s$e;M.CronosBeta=eFe;M.CronosTestnet=OUe;M.Crossbell=$Ke;M.CryptoEmergency=nUe;M.Cryptocoinpay=HVe;M.CryptokylinTestnet=pWe;M.Crystaleum=hJe;M.CtexScanBlockchain=lze;M.CubeChain=Cze;M.CubeChainTestnet=Ize;M.Cyberdecknet=gZe;M.DChain=Nze;M.DarwiniaCrabNetwork=vFe;M.DarwiniaNetwork=_Fe;M.DarwiniaPangolinTestnet=bFe;M.DarwiniaPangoroTestnet=wFe;M.Datahopper=NZe;M.DaxChain=jWe;M.DbchainTestnet=WFe;M.Debank=AWe;M.DebankTestnet=kWe;M.DebounceSubnetTestnet=OKe;M.DecentralizedWeb=DWe;M.DecimalSmartChain=$Fe;M.DecimalSmartChainTestnet=NJe;M.DefichainEvmNetwork=Pje;M.DefichainEvmNetworkTestnet=Rje;M.Dehvo=CWe;M.DexalotSubnet=nQe;M.DexalotSubnetTestnet=rQe;M.DexitNetwork=WHe;M.DfkChain=gYe;M.DfkChainTest=BUe;M.DiodePrenet=zqe;M.DiodeTestnetStaging=Hqe;M.DithereumTestnet=uFe;M.Dogcoin=Sje;M.DogcoinTestnet=IVe;M.Dogechain=Uze;M.DogechainTestnet=oHe;M.DokenSuperChain=AYe;M.DosFujiSubnet=eze;M.DoubleAChain=ZUe;M.DoubleAChainTestnet=XUe;M.DracNetwork=YKe;M.DraconesFinancialServices=nVe;M.Dxchain=dFe;M.DxchainTestnet=KFe;M.Dyno=JKe;M.DynoTestnet=QKe;M.Ecoball=aKe;M.EcoballTestnetEspuma=iKe;M.Ecredits=RYe;M.EcreditsTestnet=MYe;M.EdexaTestnet=Wze;M.EdgewareEdgeevm=Jze;M.Ekta=Fze;M.ElaDidSidechain=Qqe;M.ElaDidSidechainTestnet=Zqe;M.ElastosSmartChain=Yqe;M.ElastosSmartChainTestnet=Jqe;M.Eleanor=Bze;M.EllaTheHeart=qGe;M.Ellaism=LFe;M.EluvioContentFabric=TQe;M.Elysium=ize;M.ElysiumTestnet=aze;M.EmpireNetwork=VKe;M.EnduranceSmartChain=yHe;M.Energi=J$e;M.EnergiTestnet=hYe;M.EnergyWebChain=fUe;M.EnergyWebVoltaTestnet=HYe;M.EnnothemProterozoic=xFe;M.EnnothemTestnetPioneer=TFe;M.Enterchain=Wje;M.Enuls=PWe;M.EnulsTestnet=RWe;M.Eos=MFe;M.Eraswap=bGe;M.Ethereum=mQ;M.EthereumClassic=BFe;M.EthereumClassicTestnetKotti=Oqe;M.EthereumClassicTestnetMorden=DFe;M.EthereumClassicTestnetMordor=OFe;M.EthereumFair=oQe;M.Ethergem=qze;M.Etherinc=yWe;M.EtherliteChain=EWe;M.EthersocialNetwork=q$e;M.EthoProtocol=EQe;M.Etica=kYe;M.EtndChainS=CJe;M.EuropaSkaleChain=BZe;M.Eurus=pje;M.EurusTestnet=Lze;M.Evanesco=hKe;M.EvanescoTestnet=Lje;M.Evmos=TVe;M.EvmosTestnet=xVe;M.EvriceNetwork=hje;M.Excelon=YQe;M.ExcoincialChain=QQe;M.ExcoincialChainVoltaTestnet=JQe;M.ExosamaNetwork=sKe;M.ExpanseNetwork=Nqe;M.ExzoNetwork=Uje;M.EzchainCChain=kKe;M.EzchainCChainTestnet=AKe;M.FXCoreNetwork=nHe;M.Factory127=qWe;M.FantasiaChain=qHe;M.Fantom=_Q;M.FantomTestnet=TQ;M.FastexChainTestnet=tQe;M.Fibonacci=t$e;M.Filecoin=SUe;M.FilecoinButterflyTestnet=RQe;M.FilecoinCalibrationTestnet=zJe;M.FilecoinHyperspaceTestnet=DKe;M.FilecoinLocalTestnet=eZe;M.FilecoinWallabyTestnet=H$e;M.Findora=uKe;M.FindoraForge=dKe;M.FindoraTestnet=lKe;M.Firechain=rHe;M.FirenzeTestNetwork=GYe;M.Flachain=XQe;M.Flare=jqe;M.FlareTestnetCoston=Kqe;M.FlareTestnetCoston2=IWe;M.Floripa=dYe;M.Fncy=GFe;M.FncyTestnet=xQe;M.FreightTrustNetwork=uUe;M.Frenchain=sYe;M.FrenchainTestnet=$Ue;M.FrontierOfDreamsTestnet=y$e;M.Fuse=NWe;M.FuseSparknet=BWe;M.Fusion=z$e;M.FusionTestnet=uYe;M.Ganache=IGe;M.GarizonStage0=cWe;M.GarizonStage1=uWe;M.GarizonStage2=lWe;M.GarizonStage3=dWe;M.GarizonTestnetStage0=jHe;M.GarizonTestnetStage1=zHe;M.GarizonTestnetStage2=KHe;M.GarizonTestnetStage3=GHe;M.Gatechain=aWe;M.GatechainTestnet=nWe;M.GatherDevnetNetwork=fZe;M.GatherNetwork=oZe;M.GatherTestnetNetwork=hZe;M.GearZeroNetwork=eHe;M.GearZeroNetworkTestnet=HJe;M.Genechain=XFe;M.GenesisCoin=CVe;M.GenesisL1=aFe;M.GenesisL1Testnet=tFe;M.GiantMammoth=wVe;M.GitshockCartenzTestnet=Aze;M.Gnosis=mWe;M.Gochain=NFe;M.GochainTestnet=U$e;M.Godwoken=UYe;M.GodwokenTestnetV1=WYe;M.Goerli=yQ;M.GoldSmartChain=NGe;M.GoldSmartChainTestnet=VYe;M.GonChain=DVe;M.Gooddata=cFe;M.GooddataTestnet=oFe;M.GraphlinqBlockchain=fHe;M.Gton=cje;M.GtonTestnet=mYe;M.Haic=RHe;M.Halo=Vje;M.HammerChain=M$e;M.Hapchain=FQe;M.HapchainTestnet=$Je;M.HaqqChainTestnet=bYe;M.HaqqNetwork=YVe;M.HaradevTestnet=WZe;M.HarmonyDevnetShard0=MZe;M.HarmonyShard0=EZe;M.HarmonyShard1=CZe;M.HarmonyShard2=IZe;M.HarmonyShard3=kZe;M.HarmonyTestnetShard0=AZe;M.HarmonyTestnetShard1=SZe;M.HarmonyTestnetShard2=PZe;M.HarmonyTestnetShard3=RZe;M.Hashbit=$Ve;M.HaymoTestnet=LJe;M.HazlorTestnet=zGe;M.Hedera=xUe;M.HederaLocalnet=CUe;M.HederaPreviewnet=EUe;M.HederaTestnet=TUe;M.HertzNetwork=B$e;M.HighPerformanceBlockchain=vUe;M.HikaNetworkTestnet=CGe;M.HomeVerse=b$e;M.HooSmartChain=jFe;M.HooSmartChainTestnet=QWe;M.HorizenYumaTestnet=gze;M.Htmlcoin=cGe;M.HumanProtocol=bZe;M.Humanode=vGe;M.HuobiEcoChain=FWe;M.HuobiEcoChainTestnet=yUe;M.HyperonchainTestnet=zUe;M.Idchain=VFe;M.IexecSidechain=WWe;M.Imversed=MQe;M.ImversedTestnet=NQe;M.Iolite=GQe;M.IoraChain=Oje;M.IotexNetwork=uGe;M.IotexNetworkTestnet=lGe;M.IposNetwork=yZe;M.IvarChain=JYe;M.IvarChainTestnet=m$e;M.J2oTaro=V$e;M.Jellie=BJe;M.JfinChain=HKe;M.JibchainL1=vVe;M.JoysDigital=tZe;M.JoysDigitalTestnet=sZe;M.KaibaLightningChainTestnet=bWe;M.Kardiachain=Xqe;M.KaruraNetwork=bHe;M.KaruraNetworkTestnet=lHe;M.KavaEvm=mKe;M.KavaEvmTestnet=fKe;M.Kcc=PUe;M.KccTestnet=RUe;M.Kekchain=ZJe;M.KekchainKektest=XJe;M.Kerleano=Tze;M.Kiln=kQe;M.Kintsugi=IQe;M.KlaytnCypress=eVe;M.KlaytnTestnetBaobab=uje;M.Klyntar=WGe;M.Kortho=TKe;M.Korthotest=rVe;M.Kovan=gFe;M.LaTestnet=GUe;M.Lachain=pUe;M.LachainTestnet=hUe;M.LambdaTestnet=ZYe;M.LatamBlockchainResilTestnet=ZWe;M.Lightstreams=$We;M.LightstreamsTestnet=VWe;M.Lisinski=jUe;M.LiveplexOracleevm=fYe;M.Localhost=SQ;M.Loopnetwork=l$e;M.LucidBlockchain=PHe;M.LuckyNetwork=sje;M.Ludan=bze;M.LycanChain=xHe;M.Maistestsubnet=rZe;M.Mammoth=bVe;M.Mantle=mGe;M.MantleTestnet=yGe;M.Map=I$e;M.MapMakalu=lUe;M.MaroBlockchain=dVe;M.Mas=OJe;M.Mathchain=Nje;M.MathchainTestnet=Bje;M.MdglTestnet=VGe;M.MemoSmartChain=aje;M.MeshnyanTestnet=hHe;M.Metacodechain=KKe;M.Metadium=Wqe;M.MetadiumTestnet=Uqe;M.Metadot=p$e;M.MetadotTestnet=h$e;M.MetalCChain=YJe;M.MetalTahoeCChain=JJe;M.Metaplayerone=oKe;M.Meter=tWe;M.MeterTestnet=rWe;M.MetisAndromeda=Tje;M.MetisGoerliTestnet=pHe;M.MilkomedaA1=jze;M.MilkomedaA1Testnet=AJe;M.MilkomedaC1=Hze;M.MilkomedaC1Testnet=kJe;M.MintmeComCoin=R$e;M.Mix=YFe;M.MixinVirtualMachine=jYe;M.Moac=Eje;M.MoacTestnet=cUe;M.MolereumNetwork=jZe;M.MoonbaseAlpha=Jje;M.Moonbeam=$je;M.Moonriver=Yje;M.Moonrock=Qje;M.Multivac=PYe;M.Mumbai=kQ;M.MunodeTestnet=ZHe;M.Musicoin=LQe;M.MyownTestnet=MVe;M.MythicalChain=MJe;M.Nahmii=_Ge;M.Nahmii3=eGe;M.Nahmii3Testnet=tGe;M.NahmiiTestnet=xGe;M.Nebula=xZe;M.NebulaStaging=mZe;M.NebulaTestnet=_We;M.NeonEvm=uZe;M.NeonEvmDevnet=cZe;M.NeonEvmTestnet=lZe;M.NepalBlockchainNetwork=rje;M.Newton=fje;M.NewtonTestnet=dje;M.NovaNetwork=iWe;M.Ntity=FZe;M.Numbers=WVe;M.NumbersTestnet=UVe;M.OasisEmerald=nYe;M.OasisEmeraldTestnet=rYe;M.OasisSapphire=A$e;M.OasisSapphireTestnet=S$e;M.Oasischain=D$e;M.Oasys=mUe;M.Octaspace=mQe;M.Oho=Q$e;M.Okbchain=iUe;M.OkbchainTestnet=aUe;M.OkexchainTestnet=qFe;M.Okxchain=FFe;M.OmPlatform=Kje;M.Omax=AUe;M.Omchain=T$e;M.Oneledger=dZe;M.OneledgerTestnetFrankenstein=OZe;M.Ontology=RFe;M.OntologyTestnet=kGe;M.OnusChain=Oze;M.OnusChainTestnet=Mze;M.OoneChainTestnet=KJe;M.Oort=XHe;M.OortAscraeus=tje;M.OortDev=SVe;M.OortHuygens=eje;M.OpalTestnetByUnique=fVe;M.Openchain=iQe;M.OpenchainTestnet=IHe;M.Openpiece=AFe;M.OpenpieceTestnet=HWe;M.Openvessel=DQe;M.OpsideTestnet=k$e;M.Optimism=gQ;M.OptimismBedrockGoerliAlphaTestnet=O$e;M.OptimismGoerli=xQ;M.OptimismKovan=HFe;M.OptimismOnGnosis=IUe;M.OpulentXBeta=Z$e;M.OrigintrailParachain=eKe;M.OrlandoChain=NKe;M.Oychain=LWe;M.OychainTestnet=OWe;M.P12Chain=_$e;M.PaletteChain=xze;M.Palm=qZe;M.PalmTestnet=LZe;M.Pandoproject=jKe;M.PandoprojectTestnet=zKe;M.ParibuNet=WKe;M.ParibuNetTestnet=UKe;M.Pdc=HZe;M.Pegglecoin=X$e;M.PepchainChurchill=jQe;M.PhiNetworkV1=sGe;M.PhiNetworkV2=zWe;M.Phoenix=o$e;M.PieceTestnet=L$e;M.Pirl=DZe;M.PixieChain=MGe;M.PixieChainTestnet=gHe;M.Planq=FGe;M.Platon=DJe;M.PlatonDevTestnet2=PQe;M.PlianMain=SQe;M.PlianSubchain1=qQe;M.PlianTestnetMain=KQe;M.PlianTestnetSubchain1=WQe;M.PoaNetworkCore=fWe;M.PoaNetworkSokol=JFe;M.Pocrnet=CKe;M.Polis=VJe;M.PolisTestnet=GJe;M.Polygon=wQ;M.PolygonZkevmTestnet=uze;M.PolyjuiceTestnet=FYe;M.Polysmartchain=DGe;M.Popcateum=Fje;M.PortalFantasyChain=VHe;M.PortalFantasyChainTest=MHe;M.PosichainDevnetShard0=wQe;M.PosichainDevnetShard1=_Qe;M.PosichainShard0=bQe;M.PosichainTestnetShard0=vQe;M.Primuschain=QFe;M.ProofOfMemes=g$e;M.ProtonTestnet=TWe;M.ProxyNetworkTestnet=wje;M.Publicmint=Yze;M.PublicmintDevnet=Vze;M.PublicmintTestnet=$ze;M.Pulsechain=UUe;M.PulsechainTestnet=YHe;M.PulsechainTestnetV2b=JHe;M.PulsechainTestnetV3=QHe;M.Q=$$e;M.QTestnet=Y$e;M.Qeasyweb3Testnet=AVe;M.Qitmeer=NHe;M.QitmeerNetworkTestnet=ZGe;M.Ql1=CHe;M.Ql1Testnet=OQe;M.QuadransBlockchain=jVe;M.QuadransBlockchainTestnet=zVe;M.Quarkblockchain=$Qe;M.QuarkchainDevnetRoot=mJe;M.QuarkchainDevnetShard0=yJe;M.QuarkchainDevnetShard1=gJe;M.QuarkchainDevnetShard2=bJe;M.QuarkchainDevnetShard3=vJe;M.QuarkchainDevnetShard4=wJe;M.QuarkchainDevnetShard5=_Je;M.QuarkchainDevnetShard6=xJe;M.QuarkchainDevnetShard7=TJe;M.QuarkchainRoot=tJe;M.QuarkchainShard0=rJe;M.QuarkchainShard1=nJe;M.QuarkchainShard2=aJe;M.QuarkchainShard3=iJe;M.QuarkchainShard4=sJe;M.QuarkchainShard5=oJe;M.QuarkchainShard6=cJe;M.QuarkchainShard7=uJe;M.QuartzByUnique=hVe;M.Quokkacoin=nKe;M.RabbitAnalogTestnetChain=Eze;M.RangersProtocol=Xze;M.RangersProtocolTestnetRobin=kVe;M.Realchain=MWe;M.RedlightChain=IKe;M.ReiChain=vYe;M.ReiChainTestnet=wYe;M.ReiNetwork=lYe;M.Resincoin=zYe;M.RikezaNetwork=cze;M.RikezaNetworkTestnet=a$e;M.RiniaTestnet=$He;M.Rinkeby=Dqe;M.RiseOfTheWarbotsTestnet=jGe;M.Ropsten=Bqe;M.Rsk=iFe;M.RskTestnet=sFe;M.Rupaya=YUe;M.Saakuru=BQe;M.SaakuruTestnet=WJe;M.Sakura=mje;M.SanrChain=ZVe;M.SapphireByUnique=mVe;M.Sardis=yYe;M.SardisTestnet=QVe;M.Scolcoin=NYe;M.ScolcoinWeichainTestnet=RGe;M.Scroll=cQe;M.ScrollAlphaTestnet=uQe;M.ScrollPreAlphaTestnet=lQe;M.SeedcoinNetwork=pFe;M.Seele=eUe;M.Sepolia=HQe;M.Setheum=gUe;M.ShardeumLiberty1X=$Ge;M.ShardeumLiberty2X=YGe;M.ShardeumSphinx1X=JGe;M.Sherpax=dze;M.SherpaxTestnet=pze;M.Shibachain=rFe;M.Shiden=DUe;M.Shyft=UGe;M.ShyftTestnet=JVe;M.SiberiumNetwork=EJe;M.SingularityZero=e$e;M.SingularityZeroTestnet=XVe;M.SiriusnetV2=dUe;M.Sjatsh=OVe;M.SmartBitcoinCash=NVe;M.SmartBitcoinCashTestnet=BVe;M.SmartHostTeknolojiTestnet=Dje;M.Smartmesh=VQe;M.SocialSmartChain=jJe;M.SongbirdCanaryNetwork=$qe;M.Soterone=UFe;M.Soverun=UQe;M.SoverunTestnet=pJe;M.Sps=i$e;M.SpsTestnet=u$e;M.StarSocialTestnet=vHe;M.StepNetwork=zje;M.StepTestnet=n$e;M.Stratos=rKe;M.StratosTestnet=tKe;M.StreamuxBlockchain=QGe;M.SurBlockchainNetwork=bUe;M.Susono=c$e;M.SxNetwork=KUe;M.SxNetworkTestnet=mHe;M.Syscoin=PFe;M.SyscoinRolluxTestnet=xYe;M.SyscoinTanenbaumTestnet=EGe;M.TEkta=lje;M.TaoNetwork=sHe;M.Taraxa=DHe;M.TaraxaTestnet=OHe;M.Taycan=E$e;M.TaycanTestnet=Zze;M.Tbsi=wze;M.TbsiTestnet=_ze;M.TbwgChain=lFe;M.TcgVerse=_Ke;M.Techpay=EKe;M.Teleport=KGe;M.TeleportTestnet=GGe;M.TelosEvm=mFe;M.TelosEvmTestnet=yFe;M.Teslafunds=kze;M.Thaichain=Lqe;M.Thaichain20Thaifi=Gqe;M.Theta=LUe;M.ThetaAmberTestnet=FUe;M.ThetaSapphireTestnet=qUe;M.ThetaTestnet=WUe;M.ThinkiumChain0=DYe;M.ThinkiumChain1=OYe;M.ThinkiumChain103=qYe;M.ThinkiumChain2=LYe;M.ThinkiumTestnetChain0=TYe;M.ThinkiumTestnetChain1=EYe;M.ThinkiumTestnetChain103=IYe;M.ThinkiumTestnetChain2=CYe;M.Thundercore=xWe;M.ThundercoreTestnet=Vqe;M.Tipboxcoin=QJe;M.TipboxcoinTestnet=iGe;M.TlchainNetwork=gGe;M.TmyChain=lVe;M.TokiNetwork=iVe;M.TokiTestnet=sVe;M.TombChain=BGe;M.Tomochain=sWe;M.TomochainTestnet=oWe;M.ToolGlobal=oVe;M.ToolGlobalTestnet=cVe;M.Top=ije;M.TopEvm=nje;M.Tres=PGe;M.TresTestnet=SGe;M.TrustEvmTestnet=d$e;M.UbSmartChain=eJe;M.UbSmartChainTestnet=XYe;M.Ubiq=qqe;M.UbiqNetworkTestnet=Fqe;M.Ultron=jje;M.UltronTestnet=Hje;M.UnicornUltraTestnet=fFe;M.Unique=pVe;M.UzmiNetwork=wGe;M.Valorbit=hFe;M.Vchain=yKe;M.Vechain=lJe;M.VechainTestnet=dJe;M.Vela1Chain=iHe;M.VelasEvm=wWe;M.Venidium=hGe;M.VenidiumTestnet=pGe;M.VentionSmartChain=KYe;M.VentionSmartChainTestnet=EHe;M.Vision=gQe;M.VisionVpioneerTestChain=hQe;M.VyvoSmartChain=gVe;M.Wagmi=GVe;M.Wanchain=HHe;M.WanchainTestnet=oje;M.Web3gamesDevnet=vWe;M.Web3gamesTestnet=gWe;M.Web3q=NUe;M.Web3qGalileo=FKe;M.Web3qTestnet=qKe;M.Webchain=P$e;M.WeelinkTestnet=aQe;M.WegochainRubidium=AGe;M.Wemix30=Cje;M.Wemix30Testnet=Ije;M.WorldTradeTechnicalChain=qje;M.Xanachain=yVe;M.XdcApothemNetwork=CFe;M.Xerom=CQe;M.XinfinXdcNetwork=EFe;M.Xodex=xKe;M.XtSmartChain=tHe;M.Yuanchain=ZKe;M.ZMainnet=Gze;M.ZTestnet=RVe;M.ZcoreTestnet=LKe;M.ZeethChain=VUe;M.ZeethChainDev=LHe;M.Zeniq=UZe;M.Zenith=ZFe;M.ZenithTestnetVilnius=eWe;M.Zetachain=OGe;M.ZetachainAthensTestnet=LGe;M.Zhejiang=AQe;M.ZilliqaEvmTestnet=K$e;M.ZksyncEra=MUe;M.ZksyncEraTestnet=wUe;M.Zyx=SFe;M._0xtade=FVe;M._4goodnetwork=yQe;M.allChains=PQ;M.configureChain=$Tr;M.defaultChains=YTr;M.getChainByChainId=JTr;M.getChainBySlug=QTr;M.getChainRPC=GTr;M.getChainRPCs=Mqe;M.minimizeChain=VTr});var vt=x((oBn,RQ)=>{"use strict";d();p();g.env.NODE_ENV==="production"?RQ.exports=Rqe():RQ.exports=zZe()});var GZe=x((lBn,KZe)=>{"use strict";d();p();function ZTr(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);I!==S;){for(var W=m[I],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=V,I++}for(var H=L-E;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=S-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");I=W,y++}for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),G=E;K!==S;)H[G++]=L[K++];return H}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}KZe.exports=ZTr});var pa=x((hBn,VZe)=>{d();p();var XTr=GZe(),e6r="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";VZe.exports=XTr(e6r)});var tn=x((T0,YZe)=>{d();p();var $Ze=typeof self<"u"?self:T0,BN=function(){function r(){this.fetch=!1,this.DOMException=$Ze.DOMException}return r.prototype=$Ze,new r}();(function(r){var e=function(t){var n={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function a(q){return q&&DataView.prototype.isPrototypeOf(q)}if(n.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(q){return q&&i.indexOf(Object.prototype.toString.call(q))>-1};function o(q){if(typeof q!="string"&&(q=String(q)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(q))throw new TypeError("Invalid character in header field name");return q.toLowerCase()}function c(q){return typeof q!="string"&&(q=String(q)),q}function u(q){var T={next:function(){var P=q.shift();return{done:P===void 0,value:P}}};return n.iterable&&(T[Symbol.iterator]=function(){return T}),T}function l(q){this.map={},q instanceof l?q.forEach(function(T,P){this.append(P,T)},this):Array.isArray(q)?q.forEach(function(T){this.append(T[0],T[1])},this):q&&Object.getOwnPropertyNames(q).forEach(function(T){this.append(T,q[T])},this)}l.prototype.append=function(q,T){q=o(q),T=c(T);var P=this.map[q];this.map[q]=P?P+", "+T:T},l.prototype.delete=function(q){delete this.map[o(q)]},l.prototype.get=function(q){return q=o(q),this.has(q)?this.map[q]:null},l.prototype.has=function(q){return this.map.hasOwnProperty(o(q))},l.prototype.set=function(q,T){this.map[o(q)]=c(T)},l.prototype.forEach=function(q,T){for(var P in this.map)this.map.hasOwnProperty(P)&&q.call(T,this.map[P],P,this)},l.prototype.keys=function(){var q=[];return this.forEach(function(T,P){q.push(P)}),u(q)},l.prototype.values=function(){var q=[];return this.forEach(function(T){q.push(T)}),u(q)},l.prototype.entries=function(){var q=[];return this.forEach(function(T,P){q.push([P,T])}),u(q)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);function h(q){if(q.bodyUsed)return Promise.reject(new TypeError("Already read"));q.bodyUsed=!0}function f(q){return new Promise(function(T,P){q.onload=function(){T(q.result)},q.onerror=function(){P(q.error)}})}function m(q){var T=new FileReader,P=f(T);return T.readAsArrayBuffer(q),P}function y(q){var T=new FileReader,P=f(T);return T.readAsText(q),P}function E(q){for(var T=new Uint8Array(q),P=new Array(T.length),A=0;A-1?T:q}function W(q,T){T=T||{};var P=T.body;if(q instanceof W){if(q.bodyUsed)throw new TypeError("Already read");this.url=q.url,this.credentials=q.credentials,T.headers||(this.headers=new l(q.headers)),this.method=q.method,this.mode=q.mode,this.signal=q.signal,!P&&q._bodyInit!=null&&(P=q._bodyInit,q.bodyUsed=!0)}else this.url=String(q);if(this.credentials=T.credentials||this.credentials||"same-origin",(T.headers||!this.headers)&&(this.headers=new l(T.headers)),this.method=F(T.method||this.method||"GET"),this.mode=T.mode||this.mode||null,this.signal=T.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&P)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(P)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})};function V(q){var T=new FormData;return q.trim().split("&").forEach(function(P){if(P){var A=P.split("="),v=A.shift().replace(/\+/g," "),k=A.join("=").replace(/\+/g," ");T.append(decodeURIComponent(v),decodeURIComponent(k))}}),T}function K(q){var T=new l,P=q.replace(/\r?\n[\t ]+/g," ");return P.split(/\r?\n/).forEach(function(A){var v=A.split(":"),k=v.shift().trim();if(k){var O=v.join(":").trim();T.append(k,O)}}),T}S.call(W.prototype);function H(q,T){T||(T={}),this.type="default",this.status=T.status===void 0?200:T.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in T?T.statusText:"OK",this.headers=new l(T.headers),this.url=T.url||"",this._initBody(q)}S.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},H.error=function(){var q=new H(null,{status:0,statusText:""});return q.type="error",q};var G=[301,302,303,307,308];H.redirect=function(q,T){if(G.indexOf(T)===-1)throw new RangeError("Invalid status code");return new H(null,{status:T,headers:{location:q}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(T,P){this.message=T,this.name=P;var A=Error(T);this.stack=A.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function J(q,T){return new Promise(function(P,A){var v=new W(q,T);if(v.signal&&v.signal.aborted)return A(new t.DOMException("Aborted","AbortError"));var k=new XMLHttpRequest;function O(){k.abort()}k.onload=function(){var D={status:k.status,statusText:k.statusText,headers:K(k.getAllResponseHeaders()||"")};D.url="responseURL"in k?k.responseURL:D.headers.get("X-Request-URL");var B="response"in k?k.response:k.responseText;P(new H(B,D))},k.onerror=function(){A(new TypeError("Network request failed"))},k.ontimeout=function(){A(new TypeError("Network request failed"))},k.onabort=function(){A(new t.DOMException("Aborted","AbortError"))},k.open(v.method,v.url,!0),v.credentials==="include"?k.withCredentials=!0:v.credentials==="omit"&&(k.withCredentials=!1),"responseType"in k&&n.blob&&(k.responseType="blob"),v.headers.forEach(function(D,B){k.setRequestHeader(B,D)}),v.signal&&(v.signal.addEventListener("abort",O),k.onreadystatechange=function(){k.readyState===4&&v.signal.removeEventListener("abort",O)}),k.send(typeof v._bodyInit>"u"?null:v._bodyInit)})}return J.polyfill=!0,r.fetch||(r.fetch=J,r.Headers=l,r.Request=W,r.Response=H),t.Headers=l,t.Request=W,t.Response=H,t.fetch=J,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(BN);BN.fetch.ponyfill=!0;delete BN.fetch.polyfill;var u_=BN;T0=u_.fetch;T0.default=u_.fetch;T0.fetch=u_.fetch;T0.Headers=u_.Headers;T0.Request=u_.Request;T0.Response=u_.Response;YZe.exports=T0});var Qe=x((bBn,MQ)=>{"use strict";d();p();var t6r=Object.prototype.hasOwnProperty,Wu="~";function S4(){}Object.create&&(S4.prototype=Object.create(null),new S4().__proto__||(Wu=!1));function r6r(r,e,t){this.fn=r,this.context=e,this.once=t||!1}function JZe(r,e,t,n,a){if(typeof t!="function")throw new TypeError("The listener must be a function");var i=new r6r(t,n||r,a),s=Wu?Wu+e:e;return r._events[s]?r._events[s].fn?r._events[s]=[r._events[s],i]:r._events[s].push(i):(r._events[s]=i,r._eventsCount++),r}function DN(r,e){--r._eventsCount===0?r._events=new S4:delete r._events[e]}function pu(){this._events=new S4,this._eventsCount=0}pu.prototype.eventNames=function(){var e=[],t,n;if(this._eventsCount===0)return e;for(n in t=this._events)t6r.call(t,n)&&e.push(Wu?n.slice(1):n);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e};pu.prototype.listeners=function(e){var t=Wu?Wu+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var a=0,i=n.length,s=new Array(i);a{n6r.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"execute",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"gas",type:"uint256"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Forwarder.ForwardRequest",name:"req",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ON=x((xBn,QZe)=>{"use strict";d();p();async function*a6r(r,e=1){let t=[];e<1&&(e=1);for await(let n of r)for(t.push(n);t.length>=e;)yield t.slice(0,e),t=t.slice(e);for(;t.length;)yield t.slice(0,e),t=t.slice(e)}QZe.exports=a6r});var NQ=x((CBn,ZZe)=>{"use strict";d();p();var i6r=ON();async function*s6r(r,e=1){for await(let t of i6r(r,e)){let n=t.map(a=>a().then(i=>({ok:!0,value:i}),i=>({ok:!1,err:i})));for(let a=0;a{"use strict";d();p();XZe.exports=r=>{if(Object.prototype.toString.call(r)!=="[object Object]")return!1;let e=Object.getPrototypeOf(r);return e===null||e===Object.prototype}});var sXe=x((aXe,iXe)=>{"use strict";d();p();var LN=eXe(),{hasOwnProperty:rXe}=Object.prototype,{propertyIsEnumerable:o6r}=Object,l_=(r,e,t)=>Object.defineProperty(r,e,{value:t,writable:!0,enumerable:!0,configurable:!0}),c6r=aXe,tXe={concatArrays:!1,ignoreUndefined:!1},qN=r=>{let e=[];for(let t in r)rXe.call(r,t)&&e.push(t);if(Object.getOwnPropertySymbols){let t=Object.getOwnPropertySymbols(r);for(let n of t)o6r.call(r,n)&&e.push(n)}return e};function d_(r){return Array.isArray(r)?u6r(r):LN(r)?l6r(r):r}function u6r(r){let e=r.slice(0,0);return qN(r).forEach(t=>{l_(e,t,d_(r[t]))}),e}function l6r(r){let e=Object.getPrototypeOf(r)===null?Object.create(null):{};return qN(r).forEach(t=>{l_(e,t,d_(r[t]))}),e}var nXe=(r,e,t,n)=>(t.forEach(a=>{typeof e[a]>"u"&&n.ignoreUndefined||(a in r&&r[a]!==Object.getPrototypeOf(r)?l_(r,a,BQ(r[a],e[a],n)):l_(r,a,d_(e[a])))}),r),d6r=(r,e,t)=>{let n=r.slice(0,0),a=0;return[r,e].forEach(i=>{let s=[];for(let o=0;o!s.includes(o)),t)}),n};function BQ(r,e,t){return t.concatArrays&&Array.isArray(r)&&Array.isArray(e)?d6r(r,e,t):!LN(e)||!LN(r)?d_(e):nXe(r,e,qN(e),t)}iXe.exports=function(...r){let e=BQ(d_(tXe),this!==c6r&&this||{},tXe),t={_:{}};for(let n of r)if(n!==void 0){if(!LN(n))throw new TypeError("`"+n+"` is not an Option Object");t=BQ(t,{_:n},e)}return t._}});var dv=x((NBn,cXe)=>{"use strict";d();p();function oXe(r,e){for(let t in e)Object.defineProperty(r,t,{value:e[t],enumerable:!0,configurable:!0});return r}function p6r(r,e,t){if(!r||typeof r=="string")throw new TypeError("Please pass an Error to err-code");t||(t={}),typeof e=="object"&&(t=e,e=""),e&&(t.code=e);try{return oXe(r,t)}catch{t.message=r.message,t.stack=r.stack;let a=function(){};return a.prototype=Object.create(Object.getPrototypeOf(r)),oXe(new a,t)}}cXe.exports=p6r});var lXe=x((OBn,uXe)=>{"use strict";d();p();function h6r(r){if(r.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),t=0;t>>0,F=new Uint8Array(L);I!==S;){for(var W=m[I],V=0,K=L-1;(W!==0||V>>0,F[K]=W%s>>>0,W=W/s>>>0;if(W!==0)throw new Error("Non-zero carry");E=V,I++}for(var H=L-E;H!==L&&F[H]===0;)H++;for(var G=o.repeat(y);H>>0,L=new Uint8Array(S);m[y];){var F=e[m.charCodeAt(y)];if(F===255)return;for(var W=0,V=S-1;(F!==0||W>>0,L[V]=F%256>>>0,F=F/256>>>0;if(F!==0)throw new Error("Non-zero carry");I=W,y++}if(m[y]!==" "){for(var K=S-I;K!==S&&L[K]===0;)K++;for(var H=new Uint8Array(E+(S-K)),G=E;K!==S;)H[G++]=L[K++];return H}}}function f(m){var y=h(m);if(y)return y;throw new Error("Non-base"+s+" character")}return{encode:l,decodeUnsafe:h,decode:f}}uXe.exports=h6r});var FN=x((FBn,dXe)=>{"use strict";d();p();var f6r=new TextDecoder,m6r=r=>f6r.decode(r),y6r=new TextEncoder,g6r=r=>y6r.encode(r);function b6r(r,e){let t=new Uint8Array(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return t}dXe.exports={decodeText:m6r,encodeText:g6r,concat:b6r}});var hXe=x((HBn,pXe)=>{"use strict";d();p();var{encodeText:v6r}=FN(),DQ=class{constructor(e,t,n,a){this.name=e,this.code=t,this.codeBuf=v6r(this.code),this.alphabet=a,this.codec=n(a)}encode(e){return this.codec.encode(e)}decode(e){for(let t of e)if(this.alphabet&&this.alphabet.indexOf(t)<0)throw new Error(`invalid character '${t}' in '${e}'`);return this.codec.decode(e)}};pXe.exports=DQ});var mXe=x((KBn,fXe)=>{"use strict";d();p();var w6r=(r,e,t)=>{let n={};for(let u=0;u=8&&(s-=8,i[c++]=255&o>>s)}if(s>=t||255&o<<8-s)throw new SyntaxError("Unexpected end of data");return i},_6r=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<e=>({encode(t){return _6r(t,e,r)},decode(t){return w6r(t,e,r)}});fXe.exports={rfc4648:x6r}});var vXe=x(($Bn,bXe)=>{"use strict";d();p();var P4=lXe(),T6r=hXe(),{rfc4648:bc}=mXe(),{decodeText:E6r,encodeText:C6r}=FN(),I6r=()=>({encode:E6r,decode:C6r}),yXe=[["identity","\0",I6r,""],["base2","0",bc(1),"01"],["base8","7",bc(3),"01234567"],["base10","9",P4,"0123456789"],["base16","f",bc(4),"0123456789abcdef"],["base16upper","F",bc(4),"0123456789ABCDEF"],["base32hex","v",bc(5),"0123456789abcdefghijklmnopqrstuv"],["base32hexupper","V",bc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV"],["base32hexpad","t",bc(5),"0123456789abcdefghijklmnopqrstuv="],["base32hexpadupper","T",bc(5),"0123456789ABCDEFGHIJKLMNOPQRSTUV="],["base32","b",bc(5),"abcdefghijklmnopqrstuvwxyz234567"],["base32upper","B",bc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"],["base32pad","c",bc(5),"abcdefghijklmnopqrstuvwxyz234567="],["base32padupper","C",bc(5),"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567="],["base32z","h",bc(5),"ybndrfg8ejkmcpqxot1uwisza345h769"],["base36","k",P4,"0123456789abcdefghijklmnopqrstuvwxyz"],["base36upper","K",P4,"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"],["base58btc","z",P4,"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"],["base58flickr","Z",P4,"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"],["base64","m",bc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"],["base64pad","M",bc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="],["base64url","u",bc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"],["base64urlpad","U",bc(6),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_="]],gXe=yXe.reduce((r,e)=>(r[e[0]]=new T6r(e[0],e[1],e[2],e[3]),r),{}),k6r=yXe.reduce((r,e)=>(r[e[1]]=gXe[e[0]],r),{});bXe.exports={names:gXe,codes:k6r}});var OQ=x((E0,_Xe)=>{"use strict";d();p();var p_=vXe(),{encodeText:A6r,decodeText:WN,concat:wXe}=FN();function S6r(r,e){if(!e)throw new Error("requires an encoded Uint8Array");let{name:t,codeBuf:n}=pv(r);return N6r(t,e),wXe([n,e],n.length+e.length)}function P6r(r,e){let t=pv(r),n=A6r(t.encode(e));return wXe([t.codeBuf,n],t.codeBuf.length+n.length)}function R6r(r){r instanceof Uint8Array&&(r=WN(r));let e=r[0];return["f","F","v","V","t","T","b","B","c","C","h","k","K"].includes(e)&&(r=r.toLowerCase()),pv(r[0]).decode(r.substring(1))}function M6r(r){if(r instanceof Uint8Array&&(r=WN(r)),Object.prototype.toString.call(r)!=="[object String]")return!1;try{return pv(r[0]).name}catch{return!1}}function N6r(r,e){pv(r).decode(WN(e))}function pv(r){if(Object.prototype.hasOwnProperty.call(p_.names,r))return p_.names[r];if(Object.prototype.hasOwnProperty.call(p_.codes,r))return p_.codes[r];throw new Error(`Unsupported encoding: ${r}`)}function B6r(r){return r instanceof Uint8Array&&(r=WN(r)),pv(r[0])}E0=_Xe.exports=S6r;E0.encode=P6r;E0.decode=R6r;E0.isEncoded=M6r;E0.encoding=pv;E0.encodingFromData=B6r;var D6r=Object.freeze(p_.names),O6r=Object.freeze(p_.codes);E0.names=D6r;E0.codes=O6r});var CXe=x((XBn,EXe)=>{d();p();EXe.exports=TXe;var xXe=128,L6r=127,q6r=~L6r,F6r=Math.pow(2,31);function TXe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=F6r;)e[t++]=r&255|xXe,r/=128;for(;r&q6r;)e[t++]=r&255|xXe,r>>>=7;return e[t]=r|0,TXe.bytes=t-n+1,e}});var AXe=x((rDn,kXe)=>{d();p();kXe.exports=LQ;var W6r=128,IXe=127;function LQ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw LQ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&IXe)<=W6r);return LQ.bytes=i-n,t}});var PXe=x((iDn,SXe)=>{d();p();var U6r=Math.pow(2,7),H6r=Math.pow(2,14),j6r=Math.pow(2,21),z6r=Math.pow(2,28),K6r=Math.pow(2,35),G6r=Math.pow(2,42),V6r=Math.pow(2,49),$6r=Math.pow(2,56),Y6r=Math.pow(2,63);SXe.exports=function(r){return r{d();p();RXe.exports={encode:CXe(),decode:AXe(),encodingLength:PXe()}});var BXe=x((dDn,NXe)=>{"use strict";d();p();var J6r=Object.freeze({identity:0,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,"murmur3-128":34,"murmur3-32":35,"dbl-sha2-256":86,md4:212,md5:213,bmt:214,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082});NXe.exports={names:J6r}});function Q6r(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);S!==L;){for(var V=y[S],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");I=K,S++}for(var G=F-I;G!==F&&W[G]===0;)G++;for(var J=c.repeat(E);G>>0,F=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=V,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(I+(L-H)),J=I;H!==L;)G[J++]=F[H++];return G}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var Z6r,X6r,DXe,OXe=ce(()=>{d();p();Z6r=Q6r,X6r=Z6r,DXe=X6r});var UN={};cr(UN,{coerce:()=>up,empty:()=>LXe,equals:()=>qQ,fromHex:()=>tEr,fromString:()=>FQ,isBinary:()=>rEr,toHex:()=>eEr,toString:()=>WQ});var LXe,eEr,tEr,qQ,up,rEr,FQ,WQ,g1=ce(()=>{d();p();LXe=new Uint8Array(0),eEr=r=>r.reduce((e,t)=>e+t.toString(16).padStart(2,"0"),""),tEr=r=>{let e=r.match(/../g);return e?new Uint8Array(e.map(t=>parseInt(t,16))):LXe},qQ=(r,e)=>{if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},rEr=r=>r instanceof ArrayBuffer||ArrayBuffer.isView(r),FQ=r=>new TextEncoder().encode(r),WQ=r=>new TextDecoder().decode(r)});var UQ,HQ,jQ,qXe,zQ,h_,b1,nEr,aEr,is,_h=ce(()=>{d();p();OXe();g1();UQ=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},HQ=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return qXe(this,e)}},jQ=class{constructor(e){this.decoders=e}or(e){return qXe(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},qXe=(r,e)=>new jQ({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),zQ=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new UQ(e,t,n),this.decoder=new HQ(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},h_=({name:r,prefix:e,encode:t,decode:n})=>new zQ(r,e,t,n),b1=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=DXe(t,e);return h_({prefix:r,name:e,encode:n,decode:i=>up(a(i))})},nEr=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},aEr=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<h_({prefix:e,name:r,encode(a){return aEr(a,n,t)},decode(a){return nEr(a,n,t,r)}})});var KQ={};cr(KQ,{identity:()=>iEr});var iEr,FXe=ce(()=>{d();p();_h();g1();iEr=h_({prefix:"\0",name:"identity",encode:r=>WQ(r),decode:r=>FQ(r)})});var GQ={};cr(GQ,{base2:()=>sEr});var sEr,WXe=ce(()=>{d();p();_h();sEr=is({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1})});var VQ={};cr(VQ,{base8:()=>oEr});var oEr,UXe=ce(()=>{d();p();_h();oEr=is({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3})});var $Q={};cr($Q,{base10:()=>cEr});var cEr,HXe=ce(()=>{d();p();_h();cEr=b1({prefix:"9",name:"base10",alphabet:"0123456789"})});var YQ={};cr(YQ,{base16:()=>uEr,base16upper:()=>lEr});var uEr,lEr,jXe=ce(()=>{d();p();_h();uEr=is({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),lEr=is({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4})});var JQ={};cr(JQ,{base32:()=>f_,base32hex:()=>fEr,base32hexpad:()=>yEr,base32hexpadupper:()=>gEr,base32hexupper:()=>mEr,base32pad:()=>pEr,base32padupper:()=>hEr,base32upper:()=>dEr,base32z:()=>bEr});var f_,dEr,pEr,hEr,fEr,mEr,yEr,gEr,bEr,QQ=ce(()=>{d();p();_h();f_=is({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),dEr=is({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),pEr=is({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),hEr=is({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),fEr=is({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),mEr=is({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),yEr=is({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),gEr=is({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),bEr=is({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})});var ZQ={};cr(ZQ,{base36:()=>vEr,base36upper:()=>wEr});var vEr,wEr,zXe=ce(()=>{d();p();_h();vEr=b1({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),wEr=b1({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"})});var XQ={};cr(XQ,{base58btc:()=>em,base58flickr:()=>_Er});var em,_Er,eZ=ce(()=>{d();p();_h();em=b1({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),_Er=b1({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})});var tZ={};cr(tZ,{base64:()=>xEr,base64pad:()=>TEr,base64url:()=>EEr,base64urlpad:()=>CEr});var xEr,TEr,EEr,CEr,KXe=ce(()=>{d();p();_h();xEr=is({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),TEr=is({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),EEr=is({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),CEr=is({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6})});var rZ={};cr(rZ,{base256emoji:()=>PEr});function AEr(r){return r.reduce((e,t)=>(e+=IEr[t],e),"")}function SEr(r){let e=[];for(let t of r){let n=kEr[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var GXe,IEr,kEr,PEr,VXe=ce(()=>{d();p();_h();GXe=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),IEr=GXe.reduce((r,e,t)=>(r[t]=e,r),[]),kEr=GXe.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);PEr=h_({prefix:"\u{1F680}",name:"base256emoji",encode:AEr,decode:SEr})});function JXe(r,e,t){e=e||[],t=t||0;for(var n=t;r>=BEr;)e[t++]=r&255|$Xe,r/=128;for(;r&NEr;)e[t++]=r&255|$Xe,r>>>=7;return e[t]=r|0,JXe.bytes=t-n+1,e}function nZ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw nZ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&YXe)<=OEr);return nZ.bytes=i-n,t}var REr,$Xe,MEr,NEr,BEr,DEr,OEr,YXe,LEr,qEr,FEr,WEr,UEr,HEr,jEr,zEr,KEr,GEr,VEr,$Er,R4,QXe=ce(()=>{d();p();REr=JXe,$Xe=128,MEr=127,NEr=~MEr,BEr=Math.pow(2,31);DEr=nZ,OEr=128,YXe=127;LEr=Math.pow(2,7),qEr=Math.pow(2,14),FEr=Math.pow(2,21),WEr=Math.pow(2,28),UEr=Math.pow(2,35),HEr=Math.pow(2,42),jEr=Math.pow(2,49),zEr=Math.pow(2,56),KEr=Math.pow(2,63),GEr=function(r){return rm_,encodeTo:()=>hv,encodingLength:()=>fv});var m_,hv,fv,HN=ce(()=>{d();p();QXe();m_=(r,e=0)=>[R4.decode(r,e),R4.decode.bytes],hv=(r,e,t=0)=>(R4.encode(r,e,t),e),fv=r=>R4.encodingLength(r)});var yv={};cr(yv,{Digest:()=>mv,create:()=>v1,decode:()=>aZ,equals:()=>iZ});var v1,aZ,iZ,mv,M4=ce(()=>{d();p();g1();HN();v1=(r,e)=>{let t=e.byteLength,n=fv(r),a=n+fv(t),i=new Uint8Array(a+t);return hv(r,i,0),hv(t,i,n),i.set(e,a),new mv(r,t,e,i)},aZ=r=>{let e=up(r),[t,n]=m_(e),[a,i]=m_(e.subarray(n)),s=e.subarray(n+i);if(s.byteLength!==a)throw new Error("Incorrect length");return new mv(t,a,s,e)},iZ=(r,e)=>r===e?!0:r.code===e.code&&r.size===e.size&&qQ(r.bytes,e.bytes),mv=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}}});var KN={};cr(KN,{Hasher:()=>jN,from:()=>zN});var zN,jN,sZ=ce(()=>{d();p();M4();zN=({name:r,code:e,encode:t})=>new jN(r,e,t),jN=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?v1(this.code,t):t.then(n=>v1(this.code,n))}else throw Error("Unknown type, must be binary type")}}});var oZ={};cr(oZ,{sha256:()=>YEr,sha512:()=>JEr});var ZXe,YEr,JEr,XXe=ce(()=>{d();p();sZ();ZXe=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),YEr=zN({name:"sha2-256",code:18,encode:ZXe("SHA-256")}),JEr=zN({name:"sha2-512",code:19,encode:ZXe("SHA-512")})});var cZ={};cr(cZ,{identity:()=>XEr});var eet,QEr,tet,ZEr,XEr,ret=ce(()=>{d();p();g1();M4();eet=0,QEr="identity",tet=up,ZEr=r=>v1(eet,tet(r)),XEr={code:eet,name:QEr,encode:tet,digest:ZEr}});var uZ={};cr(uZ,{code:()=>tCr,decode:()=>nCr,encode:()=>rCr,name:()=>eCr});var eCr,tCr,rCr,nCr,net=ce(()=>{d();p();g1();eCr="raw",tCr=85,rCr=r=>up(r),nCr=r=>up(r)});var lZ={};cr(lZ,{code:()=>oCr,decode:()=>uCr,encode:()=>cCr,name:()=>sCr});var aCr,iCr,sCr,oCr,cCr,uCr,aet=ce(()=>{d();p();aCr=new TextEncoder,iCr=new TextDecoder,sCr="json",oCr=512,cCr=r=>aCr.encode(JSON.stringify(r)),uCr=r=>JSON.parse(iCr.decode(r))});var Gs,lCr,dCr,pCr,N4,hCr,iet,set,GN,VN,fCr,mCr,yCr,oet=ce(()=>{d();p();HN();M4();eZ();QQ();g1();Gs=class{constructor(e,t,n,a){this.code=t,this.version=e,this.multihash=n,this.bytes=a,this.byteOffset=a.byteOffset,this.byteLength=a.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:VN,byteLength:VN,code:GN,version:GN,multihash:GN,bytes:GN,_baseCache:VN,asCID:VN})}toV0(){switch(this.version){case 0:return this;default:{let{code:e,multihash:t}=this;if(e!==N4)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==hCr)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return Gs.createV0(t)}}}toV1(){switch(this.version){case 0:{let{code:e,digest:t}=this.multihash,n=v1(e,t);return Gs.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&iZ(this.multihash,e.multihash)}toString(e){let{bytes:t,version:n,_baseCache:a}=this;switch(n){case 0:return dCr(t,a,e||em.encoder);default:return pCr(t,a,e||f_.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return mCr(/^0\.0/,yCr),!!(e&&(e[set]||e.asCID===e))}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof Gs)return e;if(e!=null&&e.asCID===e){let{version:t,code:n,multihash:a,bytes:i}=e;return new Gs(t,n,a,i||iet(t,n,a.bytes))}else if(e!=null&&e[set]===!0){let{version:t,multihash:n,code:a}=e,i=aZ(n);return Gs.create(t,a,i)}else return null}static create(e,t,n){if(typeof t!="number")throw new Error("String codecs are no longer supported");switch(e){case 0:{if(t!==N4)throw new Error(`Version 0 CID must use dag-pb (code: ${N4}) block encoding`);return new Gs(e,t,n,n.bytes)}case 1:{let a=iet(e,t,n.bytes);return new Gs(e,t,n,a)}default:throw new Error("Invalid version")}}static createV0(e){return Gs.create(0,N4,e)}static createV1(e,t){return Gs.create(1,e,t)}static decode(e){let[t,n]=Gs.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){let t=Gs.inspectBytes(e),n=t.size-t.multihashSize,a=up(e.subarray(n,n+t.multihashSize));if(a.byteLength!==t.multihashSize)throw new Error("Incorrect length");let i=a.subarray(t.multihashSize-t.digestSize),s=new mv(t.multihashCode,t.digestSize,i,a);return[t.version===0?Gs.createV0(s):Gs.createV1(t.codec,s),e.subarray(t.size)]}static inspectBytes(e){let t=0,n=()=>{let[h,f]=m_(e.subarray(t));return t+=f,h},a=n(),i=N4;if(a===18?(a=0,t=0):a===1&&(i=n()),a!==0&&a!==1)throw new RangeError(`Invalid CID version ${a}`);let s=t,o=n(),c=n(),u=t+c,l=u-s;return{version:a,codec:i,multihashCode:o,digestSize:c,multihashSize:l,size:u}}static parse(e,t){let[n,a]=lCr(e,t),i=Gs.decode(a);return i._baseCache.set(n,e),i}},lCr=(r,e)=>{switch(r[0]){case"Q":{let t=e||em;return[em.prefix,t.decode(`${em.prefix}${r}`)]}case em.prefix:{let t=e||em;return[em.prefix,t.decode(r)]}case f_.prefix:{let t=e||f_;return[f_.prefix,t.decode(r)]}default:{if(e==null)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[r[0],e.decode(r)]}}},dCr=(r,e,t)=>{let{prefix:n}=t;if(n!==em.prefix)throw Error(`Cannot string encode V0 in ${t.name} encoding`);let a=e.get(n);if(a==null){let i=t.encode(r).slice(1);return e.set(n,i),i}else return a},pCr=(r,e,t)=>{let{prefix:n}=t,a=e.get(n);if(a==null){let i=t.encode(r);return e.set(n,i),i}else return a},N4=112,hCr=18,iet=(r,e,t)=>{let n=fv(r),a=n+fv(e),i=new Uint8Array(a+t.byteLength);return hv(r,i,0),hv(e,i,n),i.set(t,a),i},set=Symbol.for("@ipld/js-cid/CID"),GN={writable:!1,configurable:!1,enumerable:!0},VN={writable:!1,enumerable:!1,configurable:!1},fCr="0.0.0-dev",mCr=(r,e)=>{if(r.test(fCr))console.warn(e);else throw new Error(e)},yCr=`CID.isCID(v) is deprecated and will be removed in the next major release. Following code pattern: if (CID.isCID(value)) { @@ -42,10 +42,10 @@ if (cid) { // Make sure to use cid instead of value doSomethingWithCID(cid) } -`});var mXe=ce(()=>{d();p();fXe();xN();c1();MQ();u4()});var yXe={};cr(yXe,{CID:()=>zs,bases:()=>kN,bytes:()=>wN,codecs:()=>pEr,digest:()=>ov,hasher:()=>EN,hashes:()=>dEr,varint:()=>X5});var kN,dEr,pEr,LQ=ce(()=>{d();p();VZe();GZe();$Ze();YZe();JZe();TQ();QZe();IQ();ZZe();eXe();sXe();uXe();lXe();dXe();mXe();kN={...gQ,...bQ,...vQ,...wQ,...xQ,..._Q,...EQ,...CQ,...kQ,...AQ},dEr={...NQ,...BQ},pEr={raw:DQ,json:OQ}});function d1(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var d4=ce(()=>{d();p()});function ex(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?d1(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var AN=ce(()=>{d();p();d4()});function bXe(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var gXe,qQ,hEr,SN,FQ=ce(()=>{d();p();LQ();AN();gXe=bXe("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),qQ=bXe("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=ex(r.length);for(let t=0;tXf});function Xf(r,e="utf8"){let t=SN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var tx=ce(()=>{d();p();FQ()});var p4={};cr(p4,{fromString:()=>wh});function wh(r,e="utf8"){let t=SN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?d1(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var cv=ce(()=>{d();p();FQ();d4()});var f4={};cr(f4,{concat:()=>h4});function h4(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=ex(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return d1(t)}var uv=ce(()=>{d();p();AN();d4()});var y4=_((jDn,EXe)=>{"use strict";d();p();var vXe=cQ(),rx=FZe(),{names:m4}=UZe(),{toString:RN}=(tx(),rt(PN)),{fromString:fEr}=(cv(),rt(p4)),{concat:mEr}=(uv(),rt(f4)),nx={};for(let r in m4){let e=r;nx[m4[e]]=e}Object.freeze(nx);function yEr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return RN(r,"base16")}function gEr(r){return fEr(r,"base16")}function bEr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return RN(vXe.encode("base58btc",r)).slice(1)}function vEr(r){let e=r instanceof Uint8Array?RN(r):r;return vXe.decode("z"+e)}function wXe(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=rx.decode(r);if(!_Xe(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(rx.decode.bytes);let t=rx.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(rx.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${RN(r,"base16")}`);return{code:e,name:nx[e],length:t,digest:r}}function wEr(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=xXe(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=rx.encode(n),i=rx.encode(t);return mEr([a,i,r],a.length+i.length+r.length)}function xXe(r){let e=r;if(typeof r=="string"){if(m4[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=m4[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(nx[e]===void 0&&!WQ(e))throw new Error(`Unrecognized function code: ${e}`);return e}function WQ(r){return r>0&&r<16}function _Xe(r){return!!(WQ(r)||nx[r])}function TXe(r){wXe(r)}function xEr(r){return TXe(r),r.subarray(0,2)}EXe.exports={names:m4,codes:nx,toHexString:yEr,fromHexString:gEr,toB58String:bEr,fromB58String:vEr,decode:wXe,encode:wEr,coerceCode:xXe,isAppCode:WQ,validate:TXe,prefix:xEr,isValidCode:_Xe}});var CXe=_((g4,MN)=>{d();p();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]+y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]+y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]+y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]+y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]*y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]*y[3],E[1]+=E[2]>>>16,E[2]&=65535,E[2]+=m[3]*y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]*y[3],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[2]*y[2],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[3]*y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=h(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=h(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%4,I=m.length-E,S=y,L=0,F=3432918353,W=461845907,G=0;G>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=y,L=y,F=y,W=y,G=0,K=0,H=0,V=0,J=597399067,q=2869860233,T=951274213,P=2716044179,A=0;A>>0).toString(16)).slice(-8)+("00000000"+(L>>>0).toString(16)).slice(-8)+("00000000"+(F>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=[0,y],L=[0,y],F=[0,0],W=[0,0],G=[2277735313,289559509],K=[1291169091,658871167],H=0;H>>0).toString(16)).slice(-8)+("00000000"+(S[1]>>>0).toString(16)).slice(-8)+("00000000"+(L[0]>>>0).toString(16)).slice(-8)+("00000000"+(L[1]>>>0).toString(16)).slice(-8)},typeof g4<"u"?(typeof MN<"u"&&MN.exports&&(g4=MN.exports=t),g4.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(g4)});var kXe=_(($Dn,IXe)=>{d();p();IXe.exports=CXe()});var SXe=_((QDn,AXe)=>{"use strict";d();p();var _Er=y4(),ax=self.crypto||self.msCrypto,UQ=async(r,e)=>{if(typeof self>"u"||!ax)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await ax.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await ax.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await ax.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await ax.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await ax.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};AXe.exports={factory:r=>async e=>UQ(e,r),digest:UQ,multihashing:async(r,e,t)=>{let n=await UQ(r,e);return _Er.encode(n,e,t)}}});var RXe=_((eOn,PXe)=>{"use strict";d();p();var TEr=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};PXe.exports={fromNumberTo32BitBuf:TEr}});var HQ=_((nOn,MXe)=>{d();p();var EEr="Input must be an string, Buffer or Uint8Array";function CEr(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(EEr);return e}function IEr(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function NN(r){return(4294967296+r).toString(16).substring(1)}function kEr(r,e,t){let n=` -`+r+" = ";for(let a=0;a{d();p();var DN=HQ();function BN(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function NXe(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function BXe(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function p1(r,e,t,n,a,i){let s=b4[a],o=b4[a+1],c=b4[i],u=b4[i+1];BN(vr,r,e),NXe(vr,r,s,o);let l=vr[n]^vr[r],h=vr[n+1]^vr[r+1];vr[n]=h,vr[n+1]=l,BN(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=l>>>24^h<<8,vr[e+1]=h>>>24^l<<8,BN(vr,r,e),NXe(vr,r,c,u),l=vr[n]^vr[r],h=vr[n+1]^vr[r+1],vr[n]=l>>>16^h<<16,vr[n+1]=h>>>16^l<<16,BN(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=h>>>31^l<<1,vr[e+1]=l>>>31^h<<1}var DXe=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),SEr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],uu=new Uint8Array(SEr.map(function(r){return r*2})),vr=new Uint32Array(32),b4=new Uint32Array(32);function OXe(r,e){let t=0;for(t=0;t<16;t++)vr[t]=r.h[t],vr[t+16]=DXe[t];for(vr[24]=vr[24]^r.t,vr[25]=vr[25]^r.t/4294967296,e&&(vr[28]=~vr[28],vr[29]=~vr[29]),t=0;t<32;t++)b4[t]=BXe(r.b,4*t);for(t=0;t<12;t++)p1(0,8,16,24,uu[t*16+0],uu[t*16+1]),p1(2,10,18,26,uu[t*16+2],uu[t*16+3]),p1(4,12,20,28,uu[t*16+4],uu[t*16+5]),p1(6,14,22,30,uu[t*16+6],uu[t*16+7]),p1(0,10,20,30,uu[t*16+8],uu[t*16+9]),p1(2,12,22,24,uu[t*16+10],uu[t*16+11]),p1(4,14,16,26,uu[t*16+12],uu[t*16+13]),p1(6,8,18,28,uu[t*16+14],uu[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^vr[t]^vr[t+16]}var h1=new Uint8Array([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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function LXe(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};h1.fill(0),h1[0]=r,e&&(h1[1]=e.length),h1[2]=1,h1[3]=1,t&&h1.set(t,32),n&&h1.set(n,48);for(let i=0;i<16;i++)a.h[i]=DXe[i]^BXe(h1,i*4);return e&&(jQ(a,e),a.c=128),a}function jQ(r,e){for(let t=0;t>2]>>8*(t&3);return e}function FXe(r,e,t,n,a){t=t||64,r=DN.normalizeInput(r),n&&(n=DN.normalizeInput(n)),a&&(a=DN.normalizeInput(a));let i=LXe(t,e,n,a);return jQ(i,r),qXe(i)}function PEr(r,e,t,n,a){let i=FXe(r,e,t,n,a);return DN.toHex(i)}WXe.exports={blake2b:FXe,blake2bHex:PEr,blake2bInit:LXe,blake2bUpdate:jQ,blake2bFinal:qXe}});var YXe=_((uOn,$Xe)=>{d();p();var HXe=HQ();function REr(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function f1(r,e,t,n,a,i){yn[r]=yn[r]+yn[e]+a,yn[n]=ON(yn[n]^yn[r],16),yn[t]=yn[t]+yn[n],yn[e]=ON(yn[e]^yn[t],12),yn[r]=yn[r]+yn[e]+i,yn[n]=ON(yn[n]^yn[r],8),yn[t]=yn[t]+yn[n],yn[e]=ON(yn[e]^yn[t],7)}function ON(r,e){return r>>>e^r<<32-e}var jXe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),lu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),yn=new Uint32Array(16),mc=new Uint32Array(16);function zXe(r,e){let t=0;for(t=0;t<8;t++)yn[t]=r.h[t],yn[t+8]=jXe[t];for(yn[12]^=r.t,yn[13]^=r.t/4294967296,e&&(yn[14]=~yn[14]),t=0;t<16;t++)mc[t]=REr(r.b,4*t);for(t=0;t<10;t++)f1(0,4,8,12,mc[lu[t*16+0]],mc[lu[t*16+1]]),f1(1,5,9,13,mc[lu[t*16+2]],mc[lu[t*16+3]]),f1(2,6,10,14,mc[lu[t*16+4]],mc[lu[t*16+5]]),f1(3,7,11,15,mc[lu[t*16+6]],mc[lu[t*16+7]]),f1(0,5,10,15,mc[lu[t*16+8]],mc[lu[t*16+9]]),f1(1,6,11,12,mc[lu[t*16+10]],mc[lu[t*16+11]]),f1(2,7,8,13,mc[lu[t*16+12]],mc[lu[t*16+13]]),f1(3,4,9,14,mc[lu[t*16+14]],mc[lu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=yn[t]^yn[t+8]}function KXe(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(jXe),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(zQ(n,e),n.c=64),n}function zQ(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function GXe(r,e,t){t=t||32,r=HXe.normalizeInput(r);let n=KXe(t,e);return zQ(n,r),VXe(n)}function MEr(r,e,t){let n=GXe(r,e,t);return HXe.toHex(n)}$Xe.exports={blake2s:GXe,blake2sHex:MEr,blake2sInit:KXe,blake2sUpdate:zQ,blake2sFinal:VXe}});var QXe=_((pOn,JXe)=>{d();p();var v4=UXe(),w4=YXe();JXe.exports={blake2b:v4.blake2b,blake2bHex:v4.blake2bHex,blake2bInit:v4.blake2bInit,blake2bUpdate:v4.blake2bUpdate,blake2bFinal:v4.blake2bFinal,blake2s:w4.blake2s,blake2sHex:w4.blake2sHex,blake2sInit:w4.blake2sInit,blake2sUpdate:w4.blake2sUpdate,blake2sFinal:w4.blake2sFinal}});var eet=_((mOn,XXe)=>{"use strict";d();p();var ix=QXe(),NEr=45569,BEr=45633,DEr={init:ix.blake2bInit,update:ix.blake2bUpdate,digest:ix.blake2bFinal},OEr={init:ix.blake2sInit,update:ix.blake2sUpdate,digest:ix.blake2sFinal},ZXe=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};XXe.exports=r=>{for(let e=0;e<64;e++)r[NEr+e]=ZXe(e+1,DEr);for(let e=0;e<32;e++)r[BEr+e]=ZXe(e+1,OEr)}});var net=_((bOn,ret)=>{"use strict";d();p();var em=uK(),tet=kXe(),{factory:LN}=SXe(),{fromNumberTo32BitBuf:LEr}=RXe(),{fromString:qEr}=(cv(),rt(p4)),cp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(em.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(em.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(em.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(em.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(em.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(em.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(em.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(em.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(em.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(em.keccak512.arrayBuffer(e));case"murmur3-128":return qEr(tet.x64.hash128(e),"base16");case"murmur3-32":return LEr(tet.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},FEr=r=>r;ret.exports={identity:FEr,sha1:LN("sha1"),sha2256:LN("sha2-256"),sha2512:LN("sha2-512"),dblSha2256:LN("dbl-sha2-256"),sha3224:cp("sha3-224"),sha3256:cp("sha3-256"),sha3384:cp("sha3-384"),sha3512:cp("sha3-512"),shake128:cp("shake-128"),shake256:cp("shake-256"),keccak224:cp("keccak-224"),keccak256:cp("keccak-256"),keccak384:cp("keccak-384"),keccak512:cp("keccak-512"),murmur3128:cp("murmur3-128"),murmur332:cp("murmur3-32"),addBlake:eet()}});var VQ={};cr(VQ,{equals:()=>KQ});function KQ(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{d();p()});var x4=_((TOn,iet)=>{"use strict";d();p();var aet=rv(),FN=y4(),Oo=net(),{equals:WEr}=(qN(),rt(VQ));async function up(r,e,t){let n=await up.digest(r,e,t);return FN.encode(n,e,t)}up.multihash=FN;up.digest=async(r,e,t)=>{let a=await up.createHash(e)(r);return t?a.slice(0,t):a};up.createHash=function(r){if(!r)throw aet(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=FN.coerceCode(r);if(!up.functions[e])throw aet(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return up.functions[e]};up.functions={0:Oo.identity,17:Oo.sha1,18:Oo.sha2256,19:Oo.sha2512,20:Oo.sha3512,21:Oo.sha3384,22:Oo.sha3256,23:Oo.sha3224,24:Oo.shake128,25:Oo.shake256,26:Oo.keccak224,27:Oo.keccak256,28:Oo.keccak384,29:Oo.keccak512,34:Oo.murmur3128,35:Oo.murmur332,86:Oo.dblSha2256};Oo.addBlake(up.functions);up.validate=async(r,e)=>{let t=await up(r,FN.decode(e).name);return WEr(e,t)};iet.exports=up});var oet=_((IOn,set)=>{"use strict";d();p();var UEr=hZe().bind({ignoreUndefined:!0}),HEr=x4();async function jEr(r){let t=(await HEr(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:jEr,hamtHashCode:34,hamtBucketBits:8};set.exports=function(r={}){return UEr(zEr,r)}});var uet=_((SOn,cet)=>{"use strict";d();p();cet.exports=KEr;function KEr(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";d();p();var WN=het;WN.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var sx=new Array(64),pet=new Array(123);for(xh=0;xh<64;)pet[sx[xh]=xh<26?xh+65:xh<52?xh+71:xh<62?xh-4:xh-59|43]=xh++;var xh;WN.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=sx[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=sx[c|u>>6],i[s++]=sx[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=sx[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var det="invalid encoding";WN.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=pet[c])===void 0)throw Error(det);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(det);return n-a};WN.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var yet=_((DOn,met)=>{"use strict";d();p();met.exports=UN;function UN(){this._listeners={}}UN.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};UN.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";d();p();_et.exports=get(get);function get(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,bet),r.writeFloatBE=e.bind(null,vet);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,wet),r.readFloatBE=t.bind(null,xet)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var h=Math.floor(Math.log(s)/Math.LN2);h===1024&&(h=1023),l=s*Math.pow(2,-h),n(l*4503599627370496>>>0,o,c+a),n((u<<31|h+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,bet,0,4),r.writeDoubleBE=e.bind(null,vet,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,h=u>>>20&2047,f=4294967296*(u&1048575)+c;return h===2047?f?NaN:l*(1/0):h===0?l*5e-324*f:l*Math.pow(2,h-1075)*(f+4503599627370496)}r.readDoubleLE=t.bind(null,wet,0,4),r.readDoubleBE=t.bind(null,xet,4,0)}(),r}function bet(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function vet(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function wet(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function xet(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var Eet=_((exports,module)=>{"use strict";d();p();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var Iet=_(Cet=>{"use strict";d();p();var GQ=Cet;GQ.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};GQ.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var Aet=_((VOn,ket)=>{"use strict";d();p();ket.exports=VEr;function VEr(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var Ret=_((YOn,Pet)=>{"use strict";d();p();Pet.exports=Lo;var _4=y1();function Lo(r,e){this.lo=r>>>0,this.hi=e>>>0}var lv=Lo.zero=new Lo(0,0);lv.toNumber=function(){return 0};lv.zzEncode=lv.zzDecode=function(){return this};lv.length=function(){return 1};var GEr=Lo.zeroHash="\0\0\0\0\0\0\0\0";Lo.fromNumber=function(e){if(e===0)return lv;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new Lo(n,a)};Lo.from=function(e){if(typeof e=="number")return Lo.fromNumber(e);if(_4.isString(e))if(_4.Long)e=_4.Long.fromString(e);else return Lo.fromNumber(parseInt(e,10));return e.low||e.high?new Lo(e.low>>>0,e.high>>>0):lv};Lo.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};Lo.prototype.toLong=function(e){return _4.Long?new _4.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var m1=String.prototype.charCodeAt;Lo.fromHash=function(e){return e===GEr?lv:new Lo((m1.call(e,0)|m1.call(e,1)<<8|m1.call(e,2)<<16|m1.call(e,3)<<24)>>>0,(m1.call(e,4)|m1.call(e,5)<<8|m1.call(e,6)<<16|m1.call(e,7)<<24)>>>0)};Lo.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Lo.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Lo.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Lo.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var y1=_($Q=>{"use strict";d();p();var ut=$Q;ut.asPromise=uet();ut.base64=fet();ut.EventEmitter=yet();ut.float=Tet();ut.inquire=Eet();ut.utf8=Iet();ut.pool=Aet();ut.LongBits=Ret();ut.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);ut.global=ut.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||$Q;ut.emptyArray=Object.freeze?Object.freeze([]):[];ut.emptyObject=Object.freeze?Object.freeze({}):{};ut.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};ut.isString=function(e){return typeof e=="string"||e instanceof String};ut.isObject=function(e){return e&&typeof e=="object"};ut.isset=ut.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};ut.Buffer=function(){try{var r=ut.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();ut._Buffer_from=null;ut._Buffer_allocUnsafe=null;ut.newBuffer=function(e){return typeof e=="number"?ut.Buffer?ut._Buffer_allocUnsafe(e):new ut.Array(e):ut.Buffer?ut._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};ut.Array=typeof Uint8Array<"u"?Uint8Array:Array;ut.Long=ut.global.dcodeIO&&ut.global.dcodeIO.Long||ut.global.Long||ut.inquire("long");ut.key2Re=/^true|false|0|1$/;ut.key32Re=/^-?(?:0|[1-9][0-9]*)$/;ut.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;ut.longToHash=function(e){return e?ut.LongBits.from(e).toHash():ut.LongBits.zeroHash};ut.longFromHash=function(e,t){var n=ut.LongBits.fromHash(e);return ut.Long?ut.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function Met(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};ut.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";d();p();Let.exports=dn;var lp=y1(),YQ,HN=lp.LongBits,Bet=lp.base64,Det=lp.utf8;function T4(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function QQ(){}function $Er(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function dn(){this.len=0,this.head=new T4(QQ,0,0),this.tail=this.head,this.states=null}var Oet=function(){return lp.Buffer?function(){return(dn.create=function(){return new YQ})()}:function(){return new dn}};dn.create=Oet();dn.alloc=function(e){return new lp.Array(e)};lp.Array!==Array&&(dn.alloc=lp.pool(dn.alloc,lp.Array.prototype.subarray));dn.prototype._push=function(e,t,n){return this.tail=this.tail.next=new T4(e,t,n),this.len+=t,this};function ZQ(r,e,t){e[t]=r&255}function YEr(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function XQ(r,e){this.len=r,this.next=void 0,this.val=e}XQ.prototype=Object.create(T4.prototype);XQ.prototype.fn=YEr;dn.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new XQ((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};dn.prototype.int32=function(e){return e<0?this._push(eZ,10,HN.fromNumber(e)):this.uint32(e)};dn.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function eZ(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}dn.prototype.uint64=function(e){var t=HN.from(e);return this._push(eZ,t.length(),t)};dn.prototype.int64=dn.prototype.uint64;dn.prototype.sint64=function(e){var t=HN.from(e).zzEncode();return this._push(eZ,t.length(),t)};dn.prototype.bool=function(e){return this._push(ZQ,1,e?1:0)};function JQ(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}dn.prototype.fixed32=function(e){return this._push(JQ,4,e>>>0)};dn.prototype.sfixed32=dn.prototype.fixed32;dn.prototype.fixed64=function(e){var t=HN.from(e);return this._push(JQ,4,t.lo)._push(JQ,4,t.hi)};dn.prototype.sfixed64=dn.prototype.fixed64;dn.prototype.float=function(e){return this._push(lp.float.writeFloatLE,4,e)};dn.prototype.double=function(e){return this._push(lp.float.writeDoubleLE,8,e)};var JEr=lp.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(ZQ,1,0);if(lp.isString(e)){var n=dn.alloc(t=Bet.length(e));Bet.decode(e,n,0),e=n}return this.uint32(t)._push(JEr,t,e)};dn.prototype.string=function(e){var t=Det.length(e);return t?this.uint32(t)._push(Det.write,t,e):this._push(ZQ,1,0)};dn.prototype.fork=function(){return this.states=new $Er(this),this.head=this.tail=new T4(QQ,0,0),this.len=0,this};dn.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new T4(QQ,0,0),this.len=0),this};dn.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};dn.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};dn._configure=function(r){YQ=r,dn.create=Oet(),YQ._configure()}});var Wet=_((aLn,Fet)=>{"use strict";d();p();Fet.exports=tm;var qet=tZ();(tm.prototype=Object.create(qet.prototype)).constructor=tm;var g1=y1();function tm(){qet.call(this)}tm._configure=function(){tm.alloc=g1._Buffer_allocUnsafe,tm.writeBytesBuffer=g1.Buffer&&g1.Buffer.prototype instanceof Uint8Array&&g1.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(tm.writeBytesBuffer,t,e),this};function QEr(r,e,t){r.length<40?g1.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}tm.prototype.string=function(e){var t=g1.Buffer.byteLength(e);return this.uint32(t),t&&this._push(QEr,t,e),this};tm._configure()});var aZ=_((oLn,Ket)=>{"use strict";d();p();Ket.exports=Ts;var rm=y1(),nZ,jet=rm.LongBits,ZEr=rm.utf8;function _h(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Ts(r){this.buf=r,this.pos=0,this.len=r.length}var Uet=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Ts(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Ts(e);throw Error("illegal buffer")},zet=function(){return rm.Buffer?function(t){return(Ts.create=function(a){return rm.Buffer.isBuffer(a)?new nZ(a):Uet(a)})(t)}:Uet};Ts.create=zet();Ts.prototype._slice=rm.Array.prototype.subarray||rm.Array.prototype.slice;Ts.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,_h(this,10);return e}}();Ts.prototype.int32=function(){return this.uint32()|0};Ts.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function rZ(){var r=new jet(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw _h(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw _h(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Ts.prototype.bool=function(){return this.uint32()!==0};function jN(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Ts.prototype.fixed32=function(){if(this.pos+4>this.len)throw _h(this,4);return jN(this.buf,this.pos+=4)};Ts.prototype.sfixed32=function(){if(this.pos+4>this.len)throw _h(this,4);return jN(this.buf,this.pos+=4)|0};function Het(){if(this.pos+8>this.len)throw _h(this,8);return new jet(jN(this.buf,this.pos+=4),jN(this.buf,this.pos+=4))}Ts.prototype.float=function(){if(this.pos+4>this.len)throw _h(this,4);var e=rm.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Ts.prototype.double=function(){if(this.pos+8>this.len)throw _h(this,4);var e=rm.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Ts.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw _h(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Ts.prototype.string=function(){var e=this.bytes();return ZEr.read(e,0,e.length)};Ts.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw _h(this,e);this.pos+=e}else do if(this.pos>=this.len)throw _h(this);while(this.buf[this.pos++]&128);return this};Ts.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Ts._configure=function(r){nZ=r,Ts.create=zet(),nZ._configure();var e=rm.Long?"toLong":"toNumber";rm.merge(Ts.prototype,{int64:function(){return rZ.call(this)[e](!1)},uint64:function(){return rZ.call(this)[e](!0)},sint64:function(){return rZ.call(this).zzDecode()[e](!1)},fixed64:function(){return Het.call(this)[e](!0)},sfixed64:function(){return Het.call(this)[e](!1)}})}});var Yet=_((lLn,$et)=>{"use strict";d();p();$et.exports=dv;var Get=aZ();(dv.prototype=Object.create(Get.prototype)).constructor=dv;var Vet=y1();function dv(r){Get.call(this,r)}dv._configure=function(){Vet.Buffer&&(dv.prototype._slice=Vet.Buffer.prototype.slice)};dv.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};dv._configure()});var Qet=_((hLn,Jet)=>{"use strict";d();p();Jet.exports=E4;var iZ=y1();(E4.prototype=Object.create(iZ.EventEmitter.prototype)).constructor=E4;function E4(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");iZ.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}E4.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return iZ.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};E4.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Xet=_(Zet=>{"use strict";d();p();var XEr=Zet;XEr.Service=Qet()});var ttt=_((vLn,ett)=>{"use strict";d();p();ett.exports={}});var att=_(ntt=>{"use strict";d();p();var fl=ntt;fl.build="minimal";fl.Writer=tZ();fl.BufferWriter=Wet();fl.Reader=aZ();fl.BufferReader=Yet();fl.util=y1();fl.rpc=Xet();fl.roots=ttt();fl.configure=rtt;function rtt(){fl.util._configure(),fl.Writer._configure(fl.BufferWriter),fl.Reader._configure(fl.BufferReader)}rtt()});var zN=_((CLn,itt)=>{"use strict";d();p();itt.exports=att()});var ott=_((ALn,stt)=>{"use strict";d();p();var b1=zN(),ox=b1.Reader,sZ=b1.Writer,Jt=b1.util,qo=b1.roots["ipfs-unixfs"]||(b1.roots["ipfs-unixfs"]={});qo.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(Jt.Long?(n.hashType=Jt.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(Jt.Long?(n.fanout=Jt.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=qo.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=Jt.newBuffer(a.Data))),Jt.Long){var i=new Jt.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?qo.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?Jt.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?Jt.Long.prototype.toString.call(t.filesize):n.longs===Number?new Jt.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?Jt.Long.prototype.toString.call(t.hashType):n.longs===Number?new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?Jt.Long.prototype.toString.call(t.fanout):n.longs===Number?new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=qo.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,b1.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();qo.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw Jt.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof qo.UnixTime)return t;var n=new qo.UnixTime;return t.Seconds!=null&&(Jt.Long?(n.Seconds=Jt.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(Jt.Long){var i=new Jt.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?Jt.Long.prototype.toString.call(t.Seconds):n.longs===Number?new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,b1.util.toJSONOptions)},r}();qo.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof qo.Metadata)return t;var n=new qo.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,b1.util.toJSONOptions)},r}();stt.exports=qo});var cx=_((RLn,dtt)=>{"use strict";d();p();var{Data:v0}=ott(),oZ=rv(),ctt=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],eCr=["directory","hamt-sharded-directory"],utt=parseInt("0644",8),ltt=parseInt("0755",8);function KN(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function cZ(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw oZ(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var C4=class{static unmarshal(e){let t=v0.decode(e),n=v0.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new C4({type:ctt[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!ctt.includes(t))throw oZ(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=KN(c),o&&(this.mtime=cZ(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?ltt:utt;let t=KN(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&eCr.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=v0.DataType.Raw;break;case"directory":e=v0.DataType.Directory;break;case"file":e=v0.DataType.File;break;case"metadata":e=v0.DataType.Metadata;break;case"symlink":e=v0.DataType.Symlink;break;case"hamt-sharded-directory":e=v0.DataType.HAMTShard;break;default:throw oZ(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(KN(this.mode)||0),n===utt&&!this.isDirectory()&&(n=void 0),n===ltt&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=cZ(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return v0.encode(i).finish()}};dtt.exports={UnixFS:C4,parseMode:KN,parseMtime:cZ}});var ftt=_((BLn,htt)=>{d();p();htt.exports=uZ;var ptt=128,tCr=127,rCr=~tCr,nCr=Math.pow(2,31);function uZ(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw uZ.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=nCr;)e[t++]=r&255|ptt,r/=128;for(;r&rCr;)e[t++]=r&255|ptt,r>>>=7;return e[t]=r|0,uZ.bytes=t-n+1,e}});var gtt=_((LLn,ytt)=>{d();p();ytt.exports=lZ;var aCr=128,mtt=127;function lZ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw lZ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&mtt)<=aCr);return lZ.bytes=i-n,t}});var vtt=_((WLn,btt)=>{d();p();var iCr=Math.pow(2,7),sCr=Math.pow(2,14),oCr=Math.pow(2,21),cCr=Math.pow(2,28),uCr=Math.pow(2,35),lCr=Math.pow(2,42),dCr=Math.pow(2,49),pCr=Math.pow(2,56),hCr=Math.pow(2,63);btt.exports=function(r){return r{d();p();wtt.exports={encode:ftt(),decode:gtt(),encodingLength:vtt()}});var pZ=_((VLn,Ttt)=>{"use strict";d();p();var xtt=dZ(),{toString:fCr}=(tx(),rt(PN)),{fromString:mCr}=(cv(),rt(p4));Ttt.exports={numberToUint8Array:yCr,uint8ArrayToNumber:_tt,varintUint8ArrayEncode:gCr,varintEncode:bCr};function _tt(r){return parseInt(fCr(r,"base16"),16)}function yCr(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),mCr(e,"base16")}function gCr(r){return Uint8Array.from(xtt.encode(_tt(r)))}function bCr(r){return Uint8Array.from(xtt.encode(r))}});var Ctt=_((YLn,Ett)=>{"use strict";d();p();var vCr=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});Ett.exports={baseTable:vCr}});var ktt=_((ZLn,Itt)=>{"use strict";d();p();var{baseTable:hZ}=Ctt(),wCr=pZ().varintEncode,fZ={},mZ={},VN={};for(let r in hZ){let e=r,t=hZ[e];fZ[e]=wCr(t);let n=e.toUpperCase().replace(/-/g,"_");mZ[n]=t,VN[t]||(VN[t]=e)}Object.freeze(fZ);Object.freeze(mZ);Object.freeze(VN);var xCr=Object.freeze(hZ);Itt.exports={nameToVarint:fZ,constantToCode:mZ,nameToCode:xCr,codeToName:VN}});var gZ=_((tqn,Ott)=>{"use strict";d();p();var GN=dZ(),{concat:_Cr}=(uv(),rt(f4)),Att=pZ(),{nameToVarint:$N,constantToCode:TCr,nameToCode:Stt,codeToName:yZ}=ktt();function ECr(r,e){let t;if(r instanceof Uint8Array)t=Att.varintUint8ArrayEncode(r);else if($N[r])t=$N[r];else throw new Error("multicodec not recognized");return _Cr([t,e],t.length+e.length)}function CCr(r){return GN.decode(r),r.slice(GN.decode.bytes)}function Ptt(r){let e=GN.decode(r),t=yZ[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function Rtt(r){return yZ[r]}function Mtt(r){let e=Stt[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Ntt(r){return GN.decode(r)}function Btt(r){let e=$N[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Dtt(r){return Att.varintEncode(r)}function ICr(r){return Ptt(r)}function kCr(r){return Rtt(r)}function ACr(r){return Mtt(r)}function SCr(r){return Ntt(r)}function PCr(r){return Btt(r)}function RCr(r){return Array.from(Dtt(r))}Ott.exports={addPrefix:ECr,rmPrefix:CCr,getNameFromData:Ptt,getNameFromCode:Rtt,getCodeFromName:Mtt,getCodeFromData:Ntt,getVarintFromName:Btt,getVarintFromCode:Dtt,getCodec:ICr,getName:kCr,getNumber:ACr,getCode:SCr,getCodeVarint:PCr,getVarint:RCr,...TCr,nameToVarint:$N,nameToCode:Stt,codeToName:yZ}});var qtt=_((aqn,Ltt)=>{"use strict";d();p();var MCr=y4(),NCr={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{MCr.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};Ltt.exports=NCr});var ux=_((oqn,Utt)=>{"use strict";d();p();var YN=y4(),bZ=cQ(),pv=gZ(),BCr=qtt(),{concat:Ftt}=(uv(),rt(f4)),{toString:DCr}=(tx(),rt(PN)),{equals:OCr}=(qN(),rt(VQ)),JN=pv.nameToCode,LCr=Object.keys(JN).reduce((r,e)=>(r[JN[e]]=e,r),{}),Wtt=Symbol.for("@ipld/js-cid/CID"),dp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,Wtt,{value:!0}),dp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=bZ.isEncoded(e);if(i){let s=bZ.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=pv.getCodec(s.slice(1)),this.multihash=pv.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=YN.fromB58String(e),this.multibaseName="base58btc";dp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=pv.getCodec(s.slice(1)),this.multihash=pv.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";dp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=LCr[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),dp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=pv.getCodeVarint(this.codec);e=Ftt([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=pv.getCodeVarint(this.codec),t=YN.prefix(this.multihash);return Ftt([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return JN[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=YN.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new dp(0,this.codec,this.multihash)}toV1(){return new dp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=YN.toB58String(this.multihash)}else if(this.version===1)t=DCr(bZ.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&OCr(this.multihash,e.multihash)}static validateCID(e){let t=BCr.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof dp||Boolean(e&&e[Wtt])}};dp.codecs=JN;Utt.exports=dp});var lx=_((lqn,Htt)=>{"use strict";d();p();var qCr=x4(),FCr=ux(),WCr=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await qCr(r,t.hashAlg),a=new FCr(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};Htt.exports=WCr});var vZ=_((hqn,ztt)=>{"use strict";d();p();var hv=zN(),QN=hv.Reader,jtt=hv.Writer,ss=hv.util,td=hv.roots.default||(hv.roots.default={});td.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBLink)return t;var n=new td.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?ss.base64.decode(t.Hash,n.Hash=ss.newBuffer(ss.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(ss.Long?(n.Tsize=ss.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=ss.newBuffer(a.Hash))),a.Name="",ss.Long){var i=new ss.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?ss.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?ss.Long.prototype.toString.call(t.Tsize):n.longs===Number?new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,hv.util.toJSONOptions)},r}();td.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(td.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof td.PBNode)return t;var n=new td.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";d();p();var{bases:Ktt}=(LQ(),rt(yXe));function Gtt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Vtt=Gtt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),wZ=Gtt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";d();p();var HCr=xZ();function jCr(r,e="utf8"){let t=HCr[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}Ytt.exports=jCr});var fv=_((_qn,Jtt)=>{"use strict";d();p();var zCr=ux(),KCr=ZN(),_Z=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new zCr(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=KCr(this.Name),this._nameBuf)}};Jtt.exports=_Z});var Qtt=_((TZ,EZ)=>{d();p();(function(r,e){typeof TZ=="object"&&typeof EZ<"u"?EZ.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(TZ,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(h=o),f>o&&(f=o),m=l,y=h;;)if(m{"use strict";d();p();function VCr(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";d();p();var GCr=Qtt(),$Cr=Xtt(),YCr=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return $Cr(t,n)},JCr=r=>{GCr.inplace(r,YCr)};ert.exports=JCr});var IZ=_((Nqn,trt)=>{"use strict";d();p();var QCr=fv();function ZCr(r){return new QCr(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}trt.exports={createDagLinkFromB58EncodedHash:ZCr}});var kZ=_((Oqn,art)=>{"use strict";d();p();var XCr=zN(),{PBLink:e4r}=vZ(),{createDagLinkFromB58EncodedHash:t4r}=IZ(),rrt=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},r4r=r=>nrt(rrt(r)),n4r=(r,e=[])=>{let t={Data:r,Links:e.map(n=>t4r(n))};return nrt(rrt(t))};art.exports={serializeDAGNode:r4r,serializeDAGNodeLike:n4r};function nrt(r){let e=XCr.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";d();p();var a4r=ux(),irt=gZ(),srt=x4(),{multihash:ort}=srt,crt=irt.DAG_PB,urt=ort.names["sha2-256"],i4r=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?urt:e.hashAlg},n=ort.codes[t.hashAlg],a=await srt(r,n),i=irt.getNameFromCode(crt);return new a4r(t.cidVersion,i,a)};lrt.exports={codec:crt,defaultHashAlg:urt,cid:i4r}});var prt=_((Hqn,drt)=>{"use strict";d();p();var s4r=fv(),o4r=AZ(),c4r=async(r,e={})=>{let t=r.serialize(),n=await o4r.cid(t,e);return new s4r(e.name||"",r.size,n)};drt.exports=c4r});var mrt=_((Kqn,frt)=>{"use strict";d();p();var u4r=CZ(),hrt=fv(),l4r=r=>{if(r instanceof hrt)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new hrt(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},d4r=(r,e)=>{let t=l4r(e);r.Links.push(t),u4r(r.Links)};frt.exports=d4r});var grt=_(($qn,yrt)=>{"use strict";d();p();function p4r(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";d();p();var h4r=ux(),brt=grt(),f4r=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>brt(n.Hash.bytes,e):h4r.isCID(e)&&(t=n=>brt(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";d();p();var m4r=xZ();function y4r(r,e="utf8"){let t=m4r[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}xrt.exports=y4r});var PZ=_((nFn,Trt)=>{"use strict";d();p();var g4r=CZ(),b4r=fv(),{createDagLinkFromB58EncodedHash:v4r}=IZ(),{serializeDAGNode:w4r}=kZ(),x4r=prt(),_4r=mrt(),T4r=wrt(),E4r=ZN(),C4r=_rt(),SZ=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=E4r(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof b4r?i:v4r(i));g4r(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),_4r(this,e)}rmLink(e){return this._invalidateCached(),T4r(this,e)}toDAGLink(e){return x4r(this,e)}serialize(){let e=w4r(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};Trt.exports=SZ});var MZ=_((sFn,Irt)=>{"use strict";d();p();var{PBNode:Ert}=vZ(),I4r=fv(),Crt=PZ(),{serializeDAGNode:k4r,serializeDAGNodeLike:A4r}=kZ(),RZ=AZ(),S4r=(r,e)=>RZ.cid(r,e),P4r=r=>r instanceof Crt?k4r(r):A4r(r.Data,r.Links),R4r=r=>{let e=Ert.decode(r),t=Ert.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new I4r(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new Crt(a,n,r.byteLength)};Irt.exports={codec:RZ.codec,defaultHashAlg:RZ.defaultHashAlg,serialize:P4r,deserialize:R4r,cid:S4r}});var Art=_(NZ=>{"use strict";d();p();var M4r=ux(),krt=MZ();NZ.resolve=(r,e="/")=>{let t=krt.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],M4r.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};NZ.tree=function*(r){let e=krt.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";d();p();var N4r=Art(),BZ=MZ(),B4r=PZ(),D4r=fv(),O4r={DAGNode:B4r,DAGLink:D4r,resolver:N4r,util:BZ,codec:BZ.codec,defaultHashAlg:BZ.defaultHashAlg};Srt.exports=O4r});var Rrt=_((mFn,Prt)=>{"use strict";d();p();var{UnixFS:L4r}=cx(),q4r=lx(),{DAGNode:F4r}=dx(),W4r=async(r,e,t)=>{let n=new L4r({type:"directory",mtime:r.mtime,mode:r.mode}),a=new F4r(n.marshal()).serialize(),i=await q4r(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};Prt.exports=W4r});var Nrt=_((bFn,Mrt)=>{"use strict";d();p();var U4r=async r=>{let e=[];for await(let t of r)e.push(t);return e};Mrt.exports=U4r});var Drt=_((xFn,Brt)=>{"use strict";d();p();var H4r=Nrt();Brt.exports=async function(r,e){return e(await H4r(r))}});var qrt=_((EFn,Lrt)=>{"use strict";d();p();var j4r=mN();function z4r(r,e,t){return Ort(r,e,t)}async function Ort(r,e,t){let n=[];for await(let a of j4r(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?Ort(n,e,t):n[0]}Lrt.exports=z4r});var Wrt=_((kFn,Frt)=>{"use strict";d();p();var K4r=mN();Frt.exports=async function(e,t,n){let a=new DZ(n.layerRepeat),i=0,s=1,o=a;for await(let c of K4r(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new XN(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var XN=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},DZ=class extends XN{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var Hrt=_((PFn,Urt)=>{"use strict";d();p();var{UnixFS:V4r}=cx(),G4r=lx(),{DAGNode:$4r}=dx();async function*Y4r(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new V4r({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new $4r(a.marshal()).serialize()),{cid:await G4r(n,e,i),unixfs:a,size:n.length}}}Urt.exports=Y4r});var $rt=_((NFn,Grt)=>{"use strict";d();p();var J4r=rv(),{UnixFS:jrt}=cx(),zrt=lx(),{DAGNode:Krt,DAGLink:Vrt}=dx(),Q4r=iQ(),Z4r=x4().multihash,X4r={flat:Drt(),balanced:qrt(),trickle:Wrt()};async function*e8r(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=Hrt();for await(let s of Q4r(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var t8r=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:h}=await e.get(l.cid,t);l.unixfs=new jrt({type:"file",mtime:r.mtime,mode:r.mode,data:h});let f=Z4r.decode(l.cid.multihash);h=new Krt(l.unixfs.marshal()).serialize(),l.cid=await zrt(h,e,{...t,codec:"dag-pb",hashAlg:f.name,cidVersion:t.cidVersion}),l.size=h.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new jrt({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new Vrt("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new Vrt("",l.size,l.cid))),o=new Krt(i.marshal(),s),c=o.serialize();return{cid:await zrt(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,h)=>l+h.Tsize,0)}}return n};function r8r(r,e,t){let n=X4r[t.strategy];if(!n)throw J4r(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(e8r(r,e,t),t8r(r,e,t),t)}Grt.exports=r8r});var OZ=_((OFn,Jrt)=>{"use strict";d();p();var{Buffer:Th}=ac(),Yrt=Symbol.for("BufferList");function ri(r){if(!(this instanceof ri))return new ri(r);ri._init.call(this,r)}ri._init=function(e){Object.defineProperty(this,Yrt,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};ri.prototype._new=function(e){return new ri(e)};ri.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};ri.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};ri.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||Th.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Th.concat(this._bufs,this.length);for(let h=0;hf)this._bufs[h].copy(e,u,l),u+=f;else{this._bufs[h].copy(e,u,l,l+c),u+=f;break}c-=f,l&&(l=0)}return e.length>u?e.slice(0,u):e};ri.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};ri.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};ri.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};ri.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};ri.prototype._match=function(r,e){if(this.length-r{d();p();var LZ=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),h=this.rabin.fingerprint(l,u),f=i(h);n(l),n(u);let m=f.indexOf(0);return m>=0?f.subarray(0,m):f}};Qrt.exports=LZ});var ant=_(A4=>{"use strict";d();p();var n8r=typeof BigUint64Array<"u",I4=Symbol(),k4=1024;function Xrt(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=k4)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+k4-1],c=o>=55296&&o<56320?k4-1:k4;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>k4);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function qZ(r){let e={};function t(a,i){return a?Xrt(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function FZ(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(K){let H=new Uint32Array(n.buffer),V=H[o>>>2];if((K>>>=0)>=V)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2]}function u(K){let H=new Uint32Array(n.buffer),V=H[o>>>2];if((K>>>=0)>=V)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2+1]}function l(K){return 31-Math.clz32(K>>>5&31)}function h(K){return 31-Math.clz32(K>>>14&31)}function f(K){let H=K.length,V=i(H<<1,1),J=new Uint16Array(n.buffer);for(var q=0,T=V>>>1;q>>2]!==1)throw Error("not a string: "+K);return Xrt(H,K)}r.__getString=m;function y(K,H,V){let J=n.buffer;if(V)switch(K){case 2:return new Float32Array(J);case 3:return new Float64Array(J)}else switch(K){case 0:return new(H?Int8Array:Uint8Array)(J);case 1:return new(H?Int16Array:Uint16Array)(J);case 2:return new(H?Int32Array:Uint32Array)(J);case 3:return new(H?BigInt64Array:BigUint64Array)(J)}throw Error("unsupported align: "+K)}function E(K,H){let V=c(K);if(!(V&3))throw Error("not an array: "+K+" @ "+V);let J=l(V),q=H.length,T=i(q<>>2]=s(T),A[P+4>>>2]=T,A[P+8>>>2]=q<>>2]=q);let v=y(J,V&1024,V&2048);if(V&8192)for(let k=0;k>>J)+k]=s(H[k]);else v.set(H,T>>>J);return P}r.__allocArray=E;function I(K){let H=new Uint32Array(n.buffer),V=H[K+-8>>>2],J=c(V);if(!(J&1))throw Error("not an array: "+V);let q=l(J);var T=H[K+4>>>2];let P=J&2?H[K+12>>>2]:H[T+-4>>>2]>>>q;return y(q,J&1024,J&2048).subarray(T>>>=q,T+P)}r.__getArrayView=I;function S(K){let H=I(K),V=H.length,J=new Array(V);for(let q=0;q>>2];return H.slice(K,K+V)}r.__getArrayBuffer=L;function F(K,H,V){return new K(W(K,H,V))}function W(K,H,V){let J=n.buffer,q=new Uint32Array(J),T=q[V+4>>>2];return new K(J,T,q[T+-4>>>2]>>>H)}r.__getInt8Array=F.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=F.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=F.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=F.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=F.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=F.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=F.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),n8r&&(r.__getInt64Array=F.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=F.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=F.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=F.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function G(K,H){let V=new Uint32Array(n.buffer);var J=V[K+-8>>>2];if(J<=V[o>>>2])do if(J==H)return!0;while(J=u(J));return!1}return r.__instanceof=G,r.memory=r.memory||n,r.table=r.table||a,nnt(t,r)}function ent(r){return typeof Response<"u"&&r instanceof Response}async function tnt(r,e){return ent(r=await r)?rnt(r,e):FZ(qZ(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}A4.instantiate=tnt;function a8r(r,e){return FZ(qZ(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}A4.instantiateSync=a8r;async function rnt(r,e){return WebAssembly.instantiateStreaming?FZ(qZ(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):tnt(ent(r=await r)?r.arrayBuffer():r,e)}A4.instantiateStreaming=rnt;function nnt(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),h=o[l];if(typeof h>"u"||!h.prototype){let f=function(...m){return f.wrap(f.prototype.constructor(0,...m))};f.prototype={valueOf:function(){return this[I4]}},f.wrap=function(m){return Object.create(f.prototype,{[I4]:{value:m,writable:!1}})},h&&Object.getOwnPropertyNames(h).forEach(m=>Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))),o[l]=f}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let f=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return f(this[I4])},set:function(y){m(this[I4],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...f)=>(n(f.length),i(...f))).original=i:(o[c]=function(...f){return n(f.length),i(this[I4],...f)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}A4.demangle=nnt});var snt=_((KFn,int)=>{d();p();var{instantiate:i8r}=ant();WZ.supported=typeof WebAssembly<"u";function WZ(r={}){if(!WZ.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return i8r(new Response(new Blob([e],{type:"application/wasm"})),r)}int.exports=WZ});var unt=_(($Fn,cnt)=>{d();p();var ont=Zrt(),s8r=snt(),o8r=async(r,e,t,n,a)=>{let i=await s8r();return new ont(i,r,e,t,n,a)};cnt.exports={Rabin:ont,create:o8r}});var pnt=_((QFn,dnt)=>{"use strict";d();p();var c8r=OZ(),{create:u8r}=unt(),lnt=rv();dnt.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw lnt(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw lnt(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";d();p();var UZ=OZ();hnt.exports=async function*(e,t){let n=new UZ,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new UZ,a=0;else{let c=new UZ;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var gnt=_((nWn,ynt)=>{"use strict";d();p();var mnt=rv(),d8r=ZN();async function*p8r(r){for await(let e of r){if(e.length===void 0)throw mnt(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield d8r(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw mnt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}ynt.exports=p8r});var wnt=_((sWn,vnt)=>{"use strict";d();p();var h8r=Rrt(),f8r=$rt(),bnt=rv();function m8r(r){return Symbol.iterator in r}function y8r(r){return Symbol.asyncIterator in r}function g8r(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(m8r(r))return async function*(){yield*r}();if(y8r(r))return r}catch{throw bnt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw bnt(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*b8r(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=pnt():a=fnt();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=gnt();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(g8r(n.content),t),t)};yield()=>f8r(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>h8r(a,e,t)}else throw new Error("Import candidate must have content or path or both")}vnt.exports=b8r});var eB=_((uWn,xnt)=>{"use strict";d();p();var HZ=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};xnt.exports=HZ});var zZ=_((pWn,Tnt)=>{"use strict";d();p();var{DAGLink:v8r,DAGNode:w8r}=dx(),{UnixFS:x8r}=cx(),_nt=eB(),_8r=lx(),jZ=class extends _nt{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};Tnt.exports=jZ});var Int=_((yWn,Cnt)=>{"use strict";d();p();Cnt.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(T8r,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(E8r),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(C8r)}};function T8r(r,e){return r+Ent(e)}function Ent(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function E8r(r,e){return r[0]-e[0]}function C8r(r){return r[1]}});var Snt=_((vWn,Ant)=>{"use strict";d();p();var I8r=Int(),{fromString:k8r}=(cv(),rt(p4)),pp=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new I8r,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof pp?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof pp?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof pp?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return knt(this,e,t)}toJSON(){return this.serialize(S8r,P8r)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof pp)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?k8r(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof pp?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new pp(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(A8r);if(e&&!(e instanceof pp)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function A8r(r){return Boolean(r)}function S8r(r,e){return r.key}function P8r(r){return r}async function knt(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof pp)await knt(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}Ant.exports=pp});var Rnt=_((TWn,Pnt)=>{"use strict";d();p();var R8r=[255,254,252,248,240,224,192,128],M8r=[1,3,7,15,31,63,127,255];Pnt.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=N8r(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function N8r(r,e,t){let n=B8r(e,t);return(r&n)>>>e}function B8r(r,e){return R8r[r]&M8r[Math.min(e+r-1,7)]}});var Mnt=_((IWn,KZ)=>{"use strict";d();p();var D8r=Rnt(),{concat:O8r}=(uv(),rt(f4));function L8r(r){function e(t){return t instanceof S4?t:new S4(t,r)}return e}var S4=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?O8r([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new D8r(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};KZ.exports=L8r;KZ.exports.InfiniteHash=S4});var Dnt=_((SWn,Bnt)=>{"use strict";d();p();var Nnt=Snt(),q8r=Mnt();function F8r(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:q8r(r.hashFn)};return new Nnt(e)}Bnt.exports={createHAMT:F8r,Bucket:Nnt}});var qnt=_((MWn,Lnt)=>{"use strict";d();p();var{DAGLink:VZ,DAGNode:W8r}=dx(),{UnixFS:U8r}=cx(),H8r=eB(),j8r=lx(),{createHAMT:z8r,Bucket:K8r}=Dnt(),GZ=class extends H8r{constructor(e,t){super(e,t),this._bucket=z8r({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of Ont(this._bucket,e,this,this.options))yield{...t,path:this.path}}};Lnt.exports=GZ;async function*Ont(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";d();p();var V8r=qnt(),G8r=zZ();Fnt.exports=async function r(e,t,n,a){let i=t;t instanceof G8r&&t.directChildrenCount()>=n&&(i=await $8r(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function $8r(r,e){let t=new V8r({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var Hnt=_((qWn,Unt)=>{"use strict";d();p();var Y8r=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);Unt.exports=Y8r});var Gnt=_((UWn,Vnt)=>{"use strict";d();p();var znt=zZ(),J8r=Wnt(),Knt=eB(),Q8r=Hnt();async function Z8r(r,e,t){let n=Q8r(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";d();p();var eIr=iQ(),tIr=oet();async function*rIr(r,e,t={}){let n=tIr(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=wnt();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=Gnt();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(eIr(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}$nt.exports={importer:rIr}});var YZ=_((GWn,Ynt)=>{d();p();Ynt.exports=typeof self=="object"?self.FormData:window.FormData});var iat=_($a=>{"use strict";d();p();Object.defineProperty($a,"__esModule",{value:!0});var nIr=tn(),aIr=$Z(),iIr=YZ(),sIr=Fr();function Jnt(r){return r&&r.__esModule?r:{default:r}}var tB=Jnt(nIr),oIr=Jnt(iIr);function cIr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function uIr(r){var e=cIr(r,"string");return typeof e=="symbol"?e:String(e)}function mv(r,e,t){return e=uIr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var px={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},Qnt="https://upload.nftlabs.co",JZ="https://api.pinata.cloud/pinning/pinFileToIPFS";function Znt(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Xnt(r){let e={...r,...px};for(let t of Object.keys(px))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...px[t]]}return e}function QZ(){return typeof window<"u"}function hx(r){return global.File&&r instanceof File}function w0(r){return global.Buffer&&r instanceof b.Buffer}function fx(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||w0(r.data)))}function mx(r){return hx(r)||w0(r)||fx(r)}function eat(r,e){if(hx(r)&&hx(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(w0(r)&&w0(e))return r.equals(e);if(fx(r)&&fx(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(w0(r.data)&&w0(e.data))return r.data.equals(e.data)}}return!1}function tat(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function oB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function rB(r,e){return typeof r=="string"?tat(r,e):typeof r=="object"?!r||mx(r)?r:Array.isArray(r)?r.map(t=>rB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,rB(a,e)]})):r}function P4(r,e){return typeof r=="string"?oB(r,e):typeof r=="object"?!r||mx(r)?r:Array.isArray(r)?r.map(t=>P4(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,P4(a,e)]})):r}function nB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(mx(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>nB(t,e)):Object.keys(r).map(t=>nB(r[t],e))}return e}function aB(r,e){if(mx(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>aB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,aB(a,e)]}))):r}async function rat(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(fx(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return nat(a,t,n)}async function nat(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of aIr.importer(r,a,n))i=s;return`${i}`}async function aat(r){return(await tB.default(`${px["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var iB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=oB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await tB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},sB=class{constructor(e){mv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new oIr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await rat(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await aat(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return QZ()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await tB.default(`${Qnt}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else fx(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(eat(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),QZ()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",JZ),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await tB.default(JZ,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},ZZ=class{constructor(e){mv(this,"uploader",void 0),mv(this,"downloader",void 0),mv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new sB,this.downloader=e?.downloader||new iB,this.gatewayUrls=Xnt(Znt(e?.gatewayUrls))}resolveScheme(e){return oB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return P4(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>mx(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=rB(n,this.gatewayUrls);let a=nB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=aB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=P4(n,this.gatewayUrls)),n}},XZ=class{constructor(e){mv(this,"gatewayUrls",px),mv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},eX=class{constructor(e){mv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=sIr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(hx(s))o=await s.text();else if(w0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=w0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};$a.DEFAULT_GATEWAY_URLS=px;$a.IpfsUploader=sB;$a.MockDownloader=XZ;$a.MockUploader=eX;$a.PINATA_IPFS_URL=JZ;$a.StorageDownloader=iB;$a.TW_IPFS_SERVER_URL=Qnt;$a.ThirdwebStorage=ZZ;$a.extractObjectFiles=nB;$a.getCID=nat;$a.getCIDForUpload=rat;$a.isBrowser=QZ;$a.isBufferInstance=w0;$a.isBufferOrStringWithName=fx;$a.isFileBufferOrStringEqual=eat;$a.isFileInstance=hx;$a.isFileOrBuffer=mx;$a.isUploaded=aat;$a.parseGatewayUrls=Znt;$a.prepareGatewayUrls=Xnt;$a.replaceGatewayUrlWithScheme=tat;$a.replaceObjectFilesWithUris=aB;$a.replaceObjectGatewayUrlsWithSchemes=rB;$a.replaceObjectSchemesWithGatewayUrls=P4;$a.replaceSchemeWithGatewayUrl=oB});var mat=_(Ya=>{"use strict";d();p();Object.defineProperty(Ya,"__esModule",{value:!0});var lIr=tn(),dIr=$Z(),pIr=YZ(),hIr=Fr();function sat(r){return r&&r.__esModule?r:{default:r}}var cB=sat(lIr),fIr=sat(pIr);function mIr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function yIr(r){var e=mIr(r,"string");return typeof e=="symbol"?e:String(e)}function yv(r,e,t){return e=yIr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var yx={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},oat="https://upload.nftlabs.co",tX="https://api.pinata.cloud/pinning/pinFileToIPFS";function cat(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function uat(r){let e={...r,...yx};for(let t of Object.keys(yx))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...yx[t]]}return e}function rX(){return typeof window<"u"}function gx(r){return global.File&&r instanceof File}function x0(r){return global.Buffer&&r instanceof b.Buffer}function bx(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||x0(r.data)))}function vx(r){return gx(r)||x0(r)||bx(r)}function lat(r,e){if(gx(r)&&gx(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(x0(r)&&x0(e))return r.equals(e);if(bx(r)&&bx(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(x0(r.data)&&x0(e.data))return r.data.equals(e.data)}}return!1}function dat(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function fB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function uB(r,e){return typeof r=="string"?dat(r,e):typeof r=="object"?!r||vx(r)?r:Array.isArray(r)?r.map(t=>uB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,uB(a,e)]})):r}function R4(r,e){return typeof r=="string"?fB(r,e):typeof r=="object"?!r||vx(r)?r:Array.isArray(r)?r.map(t=>R4(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,R4(a,e)]})):r}function lB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(vx(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>lB(t,e)):Object.keys(r).map(t=>lB(r[t],e))}return e}function dB(r,e){if(vx(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>dB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,dB(a,e)]}))):r}async function pat(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(bx(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return hat(a,t,n)}async function hat(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of dIr.importer(r,a,n))i=s;return`${i}`}async function fat(r){return(await cB.default(`${yx["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var pB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=fB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await cB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},hB=class{constructor(e){yv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new fIr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await pat(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await fat(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return rX()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await cB.default(`${oat}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else bx(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(lat(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),rX()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",tX),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await cB.default(tX,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},nX=class{constructor(e){yv(this,"uploader",void 0),yv(this,"downloader",void 0),yv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new hB,this.downloader=e?.downloader||new pB,this.gatewayUrls=uat(cat(e?.gatewayUrls))}resolveScheme(e){return fB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return R4(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>vx(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=uB(n,this.gatewayUrls);let a=lB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=dB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=R4(n,this.gatewayUrls)),n}},aX=class{constructor(e){yv(this,"gatewayUrls",yx),yv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},iX=class{constructor(e){yv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=hIr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(gx(s))o=await s.text();else if(x0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=x0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ya.DEFAULT_GATEWAY_URLS=yx;Ya.IpfsUploader=hB;Ya.MockDownloader=aX;Ya.MockUploader=iX;Ya.PINATA_IPFS_URL=tX;Ya.StorageDownloader=pB;Ya.TW_IPFS_SERVER_URL=oat;Ya.ThirdwebStorage=nX;Ya.extractObjectFiles=lB;Ya.getCID=hat;Ya.getCIDForUpload=pat;Ya.isBrowser=rX;Ya.isBufferInstance=x0;Ya.isBufferOrStringWithName=bx;Ya.isFileBufferOrStringEqual=lat;Ya.isFileInstance=gx;Ya.isFileOrBuffer=vx;Ya.isUploaded=fat;Ya.parseGatewayUrls=cat;Ya.prepareGatewayUrls=uat;Ya.replaceGatewayUrlWithScheme=dat;Ya.replaceObjectFilesWithUris=dB;Ya.replaceObjectGatewayUrlsWithSchemes=uB;Ya.replaceObjectSchemesWithGatewayUrls=R4;Ya.replaceSchemeWithGatewayUrl=fB});var gn=_((rUn,sX)=>{"use strict";d();p();g.env.NODE_ENV==="production"?sX.exports=iat():sX.exports=mat()});var Gr=_((iUn,yat)=>{"use strict";d();p();var gIr=g.env.NODE_ENV==="production",oX="Invariant failed";function bIr(r,e){if(!r){if(gIr)throw new Error(oX);var t=typeof e=="function"?e():e,n=t?"".concat(oX,": ").concat(t):oX;throw new Error(n)}}yat.exports=bIr});var fa=_((cUn,vIr)=>{vIr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var bat=_((uUn,gat)=>{d();p();gat.exports=function(e){for(var t=new b.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var rn=_((mB,vat)=>{d();p();(function(r,e){typeof mB=="object"?vat.exports=mB=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(mB,function(){var r=r||function(e,t){var n=Object.create||function(){function E(){}return function(I){var S;return E.prototype=I,S=new E,E.prototype=null,S}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(E){var I=n(this);return E&&I.mixIn(E),(!I.hasOwnProperty("init")||this.init===I.init)&&(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var I in E)E.hasOwnProperty(I)&&(this[I]=E[I]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(E,I){E=this.words=E||[],I!=t?this.sigBytes=I:this.sigBytes=E.length*4},toString:function(E){return(E||u).stringify(this)},concat:function(E){var I=this.words,S=E.words,L=this.sigBytes,F=E.sigBytes;if(this.clamp(),L%4)for(var W=0;W>>2]>>>24-W%4*8&255;I[L+W>>>2]|=G<<24-(L+W)%4*8}else for(var W=0;W>>2]=S[W>>>2];return this.sigBytes+=F,this},clamp:function(){var E=this.words,I=this.sigBytes;E[I>>>2]&=4294967295<<32-I%4*8,E.length=e.ceil(I/4)},clone:function(){var E=s.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var I=[],S=function(K){var K=K,H=987654321,V=4294967295;return function(){H=36969*(H&65535)+(H>>16)&V,K=18e3*(K&65535)+(K>>16)&V;var J=(H<<16)+K&V;return J/=4294967296,J+=.5,J*(e.random()>.5?1:-1)}},L=0,F;L>>2]>>>24-F%4*8&255;L.push((W>>>4).toString(16)),L.push((W&15).toString(16))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>3]|=parseInt(E.substr(L,2),16)<<24-L%8*4;return new o.init(S,I/2)}},l=c.Latin1={stringify:function(E){for(var I=E.words,S=E.sigBytes,L=[],F=0;F>>2]>>>24-F%4*8&255;L.push(String.fromCharCode(W))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>2]|=(E.charCodeAt(L)&255)<<24-L%4*8;return new o.init(S,I)}},h=c.Utf8={stringify:function(E){try{return decodeURIComponent(escape(l.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return l.parse(unescape(encodeURIComponent(E)))}},f=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=h.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var I=this._data,S=I.words,L=I.sigBytes,F=this.blockSize,W=F*4,G=L/W;E?G=e.ceil(G):G=e.max((G|0)-this._minBufferSize,0);var K=G*F,H=e.min(K*4,L);if(K){for(var V=0;V{d();p();(function(r,e){typeof yB=="object"?wat.exports=yB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(yB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function h(E){for(var I=e.sqrt(E),S=2;S<=I;S++)if(!(E%S))return!1;return!0}function f(E){return(E-(E|0))*4294967296|0}for(var m=2,y=0;y<64;)h(m)&&(y<8&&(o[y]=f(e.pow(m,1/2))),c[y]=f(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(h,f){for(var m=this._hash.words,y=m[0],E=m[1],I=m[2],S=m[3],L=m[4],F=m[5],W=m[6],G=m[7],K=0;K<64;K++){if(K<16)u[K]=h[f+K]|0;else{var H=u[K-15],V=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,J=u[K-2],q=(J<<15|J>>>17)^(J<<13|J>>>19)^J>>>10;u[K]=V+u[K-7]+q+u[K-16]}var T=L&F^~L&W,P=y&E^y&I^E&I,A=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),v=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),k=G+v+T+c[K]+u[K],O=A+P;G=W,W=F,F=L,L=S+k|0,S=I,I=E,E=y,y=k+O|0}m[0]=m[0]+y|0,m[1]=m[1]+E|0,m[2]=m[2]+I|0,m[3]=m[3]+S|0,m[4]=m[4]+L|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+G|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;return f[y>>>5]|=128<<24-y%32,f[(y+64>>>9<<4)+14]=e.floor(m/4294967296),f[(y+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var _at=_((cX,xat)=>{d();p();(function(r,e){typeof cX=="object"?xat.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(cX,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var h="",f=0,m,y,E=o.slice(0);if(E.push([i,s])&&o.length>0&&(o.forEach(function(S,L){L>0&&(h+=(S[1]?" ":"\u2502")+" "),!y&&S[0]===i&&(y=!0)}),h+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(h+=": "+i),y&&(h+=" (circular ref.)"),l(h)),!y&&typeof i=="object"){var I=e(i,u);I.forEach(function(S){m=++f===I.length,t(S,i[S],m,E,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` -`}),o},n})});var N4=_((gB,Tat)=>{d();p();(function(r,e){typeof gB=="object"?Tat.exports=gB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(gB,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,h=[],f=0;f{d();p();(function(r,e){typeof bB=="object"?Eat.exports=bB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(bB,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var kat=_((vB,Iat)=>{d();p();(function(r,e){typeof vB=="object"?Iat.exports=vB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(vB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535;l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535);l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var gv=_((wB,Aat)=>{d();p();(function(r,e){typeof wB=="object"?Aat.exports=wB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(wB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,y=c[f+1>>>2]>>>24-(f+1)%4*8&255,E=c[f+2>>>2]>>>24-(f+2)%4*8&255,I=m<<16|y<<8|E,S=0;S<4&&f+S*.75>>6*(3-S)&63));var L=l.charAt(64);if(L)for(;h.length%4;)h.push(L);return h.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h>>6-f%4*2;l[h>>>2]|=(m|y)<<24-h%4*8,h++}return n.create(l,h)}}(),r.enc.Base64})});var bv=_((xB,Sat)=>{d();p();(function(r,e){typeof xB=="object"?Sat.exports=xB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(xB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var E=0;E<16;E++){var I=y+E,S=m[I];m[I]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var L=this._hash.words,F=m[y+0],W=m[y+1],G=m[y+2],K=m[y+3],H=m[y+4],V=m[y+5],J=m[y+6],q=m[y+7],T=m[y+8],P=m[y+9],A=m[y+10],v=m[y+11],k=m[y+12],O=m[y+13],D=m[y+14],B=m[y+15],x=L[0],N=L[1],U=L[2],C=L[3];x=u(x,N,U,C,F,7,o[0]),C=u(C,x,N,U,W,12,o[1]),U=u(U,C,x,N,G,17,o[2]),N=u(N,U,C,x,K,22,o[3]),x=u(x,N,U,C,H,7,o[4]),C=u(C,x,N,U,V,12,o[5]),U=u(U,C,x,N,J,17,o[6]),N=u(N,U,C,x,q,22,o[7]),x=u(x,N,U,C,T,7,o[8]),C=u(C,x,N,U,P,12,o[9]),U=u(U,C,x,N,A,17,o[10]),N=u(N,U,C,x,v,22,o[11]),x=u(x,N,U,C,k,7,o[12]),C=u(C,x,N,U,O,12,o[13]),U=u(U,C,x,N,D,17,o[14]),N=u(N,U,C,x,B,22,o[15]),x=l(x,N,U,C,W,5,o[16]),C=l(C,x,N,U,J,9,o[17]),U=l(U,C,x,N,v,14,o[18]),N=l(N,U,C,x,F,20,o[19]),x=l(x,N,U,C,V,5,o[20]),C=l(C,x,N,U,A,9,o[21]),U=l(U,C,x,N,B,14,o[22]),N=l(N,U,C,x,H,20,o[23]),x=l(x,N,U,C,P,5,o[24]),C=l(C,x,N,U,D,9,o[25]),U=l(U,C,x,N,K,14,o[26]),N=l(N,U,C,x,T,20,o[27]),x=l(x,N,U,C,O,5,o[28]),C=l(C,x,N,U,G,9,o[29]),U=l(U,C,x,N,q,14,o[30]),N=l(N,U,C,x,k,20,o[31]),x=h(x,N,U,C,V,4,o[32]),C=h(C,x,N,U,T,11,o[33]),U=h(U,C,x,N,v,16,o[34]),N=h(N,U,C,x,D,23,o[35]),x=h(x,N,U,C,W,4,o[36]),C=h(C,x,N,U,H,11,o[37]),U=h(U,C,x,N,q,16,o[38]),N=h(N,U,C,x,A,23,o[39]),x=h(x,N,U,C,O,4,o[40]),C=h(C,x,N,U,F,11,o[41]),U=h(U,C,x,N,K,16,o[42]),N=h(N,U,C,x,J,23,o[43]),x=h(x,N,U,C,P,4,o[44]),C=h(C,x,N,U,k,11,o[45]),U=h(U,C,x,N,B,16,o[46]),N=h(N,U,C,x,G,23,o[47]),x=f(x,N,U,C,F,6,o[48]),C=f(C,x,N,U,q,10,o[49]),U=f(U,C,x,N,D,15,o[50]),N=f(N,U,C,x,V,21,o[51]),x=f(x,N,U,C,k,6,o[52]),C=f(C,x,N,U,K,10,o[53]),U=f(U,C,x,N,A,15,o[54]),N=f(N,U,C,x,W,21,o[55]),x=f(x,N,U,C,T,6,o[56]),C=f(C,x,N,U,B,10,o[57]),U=f(U,C,x,N,J,15,o[58]),N=f(N,U,C,x,O,21,o[59]),x=f(x,N,U,C,H,6,o[60]),C=f(C,x,N,U,v,10,o[61]),U=f(U,C,x,N,G,15,o[62]),N=f(N,U,C,x,P,21,o[63]),L[0]=L[0]+x|0,L[1]=L[1]+N|0,L[2]=L[2]+U|0,L[3]=L[3]+C|0},_doFinalize:function(){var m=this._data,y=m.words,E=this._nDataBytes*8,I=m.sigBytes*8;y[I>>>5]|=128<<24-I%32;var S=e.floor(E/4294967296),L=E;y[(I+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,y[(I+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,G=0;G<4;G++){var K=W[G];W[G]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,E,I,S,L,F){var W=m+(y&E|~y&I)+S+F;return(W<>>32-L)+y}function l(m,y,E,I,S,L,F){var W=m+(y&I|E&~I)+S+F;return(W<>>32-L)+y}function h(m,y,E,I,S,L,F){var W=m+(y^E^I)+S+F;return(W<>>32-L)+y}function f(m,y,E,I,S,L,F){var W=m+(E^(y|~I))+S+F;return(W<>>32-L)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var TB=_((_B,Pat)=>{d();p();(function(r,e){typeof _B=="object"?Pat.exports=_B=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(_B,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,h=l[0],f=l[1],m=l[2],y=l[3],E=l[4],I=0;I<80;I++){if(I<16)s[I]=c[u+I]|0;else{var S=s[I-3]^s[I-8]^s[I-14]^s[I-16];s[I]=S<<1|S>>>31}var L=(h<<5|h>>>27)+E+s[I];I<20?L+=(f&m|~f&y)+1518500249:I<40?L+=(f^m^y)+1859775393:I<60?L+=(f&m|f&y|m&y)-1894007588:L+=(f^m^y)-899497514,E=y,y=m,m=f<<30|f>>>2,f=h,h=L}l[0]=l[0]+h|0,l[1]=l[1]+f|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+E|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(h+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var Mat=_((EB,Rat)=>{d();p();(function(r,e,t){typeof EB=="object"?Rat.exports=EB=e(rn(),M4()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(EB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var uX=_((CB,Nat)=>{d();p();(function(r,e,t){typeof CB=="object"?Nat.exports=CB=e(rn(),N4()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(CB,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var f=0;f<80;f++)l[f]=c()})();var h=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,m){for(var y=this._hash.words,E=y[0],I=y[1],S=y[2],L=y[3],F=y[4],W=y[5],G=y[6],K=y[7],H=E.high,V=E.low,J=I.high,q=I.low,T=S.high,P=S.low,A=L.high,v=L.low,k=F.high,O=F.low,D=W.high,B=W.low,x=G.high,N=G.low,U=K.high,C=K.low,z=H,ee=V,j=J,X=q,ie=T,ue=P,he=A,ke=v,ge=k,me=O,ze=D,ve=B,Ae=x,ao=N,Tt=U,bt=C,ci=0;ci<80;ci++){var wt=l[ci];if(ci<16)var st=wt.high=f[m+ci*2]|0,ui=wt.low=f[m+ci*2+1]|0;else{var Nt=l[ci-15],dt=Nt.high,io=Nt.low,jt=(dt>>>1|io<<31)^(dt>>>8|io<<24)^dt>>>7,Bt=(io>>>1|dt<<31)^(io>>>8|dt<<24)^(io>>>7|dt<<25),ec=l[ci-2],ot=ec.high,pt=ec.low,Sc=(ot>>>19|pt<<13)^(ot<<3|pt>>>29)^ot>>>6,Et=(pt>>>19|ot<<13)^(pt<<3|ot>>>29)^(pt>>>6|ot<<26),Ct=l[ci-7],Pc=Ct.high,Dt=Ct.low,It=l[ci-16],Rc=It.high,kt=It.low,ui=Bt+Dt,st=jt+Pc+(ui>>>0>>0?1:0),ui=ui+Et,st=st+Sc+(ui>>>0>>0?1:0),ui=ui+kt,st=st+Rc+(ui>>>0>>0?1:0);wt.high=st,wt.low=ui}var Ot=ge&ze^~ge&Ae,tc=me&ve^~me&ao,Lt=z&j^z&ie^j&ie,qt=ee&X^ee&ue^X&ue,Mc=(z>>>28|ee<<4)^(z<<30|ee>>>2)^(z<<25|ee>>>7),At=(ee>>>28|z<<4)^(ee<<30|z>>>2)^(ee<<25|z>>>7),Ft=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),Nc=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),St=u[ci],Wt=St.high,rc=St.low,Je=bt+Nc,at=Tt+Ft+(Je>>>0>>0?1:0),Je=Je+tc,at=at+Ot+(Je>>>0>>0?1:0),Je=Je+rc,at=at+Wt+(Je>>>0>>0?1:0),Je=Je+ui,at=at+st+(Je>>>0>>0?1:0),nc=At+qt,Ut=Mc+Lt+(nc>>>0>>0?1:0);Tt=Ae,bt=ao,Ae=ze,ao=ve,ze=ge,ve=me,me=ke+Je|0,ge=he+at+(me>>>0>>0?1:0)|0,he=ie,ke=ue,ie=j,ue=X,j=z,X=ee,ee=Je+nc|0,z=at+Ut+(ee>>>0>>0?1:0)|0}V=E.low=V+ee,E.high=H+z+(V>>>0>>0?1:0),q=I.low=q+X,I.high=J+j+(q>>>0>>0?1:0),P=S.low=P+ue,S.high=T+ie+(P>>>0>>0?1:0),v=L.low=v+ke,L.high=A+he+(v>>>0>>0?1:0),O=F.low=O+me,F.high=k+ge+(O>>>0>>0?1:0),B=W.low=B+ve,W.high=D+ze+(B>>>0>>0?1:0),N=G.low=N+ao,G.high=x+Ae+(N>>>0>>0?1:0),C=K.low=C+bt,K.high=U+Tt+(C>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,m=f.words,y=this._nDataBytes*8,E=f.sigBytes*8;m[E>>>5]|=128<<24-E%32,m[(E+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(E+128>>>10<<5)+31]=y,f.sigBytes=m.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var f=n.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});e.SHA512=n._createHelper(h),e.HmacSHA512=n._createHmacHelper(h)}(),r.SHA512})});var Dat=_((IB,Bat)=>{d();p();(function(r,e,t){typeof IB=="object"?Bat.exports=IB=e(rn(),N4(),uX()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(IB,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var Lat=_((kB,Oat)=>{d();p();(function(r,e,t){typeof kB=="object"?Oat.exports=kB=e(rn(),N4()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(kB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],h=[];(function(){for(var y=1,E=0,I=0;I<24;I++){u[y+5*E]=(I+1)*(I+2)/2%64;var S=E%5,L=(2*y+3*E)%5;y=S,E=L}for(var y=0;y<5;y++)for(var E=0;E<5;E++)l[y+5*E]=E+(2*y+3*E)%5*5;for(var F=1,W=0;W<24;W++){for(var G=0,K=0,H=0;H<7;H++){if(F&1){var V=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var G=I[L];G.high^=W,G.low^=F}for(var K=0;K<24;K++){for(var H=0;H<5;H++){for(var V=0,J=0,q=0;q<5;q++){var G=I[H+5*q];V^=G.high,J^=G.low}var T=f[H];T.high=V,T.low=J}for(var H=0;H<5;H++)for(var P=f[(H+4)%5],A=f[(H+1)%5],v=A.high,k=A.low,V=P.high^(v<<1|k>>>31),J=P.low^(k<<1|v>>>31),q=0;q<5;q++){var G=I[H+5*q];G.high^=V,G.low^=J}for(var O=1;O<25;O++){var G=I[O],D=G.high,B=G.low,x=u[O];if(x<32)var V=D<>>32-x,J=B<>>32-x;else var V=B<>>64-x,J=D<>>64-x;var N=f[l[O]];N.high=V,N.low=J}var U=f[0],C=I[0];U.high=C.high,U.low=C.low;for(var H=0;H<5;H++)for(var q=0;q<5;q++){var O=H+5*q,G=I[O],z=f[O],ee=f[(H+1)%5+5*q],j=f[(H+2)%5+5*q];G.high=z.high^~ee.high&j.high,G.low=z.low^~ee.low&j.low}var G=I[0],X=h[K];G.high^=X.high,G.low^=X.low}},_doFinalize:function(){var y=this._data,E=y.words,I=this._nDataBytes*8,S=y.sigBytes*8,L=this.blockSize*32;E[S>>>5]|=1<<24-S%32,E[(e.ceil((S+1)/L)*L>>>5)-1]|=128,y.sigBytes=E.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,G=W/8,K=[],H=0;H>>24)&16711935|(J<<24|J>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,K.push(q),K.push(J)}return new a.init(K,W)},clone:function(){for(var y=i.clone.call(this),E=y._state=this._state.slice(0),I=0;I<25;I++)E[I]=E[I].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var Fat=_((AB,qat)=>{d();p();(function(r,e){typeof AB=="object"?qat.exports=AB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(AB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),f=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,G){for(var K=0;K<16;K++){var H=G+K,V=W[H];W[H]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}var J=this._hash.words,q=h.words,T=f.words,P=o.words,A=c.words,v=u.words,k=l.words,O,D,B,x,N,U,C,z,ee,j;U=O=J[0],C=D=J[1],z=B=J[2],ee=x=J[3],j=N=J[4];for(var X,K=0;K<80;K+=1)X=O+W[G+P[K]]|0,K<16?X+=y(D,B,x)+q[0]:K<32?X+=E(D,B,x)+q[1]:K<48?X+=I(D,B,x)+q[2]:K<64?X+=S(D,B,x)+q[3]:X+=L(D,B,x)+q[4],X=X|0,X=F(X,v[K]),X=X+N|0,O=N,N=x,x=F(B,10),B=D,D=X,X=U+W[G+A[K]]|0,K<16?X+=L(C,z,ee)+T[0]:K<32?X+=S(C,z,ee)+T[1]:K<48?X+=I(C,z,ee)+T[2]:K<64?X+=E(C,z,ee)+T[3]:X+=y(C,z,ee)+T[4],X=X|0,X=F(X,k[K]),X=X+j|0,U=j,j=ee,ee=F(z,10),z=C,C=X;X=J[1]+B+ee|0,J[1]=J[2]+x+j|0,J[2]=J[3]+N+U|0,J[3]=J[4]+O+C|0,J[4]=J[0]+D+z|0,J[0]=X},_doFinalize:function(){var W=this._data,G=W.words,K=this._nDataBytes*8,H=W.sigBytes*8;G[H>>>5]|=128<<24-H%32,G[(H+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W.sigBytes=(G.length+1)*4,this._process();for(var V=this._hash,J=V.words,q=0;q<5;q++){var T=J[q];J[q]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return V},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,G,K){return W^G^K}function E(W,G,K){return W&G|~W&K}function I(W,G,K){return(W|~G)^K}function S(W,G,K){return W&K|G&~K}function L(W,G,K){return W^(G|~K)}function F(W,G){return W<>>32-G}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var PB=_((SB,Wat)=>{d();p();(function(r,e){typeof SB=="object"?Wat.exports=SB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(SB,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,h=l*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),m=this._iKey=u.clone(),y=f.words,E=m.words,I=0;I{d();p();(function(r,e,t){typeof RB=="object"?Uat.exports=RB=e(rn(),TB(),PB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(RB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var h=this.cfg,f=o.create(h.hasher,u),m=a.create(),y=a.create([1]),E=m.words,I=y.words,S=h.keySize,L=h.iterations;E.length{d();p();(function(r,e,t){typeof MB=="object"?jat.exports=MB=e(rn(),TB(),PB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(MB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,h=l.hasher.create(),f=a.create(),m=f.words,y=l.keySize,E=l.iterations;m.length{d();p();(function(r,e,t){typeof NB=="object"?zat.exports=NB=e(rn(),v1()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(NB,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,h=l.EvpKDF,f=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(T,P){return this.create(this._ENC_XFORM_MODE,T,P)},createDecryptor:function(T,P){return this.create(this._DEC_XFORM_MODE,T,P)},init:function(T,P,A){this.cfg=this.cfg.extend(A),this._xformMode=T,this._key=P,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(P){return typeof P=="string"?q:H}return function(P){return{encrypt:function(A,v,k){return T(v).encrypt(P,A,v,k)},decrypt:function(A,v,k){return T(v).decrypt(P,A,v,k)}}}}()}),m=n.StreamCipher=f.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),y=t.mode={},E=n.BlockCipherMode=a.extend({createEncryptor:function(T,P){return this.Encryptor.create(T,P)},createDecryptor:function(T,P){return this.Decryptor.create(T,P)},init:function(T,P){this._cipher=T,this._iv=P}}),I=y.CBC=function(){var T=E.extend();T.Encryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize;P.call(this,A,v,O),k.encryptBlock(A,v),this._prevBlock=A.slice(v,v+O)}}),T.Decryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize,D=A.slice(v,v+O);k.decryptBlock(A,v),P.call(this,A,v,O),this._prevBlock=D}});function P(A,v,k){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var B=0;B>>2]&255;T.sigBytes-=P}},F=n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:I,padding:L}),reset:function(){f.reset.call(this);var T=this.cfg,P=T.iv,A=T.mode;if(this._xformMode==this._ENC_XFORM_MODE)var v=A.createEncryptor;else{var v=A.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==v?this._mode.init(this,P&&P.words):(this._mode=v.call(A,this,P&&P.words),this._mode.__creator=v)},_doProcessBlock:function(T,P){this._mode.processBlock(T,P)},_doFinalize:function(){var T=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){T.pad(this._data,this.blockSize);var P=this._process(!0)}else{var P=this._process(!0);T.unpad(P)}return P},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),G=t.format={},K=G.OpenSSL={stringify:function(T){var P=T.ciphertext,A=T.salt;if(A)var v=i.create([1398893684,1701076831]).concat(A).concat(P);else var v=P;return v.toString(u)},parse:function(T){var P=u.parse(T),A=P.words;if(A[0]==1398893684&&A[1]==1701076831){var v=i.create(A.slice(2,4));A.splice(0,4),P.sigBytes-=16}return W.create({ciphertext:P,salt:v})}},H=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=T.createEncryptor(A,v),O=k.finalize(P),D=k.cfg;return W.create({ciphertext:O,key:A,iv:D.iv,algorithm:T,mode:D.mode,padding:D.padding,blockSize:T.blockSize,formatter:v.format})},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=T.createDecryptor(A,v).finalize(P.ciphertext);return k},_parse:function(T,P){return typeof T=="string"?P.parse(T,this):T}}),V=t.kdf={},J=V.OpenSSL={execute:function(T,P,A,v){v||(v=i.random(64/8));var k=h.create({keySize:P+A}).compute(T,v),O=i.create(k.words.slice(P),A*4);return k.sigBytes=P*4,W.create({key:k,iv:O,salt:v})}},q=n.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:J}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=v.kdf.execute(A,T.keySize,T.ivSize);v.iv=k.iv;var O=H.encrypt.call(this,T,P,k.key,v);return O.mixIn(k),O},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=v.kdf.execute(A,T.keySize,T.ivSize,P.salt);v.iv=k.iv;var O=H.decrypt.call(this,T,P,k.key,v);return O}})}()})});var Vat=_((BB,Kat)=>{d();p();(function(r,e,t){typeof BB=="object"?Kat.exports=BB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(BB,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof DB=="object"?Gat.exports=DB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(DB,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{d();p();(function(r,e,t){typeof OB=="object"?Yat.exports=OB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(OB,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var h=l.slice(0);o.encryptBlock(h,0);for(var f=0;f{d();p();(function(r,e,t){typeof LB=="object"?Qat.exports=LB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(LB,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof qB=="object"?Xat.exports=qB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(qB,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var rit=_((FB,tit)=>{d();p();(function(r,e,t){typeof FB=="object"?tit.exports=FB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(FB,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var ait=_((WB,nit)=>{d();p();(function(r,e,t){typeof WB=="object"?nit.exports=WB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(WB,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var sit=_((UB,iit)=>{d();p();(function(r,e,t){typeof UB=="object"?iit.exports=UB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(UB,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var cit=_((HB,oit)=>{d();p();(function(r,e,t){typeof HB=="object"?oit.exports=HB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(HB,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var lit=_((jB,uit)=>{d();p();(function(r,e,t){typeof jB=="object"?uit.exports=jB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(jB,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var pit=_((zB,dit)=>{d();p();(function(r,e,t){typeof zB=="object"?dit.exports=zB=e(rn(),Fo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(zB,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var fit=_((KB,hit)=>{d();p();(function(r,e,t){typeof KB=="object"?hit.exports=KB=e(rn(),gv(),bv(),v1(),Fo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(KB,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],h=[],f=[],m=[],y=[];(function(){for(var S=[],L=0;L<256;L++)L<128?S[L]=L<<1:S[L]=L<<1^283;for(var F=0,W=0,L=0;L<256;L++){var G=W^W<<1^W<<2^W<<3^W<<4;G=G>>>8^G&255^99,i[F]=G,s[G]=F;var K=S[F],H=S[K],V=S[H],J=S[G]*257^G*16843008;o[F]=J<<24|J>>>8,c[F]=J<<16|J>>>16,u[F]=J<<8|J>>>24,l[F]=J;var J=V*16843009^H*65537^K*257^F*16843008;h[G]=J<<24|J>>>8,f[G]=J<<16|J>>>16,m[G]=J<<8|J>>>24,y[G]=J,F?(F=K^S[S[S[V^K]]],W^=S[S[W]]):F=W=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],I=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,L=S.words,F=S.sigBytes/4,W=this._nRounds=F+6,G=(W+1)*4,K=this._keySchedule=[],H=0;H6&&H%F==4&&(V=i[V>>>24]<<24|i[V>>>16&255]<<16|i[V>>>8&255]<<8|i[V&255]):(V=V<<8|V>>>24,V=i[V>>>24]<<24|i[V>>>16&255]<<16|i[V>>>8&255]<<8|i[V&255],V^=E[H/F|0]<<24),K[H]=K[H-F]^V}for(var J=this._invKeySchedule=[],q=0;q>>24]]^f[i[V>>>16&255]]^m[i[V>>>8&255]]^y[i[V&255]]}}},encryptBlock:function(S,L){this._doCryptBlock(S,L,this._keySchedule,o,c,u,l,i)},decryptBlock:function(S,L){var F=S[L+1];S[L+1]=S[L+3],S[L+3]=F,this._doCryptBlock(S,L,this._invKeySchedule,h,f,m,y,s);var F=S[L+1];S[L+1]=S[L+3],S[L+3]=F},_doCryptBlock:function(S,L,F,W,G,K,H,V){for(var J=this._nRounds,q=S[L]^F[0],T=S[L+1]^F[1],P=S[L+2]^F[2],A=S[L+3]^F[3],v=4,k=1;k>>24]^G[T>>>16&255]^K[P>>>8&255]^H[A&255]^F[v++],D=W[T>>>24]^G[P>>>16&255]^K[A>>>8&255]^H[q&255]^F[v++],B=W[P>>>24]^G[A>>>16&255]^K[q>>>8&255]^H[T&255]^F[v++],x=W[A>>>24]^G[q>>>16&255]^K[T>>>8&255]^H[P&255]^F[v++];q=O,T=D,P=B,A=x}var O=(V[q>>>24]<<24|V[T>>>16&255]<<16|V[P>>>8&255]<<8|V[A&255])^F[v++],D=(V[T>>>24]<<24|V[P>>>16&255]<<16|V[A>>>8&255]<<8|V[q&255])^F[v++],B=(V[P>>>24]<<24|V[A>>>16&255]<<16|V[q>>>8&255]<<8|V[T&255])^F[v++],x=(V[A>>>24]<<24|V[q>>>16&255]<<16|V[T>>>8&255]<<8|V[P&255])^F[v++];S[L]=O,S[L+1]=D,S[L+2]=B,S[L+3]=x},keySize:256/32});e.AES=n._createHelper(I)}(),r.AES})});var yit=_((VB,mit)=>{d();p();(function(r,e,t){typeof VB=="object"?mit.exports=VB=e(rn(),gv(),bv(),v1(),Fo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(VB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=a.extend({_doReset:function(){for(var E=this._key,I=E.words,S=[],L=0;L<56;L++){var F=s[L]-1;S[L]=I[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],G=0;G<16;G++){for(var K=W[G]=[],H=c[G],L=0;L<24;L++)K[L/6|0]|=S[(o[L]-1+H)%28]<<31-L%6,K[4+(L/6|0)]|=S[28+(o[L+24]-1+H)%28]<<31-L%6;K[0]=K[0]<<1|K[0]>>>31;for(var L=1;L<7;L++)K[L]=K[L]>>>(L-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var V=this._invSubKeys=[],L=0;L<16;L++)V[L]=W[15-L]},encryptBlock:function(E,I){this._doCryptBlock(E,I,this._subKeys)},decryptBlock:function(E,I){this._doCryptBlock(E,I,this._invSubKeys)},_doCryptBlock:function(E,I,S){this._lBlock=E[I],this._rBlock=E[I+1],f.call(this,4,252645135),f.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),f.call(this,1,1431655765);for(var L=0;L<16;L++){for(var F=S[L],W=this._lBlock,G=this._rBlock,K=0,H=0;H<8;H++)K|=u[H][((G^F[H])&l[H])>>>0];this._lBlock=G,this._rBlock=W^K}var V=this._lBlock;this._lBlock=this._rBlock,this._rBlock=V,f.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),E[I]=this._lBlock,E[I+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(E,I){var S=(this._lBlock>>>E^this._rBlock)&I;this._rBlock^=S,this._lBlock^=S<>>E^this._lBlock)&I;this._lBlock^=S,this._rBlock^=S<{d();p();(function(r,e,t){typeof GB=="object"?git.exports=GB=e(rn(),gv(),bv(),v1(),Fo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(GB,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,m=0;f<256;f++){var y=f%l,E=u[y>>>2]>>>24-y%4*8&255;m=(m+h[f]+E)%256;var I=h[f];h[f]=h[m],h[m]=I}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,h=0,f=0;f<4;f++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,h|=c[(c[u]+c[l])%256]<<24-f*8}return this._i=u,this._j=l,h}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var wit=_(($B,vit)=>{d();p();(function(r,e,t){typeof $B=="object"?vit.exports=$B=e(rn(),gv(),bv(),v1(),Fo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})($B,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,h=this.cfg.iv,f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var f=0;f<4;f++)u.call(this);for(var f=0;f<8;f++)y[f]^=m[f+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,F=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|F&4294901760,G=F<<16|L&65535;y[0]^=L,y[1]^=W,y[2]^=F,y[3]^=G,y[4]^=L,y[5]^=W,y[6]^=F,y[7]^=G;for(var f=0;f<4;f++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var _it=_((YB,xit)=>{d();p();(function(r,e,t){typeof YB=="object"?xit.exports=YB=e(rn(),gv(),bv(),v1(),Fo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(YB,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,h=this.cfg.iv,f=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=f[y+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,F=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|F&4294901760,G=F<<16|L&65535;m[0]^=L,m[1]^=W,m[2]^=F,m[3]^=G,m[4]^=L,m[5]^=W,m[6]^=F,m[7]^=G;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var Eit=_((JB,Tit)=>{d();p();(function(r,e,t){typeof JB=="object"?Tit.exports=JB=e(rn(),N4(),Cat(),kat(),gv(),bv(),TB(),M4(),Mat(),uX(),Dat(),Lat(),Fat(),PB(),Hat(),v1(),Fo(),Vat(),$at(),Jat(),Zat(),eit(),rit(),ait(),sit(),cit(),lit(),pit(),fit(),yit(),bit(),wit(),_it()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(JB,function(r){return r})});var dX=_(vv=>{"use strict";d();p();var wIr=vv&&vv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vv,"__esModule",{value:!0});vv.Base=void 0;var hp=ac(),lX=wIr(Eit()),nm=class{print(){nm.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return hp.Buffer.isBuffer(n)?n:this._isHexString(n)?hp.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?hp.Buffer.from(n):ArrayBuffer.isView(n)?hp.Buffer.from(n.buffer,n.byteOffset,n.byteLength):hp.Buffer.from(e(lX.default.enc.Hex.parse(t.toString("hex"))).toString(lX.default.enc.Hex),"hex")}}_isHexString(e){return nm.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};vv.Base=nm;vv.default=nm});var Iit=_(wv=>{"use strict";d();p();var QB=wv&&wv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wv,"__esModule",{value:!0});wv.MerkleTree=void 0;var ni=ac(),_0=QB(bat()),Cit=QB(M4()),xIr=QB(_at()),_Ir=QB(dX()),ml=class extends _Ir.default{constructor(e,t=Cit.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(ni.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(ni.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?ni.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>ml.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(ml.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(ni.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?ni.Buffer.from([]):this.layers[this.layers.length-1][0]||ni.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:ni.Buffer.isBuffer(n)?ml.bufferToHex(n):{position:n.position,data:ml.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return ml.bufferify(n);if(n instanceof Object)return{position:n.position,data:ml.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;oh%2===0?h+1:h-1).filter(h=>!s.includes(h)),l=a.find(({index:h})=>h===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(h=>h%2===0?h/2:h%2===0?(h+1)/2:(h-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(ni.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(h)===f),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let f=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(f);f&&s.push(!m),i.push(c[l]),i.push(f)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(h)),i=i.map(h=>this.bufferify(h));let c={};for(let[h,f]of this._zip(t,n))c[Math.pow(2,o)+h]=f;for(let[h,f]of this._zip(this.getProofIndices(t,o),i))c[h]=f;let u=Object.keys(c).map(h=>+h).sort((h,f)=>h-f);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,h^1)){let f=[c[h-h%2],c[h-h%2+1]];this.sortPairs&&(f=f.sort(ni.Buffer.compare));let m=f[1]?this.hashFn(ni.Buffer.concat(f)):f[0];c[h/2|0]=m,u.push(h/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let h=0;hthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nh-f),s=i.map(([h])=>h),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let h=0;hI-S).map(([,I])=>I),m=l[h].map(([I])=>I),y=[...new Set(m.map(I=>I%2===0?I/2:I%2===0?(I+1)/2:(I-1)/2))],E=[];for(let I=0;I{"use strict";d();p();var kit=xv&&xv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xv,"__esModule",{value:!0});xv.MerkleMountainRange=void 0;var B4=ac(),TIr=kit(M4()),EIr=kit(dX()),ZB=class extends EIr.default{constructor(e=TIr.default,t=[],n,a,i){super(),this.root=B4.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?B4.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(B4.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let h=0;h=e&&s===0&&(s=a[h]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[I],c=l[I];break}if(!u)throw new Error("target not found");let h=s.length+1,f=new Array(h),m=0,y=0;for(;h>0&&(f[--h]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let E;for(;hthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};xv.MerkleMountainRange=ZB;xv.default=ZB});var ma=_(w1=>{"use strict";d();p();var CIr=w1&&w1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w1,"__esModule",{value:!0});w1.MerkleTree=void 0;var Sit=CIr(Iit());w1.MerkleTree=Sit.default;var IIr=Ait();Object.defineProperty(w1,"MerkleMountainRange",{enumerable:!0,get:function(){return IIr.MerkleMountainRange}});w1.default=Sit.default});var ya=_((WHn,Pit)=>{"use strict";d();p();Pit.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var pn=_((jHn,kIr)=>{kIr.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ga=_((zHn,AIr)=>{AIr.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var ba=_((KHn,SIr)=>{SIr.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var va=_((VHn,PIr)=>{PIr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var wa=_((GHn,RIr)=>{RIr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var xa=_(($Hn,MIr)=>{MIr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=_((YHn,NIr)=>{NIr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var Ta=_(pX=>{"use strict";d();p();Object.defineProperty(pX,"__esModule",{value:!0});var BIr={};pX.GENERATED_ABI=BIr});var Ea=_((XHn,DIr)=>{DIr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ca=_((ejn,OIr)=>{OIr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var fX=_(Rit=>{"use strict";d();p();var LIr=wi(),qIr=Ge(),hX=class{constructor(e){LIr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&qIr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};Rit.DropErc1155History=hX});var D4=_(Mit=>{"use strict";d();p();var _v=wi(),XB=os(),mX=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;_v._defineProperty(this,"contractWrapper",void 0),_v._defineProperty(this,"storage",void 0),_v._defineProperty(this,"erc1155",void 0),_v._defineProperty(this,"_chainId",void 0),_v._defineProperty(this,"transfer",XB.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),_v._defineProperty(this,"setApprovalForAll",XB.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),_v._defineProperty(this,"airdrop",XB.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new XB.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};Mit.StandardErc1155=mX});var L4=_(wx=>{"use strict";d();p();var FIr=wi(),WIr=Gr(),O4=os();function UIr(r){return r&&r.__esModule?r:{default:r}}var gX=UIr(WIr),HIr="https://paper.xyz/api",jIr="2022-08-12",bX=`${HIr}/${jIr}/platform/thirdweb`,Nit={[O4.ChainId.Mainnet]:"Ethereum",[O4.ChainId.Goerli]:"Goerli",[O4.ChainId.Polygon]:"Polygon",[O4.ChainId.Mumbai]:"Mumbai",[O4.ChainId.Avalanche]:"Avalanche"};function Bit(r){return gX.default(r in Nit,`chainId not supported by paper: ${r}`),Nit[r]}async function Dit(r,e){let t=Bit(e),a=await(await fetch(`${bX}/register-contract?contractAddress=${r}&chain=${t}`)).json();return gX.default(a.result.id,"Contract is not registered with paper"),a.result.id}var zIr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Oit(r,e){let n=await(await fetch(`${bX}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...zIr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return gX.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var yX=class{constructor(e){FIr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Dit(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Oit(await this.getCheckoutId(),e)}};wx.PAPER_API_URL=bX;wx.PaperCheckout=yX;wx.createCheckoutLinkIntent=Oit;wx.fetchRegisteredCheckoutId=Dit;wx.parseChainIdToPaperChain=Bit});var qit=_(Lit=>{"use strict";d();p();var Cs=wi(),Es=os(),KIr=fX(),VIr=D4(),GIr=L4(),$Ir=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var xx=class extends VIr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Es.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Cs._defineProperty(this,"abi",void 0),Cs._defineProperty(this,"sales",void 0),Cs._defineProperty(this,"platformFees",void 0),Cs._defineProperty(this,"encoder",void 0),Cs._defineProperty(this,"estimator",void 0),Cs._defineProperty(this,"events",void 0),Cs._defineProperty(this,"metadata",void 0),Cs._defineProperty(this,"app",void 0),Cs._defineProperty(this,"roles",void 0),Cs._defineProperty(this,"royalties",void 0),Cs._defineProperty(this,"claimConditions",void 0),Cs._defineProperty(this,"checkout",void 0),Cs._defineProperty(this,"history",void 0),Cs._defineProperty(this,"interceptor",void 0),Cs._defineProperty(this,"erc1155",void 0),Cs._defineProperty(this,"owner",void 0),Cs._defineProperty(this,"createBatch",Es.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Cs._defineProperty(this,"claimTo",Es.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Cs._defineProperty(this,"claim",Es.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Cs._defineProperty(this,"burnTokens",Es.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=s,this.metadata=new Es.ContractMetadata(this.contractWrapper,Es.DropErc1155ContractSchema,this.storage),this.app=new Es.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Es.ContractRoles(this.contractWrapper,xx.contractRoles),this.royalties=new Es.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Es.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Es.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Es.ContractEvents(this.contractWrapper),this.history=new KIr.DropErc1155History(this.events),this.encoder=new Es.ContractEncoder(this.contractWrapper),this.estimator=new Es.GasCostEstimator(this.contractWrapper),this.platformFees=new Es.ContractPlatformFee(this.contractWrapper),this.interceptor=new Es.ContractInterceptor(this.contractWrapper),this.erc1155=new Es.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new GIr.PaperCheckout(this.contractWrapper),this.owner=new Es.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Es.getRoleHash("transfer"),$Ir.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Es.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{YIr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var wX=_((fjn,JIr)=>{JIr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Wit=_(Fit=>{"use strict";d();p();var cs=wi(),xi=os(),QIr=D4(),ZIr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var _x=class extends QIr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new xi.ContractWrapper(e,t,i,a);super(o,n,s),cs._defineProperty(this,"abi",void 0),cs._defineProperty(this,"metadata",void 0),cs._defineProperty(this,"app",void 0),cs._defineProperty(this,"roles",void 0),cs._defineProperty(this,"sales",void 0),cs._defineProperty(this,"platformFees",void 0),cs._defineProperty(this,"encoder",void 0),cs._defineProperty(this,"estimator",void 0),cs._defineProperty(this,"events",void 0),cs._defineProperty(this,"royalties",void 0),cs._defineProperty(this,"signature",void 0),cs._defineProperty(this,"interceptor",void 0),cs._defineProperty(this,"erc1155",void 0),cs._defineProperty(this,"owner",void 0),cs._defineProperty(this,"mint",xi.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),cs._defineProperty(this,"mintTo",xi.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),cs._defineProperty(this,"mintAdditionalSupply",xi.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),cs._defineProperty(this,"mintAdditionalSupplyTo",xi.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),cs._defineProperty(this,"mintBatch",xi.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),cs._defineProperty(this,"mintBatchTo",xi.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),cs._defineProperty(this,"burn",xi.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=i,this.metadata=new xi.ContractMetadata(this.contractWrapper,xi.TokenErc1155ContractSchema,this.storage),this.app=new xi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new xi.ContractRoles(this.contractWrapper,_x.contractRoles),this.royalties=new xi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new xi.ContractPrimarySale(this.contractWrapper),this.encoder=new xi.ContractEncoder(this.contractWrapper),this.estimator=new xi.GasCostEstimator(this.contractWrapper),this.events=new xi.ContractEvents(this.contractWrapper),this.platformFees=new xi.ContractPlatformFee(this.contractWrapper),this.interceptor=new xi.ContractInterceptor(this.contractWrapper),this.signature=new xi.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new xi.Erc1155(this.contractWrapper,this.storage,s),this.owner=new xi.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(xi.getRoleHash("transfer"),ZIr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return xi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{XIr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var EX=_(rD=>{"use strict";d();p();var Wo=wi(),Ke=os(),ekr=pn(),tkr=un(),rkr=ln(),ur=Ge(),nkr=Gr();function tD(r){return r&&r.__esModule?r:{default:r}}var akr=tD(ekr),ikr=tD(tkr),skr=tD(rkr),eD=tD(nkr),Tv=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),_X=class{constructor(e,t){Wo._defineProperty(this,"contractWrapper",void 0),Wo._defineProperty(this,"storage",void 0),Wo._defineProperty(this,"createListing",Ke.buildTransactionFunction(async n=>{Ke.validateNewListingParam(n);let a=await Ke.resolveAddress(n.assetContractAddress),i=await Ke.resolveAddress(n.currencyContractAddress);await Ke.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ke.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Wo._defineProperty(this,"makeOffer",Ke.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ke.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ke.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=ur.BigNumber.from(a),l=ur.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ke.setErc20Allowance(this.contractWrapper,l,i,h);let f=ur.ethers.constants.MaxUint256;return o&&(f=ur.BigNumber.from(Math.floor(o.getTime()/1e3))),Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Wo._defineProperty(this,"acceptOffer",Ke.buildTransactionFunction(async(n,a)=>{await this.validateListing(ur.BigNumber.from(n));let i=await Ke.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Wo._defineProperty(this,"buyoutListing",Ke.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(ur.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=ur.BigNumber.from(a),h=ur.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ke.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Wo._defineProperty(this,"updateListing",Ke.buildTransactionFunction(async n=>Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ke.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Wo._defineProperty(this,"cancelListing",Ke.buildTransactionFunction(async n=>Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ur.constants.AddressZero)throw new Ke.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Tv.Direct)throw new Ke.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(ur.BigNumber.from(e)),eD.default(ur.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ke.resolveAddress(t));if(n.offeror!==ur.constants.AddressZero)return await Ke.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ke.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ke.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:Tv.Direct}}async isStillValidListing(e,t){if(!await Ke.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ur.Contract(e.assetContractAddress,akr.default,a),s=await i.supportsInterface(Ke.InterfaceId_IERC721),o=await i.supportsInterface(Ke.InterfaceId_IERC1155);if(s){let u=(await new ur.Contract(e.assetContractAddress,ikr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new ur.Contract(e.assetContractAddress,skr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},TX=class{constructor(e,t){Wo._defineProperty(this,"contractWrapper",void 0),Wo._defineProperty(this,"storage",void 0),Wo._defineProperty(this,"encoder",void 0),Wo._defineProperty(this,"createListing",Ke.buildTransactionFunction(async n=>{Ke.validateNewListingParam(n);let a=await Ke.resolveAddress(n.assetContractAddress),i=await Ke.resolveAddress(n.currencyContractAddress);await Ke.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ke.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ke.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Wo._defineProperty(this,"buyoutListing",Ke.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=await Ke.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,ur.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Wo._defineProperty(this,"makeBid",Ke.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(ur.BigNumber.from(n)),s=await Ke.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(ur.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ke.isWinningBid(c.pricePerToken,s,o);eD.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=ur.BigNumber.from(i.reservePrice);eD.default(f.gte(m),"Bid price is too low based on reserve price")}let u=ur.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ke.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,ur.ethers.constants.MaxUint256],overrides:h})})),Wo._defineProperty(this,"cancelListing",Ke.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=ur.BigNumber.from(Math.floor(Date.now()/1e3)),s=ur.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==ur.constants.AddressZero)throw new Ke.AuctionAlreadyStartedError(n.toString());return Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Wo._defineProperty(this,"closeListing",Ke.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(ur.BigNumber.from(n));try{return Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ke.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Wo._defineProperty(this,"executeSale",Ke.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n));try{let i=await this.getWinningBid(n);eD.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ke.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Wo._defineProperty(this,"updateListing",Ke.buildTransactionFunction(async n=>Ke.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ke.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ke.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Tv.Auction)throw new Ke.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(ur.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==ur.constants.AddressZero)return await Ke.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(ur.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=ur.BigNumber.from(Math.floor(Date.now()/1e3)),i=ur.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==ur.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(ur.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(ur.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ke.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ke.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ke.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ke.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:ur.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:Tv.Auction}}};rD.ListingType=Tv;rD.MarketplaceAuction=TX;rD.MarketplaceDirect=_X});var jit=_(Hit=>{"use strict";d();p();var Fi=wi(),hn=os(),Eh=EX(),rd=Ge(),okr=Gr();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function ckr(r){return r&&r.__esModule?r:{default:r}}var Uit=ckr(okr),Tx=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hn.ContractWrapper(e,t,i,a);Fi._defineProperty(this,"abi",void 0),Fi._defineProperty(this,"contractWrapper",void 0),Fi._defineProperty(this,"storage",void 0),Fi._defineProperty(this,"encoder",void 0),Fi._defineProperty(this,"events",void 0),Fi._defineProperty(this,"estimator",void 0),Fi._defineProperty(this,"platformFees",void 0),Fi._defineProperty(this,"metadata",void 0),Fi._defineProperty(this,"app",void 0),Fi._defineProperty(this,"roles",void 0),Fi._defineProperty(this,"interceptor",void 0),Fi._defineProperty(this,"direct",void 0),Fi._defineProperty(this,"auction",void 0),Fi._defineProperty(this,"_chainId",void 0),Fi._defineProperty(this,"getAll",this.getAllListings),Fi._defineProperty(this,"buyoutListing",hn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new hn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Eh.ListingType.Direct:return Uit.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Eh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Fi._defineProperty(this,"makeOffer",hn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new hn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Eh.ListingType.Direct:return Uit.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,hn.isNativeToken(h.currency)?hn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Eh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Fi._defineProperty(this,"setBidBufferBps",hn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return hn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,rd.BigNumber.from(c)]})})),Fi._defineProperty(this,"setTimeBufferInSeconds",hn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return hn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[rd.BigNumber.from(c),u]})})),Fi._defineProperty(this,"allowListingFromSpecificAssetOnly",hn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(rd.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[hn.getRoleHash("asset"),rd.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[hn.getRoleHash("asset"),c])),hn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Fi._defineProperty(this,"allowListingFromAnyAsset",hn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[hn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[hn.getRoleHash("asset"),rd.constants.AddressZero])),hn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new hn.ContractMetadata(this.contractWrapper,hn.MarketplaceContractSchema,this.storage),this.app=new hn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hn.ContractRoles(this.contractWrapper,Tx.contractRoles),this.encoder=new hn.ContractEncoder(this.contractWrapper),this.estimator=new hn.GasCostEstimator(this.contractWrapper),this.direct=new Eh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Eh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new hn.ContractEvents(this.contractWrapper),this.platformFees=new hn.ContractPlatformFee(this.contractWrapper),this.interceptor=new hn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===rd.constants.AddressZero)throw new hn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Eh.ListingType.Auction:return await this.auction.mapListing(t);case Eh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=rd.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Eh.ListingType.Auction&&rd.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&rd.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Eh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(hn.getRoleHash("lister"),rd.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await hn.mapOffer(this.contractWrapper.getProvider(),rd.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof hn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Eh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=rd.BigNumber.from(t?.start||0).toNumber(),i=rd.BigNumber.from(t?.count||Fi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return hn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{ukr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var Kit=_(zit=>{"use strict";d();p();var nd=wi(),Wi=os();Ir();Ge();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Ex=class{get directListings(){return Wi.assertEnabled(this.detectDirectListings(),Wi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Wi.assertEnabled(this.detectEnglishAuctions(),Wi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Wi.assertEnabled(this.detectOffers(),Wi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Wi.ContractWrapper(e,t,i,a);nd._defineProperty(this,"abi",void 0),nd._defineProperty(this,"contractWrapper",void 0),nd._defineProperty(this,"storage",void 0),nd._defineProperty(this,"encoder",void 0),nd._defineProperty(this,"events",void 0),nd._defineProperty(this,"estimator",void 0),nd._defineProperty(this,"platformFees",void 0),nd._defineProperty(this,"metadata",void 0),nd._defineProperty(this,"app",void 0),nd._defineProperty(this,"roles",void 0),nd._defineProperty(this,"interceptor",void 0),nd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Wi.ContractMetadata(this.contractWrapper,Wi.MarketplaceContractSchema,this.storage),this.app=new Wi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Wi.ContractRoles(this.contractWrapper,Ex.contractRoles),this.encoder=new Wi.ContractEncoder(this.contractWrapper),this.estimator=new Wi.GasCostEstimator(this.contractWrapper),this.events=new Wi.ContractEvents(this.contractWrapper),this.platformFees=new Wi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Wi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Wi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{lkr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var Cx=_(Vit=>{"use strict";d();p();var Ev=wi(),x1=os(),kX=class{get chainId(){return this._chainId}constructor(e,t,n){Ev._defineProperty(this,"contractWrapper",void 0),Ev._defineProperty(this,"storage",void 0),Ev._defineProperty(this,"erc721",void 0),Ev._defineProperty(this,"_chainId",void 0),Ev._defineProperty(this,"transfer",x1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),Ev._defineProperty(this,"setApprovalForAll",x1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),Ev._defineProperty(this,"setApprovalForToken",x1.buildTransactionFunction(async(a,i)=>x1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await x1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new x1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await x1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await x1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};Vit.StandardErc721=kX});var $it=_(Git=>{"use strict";d();p();var fp=wi(),Ui=os(),dkr=Cx(),pkr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Ix=class extends dkr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ui.ContractWrapper(e,t,i,a);super(o,n,s),fp._defineProperty(this,"abi",void 0),fp._defineProperty(this,"encoder",void 0),fp._defineProperty(this,"estimator",void 0),fp._defineProperty(this,"metadata",void 0),fp._defineProperty(this,"app",void 0),fp._defineProperty(this,"events",void 0),fp._defineProperty(this,"roles",void 0),fp._defineProperty(this,"royalties",void 0),fp._defineProperty(this,"owner",void 0),fp._defineProperty(this,"wrap",Ui.buildTransactionFunction(async(c,u,l)=>{let h=await Ui.uploadOrExtractURI(u,this.storage),f=await Ui.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ui.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),fp._defineProperty(this,"unwrap",Ui.buildTransactionFunction(async(c,u)=>{let l=await Ui.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ui.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=i,this.metadata=new Ui.ContractMetadata(this.contractWrapper,Ui.MultiwrapContractSchema,this.storage),this.app=new Ui.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ui.ContractRoles(this.contractWrapper,Ix.contractRoles),this.encoder=new Ui.ContractEncoder(this.contractWrapper),this.estimator=new Ui.GasCostEstimator(this.contractWrapper),this.events=new Ui.ContractEvents(this.contractWrapper),this.royalties=new Ui.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ui.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ui.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:pkr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ui.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ui.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +`});var cet=ce(()=>{d();p();oet();HN();g1();sZ();M4()});var uet={};cr(uet,{CID:()=>Gs,bases:()=>$N,bytes:()=>UN,codecs:()=>bCr,digest:()=>yv,hasher:()=>KN,hashes:()=>gCr,varint:()=>y_});var $N,gCr,bCr,dZ=ce(()=>{d();p();FXe();WXe();UXe();HXe();jXe();QQ();zXe();eZ();KXe();VXe();XXe();ret();net();aet();cet();$N={...KQ,...GQ,...VQ,...$Q,...YQ,...JQ,...ZQ,...XQ,...tZ,...rZ},gCr={...oZ,...cZ},bCr={raw:uZ,json:lZ}});function w1(r){return globalThis.Buffer!=null?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):r}var B4=ce(()=>{d();p()});function g_(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?w1(globalThis.Buffer.allocUnsafe(r)):new Uint8Array(r)}var YN=ce(()=>{d();p();B4()});function pet(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var det,pZ,vCr,JN,hZ=ce(()=>{d();p();dZ();YN();det=pet("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),pZ=pet("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=g_(r.length);for(let t=0;ttm});function tm(r,e="utf8"){let t=JN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(r.buffer,r.byteOffset,r.byteLength).toString("utf8"):t.encoder.encode(r).substring(1)}var b_=ce(()=>{d();p();hZ()});var D4={};cr(D4,{fromString:()=>xh});function xh(r,e="utf8"){let t=JN[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return(e==="utf8"||e==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?w1(globalThis.Buffer.from(r,"utf-8")):t.decoder.decode(`${t.prefix}${r}`)}var gv=ce(()=>{d();p();hZ();B4()});var L4={};cr(L4,{concat:()=>O4});function O4(r,e){e||(e=r.reduce((a,i)=>a+i.length,0));let t=g_(e),n=0;for(let a of r)t.set(a,n),n+=a.length;return w1(t)}var bv=ce(()=>{d();p();YN();B4()});var F4=x((iLn,bet)=>{"use strict";d();p();var het=OQ(),v_=MXe(),{names:q4}=BXe(),{toString:ZN}=(b_(),nt(QN)),{fromString:wCr}=(gv(),nt(D4)),{concat:_Cr}=(bv(),nt(L4)),w_={};for(let r in q4){let e=r;w_[q4[e]]=e}Object.freeze(w_);function xCr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return ZN(r,"base16")}function TCr(r){return wCr(r,"base16")}function ECr(r){if(!(r instanceof Uint8Array))throw new Error("must be passed a Uint8Array");return ZN(het.encode("base58btc",r)).slice(1)}function CCr(r){let e=r instanceof Uint8Array?ZN(r):r;return het.decode("z"+e)}function fet(r){if(!(r instanceof Uint8Array))throw new Error("multihash must be a Uint8Array");if(r.length<2)throw new Error("multihash too short. must be > 2 bytes.");let e=v_.decode(r);if(!yet(e))throw new Error(`multihash unknown function code: 0x${e.toString(16)}`);r=r.slice(v_.decode.bytes);let t=v_.decode(r);if(t<0)throw new Error(`multihash invalid length: ${t}`);if(r=r.slice(v_.decode.bytes),r.length!==t)throw new Error(`multihash length inconsistent: 0x${ZN(r,"base16")}`);return{code:e,name:w_[e],length:t,digest:r}}function ICr(r,e,t){if(!r||e===void 0)throw new Error("multihash encode requires at least two args: digest, code");let n=met(e);if(!(r instanceof Uint8Array))throw new Error("digest should be a Uint8Array");if(t==null&&(t=r.length),t&&r.length!==t)throw new Error("digest length should be equal to specified length.");let a=v_.encode(n),i=v_.encode(t);return _Cr([a,i,r],a.length+i.length+r.length)}function met(r){let e=r;if(typeof r=="string"){if(q4[r]===void 0)throw new Error(`Unrecognized hash function named: ${r}`);e=q4[r]}if(typeof e!="number")throw new Error(`Hash function code should be a number. Got: ${e}`);if(w_[e]===void 0&&!fZ(e))throw new Error(`Unrecognized function code: ${e}`);return e}function fZ(r){return r>0&&r<16}function yet(r){return!!(fZ(r)||w_[r])}function get(r){fet(r)}function kCr(r){return get(r),r.subarray(0,2)}bet.exports={names:q4,codes:w_,toHexString:xCr,fromHexString:TCr,toB58String:ECr,fromB58String:CCr,decode:fet,encode:ICr,coerceCode:met,isAppCode:fZ,validate:get,prefix:kCr,isValidCode:yet}});var vet=x((W4,XN)=>{d();p();(function(r,e){"use strict";var t={version:"3.0.0",x86:{},x64:{},inputValidation:!0};function n(m){if(!Array.isArray(m)&&!ArrayBuffer.isView(m))return!1;for(var y=0;y255)return!1;return!0}function a(m,y){return(m&65535)*y+(((m>>>16)*y&65535)<<16)}function i(m,y){return m<>>32-y}function s(m){return m^=m>>>16,m=a(m,2246822507),m^=m>>>13,m=a(m,3266489909),m^=m>>>16,m}function o(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]+y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]+y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]+y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]+y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function c(m,y){m=[m[0]>>>16,m[0]&65535,m[1]>>>16,m[1]&65535],y=[y[0]>>>16,y[0]&65535,y[1]>>>16,y[1]&65535];var E=[0,0,0,0];return E[3]+=m[3]*y[3],E[2]+=E[3]>>>16,E[3]&=65535,E[2]+=m[2]*y[3],E[1]+=E[2]>>>16,E[2]&=65535,E[2]+=m[3]*y[2],E[1]+=E[2]>>>16,E[2]&=65535,E[1]+=m[1]*y[3],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[2]*y[2],E[0]+=E[1]>>>16,E[1]&=65535,E[1]+=m[3]*y[1],E[0]+=E[1]>>>16,E[1]&=65535,E[0]+=m[0]*y[3]+m[1]*y[2]+m[2]*y[1]+m[3]*y[0],E[0]&=65535,[E[0]<<16|E[1],E[2]<<16|E[3]]}function u(m,y){return y%=64,y===32?[m[1],m[0]]:y<32?[m[0]<>>32-y,m[1]<>>32-y]:(y-=32,[m[1]<>>32-y,m[0]<>>32-y])}function l(m,y){return y%=64,y===0?m:y<32?[m[0]<>>32-y,m[1]<>>1]),m=c(m,[4283543511,3981806797]),m=h(m,[0,m[0]>>>1]),m=c(m,[3301882366,444984403]),m=h(m,[0,m[0]>>>1]),m}t.x86.hash32=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%4,I=m.length-E,S=y,L=0,F=3432918353,W=461845907,V=0;V>>0},t.x86.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=y,L=y,F=y,W=y,V=0,K=0,H=0,G=0,J=597399067,q=2869860233,T=951274213,P=2716044179,A=0;A>>0).toString(16)).slice(-8)+("00000000"+(L>>>0).toString(16)).slice(-8)+("00000000"+(F>>>0).toString(16)).slice(-8)+("00000000"+(W>>>0).toString(16)).slice(-8)},t.x64.hash128=function(m,y){if(t.inputValidation&&!n(m))return e;y=y||0;for(var E=m.length%16,I=m.length-E,S=[0,y],L=[0,y],F=[0,0],W=[0,0],V=[2277735313,289559509],K=[1291169091,658871167],H=0;H>>0).toString(16)).slice(-8)+("00000000"+(S[1]>>>0).toString(16)).slice(-8)+("00000000"+(L[0]>>>0).toString(16)).slice(-8)+("00000000"+(L[1]>>>0).toString(16)).slice(-8)},typeof W4<"u"?(typeof XN<"u"&&XN.exports&&(W4=XN.exports=t),W4.murmurHash3=t):typeof define=="function"&&define.amd?define([],function(){return t}):(t._murmurHash3=r.murmurHash3,t.noConflict=function(){return r.murmurHash3=t._murmurHash3,t._murmurHash3=e,t.noConflict=e,t},r.murmurHash3=t)})(W4)});var _et=x((lLn,wet)=>{d();p();wet.exports=vet()});var Tet=x((hLn,xet)=>{"use strict";d();p();var ACr=F4(),__=self.crypto||self.msCrypto,mZ=async(r,e)=>{if(typeof self>"u"||!__)throw new Error("Please use a browser with webcrypto support and ensure the code has been delivered securely via HTTPS/TLS and run within a Secure Context");switch(e){case"sha1":return new Uint8Array(await __.subtle.digest({name:"SHA-1"},r));case"sha2-256":return new Uint8Array(await __.subtle.digest({name:"SHA-256"},r));case"sha2-512":return new Uint8Array(await __.subtle.digest({name:"SHA-512"},r));case"dbl-sha2-256":{let t=await __.subtle.digest({name:"SHA-256"},r);return new Uint8Array(await __.subtle.digest({name:"SHA-256"},t))}default:throw new Error(`${e} is not a supported algorithm`)}};xet.exports={factory:r=>async e=>mZ(e,r),digest:mZ,multihashing:async(r,e,t)=>{let n=await mZ(r,e);return ACr.encode(n,e,t)}}});var Cet=x((yLn,Eet)=>{"use strict";d();p();var SCr=r=>{let e=new Uint8Array(4);for(let t=0;t<4;t++)e[t]=r&255,r=r>>8;return e};Eet.exports={fromNumberTo32BitBuf:SCr}});var yZ=x((vLn,Iet)=>{d();p();var PCr="Input must be an string, Buffer or Uint8Array";function RCr(r){let e;if(r instanceof Uint8Array)e=r;else if(typeof r=="string")e=new TextEncoder().encode(r);else throw new Error(PCr);return e}function MCr(r){return Array.prototype.map.call(r,function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function eB(r){return(4294967296+r).toString(16).substring(1)}function NCr(r,e,t){let n=` +`+r+" = ";for(let a=0;a{d();p();var rB=yZ();function tB(r,e,t){let n=r[e]+r[t],a=r[e+1]+r[t+1];n>=4294967296&&a++,r[e]=n,r[e+1]=a}function ket(r,e,t,n){let a=r[e]+t;t<0&&(a+=4294967296);let i=r[e+1]+n;a>=4294967296&&i++,r[e]=a,r[e+1]=i}function Aet(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function _1(r,e,t,n,a,i){let s=U4[a],o=U4[a+1],c=U4[i],u=U4[i+1];tB(vr,r,e),ket(vr,r,s,o);let l=vr[n]^vr[r],h=vr[n+1]^vr[r+1];vr[n]=h,vr[n+1]=l,tB(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=l>>>24^h<<8,vr[e+1]=h>>>24^l<<8,tB(vr,r,e),ket(vr,r,c,u),l=vr[n]^vr[r],h=vr[n+1]^vr[r+1],vr[n]=l>>>16^h<<16,vr[n+1]=h>>>16^l<<16,tB(vr,t,n),l=vr[e]^vr[t],h=vr[e+1]^vr[t+1],vr[e]=h>>>31^l<<1,vr[e+1]=l>>>31^h<<1}var Pet=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),DCr=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],hu=new Uint8Array(DCr.map(function(r){return r*2})),vr=new Uint32Array(32),U4=new Uint32Array(32);function Ret(r,e){let t=0;for(t=0;t<16;t++)vr[t]=r.h[t],vr[t+16]=Pet[t];for(vr[24]=vr[24]^r.t,vr[25]=vr[25]^r.t/4294967296,e&&(vr[28]=~vr[28],vr[29]=~vr[29]),t=0;t<32;t++)U4[t]=Aet(r.b,4*t);for(t=0;t<12;t++)_1(0,8,16,24,hu[t*16+0],hu[t*16+1]),_1(2,10,18,26,hu[t*16+2],hu[t*16+3]),_1(4,12,20,28,hu[t*16+4],hu[t*16+5]),_1(6,14,22,30,hu[t*16+6],hu[t*16+7]),_1(0,10,20,30,hu[t*16+8],hu[t*16+9]),_1(2,12,22,24,hu[t*16+10],hu[t*16+11]),_1(4,14,16,26,hu[t*16+12],hu[t*16+13]),_1(6,8,18,28,hu[t*16+14],hu[t*16+15]);for(t=0;t<16;t++)r.h[t]=r.h[t]^vr[t]^vr[t+16]}var x1=new Uint8Array([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,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,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function Met(r,e,t,n){if(r===0||r>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(t&&t.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(n&&n.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");let a={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:r};x1.fill(0),x1[0]=r,e&&(x1[1]=e.length),x1[2]=1,x1[3]=1,t&&x1.set(t,32),n&&x1.set(n,48);for(let i=0;i<16;i++)a.h[i]=Pet[i]^Aet(x1,i*4);return e&&(gZ(a,e),a.c=128),a}function gZ(r,e){for(let t=0;t>2]>>8*(t&3);return e}function Bet(r,e,t,n,a){t=t||64,r=rB.normalizeInput(r),n&&(n=rB.normalizeInput(n)),a&&(a=rB.normalizeInput(a));let i=Met(t,e,n,a);return gZ(i,r),Net(i)}function OCr(r,e,t,n,a){let i=Bet(r,e,t,n,a);return rB.toHex(i)}Det.exports={blake2b:Bet,blake2bHex:OCr,blake2bInit:Met,blake2bUpdate:gZ,blake2bFinal:Net}});var zet=x((CLn,jet)=>{d();p();var Let=yZ();function LCr(r,e){return r[e]^r[e+1]<<8^r[e+2]<<16^r[e+3]<<24}function T1(r,e,t,n,a,i){yn[r]=yn[r]+yn[e]+a,yn[n]=nB(yn[n]^yn[r],16),yn[t]=yn[t]+yn[n],yn[e]=nB(yn[e]^yn[t],12),yn[r]=yn[r]+yn[e]+i,yn[n]=nB(yn[n]^yn[r],8),yn[t]=yn[t]+yn[n],yn[e]=nB(yn[e]^yn[t],7)}function nB(r,e){return r>>>e^r<<32-e}var qet=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),fu=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),yn=new Uint32Array(16),vc=new Uint32Array(16);function Fet(r,e){let t=0;for(t=0;t<8;t++)yn[t]=r.h[t],yn[t+8]=qet[t];for(yn[12]^=r.t,yn[13]^=r.t/4294967296,e&&(yn[14]=~yn[14]),t=0;t<16;t++)vc[t]=LCr(r.b,4*t);for(t=0;t<10;t++)T1(0,4,8,12,vc[fu[t*16+0]],vc[fu[t*16+1]]),T1(1,5,9,13,vc[fu[t*16+2]],vc[fu[t*16+3]]),T1(2,6,10,14,vc[fu[t*16+4]],vc[fu[t*16+5]]),T1(3,7,11,15,vc[fu[t*16+6]],vc[fu[t*16+7]]),T1(0,5,10,15,vc[fu[t*16+8]],vc[fu[t*16+9]]),T1(1,6,11,12,vc[fu[t*16+10]],vc[fu[t*16+11]]),T1(2,7,8,13,vc[fu[t*16+12]],vc[fu[t*16+13]]),T1(3,4,9,14,vc[fu[t*16+14]],vc[fu[t*16+15]]);for(t=0;t<8;t++)r.h[t]^=yn[t]^yn[t+8]}function Wet(r,e){if(!(r>0&&r<=32))throw new Error("Incorrect output length, should be in [1, 32]");let t=e?e.length:0;if(e&&!(t>0&&t<=32))throw new Error("Incorrect key length, should be in [1, 32]");let n={h:new Uint32Array(qet),b:new Uint8Array(64),c:0,t:0,outlen:r};return n.h[0]^=16842752^t<<8^r,t>0&&(bZ(n,e),n.c=64),n}function bZ(r,e){for(let t=0;t>2]>>8*(t&3)&255;return e}function Het(r,e,t){t=t||32,r=Let.normalizeInput(r);let n=Wet(t,e);return bZ(n,r),Uet(n)}function qCr(r,e,t){let n=Het(r,e,t);return Let.toHex(n)}jet.exports={blake2s:Het,blake2sHex:qCr,blake2sInit:Wet,blake2sUpdate:bZ,blake2sFinal:Uet}});var Get=x((ALn,Ket)=>{d();p();var H4=Oet(),j4=zet();Ket.exports={blake2b:H4.blake2b,blake2bHex:H4.blake2bHex,blake2bInit:H4.blake2bInit,blake2bUpdate:H4.blake2bUpdate,blake2bFinal:H4.blake2bFinal,blake2s:j4.blake2s,blake2sHex:j4.blake2sHex,blake2sInit:j4.blake2sInit,blake2sUpdate:j4.blake2sUpdate,blake2sFinal:j4.blake2sFinal}});var Yet=x((RLn,$et)=>{"use strict";d();p();var x_=Get(),FCr=45569,WCr=45633,UCr={init:x_.blake2bInit,update:x_.blake2bUpdate,digest:x_.blake2bFinal},HCr={init:x_.blake2sInit,update:x_.blake2sUpdate,digest:x_.blake2sFinal},Vet=(r,e)=>async t=>{let n=e.init(r,null);return e.update(n,t),e.digest(n)};$et.exports=r=>{for(let e=0;e<64;e++)r[FCr+e]=Vet(e+1,UCr);for(let e=0;e<32;e++)r[WCr+e]=Vet(e+1,HCr)}});var Zet=x((BLn,Qet)=>{"use strict";d();p();var rm=LK(),Jet=_et(),{factory:aB}=Tet(),{fromNumberTo32BitBuf:jCr}=Cet(),{fromString:zCr}=(gv(),nt(D4)),lp=r=>async e=>{switch(r){case"sha3-224":return new Uint8Array(rm.sha3_224.arrayBuffer(e));case"sha3-256":return new Uint8Array(rm.sha3_256.arrayBuffer(e));case"sha3-384":return new Uint8Array(rm.sha3_384.arrayBuffer(e));case"sha3-512":return new Uint8Array(rm.sha3_512.arrayBuffer(e));case"shake-128":return new Uint8Array(rm.shake128.create(128).update(e).arrayBuffer());case"shake-256":return new Uint8Array(rm.shake256.create(256).update(e).arrayBuffer());case"keccak-224":return new Uint8Array(rm.keccak224.arrayBuffer(e));case"keccak-256":return new Uint8Array(rm.keccak256.arrayBuffer(e));case"keccak-384":return new Uint8Array(rm.keccak384.arrayBuffer(e));case"keccak-512":return new Uint8Array(rm.keccak512.arrayBuffer(e));case"murmur3-128":return zCr(Jet.x64.hash128(e),"base16");case"murmur3-32":return jCr(Jet.x86.hash32(e));default:throw new TypeError(`${r} is not a supported algorithm`)}},KCr=r=>r;Qet.exports={identity:KCr,sha1:aB("sha1"),sha2256:aB("sha2-256"),sha2512:aB("sha2-512"),dblSha2256:aB("dbl-sha2-256"),sha3224:lp("sha3-224"),sha3256:lp("sha3-256"),sha3384:lp("sha3-384"),sha3512:lp("sha3-512"),shake128:lp("shake-128"),shake256:lp("shake-256"),keccak224:lp("keccak-224"),keccak256:lp("keccak-256"),keccak384:lp("keccak-384"),keccak512:lp("keccak-512"),murmur3128:lp("murmur3-128"),murmur332:lp("murmur3-32"),addBlake:Yet()}});var wZ={};cr(wZ,{equals:()=>vZ});function vZ(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{d();p()});var z4=x((FLn,ett)=>{"use strict";d();p();var Xet=dv(),sB=F4(),qo=Zet(),{equals:GCr}=(iB(),nt(wZ));async function dp(r,e,t){let n=await dp.digest(r,e,t);return sB.encode(n,e,t)}dp.multihash=sB;dp.digest=async(r,e,t)=>{let a=await dp.createHash(e)(r);return t?a.slice(0,t):a};dp.createHash=function(r){if(!r)throw Xet(new Error("hash algorithm must be specified"),"ERR_HASH_ALGORITHM_NOT_SPECIFIED");let e=sB.coerceCode(r);if(!dp.functions[e])throw Xet(new Error(`multihash function '${r}' not yet supported`),"ERR_HASH_ALGORITHM_NOT_SUPPORTED");return dp.functions[e]};dp.functions={0:qo.identity,17:qo.sha1,18:qo.sha2256,19:qo.sha2512,20:qo.sha3512,21:qo.sha3384,22:qo.sha3256,23:qo.sha3224,24:qo.shake128,25:qo.shake256,26:qo.keccak224,27:qo.keccak256,28:qo.keccak384,29:qo.keccak512,34:qo.murmur3128,35:qo.murmur332,86:qo.dblSha2256};qo.addBlake(dp.functions);dp.validate=async(r,e)=>{let t=await dp(r,sB.decode(e).name);return GCr(e,t)};ett.exports=dp});var rtt=x((HLn,ttt)=>{"use strict";d();p();var VCr=sXe().bind({ignoreUndefined:!0}),$Cr=z4();async function YCr(r){let t=(await $Cr(r,"murmur3-128")).slice(2,10),n=t.length,a=new Uint8Array(n);for(let i=0;i()=>{},shardSplitThreshold:1e3,fileImportConcurrency:50,blockWriteConcurrency:10,minChunkSize:262144,maxChunkSize:262144,avgChunkSize:262144,window:16,polynomial:0x3df305dfb2a804,maxChildrenPerNode:174,layerRepeat:4,wrapWithDirectory:!1,pin:!1,recursive:!1,hidden:!1,preload:!1,timeout:void 0,hamtHashFn:YCr,hamtHashCode:34,hamtBucketBits:8};ttt.exports=function(r={}){return VCr(JCr,r)}});var att=x((KLn,ntt)=>{"use strict";d();p();ntt.exports=QCr;function QCr(r,e){for(var t=new Array(arguments.length-1),n=0,a=2,i=!0;a{"use strict";d();p();var oB=ott;oB.length=function(e){var t=e.length;if(!t)return 0;for(var n=0;--t%4>1&&e.charAt(t)==="=";)++n;return Math.ceil(e.length*3)/4-n};var T_=new Array(64),stt=new Array(123);for(Th=0;Th<64;)stt[T_[Th]=Th<26?Th+65:Th<52?Th+71:Th<62?Th-4:Th-59|43]=Th++;var Th;oB.encode=function(e,t,n){for(var a=null,i=[],s=0,o=0,c;t>2],c=(u&3)<<4,o=1;break;case 1:i[s++]=T_[c|u>>4],c=(u&15)<<2,o=2;break;case 2:i[s++]=T_[c|u>>6],i[s++]=T_[u&63],o=0;break}s>8191&&((a||(a=[])).push(String.fromCharCode.apply(String,i)),s=0)}return o&&(i[s++]=T_[c],i[s++]=61,o===1&&(i[s++]=61)),a?(s&&a.push(String.fromCharCode.apply(String,i.slice(0,s))),a.join("")):String.fromCharCode.apply(String,i.slice(0,s))};var itt="invalid encoding";oB.decode=function(e,t,n){for(var a=n,i=0,s,o=0;o1)break;if((c=stt[c])===void 0)throw Error(itt);switch(i){case 0:s=c,i=1;break;case 1:t[n++]=s<<2|(c&48)>>4,s=c,i=2;break;case 2:t[n++]=(s&15)<<4|(c&60)>>2,s=c,i=3;break;case 3:t[n++]=(s&3)<<6|c,i=0;break}}if(i===1)throw Error(itt);return n-a};oB.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}});var ltt=x((QLn,utt)=>{"use strict";d();p();utt.exports=cB;function cB(){this._listeners={}}cB.prototype.on=function(e,t,n){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:n||this}),this};cB.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var n=this._listeners[e],a=0;a{"use strict";d();p();ytt.exports=dtt(dtt);function dtt(r){return typeof Float32Array<"u"?function(){var e=new Float32Array([-0]),t=new Uint8Array(e.buffer),n=t[3]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3]}function i(c,u,l){e[0]=c,u[l]=t[3],u[l+1]=t[2],u[l+2]=t[1],u[l+3]=t[0]}r.writeFloatLE=n?a:i,r.writeFloatBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],e[0]}function o(c,u){return t[3]=c[u],t[2]=c[u+1],t[1]=c[u+2],t[0]=c[u+3],e[0]}r.readFloatLE=n?s:o,r.readFloatBE=n?o:s}():function(){function e(n,a,i,s){var o=a<0?1:0;if(o&&(a=-a),a===0)n(1/a>0?0:2147483648,i,s);else if(isNaN(a))n(2143289344,i,s);else if(a>34028234663852886e22)n((o<<31|2139095040)>>>0,i,s);else if(a<11754943508222875e-54)n((o<<31|Math.round(a/1401298464324817e-60))>>>0,i,s);else{var c=Math.floor(Math.log(a)/Math.LN2),u=Math.round(a*Math.pow(2,-c)*8388608)&8388607;n((o<<31|c+127<<23|u)>>>0,i,s)}}r.writeFloatLE=e.bind(null,ptt),r.writeFloatBE=e.bind(null,htt);function t(n,a,i){var s=n(a,i),o=(s>>31)*2+1,c=s>>>23&255,u=s&8388607;return c===255?u?NaN:o*(1/0):c===0?o*1401298464324817e-60*u:o*Math.pow(2,c-150)*(u+8388608)}r.readFloatLE=t.bind(null,ftt),r.readFloatBE=t.bind(null,mtt)}(),typeof Float64Array<"u"?function(){var e=new Float64Array([-0]),t=new Uint8Array(e.buffer),n=t[7]===128;function a(c,u,l){e[0]=c,u[l]=t[0],u[l+1]=t[1],u[l+2]=t[2],u[l+3]=t[3],u[l+4]=t[4],u[l+5]=t[5],u[l+6]=t[6],u[l+7]=t[7]}function i(c,u,l){e[0]=c,u[l]=t[7],u[l+1]=t[6],u[l+2]=t[5],u[l+3]=t[4],u[l+4]=t[3],u[l+5]=t[2],u[l+6]=t[1],u[l+7]=t[0]}r.writeDoubleLE=n?a:i,r.writeDoubleBE=n?i:a;function s(c,u){return t[0]=c[u],t[1]=c[u+1],t[2]=c[u+2],t[3]=c[u+3],t[4]=c[u+4],t[5]=c[u+5],t[6]=c[u+6],t[7]=c[u+7],e[0]}function o(c,u){return t[7]=c[u],t[6]=c[u+1],t[5]=c[u+2],t[4]=c[u+3],t[3]=c[u+4],t[2]=c[u+5],t[1]=c[u+6],t[0]=c[u+7],e[0]}r.readDoubleLE=n?s:o,r.readDoubleBE=n?o:s}():function(){function e(n,a,i,s,o,c){var u=s<0?1:0;if(u&&(s=-s),s===0)n(0,o,c+a),n(1/s>0?0:2147483648,o,c+i);else if(isNaN(s))n(0,o,c+a),n(2146959360,o,c+i);else if(s>17976931348623157e292)n(0,o,c+a),n((u<<31|2146435072)>>>0,o,c+i);else{var l;if(s<22250738585072014e-324)l=s/5e-324,n(l>>>0,o,c+a),n((u<<31|l/4294967296)>>>0,o,c+i);else{var h=Math.floor(Math.log(s)/Math.LN2);h===1024&&(h=1023),l=s*Math.pow(2,-h),n(l*4503599627370496>>>0,o,c+a),n((u<<31|h+1023<<20|l*1048576&1048575)>>>0,o,c+i)}}}r.writeDoubleLE=e.bind(null,ptt,0,4),r.writeDoubleBE=e.bind(null,htt,4,0);function t(n,a,i,s,o){var c=n(s,o+a),u=n(s,o+i),l=(u>>31)*2+1,h=u>>>20&2047,f=4294967296*(u&1048575)+c;return h===2047?f?NaN:l*(1/0):h===0?l*5e-324*f:l*Math.pow(2,h-1075)*(f+4503599627370496)}r.readDoubleLE=t.bind(null,ftt,0,4),r.readDoubleBE=t.bind(null,mtt,4,0)}(),r}function ptt(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}function htt(r,e,t){e[t]=r>>>24,e[t+1]=r>>>16&255,e[t+2]=r>>>8&255,e[t+3]=r&255}function ftt(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16|r[e+3]<<24)>>>0}function mtt(r,e){return(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}});var btt=x((exports,module)=>{"use strict";d();p();module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(r){}return null}});var wtt=x(vtt=>{"use strict";d();p();var _Z=vtt;_Z.length=function(e){for(var t=0,n=0,a=0;a191&&c<224?s[o++]=(c&31)<<6|e[t++]&63:c>239&&c<365?(c=((c&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536,s[o++]=55296+(c>>10),s[o++]=56320+(c&1023)):s[o++]=(c&15)<<12|(e[t++]&63)<<6|e[t++]&63,o>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,s)),o=0);return i?(o&&i.push(String.fromCharCode.apply(String,s.slice(0,o))),i.join("")):String.fromCharCode.apply(String,s.slice(0,o))};_Z.write=function(e,t,n){for(var a=n,i,s,o=0;o>6|192,t[n++]=i&63|128):(i&64512)===55296&&((s=e.charCodeAt(o+1))&64512)===56320?(i=65536+((i&1023)<<10)+(s&1023),++o,t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128);return n-a}});var xtt=x((cqn,_tt)=>{"use strict";d();p();_tt.exports=ZCr;function ZCr(r,e,t){var n=t||8192,a=n>>>1,i=null,s=n;return function(c){if(c<1||c>a)return r(c);s+c>n&&(i=r(n),s=0);var u=e.call(i,s,s+=c);return s&7&&(s=(s|7)+1),u}}});var Ett=x((dqn,Ttt)=>{"use strict";d();p();Ttt.exports=Fo;var K4=C1();function Fo(r,e){this.lo=r>>>0,this.hi=e>>>0}var vv=Fo.zero=new Fo(0,0);vv.toNumber=function(){return 0};vv.zzEncode=vv.zzDecode=function(){return this};vv.length=function(){return 1};var XCr=Fo.zeroHash="\0\0\0\0\0\0\0\0";Fo.fromNumber=function(e){if(e===0)return vv;var t=e<0;t&&(e=-e);var n=e>>>0,a=(e-n)/4294967296>>>0;return t&&(a=~a>>>0,n=~n>>>0,++n>4294967295&&(n=0,++a>4294967295&&(a=0))),new Fo(n,a)};Fo.from=function(e){if(typeof e=="number")return Fo.fromNumber(e);if(K4.isString(e))if(K4.Long)e=K4.Long.fromString(e);else return Fo.fromNumber(parseInt(e,10));return e.low||e.high?new Fo(e.low>>>0,e.high>>>0):vv};Fo.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,n=~this.hi>>>0;return t||(n=n+1>>>0),-(t+n*4294967296)}return this.lo+this.hi*4294967296};Fo.prototype.toLong=function(e){return K4.Long?new K4.Long(this.lo|0,this.hi|0,Boolean(e)):{low:this.lo|0,high:this.hi|0,unsigned:Boolean(e)}};var E1=String.prototype.charCodeAt;Fo.fromHash=function(e){return e===XCr?vv:new Fo((E1.call(e,0)|E1.call(e,1)<<8|E1.call(e,2)<<16|E1.call(e,3)<<24)>>>0,(E1.call(e,4)|E1.call(e,5)<<8|E1.call(e,6)<<16|E1.call(e,7)<<24)>>>0)};Fo.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};Fo.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this};Fo.prototype.zzDecode=function(){var e=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this};Fo.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return n===0?t===0?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:n<128?9:10}});var C1=x(xZ=>{"use strict";d();p();var ut=xZ;ut.asPromise=att();ut.base64=ctt();ut.EventEmitter=ltt();ut.float=gtt();ut.inquire=btt();ut.utf8=wtt();ut.pool=xtt();ut.LongBits=Ett();ut.isNode=Boolean(typeof global<"u"&&global&&global.process&&global.process.versions&&global.process.versions.node);ut.global=ut.isNode&&global||typeof window<"u"&&window||typeof self<"u"&&self||xZ;ut.emptyArray=Object.freeze?Object.freeze([]):[];ut.emptyObject=Object.freeze?Object.freeze({}):{};ut.isInteger=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};ut.isString=function(e){return typeof e=="string"||e instanceof String};ut.isObject=function(e){return e&&typeof e=="object"};ut.isset=ut.isSet=function(e,t){var n=e[t];return n!=null&&e.hasOwnProperty(t)?typeof n!="object"||(Array.isArray(n)?n.length:Object.keys(n).length)>0:!1};ut.Buffer=function(){try{var r=ut.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}();ut._Buffer_from=null;ut._Buffer_allocUnsafe=null;ut.newBuffer=function(e){return typeof e=="number"?ut.Buffer?ut._Buffer_allocUnsafe(e):new ut.Array(e):ut.Buffer?ut._Buffer_from(e):typeof Uint8Array>"u"?e:new Uint8Array(e)};ut.Array=typeof Uint8Array<"u"?Uint8Array:Array;ut.Long=ut.global.dcodeIO&&ut.global.dcodeIO.Long||ut.global.Long||ut.inquire("long");ut.key2Re=/^true|false|0|1$/;ut.key32Re=/^-?(?:0|[1-9][0-9]*)$/;ut.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;ut.longToHash=function(e){return e?ut.LongBits.from(e).toHash():ut.LongBits.zeroHash};ut.longFromHash=function(e,t){var n=ut.LongBits.fromHash(e);return ut.Long?ut.Long.fromBits(n.lo,n.hi,t):n.toNumber(Boolean(t))};function Ctt(r,e,t){for(var n=Object.keys(e),a=0;a-1;--i)if(t[a[i]]===1&&this[a[i]]!==void 0&&this[a[i]]!==null)return a[i]}};ut.oneOfSetter=function(e){return function(t){for(var n=0;n{"use strict";d();p();Ptt.exports=pn;var pp=C1(),TZ,uB=pp.LongBits,ktt=pp.base64,Att=pp.utf8;function G4(r,e,t){this.fn=r,this.len=e,this.next=void 0,this.val=t}function CZ(){}function e4r(r){this.head=r.head,this.tail=r.tail,this.len=r.len,this.next=r.states}function pn(){this.len=0,this.head=new G4(CZ,0,0),this.tail=this.head,this.states=null}var Stt=function(){return pp.Buffer?function(){return(pn.create=function(){return new TZ})()}:function(){return new pn}};pn.create=Stt();pn.alloc=function(e){return new pp.Array(e)};pp.Array!==Array&&(pn.alloc=pp.pool(pn.alloc,pp.Array.prototype.subarray));pn.prototype._push=function(e,t,n){return this.tail=this.tail.next=new G4(e,t,n),this.len+=t,this};function IZ(r,e,t){e[t]=r&255}function t4r(r,e,t){for(;r>127;)e[t++]=r&127|128,r>>>=7;e[t]=r}function kZ(r,e){this.len=r,this.next=void 0,this.val=e}kZ.prototype=Object.create(G4.prototype);kZ.prototype.fn=t4r;pn.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new kZ((e=e>>>0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this};pn.prototype.int32=function(e){return e<0?this._push(AZ,10,uB.fromNumber(e)):this.uint32(e)};pn.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)};function AZ(r,e,t){for(;r.hi;)e[t++]=r.lo&127|128,r.lo=(r.lo>>>7|r.hi<<25)>>>0,r.hi>>>=7;for(;r.lo>127;)e[t++]=r.lo&127|128,r.lo=r.lo>>>7;e[t++]=r.lo}pn.prototype.uint64=function(e){var t=uB.from(e);return this._push(AZ,t.length(),t)};pn.prototype.int64=pn.prototype.uint64;pn.prototype.sint64=function(e){var t=uB.from(e).zzEncode();return this._push(AZ,t.length(),t)};pn.prototype.bool=function(e){return this._push(IZ,1,e?1:0)};function EZ(r,e,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24}pn.prototype.fixed32=function(e){return this._push(EZ,4,e>>>0)};pn.prototype.sfixed32=pn.prototype.fixed32;pn.prototype.fixed64=function(e){var t=uB.from(e);return this._push(EZ,4,t.lo)._push(EZ,4,t.hi)};pn.prototype.sfixed64=pn.prototype.fixed64;pn.prototype.float=function(e){return this._push(pp.float.writeFloatLE,4,e)};pn.prototype.double=function(e){return this._push(pp.float.writeDoubleLE,8,e)};var r4r=pp.Array.prototype.set?function(e,t,n){t.set(e,n)}:function(e,t,n){for(var a=0;a>>0;if(!t)return this._push(IZ,1,0);if(pp.isString(e)){var n=pn.alloc(t=ktt.length(e));ktt.decode(e,n,0),e=n}return this.uint32(t)._push(r4r,t,e)};pn.prototype.string=function(e){var t=Att.length(e);return t?this.uint32(t)._push(Att.write,t,e):this._push(IZ,1,0)};pn.prototype.fork=function(){return this.states=new e4r(this),this.head=this.tail=new G4(CZ,0,0),this.len=0,this};pn.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new G4(CZ,0,0),this.len=0),this};pn.prototype.ldelim=function(){var e=this.head,t=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=e.next,this.tail=t,this.len+=n),this};pn.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),n=0;e;)e.fn(e.val,t,n),n+=e.len,e=e.next;return t};pn._configure=function(r){TZ=r,pn.create=Stt(),TZ._configure()}});var Ntt=x((wqn,Mtt)=>{"use strict";d();p();Mtt.exports=nm;var Rtt=SZ();(nm.prototype=Object.create(Rtt.prototype)).constructor=nm;var I1=C1();function nm(){Rtt.call(this)}nm._configure=function(){nm.alloc=I1._Buffer_allocUnsafe,nm.writeBytesBuffer=I1.Buffer&&I1.Buffer.prototype instanceof Uint8Array&&I1.Buffer.prototype.set.name==="set"?function(e,t,n){t.set(e,n)}:function(e,t,n){if(e.copy)e.copy(t,n,0,e.length);else for(var a=0;a>>0;return this.uint32(t),t&&this._push(nm.writeBytesBuffer,t,e),this};function n4r(r,e,t){r.length<40?I1.utf8.write(r,e,t):e.utf8Write?e.utf8Write(r,t):e.write(r,t)}nm.prototype.string=function(e){var t=I1.Buffer.byteLength(e);return this.uint32(t),t&&this._push(n4r,t,e),this};nm._configure()});var MZ=x((Tqn,qtt)=>{"use strict";d();p();qtt.exports=Cs;var am=C1(),RZ,Ott=am.LongBits,a4r=am.utf8;function Eh(r,e){return RangeError("index out of range: "+r.pos+" + "+(e||1)+" > "+r.len)}function Cs(r){this.buf=r,this.pos=0,this.len=r.length}var Btt=typeof Uint8Array<"u"?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new Cs(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new Cs(e);throw Error("illegal buffer")},Ltt=function(){return am.Buffer?function(t){return(Cs.create=function(a){return am.Buffer.isBuffer(a)?new RZ(a):Btt(a)})(t)}:Btt};Cs.create=Ltt();Cs.prototype._slice=am.Array.prototype.subarray||am.Array.prototype.slice;Cs.prototype.uint32=function(){var e=4294967295;return function(){if(e=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(e=(e|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,Eh(this,10);return e}}();Cs.prototype.int32=function(){return this.uint32()|0};Cs.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(e&1)|0};function PZ(){var r=new Ott(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r;if(r.lo=(r.lo|(this.buf[this.pos]&127)<<28)>>>0,r.hi=(r.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return r;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw Eh(this);if(r.lo=(r.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}return r.lo=(r.lo|(this.buf[this.pos++]&127)<>>0,r}if(this.len-this.pos>4){for(;e<5;++e)if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}else for(;e<5;++e){if(this.pos>=this.len)throw Eh(this);if(r.hi=(r.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return r}throw Error("invalid varint encoding")}Cs.prototype.bool=function(){return this.uint32()!==0};function lB(r,e){return(r[e-4]|r[e-3]<<8|r[e-2]<<16|r[e-1]<<24)>>>0}Cs.prototype.fixed32=function(){if(this.pos+4>this.len)throw Eh(this,4);return lB(this.buf,this.pos+=4)};Cs.prototype.sfixed32=function(){if(this.pos+4>this.len)throw Eh(this,4);return lB(this.buf,this.pos+=4)|0};function Dtt(){if(this.pos+8>this.len)throw Eh(this,8);return new Ott(lB(this.buf,this.pos+=4),lB(this.buf,this.pos+=4))}Cs.prototype.float=function(){if(this.pos+4>this.len)throw Eh(this,4);var e=am.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e};Cs.prototype.double=function(){if(this.pos+8>this.len)throw Eh(this,4);var e=am.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e};Cs.prototype.bytes=function(){var e=this.uint32(),t=this.pos,n=this.pos+e;if(n>this.len)throw Eh(this,e);return this.pos+=e,Array.isArray(this.buf)?this.buf.slice(t,n):t===n?new this.buf.constructor(0):this._slice.call(this.buf,t,n)};Cs.prototype.string=function(){var e=this.bytes();return a4r.read(e,0,e.length)};Cs.prototype.skip=function(e){if(typeof e=="number"){if(this.pos+e>this.len)throw Eh(this,e);this.pos+=e}else do if(this.pos>=this.len)throw Eh(this);while(this.buf[this.pos++]&128);return this};Cs.prototype.skipType=function(r){switch(r){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(r=this.uint32()&7)!==4;)this.skipType(r);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+r+" at offset "+this.pos)}return this};Cs._configure=function(r){RZ=r,Cs.create=Ltt(),RZ._configure();var e=am.Long?"toLong":"toNumber";am.merge(Cs.prototype,{int64:function(){return PZ.call(this)[e](!1)},uint64:function(){return PZ.call(this)[e](!0)},sint64:function(){return PZ.call(this).zzDecode()[e](!1)},fixed64:function(){return Dtt.call(this)[e](!0)},sfixed64:function(){return Dtt.call(this)[e](!1)}})}});var Htt=x((Iqn,Utt)=>{"use strict";d();p();Utt.exports=wv;var Wtt=MZ();(wv.prototype=Object.create(Wtt.prototype)).constructor=wv;var Ftt=C1();function wv(r){Wtt.call(this,r)}wv._configure=function(){Ftt.Buffer&&(wv.prototype._slice=Ftt.Buffer.prototype.slice)};wv.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))};wv._configure()});var ztt=x((Sqn,jtt)=>{"use strict";d();p();jtt.exports=V4;var NZ=C1();(V4.prototype=Object.create(NZ.EventEmitter.prototype)).constructor=V4;function V4(r,e,t){if(typeof r!="function")throw TypeError("rpcImpl must be a function");NZ.EventEmitter.call(this),this.rpcImpl=r,this.requestDelimited=Boolean(e),this.responseDelimited=Boolean(t)}V4.prototype.rpcCall=function r(e,t,n,a,i){if(!a)throw TypeError("request must be specified");var s=this;if(!i)return NZ.asPromise(r,s,e,t,n,a);if(!s.rpcImpl){setTimeout(function(){i(Error("already ended"))},0);return}try{return s.rpcImpl(e,t[s.requestDelimited?"encodeDelimited":"encode"](a).finish(),function(c,u){if(c)return s.emit("error",c,e),i(c);if(u===null){s.end(!0);return}if(!(u instanceof n))try{u=n[s.responseDelimited?"decodeDelimited":"decode"](u)}catch(l){return s.emit("error",l,e),i(l)}return s.emit("data",u,e),i(null,u)})}catch(o){s.emit("error",o,e),setTimeout(function(){i(o)},0);return}};V4.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}});var Gtt=x(Ktt=>{"use strict";d();p();var i4r=Ktt;i4r.Service=ztt()});var $tt=x((Dqn,Vtt)=>{"use strict";d();p();Vtt.exports={}});var Qtt=x(Jtt=>{"use strict";d();p();var bl=Jtt;bl.build="minimal";bl.Writer=SZ();bl.BufferWriter=Ntt();bl.Reader=MZ();bl.BufferReader=Htt();bl.util=C1();bl.rpc=Gtt();bl.roots=$tt();bl.configure=Ytt;function Ytt(){bl.util._configure(),bl.Writer._configure(bl.BufferWriter),bl.Reader._configure(bl.BufferReader)}Ytt()});var dB=x((Uqn,Ztt)=>{"use strict";d();p();Ztt.exports=Qtt()});var ert=x((zqn,Xtt)=>{"use strict";d();p();var k1=dB(),E_=k1.Reader,BZ=k1.Writer,Jt=k1.util,Wo=k1.roots["ipfs-unixfs"]||(k1.roots["ipfs-unixfs"]={});Wo.Data=function(){function r(e){if(this.blocksizes=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Type=t.int32();break;case 2:i.Data=t.bytes();break;case 3:i.filesize=t.uint64();break;case 4:if(i.blocksizes&&i.blocksizes.length||(i.blocksizes=[]),(s&7)===2)for(var o=t.uint32()+t.pos;t.pos>>0,t.filesize.high>>>0).toNumber(!0))),t.blocksizes){if(!Array.isArray(t.blocksizes))throw TypeError(".Data.blocksizes: array expected");n.blocksizes=[];for(var a=0;a>>0,t.blocksizes[a].high>>>0).toNumber(!0))}if(t.hashType!=null&&(Jt.Long?(n.hashType=Jt.Long.fromValue(t.hashType)).unsigned=!0:typeof t.hashType=="string"?n.hashType=parseInt(t.hashType,10):typeof t.hashType=="number"?n.hashType=t.hashType:typeof t.hashType=="object"&&(n.hashType=new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0))),t.fanout!=null&&(Jt.Long?(n.fanout=Jt.Long.fromValue(t.fanout)).unsigned=!0:typeof t.fanout=="string"?n.fanout=parseInt(t.fanout,10):typeof t.fanout=="number"?n.fanout=t.fanout:typeof t.fanout=="object"&&(n.fanout=new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0))),t.mode!=null&&(n.mode=t.mode>>>0),t.mtime!=null){if(typeof t.mtime!="object")throw TypeError(".Data.mtime: object expected");n.mtime=Wo.UnixTime.fromObject(t.mtime)}return n},r.toObject=function(t,n){n||(n={});var a={};if((n.arrays||n.defaults)&&(a.blocksizes=[]),n.defaults){if(a.Type=n.enums===String?"Raw":0,n.bytes===String?a.Data="":(a.Data=[],n.bytes!==Array&&(a.Data=Jt.newBuffer(a.Data))),Jt.Long){var i=new Jt.Long(0,0,!0);a.filesize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.filesize=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.hashType=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.hashType=n.longs===String?"0":0;if(Jt.Long){var i=new Jt.Long(0,0,!0);a.fanout=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.fanout=n.longs===String?"0":0;a.mode=0,a.mtime=null}if(t.Type!=null&&t.hasOwnProperty("Type")&&(a.Type=n.enums===String?Wo.Data.DataType[t.Type]:t.Type),t.Data!=null&&t.hasOwnProperty("Data")&&(a.Data=n.bytes===String?Jt.base64.encode(t.Data,0,t.Data.length):n.bytes===Array?Array.prototype.slice.call(t.Data):t.Data),t.filesize!=null&&t.hasOwnProperty("filesize")&&(typeof t.filesize=="number"?a.filesize=n.longs===String?String(t.filesize):t.filesize:a.filesize=n.longs===String?Jt.Long.prototype.toString.call(t.filesize):n.longs===Number?new Jt.LongBits(t.filesize.low>>>0,t.filesize.high>>>0).toNumber(!0):t.filesize),t.blocksizes&&t.blocksizes.length){a.blocksizes=[];for(var s=0;s>>0,t.blocksizes[s].high>>>0).toNumber(!0):t.blocksizes[s]}return t.hashType!=null&&t.hasOwnProperty("hashType")&&(typeof t.hashType=="number"?a.hashType=n.longs===String?String(t.hashType):t.hashType:a.hashType=n.longs===String?Jt.Long.prototype.toString.call(t.hashType):n.longs===Number?new Jt.LongBits(t.hashType.low>>>0,t.hashType.high>>>0).toNumber(!0):t.hashType),t.fanout!=null&&t.hasOwnProperty("fanout")&&(typeof t.fanout=="number"?a.fanout=n.longs===String?String(t.fanout):t.fanout:a.fanout=n.longs===String?Jt.Long.prototype.toString.call(t.fanout):n.longs===Number?new Jt.LongBits(t.fanout.low>>>0,t.fanout.high>>>0).toNumber(!0):t.fanout),t.mode!=null&&t.hasOwnProperty("mode")&&(a.mode=t.mode),t.mtime!=null&&t.hasOwnProperty("mtime")&&(a.mtime=Wo.UnixTime.toObject(t.mtime,n)),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,k1.util.toJSONOptions)},r.DataType=function(){var e={},t=Object.create(e);return t[e[0]="Raw"]=0,t[e[1]="Directory"]=1,t[e[2]="File"]=2,t[e[3]="Metadata"]=3,t[e[4]="Symlink"]=4,t[e[5]="HAMTShard"]=5,t}(),r}();Wo.UnixTime=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Seconds=t.int64();break;case 2:i.FractionalNanoseconds=t.fixed32();break;default:t.skipType(s&7);break}}if(!i.hasOwnProperty("Seconds"))throw Jt.ProtocolError("missing required 'Seconds'",{instance:i});return i},r.fromObject=function(t){if(t instanceof Wo.UnixTime)return t;var n=new Wo.UnixTime;return t.Seconds!=null&&(Jt.Long?(n.Seconds=Jt.Long.fromValue(t.Seconds)).unsigned=!1:typeof t.Seconds=="string"?n.Seconds=parseInt(t.Seconds,10):typeof t.Seconds=="number"?n.Seconds=t.Seconds:typeof t.Seconds=="object"&&(n.Seconds=new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber())),t.FractionalNanoseconds!=null&&(n.FractionalNanoseconds=t.FractionalNanoseconds>>>0),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults){if(Jt.Long){var i=new Jt.Long(0,0,!1);a.Seconds=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Seconds=n.longs===String?"0":0;a.FractionalNanoseconds=0}return t.Seconds!=null&&t.hasOwnProperty("Seconds")&&(typeof t.Seconds=="number"?a.Seconds=n.longs===String?String(t.Seconds):t.Seconds:a.Seconds=n.longs===String?Jt.Long.prototype.toString.call(t.Seconds):n.longs===Number?new Jt.LongBits(t.Seconds.low>>>0,t.Seconds.high>>>0).toNumber():t.Seconds),t.FractionalNanoseconds!=null&&t.hasOwnProperty("FractionalNanoseconds")&&(a.FractionalNanoseconds=t.FractionalNanoseconds),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,k1.util.toJSONOptions)},r}();Wo.Metadata=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.MimeType=t.string();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof Wo.Metadata)return t;var n=new Wo.Metadata;return t.MimeType!=null&&(n.MimeType=String(t.MimeType)),n},r.toObject=function(t,n){n||(n={});var a={};return n.defaults&&(a.MimeType=""),t.MimeType!=null&&t.hasOwnProperty("MimeType")&&(a.MimeType=t.MimeType),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,k1.util.toJSONOptions)},r}();Xtt.exports=Wo});var C_=x((Vqn,art)=>{"use strict";d();p();var{Data:C0}=ert(),DZ=dv(),trt=["raw","directory","file","metadata","symlink","hamt-sharded-directory"],s4r=["directory","hamt-sharded-directory"],rrt=parseInt("0644",8),nrt=parseInt("0755",8);function pB(r){if(r!=null)return typeof r=="number"?r&4095:(r=r.toString(),r.substring(0,1)==="0"?parseInt(r,8)&4095:parseInt(r,10)&4095)}function OZ(r){if(r==null)return;let e;if(r.secs!=null&&(e={secs:r.secs,nsecs:r.nsecs}),r.Seconds!=null&&(e={secs:r.Seconds,nsecs:r.FractionalNanoseconds}),Array.isArray(r)&&(e={secs:r[0],nsecs:r[1]}),r instanceof Date){let t=r.getTime(),n=Math.floor(t/1e3);e={secs:n,nsecs:(t-n*1e3)*1e3}}if(!!Object.prototype.hasOwnProperty.call(e,"secs")){if(e!=null&&e.nsecs!=null&&(e.nsecs<0||e.nsecs>999999999))throw DZ(new Error("mtime-nsecs must be within the range [0,999999999]"),"ERR_INVALID_MTIME_NSECS");return e}}var $4=class{static unmarshal(e){let t=C0.decode(e),n=C0.toObject(t,{defaults:!1,arrays:!0,longs:Number,objects:!1}),a=new $4({type:trt[n.Type],data:n.Data,blockSizes:n.blocksizes,mode:n.mode,mtime:n.mtime?{secs:n.mtime.Seconds,nsecs:n.mtime.FractionalNanoseconds}:void 0});return a._originalMode=n.mode||0,a}constructor(e={type:"file"}){let{type:t,data:n,blockSizes:a,hashType:i,fanout:s,mtime:o,mode:c}=e;if(t&&!trt.includes(t))throw DZ(new Error("Type: "+t+" is not valid"),"ERR_INVALID_TYPE");this.type=t||"file",this.data=n,this.hashType=i,this.fanout=s,this.blockSizes=a||[],this._originalMode=0,this.mode=pB(c),o&&(this.mtime=OZ(o),this.mtime&&!this.mtime.nsecs&&(this.mtime.nsecs=0))}set mode(e){this._mode=this.isDirectory()?nrt:rrt;let t=pB(e);t!==void 0&&(this._mode=t)}get mode(){return this._mode}isDirectory(){return Boolean(this.type&&s4r.includes(this.type))}addBlockSize(e){this.blockSizes.push(e)}removeBlockSize(e){this.blockSizes.splice(e,1)}fileSize(){if(this.isDirectory())return 0;let e=0;return this.blockSizes.forEach(t=>{e+=t}),this.data&&(e+=this.data.length),e}marshal(){let e;switch(this.type){case"raw":e=C0.DataType.Raw;break;case"directory":e=C0.DataType.Directory;break;case"file":e=C0.DataType.File;break;case"metadata":e=C0.DataType.Metadata;break;case"symlink":e=C0.DataType.Symlink;break;case"hamt-sharded-directory":e=C0.DataType.HAMTShard;break;default:throw DZ(new Error("Type: "+e+" is not valid"),"ERR_INVALID_TYPE")}let t=this.data;(!this.data||!this.data.length)&&(t=void 0);let n;this.mode!=null&&(n=this._originalMode&4294963200|(pB(this.mode)||0),n===rrt&&!this.isDirectory()&&(n=void 0),n===nrt&&this.isDirectory()&&(n=void 0));let a;if(this.mtime!=null){let s=OZ(this.mtime);s&&(a={Seconds:s.secs,FractionalNanoseconds:s.nsecs},a.FractionalNanoseconds===0&&delete a.FractionalNanoseconds)}let i={Type:e,Data:t,filesize:this.isDirectory()?void 0:this.fileSize(),blocksizes:this.blockSizes,hashType:this.hashType,fanout:this.fanout,mode:n,mtime:a};return C0.encode(i).finish()}};art.exports={UnixFS:$4,parseMode:pB,parseMtime:OZ}});var ort=x((Jqn,srt)=>{d();p();srt.exports=LZ;var irt=128,o4r=127,c4r=~o4r,u4r=Math.pow(2,31);function LZ(r,e,t){if(Number.MAX_SAFE_INTEGER&&r>Number.MAX_SAFE_INTEGER)throw LZ.bytes=0,new RangeError("Could not encode varint");e=e||[],t=t||0;for(var n=t;r>=u4r;)e[t++]=r&255|irt,r/=128;for(;r&c4r;)e[t++]=r&255|irt,r>>>=7;return e[t]=r|0,LZ.bytes=t-n+1,e}});var lrt=x((Xqn,urt)=>{d();p();urt.exports=qZ;var l4r=128,crt=127;function qZ(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o||a>49)throw qZ.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&crt)<=l4r);return qZ.bytes=i-n,t}});var prt=x((rFn,drt)=>{d();p();var d4r=Math.pow(2,7),p4r=Math.pow(2,14),h4r=Math.pow(2,21),f4r=Math.pow(2,28),m4r=Math.pow(2,35),y4r=Math.pow(2,42),g4r=Math.pow(2,49),b4r=Math.pow(2,56),v4r=Math.pow(2,63);drt.exports=function(r){return r{d();p();hrt.exports={encode:ort(),decode:lrt(),encodingLength:prt()}});var WZ=x((cFn,yrt)=>{"use strict";d();p();var frt=FZ(),{toString:w4r}=(b_(),nt(QN)),{fromString:_4r}=(gv(),nt(D4));yrt.exports={numberToUint8Array:x4r,uint8ArrayToNumber:mrt,varintUint8ArrayEncode:T4r,varintEncode:E4r};function mrt(r){return parseInt(w4r(r,"base16"),16)}function x4r(r){let e=r.toString(16);return e.length%2===1&&(e="0"+e),_4r(e,"base16")}function T4r(r){return Uint8Array.from(frt.encode(mrt(r)))}function E4r(r){return Uint8Array.from(frt.encode(r))}});var brt=x((dFn,grt)=>{"use strict";d();p();var C4r=Object.freeze({identity:0,cidv1:1,cidv2:2,cidv3:3,ip4:4,tcp:6,sha1:17,"sha2-256":18,"sha2-512":19,"sha3-512":20,"sha3-384":21,"sha3-256":22,"sha3-224":23,"shake-128":24,"shake-256":25,"keccak-224":26,"keccak-256":27,"keccak-384":28,"keccak-512":29,blake3:30,dccp:33,"murmur3-128":34,"murmur3-32":35,ip6:41,ip6zone:42,path:47,multicodec:48,multihash:49,multiaddr:50,multibase:51,dns:53,dns4:54,dns6:55,dnsaddr:56,protobuf:80,cbor:81,raw:85,"dbl-sha2-256":86,rlp:96,bencode:99,"dag-pb":112,"dag-cbor":113,"libp2p-key":114,"git-raw":120,"torrent-info":123,"torrent-file":124,"leofcoin-block":129,"leofcoin-tx":130,"leofcoin-pr":131,sctp:132,"dag-jose":133,"dag-cose":134,"eth-block":144,"eth-block-list":145,"eth-tx-trie":146,"eth-tx":147,"eth-tx-receipt-trie":148,"eth-tx-receipt":149,"eth-state-trie":150,"eth-account-snapshot":151,"eth-storage-trie":152,"eth-receipt-log-trie":153,"eth-reciept-log":154,"bitcoin-block":176,"bitcoin-tx":177,"bitcoin-witness-commitment":178,"zcash-block":192,"zcash-tx":193,"caip-50":202,streamid:206,"stellar-block":208,"stellar-tx":209,md4:212,md5:213,bmt:214,"decred-block":224,"decred-tx":225,"ipld-ns":226,"ipfs-ns":227,"swarm-ns":228,"ipns-ns":229,zeronet:230,"secp256k1-pub":231,"bls12_381-g1-pub":234,"bls12_381-g2-pub":235,"x25519-pub":236,"ed25519-pub":237,"bls12_381-g1g2-pub":238,"dash-block":240,"dash-tx":241,"swarm-manifest":250,"swarm-feed":251,udp:273,"p2p-webrtc-star":275,"p2p-webrtc-direct":276,"p2p-stardust":277,"p2p-circuit":290,"dag-json":297,udt:301,utp:302,unix:400,thread:406,p2p:421,ipfs:421,https:443,onion:444,onion3:445,garlic64:446,garlic32:447,tls:448,noise:454,quic:460,ws:477,wss:478,"p2p-websocket-star":479,http:480,"swhid-1-snp":496,json:512,messagepack:513,"libp2p-peer-record":769,"libp2p-relay-rsvp":770,"car-index-sorted":1024,"sha2-256-trunc254-padded":4114,"ripemd-128":4178,"ripemd-160":4179,"ripemd-256":4180,"ripemd-320":4181,x11:4352,"p256-pub":4608,"p384-pub":4609,"p521-pub":4610,"ed448-pub":4611,"x448-pub":4612,"ed25519-priv":4864,"secp256k1-priv":4865,"x25519-priv":4866,kangarootwelve:7425,"sm3-256":21325,"blake2b-8":45569,"blake2b-16":45570,"blake2b-24":45571,"blake2b-32":45572,"blake2b-40":45573,"blake2b-48":45574,"blake2b-56":45575,"blake2b-64":45576,"blake2b-72":45577,"blake2b-80":45578,"blake2b-88":45579,"blake2b-96":45580,"blake2b-104":45581,"blake2b-112":45582,"blake2b-120":45583,"blake2b-128":45584,"blake2b-136":45585,"blake2b-144":45586,"blake2b-152":45587,"blake2b-160":45588,"blake2b-168":45589,"blake2b-176":45590,"blake2b-184":45591,"blake2b-192":45592,"blake2b-200":45593,"blake2b-208":45594,"blake2b-216":45595,"blake2b-224":45596,"blake2b-232":45597,"blake2b-240":45598,"blake2b-248":45599,"blake2b-256":45600,"blake2b-264":45601,"blake2b-272":45602,"blake2b-280":45603,"blake2b-288":45604,"blake2b-296":45605,"blake2b-304":45606,"blake2b-312":45607,"blake2b-320":45608,"blake2b-328":45609,"blake2b-336":45610,"blake2b-344":45611,"blake2b-352":45612,"blake2b-360":45613,"blake2b-368":45614,"blake2b-376":45615,"blake2b-384":45616,"blake2b-392":45617,"blake2b-400":45618,"blake2b-408":45619,"blake2b-416":45620,"blake2b-424":45621,"blake2b-432":45622,"blake2b-440":45623,"blake2b-448":45624,"blake2b-456":45625,"blake2b-464":45626,"blake2b-472":45627,"blake2b-480":45628,"blake2b-488":45629,"blake2b-496":45630,"blake2b-504":45631,"blake2b-512":45632,"blake2s-8":45633,"blake2s-16":45634,"blake2s-24":45635,"blake2s-32":45636,"blake2s-40":45637,"blake2s-48":45638,"blake2s-56":45639,"blake2s-64":45640,"blake2s-72":45641,"blake2s-80":45642,"blake2s-88":45643,"blake2s-96":45644,"blake2s-104":45645,"blake2s-112":45646,"blake2s-120":45647,"blake2s-128":45648,"blake2s-136":45649,"blake2s-144":45650,"blake2s-152":45651,"blake2s-160":45652,"blake2s-168":45653,"blake2s-176":45654,"blake2s-184":45655,"blake2s-192":45656,"blake2s-200":45657,"blake2s-208":45658,"blake2s-216":45659,"blake2s-224":45660,"blake2s-232":45661,"blake2s-240":45662,"blake2s-248":45663,"blake2s-256":45664,"skein256-8":45825,"skein256-16":45826,"skein256-24":45827,"skein256-32":45828,"skein256-40":45829,"skein256-48":45830,"skein256-56":45831,"skein256-64":45832,"skein256-72":45833,"skein256-80":45834,"skein256-88":45835,"skein256-96":45836,"skein256-104":45837,"skein256-112":45838,"skein256-120":45839,"skein256-128":45840,"skein256-136":45841,"skein256-144":45842,"skein256-152":45843,"skein256-160":45844,"skein256-168":45845,"skein256-176":45846,"skein256-184":45847,"skein256-192":45848,"skein256-200":45849,"skein256-208":45850,"skein256-216":45851,"skein256-224":45852,"skein256-232":45853,"skein256-240":45854,"skein256-248":45855,"skein256-256":45856,"skein512-8":45857,"skein512-16":45858,"skein512-24":45859,"skein512-32":45860,"skein512-40":45861,"skein512-48":45862,"skein512-56":45863,"skein512-64":45864,"skein512-72":45865,"skein512-80":45866,"skein512-88":45867,"skein512-96":45868,"skein512-104":45869,"skein512-112":45870,"skein512-120":45871,"skein512-128":45872,"skein512-136":45873,"skein512-144":45874,"skein512-152":45875,"skein512-160":45876,"skein512-168":45877,"skein512-176":45878,"skein512-184":45879,"skein512-192":45880,"skein512-200":45881,"skein512-208":45882,"skein512-216":45883,"skein512-224":45884,"skein512-232":45885,"skein512-240":45886,"skein512-248":45887,"skein512-256":45888,"skein512-264":45889,"skein512-272":45890,"skein512-280":45891,"skein512-288":45892,"skein512-296":45893,"skein512-304":45894,"skein512-312":45895,"skein512-320":45896,"skein512-328":45897,"skein512-336":45898,"skein512-344":45899,"skein512-352":45900,"skein512-360":45901,"skein512-368":45902,"skein512-376":45903,"skein512-384":45904,"skein512-392":45905,"skein512-400":45906,"skein512-408":45907,"skein512-416":45908,"skein512-424":45909,"skein512-432":45910,"skein512-440":45911,"skein512-448":45912,"skein512-456":45913,"skein512-464":45914,"skein512-472":45915,"skein512-480":45916,"skein512-488":45917,"skein512-496":45918,"skein512-504":45919,"skein512-512":45920,"skein1024-8":45921,"skein1024-16":45922,"skein1024-24":45923,"skein1024-32":45924,"skein1024-40":45925,"skein1024-48":45926,"skein1024-56":45927,"skein1024-64":45928,"skein1024-72":45929,"skein1024-80":45930,"skein1024-88":45931,"skein1024-96":45932,"skein1024-104":45933,"skein1024-112":45934,"skein1024-120":45935,"skein1024-128":45936,"skein1024-136":45937,"skein1024-144":45938,"skein1024-152":45939,"skein1024-160":45940,"skein1024-168":45941,"skein1024-176":45942,"skein1024-184":45943,"skein1024-192":45944,"skein1024-200":45945,"skein1024-208":45946,"skein1024-216":45947,"skein1024-224":45948,"skein1024-232":45949,"skein1024-240":45950,"skein1024-248":45951,"skein1024-256":45952,"skein1024-264":45953,"skein1024-272":45954,"skein1024-280":45955,"skein1024-288":45956,"skein1024-296":45957,"skein1024-304":45958,"skein1024-312":45959,"skein1024-320":45960,"skein1024-328":45961,"skein1024-336":45962,"skein1024-344":45963,"skein1024-352":45964,"skein1024-360":45965,"skein1024-368":45966,"skein1024-376":45967,"skein1024-384":45968,"skein1024-392":45969,"skein1024-400":45970,"skein1024-408":45971,"skein1024-416":45972,"skein1024-424":45973,"skein1024-432":45974,"skein1024-440":45975,"skein1024-448":45976,"skein1024-456":45977,"skein1024-464":45978,"skein1024-472":45979,"skein1024-480":45980,"skein1024-488":45981,"skein1024-496":45982,"skein1024-504":45983,"skein1024-512":45984,"skein1024-520":45985,"skein1024-528":45986,"skein1024-536":45987,"skein1024-544":45988,"skein1024-552":45989,"skein1024-560":45990,"skein1024-568":45991,"skein1024-576":45992,"skein1024-584":45993,"skein1024-592":45994,"skein1024-600":45995,"skein1024-608":45996,"skein1024-616":45997,"skein1024-624":45998,"skein1024-632":45999,"skein1024-640":46e3,"skein1024-648":46001,"skein1024-656":46002,"skein1024-664":46003,"skein1024-672":46004,"skein1024-680":46005,"skein1024-688":46006,"skein1024-696":46007,"skein1024-704":46008,"skein1024-712":46009,"skein1024-720":46010,"skein1024-728":46011,"skein1024-736":46012,"skein1024-744":46013,"skein1024-752":46014,"skein1024-760":46015,"skein1024-768":46016,"skein1024-776":46017,"skein1024-784":46018,"skein1024-792":46019,"skein1024-800":46020,"skein1024-808":46021,"skein1024-816":46022,"skein1024-824":46023,"skein1024-832":46024,"skein1024-840":46025,"skein1024-848":46026,"skein1024-856":46027,"skein1024-864":46028,"skein1024-872":46029,"skein1024-880":46030,"skein1024-888":46031,"skein1024-896":46032,"skein1024-904":46033,"skein1024-912":46034,"skein1024-920":46035,"skein1024-928":46036,"skein1024-936":46037,"skein1024-944":46038,"skein1024-952":46039,"skein1024-960":46040,"skein1024-968":46041,"skein1024-976":46042,"skein1024-984":46043,"skein1024-992":46044,"skein1024-1000":46045,"skein1024-1008":46046,"skein1024-1016":46047,"skein1024-1024":46048,"poseidon-bls12_381-a2-fc1":46081,"poseidon-bls12_381-a2-fc1-sc":46082,"zeroxcert-imprint-256":52753,"fil-commitment-unsealed":61697,"fil-commitment-sealed":61698,"holochain-adr-v0":8417572,"holochain-adr-v1":8483108,"holochain-key-v0":9728292,"holochain-key-v1":9793828,"holochain-sig-v0":10645796,"holochain-sig-v1":10711332,"skynet-ns":11639056,"arweave-ns":11704592});grt.exports={baseTable:C4r}});var wrt=x((fFn,vrt)=>{"use strict";d();p();var{baseTable:UZ}=brt(),I4r=WZ().varintEncode,HZ={},jZ={},hB={};for(let r in UZ){let e=r,t=UZ[e];HZ[e]=I4r(t);let n=e.toUpperCase().replace(/-/g,"_");jZ[n]=t,hB[t]||(hB[t]=e)}Object.freeze(HZ);Object.freeze(jZ);Object.freeze(hB);var k4r=Object.freeze(UZ);vrt.exports={nameToVarint:HZ,constantToCode:jZ,nameToCode:k4r,codeToName:hB}});var KZ=x((gFn,Srt)=>{"use strict";d();p();var fB=FZ(),{concat:A4r}=(bv(),nt(L4)),_rt=WZ(),{nameToVarint:mB,constantToCode:S4r,nameToCode:xrt,codeToName:zZ}=wrt();function P4r(r,e){let t;if(r instanceof Uint8Array)t=_rt.varintUint8ArrayEncode(r);else if(mB[r])t=mB[r];else throw new Error("multicodec not recognized");return A4r([t,e],t.length+e.length)}function R4r(r){return fB.decode(r),r.slice(fB.decode.bytes)}function Trt(r){let e=fB.decode(r),t=zZ[e];if(t===void 0)throw new Error(`Code "${e}" not found`);return t}function Ert(r){return zZ[r]}function Crt(r){let e=xrt[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Irt(r){return fB.decode(r)}function krt(r){let e=mB[r];if(e===void 0)throw new Error(`Codec "${r}" not found`);return e}function Art(r){return _rt.varintEncode(r)}function M4r(r){return Trt(r)}function N4r(r){return Ert(r)}function B4r(r){return Crt(r)}function D4r(r){return Irt(r)}function O4r(r){return krt(r)}function L4r(r){return Array.from(Art(r))}Srt.exports={addPrefix:P4r,rmPrefix:R4r,getNameFromData:Trt,getNameFromCode:Ert,getCodeFromName:Crt,getCodeFromData:Irt,getVarintFromName:krt,getVarintFromCode:Art,getCodec:M4r,getName:N4r,getNumber:B4r,getCode:D4r,getCodeVarint:O4r,getVarint:L4r,...S4r,nameToVarint:mB,nameToCode:xrt,codeToName:zZ}});var Rrt=x((wFn,Prt)=>{"use strict";d();p();var q4r=F4(),F4r={checkCIDComponents:function(r){if(r==null)return"null values are not valid CIDs";if(!(r.version===0||r.version===1))return"Invalid version, must be a number equal to 1 or 0";if(typeof r.codec!="string")return"codec must be string";if(r.version===0){if(r.codec!=="dag-pb")return"codec must be 'dag-pb' for CIDv0";if(r.multibaseName!=="base58btc")return"multibaseName must be 'base58btc' for CIDv0"}if(!(r.multihash instanceof Uint8Array))return"multihash must be a Uint8Array";try{q4r.validate(r.multihash)}catch(e){let t=e.message;return t||(t="Multihash validation failed"),t}}};Prt.exports=F4r});var I_=x((TFn,Brt)=>{"use strict";d();p();var yB=F4(),GZ=OQ(),_v=KZ(),W4r=Rrt(),{concat:Mrt}=(bv(),nt(L4)),{toString:U4r}=(b_(),nt(QN)),{equals:H4r}=(iB(),nt(wZ)),gB=_v.nameToCode,j4r=Object.keys(gB).reduce((r,e)=>(r[gB[e]]=e,r),{}),Nrt=Symbol.for("@ipld/js-cid/CID"),hp=class{constructor(e,t,n,a){if(this.version,this.codec,this.multihash,Object.defineProperty(this,Nrt,{value:!0}),hp.isCID(e)){let i=e;this.version=i.version,this.codec=i.codec,this.multihash=i.multihash,this.multibaseName=i.multibaseName||(i.version===0?"base58btc":"base32");return}if(typeof e=="string"){let i=GZ.isEncoded(e);if(i){let s=GZ.decode(e);this.version=parseInt(s[0].toString(),16),this.codec=_v.getCodec(s.slice(1)),this.multihash=_v.rmPrefix(s.slice(1)),this.multibaseName=i}else this.version=0,this.codec="dag-pb",this.multihash=yB.fromB58String(e),this.multibaseName="base58btc";hp.validateCID(this),Object.defineProperty(this,"string",{value:e});return}if(e instanceof Uint8Array){let i=parseInt(e[0].toString(),16);if(i===1){let s=e;this.version=i,this.codec=_v.getCodec(s.slice(1)),this.multihash=_v.rmPrefix(s.slice(1)),this.multibaseName="base32"}else this.version=0,this.codec="dag-pb",this.multihash=e,this.multibaseName="base58btc";hp.validateCID(this);return}this.version=e,typeof t=="number"&&(t=j4r[t]),this.codec=t,this.multihash=n,this.multibaseName=a||(e===0?"base58btc":"base32"),hp.validateCID(this)}get bytes(){let e=this._bytes;if(!e){if(this.version===0)e=this.multihash;else if(this.version===1){let t=_v.getCodeVarint(this.codec);e=Mrt([[1],t,this.multihash],1+t.byteLength+this.multihash.byteLength)}else throw new Error("unsupported version");Object.defineProperty(this,"_bytes",{value:e})}return e}get prefix(){let e=_v.getCodeVarint(this.codec),t=yB.prefix(this.multihash);return Mrt([[this.version],e,t],1+e.byteLength+t.byteLength)}get code(){return gB[this.codec]}toV0(){if(this.codec!=="dag-pb")throw new Error("Cannot convert a non dag-pb CID to CIDv0");let{name:e,length:t}=yB.decode(this.multihash);if(e!=="sha2-256")throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");if(t!==32)throw new Error("Cannot convert non 32 byte multihash CID to CIDv0");return new hp(0,this.codec,this.multihash)}toV1(){return new hp(1,this.codec,this.multihash,this.multibaseName)}toBaseEncodedString(e=this.multibaseName){if(this.string&&this.string.length!==0&&e===this.multibaseName)return this.string;let t;if(this.version===0){if(e!=="base58btc")throw new Error("not supported with CIDv0, to support different bases, please migrate the instance do CIDv1, you can do that through cid.toV1()");t=yB.toB58String(this.multihash)}else if(this.version===1)t=U4r(GZ.encode(e,this.bytes));else throw new Error("unsupported version");return e===this.multibaseName&&Object.defineProperty(this,"string",{value:t}),t}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}toString(e){return this.toBaseEncodedString(e)}toJSON(){return{codec:this.codec,version:this.version,hash:this.multihash}}equals(e){return this.codec===e.codec&&this.version===e.version&&H4r(this.multihash,e.multihash)}static validateCID(e){let t=W4r.checkCIDComponents(e);if(t)throw new Error(t)}static isCID(e){return e instanceof hp||Boolean(e&&e[Nrt])}};hp.codecs=gB;Brt.exports=hp});var k_=x((IFn,Drt)=>{"use strict";d();p();var z4r=z4(),K4r=I_(),G4r=async(r,e,t)=>{t.codec||(t.codec="dag-pb"),t.cidVersion||(t.cidVersion=0),t.hashAlg||(t.hashAlg="sha2-256"),t.hashAlg!=="sha2-256"&&(t.cidVersion=1);let n=await z4r(r,t.hashAlg),a=new K4r(t.cidVersion,t.codec,n);return t.onlyHash||await e.put(r,{pin:t.pin,preload:t.preload,timeout:t.timeout,cid:a}),a};Drt.exports=G4r});var VZ=x((SFn,Lrt)=>{"use strict";d();p();var xv=dB(),bB=xv.Reader,Ort=xv.Writer,ss=xv.util,nd=xv.roots.default||(xv.roots.default={});nd.PBLink=function(){function r(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:i.Hash=t.bytes();break;case 2:i.Name=t.string();break;case 3:i.Tsize=t.uint64();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof nd.PBLink)return t;var n=new nd.PBLink;return t.Hash!=null&&(typeof t.Hash=="string"?ss.base64.decode(t.Hash,n.Hash=ss.newBuffer(ss.base64.length(t.Hash)),0):t.Hash.length&&(n.Hash=t.Hash)),t.Name!=null&&(n.Name=String(t.Name)),t.Tsize!=null&&(ss.Long?(n.Tsize=ss.Long.fromValue(t.Tsize)).unsigned=!0:typeof t.Tsize=="string"?n.Tsize=parseInt(t.Tsize,10):typeof t.Tsize=="number"?n.Tsize=t.Tsize:typeof t.Tsize=="object"&&(n.Tsize=new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0))),n},r.toObject=function(t,n){n||(n={});var a={};if(n.defaults)if(n.bytes===String?a.Hash="":(a.Hash=[],n.bytes!==Array&&(a.Hash=ss.newBuffer(a.Hash))),a.Name="",ss.Long){var i=new ss.Long(0,0,!0);a.Tsize=n.longs===String?i.toString():n.longs===Number?i.toNumber():i}else a.Tsize=n.longs===String?"0":0;return t.Hash!=null&&t.hasOwnProperty("Hash")&&(a.Hash=n.bytes===String?ss.base64.encode(t.Hash,0,t.Hash.length):n.bytes===Array?Array.prototype.slice.call(t.Hash):t.Hash),t.Name!=null&&t.hasOwnProperty("Name")&&(a.Name=t.Name),t.Tsize!=null&&t.hasOwnProperty("Tsize")&&(typeof t.Tsize=="number"?a.Tsize=n.longs===String?String(t.Tsize):t.Tsize:a.Tsize=n.longs===String?ss.Long.prototype.toString.call(t.Tsize):n.longs===Number?new ss.LongBits(t.Tsize.low>>>0,t.Tsize.high>>>0).toNumber(!0):t.Tsize),a},r.prototype.toJSON=function(){return this.constructor.toObject(this,xv.util.toJSONOptions)},r}();nd.PBNode=function(){function r(e){if(this.Links=[],e)for(var t=Object.keys(e),n=0;n>>3){case 2:i.Links&&i.Links.length||(i.Links=[]),i.Links.push(nd.PBLink.decode(t,t.uint32()));break;case 1:i.Data=t.bytes();break;default:t.skipType(s&7);break}}return i},r.fromObject=function(t){if(t instanceof nd.PBNode)return t;var n=new nd.PBNode;if(t.Links){if(!Array.isArray(t.Links))throw TypeError(".PBNode.Links: array expected");n.Links=[];for(var a=0;a{"use strict";d();p();var{bases:qrt}=(dZ(),nt(uet));function Wrt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var Frt=Wrt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),$Z=Wrt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=new Uint8Array(r.length);for(let t=0;t{"use strict";d();p();var $4r=YZ();function Y4r(r,e="utf8"){let t=$4r[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.decoder.decode(`${t.prefix}${r}`)}Hrt.exports=Y4r});var Tv=x((qFn,jrt)=>{"use strict";d();p();var J4r=I_(),Q4r=vB(),JZ=class{constructor(e,t,n){if(!n)throw new Error("A link requires a cid to point to");this.Name=e||"",this.Tsize=t,this.Hash=new J4r(n),Object.defineProperties(this,{_nameBuf:{value:null,writable:!0,enumerable:!1}})}toString(){return`DAGLink <${this.Hash.toBaseEncodedString()} - name: "${this.Name}", size: ${this.Tsize}>`}toJSON(){return this._json||(this._json=Object.freeze({name:this.Name,size:this.Tsize,cid:this.Hash.toBaseEncodedString()})),Object.assign({},this._json)}get nameAsBuffer(){return this._nameBuf!=null?this._nameBuf:(this._nameBuf=Q4r(this.Name),this._nameBuf)}};jrt.exports=JZ});var zrt=x((QZ,ZZ)=>{d();p();(function(r,e){typeof QZ=="object"&&typeof ZZ<"u"?ZZ.exports=e():typeof define=="function"&&define.amd?define(e):r.stable=e()})(QZ,function(){"use strict";var r=function(n,a){return e(n.slice(),a)};r.inplace=function(n,a){var i=e(n,a);return i!==n&&t(i,null,n.length,n),n};function e(n,a){typeof a!="function"&&(a=function(u,l){return String(u).localeCompare(l)});var i=n.length;if(i<=1)return n;for(var s=new Array(i),o=1;oo&&(h=o),f>o&&(f=o),m=l,y=h;;)if(m{"use strict";d();p();function Z4r(r,e){for(let t=0;te[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{"use strict";d();p();var X4r=zrt(),e8r=Grt(),t8r=(r,e)=>{let t=r.nameAsBuffer,n=e.nameAsBuffer;return e8r(t,n)},r8r=r=>{X4r.inplace(r,t8r)};Vrt.exports=r8r});var eX=x((YFn,$rt)=>{"use strict";d();p();var n8r=Tv();function a8r(r){return new n8r(r.Name||r.name||"",r.Tsize||r.Size||r.size||0,r.Hash||r.hash||r.multihash||r.cid)}$rt.exports={createDagLinkFromB58EncodedHash:a8r}});var tX=x((ZFn,Qrt)=>{"use strict";d();p();var i8r=dB(),{PBLink:s8r}=VZ(),{createDagLinkFromB58EncodedHash:o8r}=eX(),Yrt=r=>{let e={};return r.Data&&r.Data.byteLength>0?e.Data=r.Data:e.Data=null,r.Links&&r.Links.length>0?e.Links=r.Links.map(t=>({Hash:t.Hash.bytes,Name:t.Name,Tsize:t.Tsize})):e.Links=null,e},c8r=r=>Jrt(Yrt(r)),u8r=(r,e=[])=>{let t={Data:r,Links:e.map(n=>o8r(n))};return Jrt(Yrt(t))};Qrt.exports={serializeDAGNode:c8r,serializeDAGNodeLike:u8r};function Jrt(r){let e=i8r.Writer.create();if(r.Links!=null)for(let t=0;t{"use strict";d();p();var l8r=I_(),Zrt=KZ(),Xrt=z4(),{multihash:ent}=Xrt,tnt=Zrt.DAG_PB,rnt=ent.names["sha2-256"],d8r=async(r,e={})=>{let t={cidVersion:e.cidVersion==null?1:e.cidVersion,hashAlg:e.hashAlg==null?rnt:e.hashAlg},n=ent.codes[t.hashAlg],a=await Xrt(r,n),i=Zrt.getNameFromCode(tnt);return new l8r(t.cidVersion,i,a)};nnt.exports={codec:tnt,defaultHashAlg:rnt,cid:d8r}});var int=x((aWn,ant)=>{"use strict";d();p();var p8r=Tv(),h8r=rX(),f8r=async(r,e={})=>{let t=r.serialize(),n=await h8r.cid(t,e);return new p8r(e.name||"",r.size,n)};ant.exports=f8r});var cnt=x((oWn,ont)=>{"use strict";d();p();var m8r=XZ(),snt=Tv(),y8r=r=>{if(r instanceof snt)return r;if(!("cid"in r||"hash"in r||"Hash"in r||"multihash"in r))throw new Error("Link must be a DAGLink or DAGLink-like. Convert the DAGNode into a DAGLink via `node.toDAGLink()`.");return new snt(r.Name||r.name,r.Tsize||r.size,r.Hash||r.multihash||r.hash||r.cid)},g8r=(r,e)=>{let t=y8r(e);r.Links.push(t),m8r(r.Links)};ont.exports=g8r});var lnt=x((lWn,unt)=>{"use strict";d();p();function b8r(r,e){if(r===e)return!0;if(r.byteLength!==e.byteLength)return!1;for(let t=0;t{"use strict";d();p();var v8r=I_(),dnt=lnt(),w8r=(r,e)=>{let t=null;if(typeof e=="string"?t=n=>n.Name===e:e instanceof Uint8Array?t=n=>dnt(n.Hash.bytes,e):v8r.isCID(e)&&(t=n=>dnt(n.Hash.bytes,e.bytes)),t){let n=r.Links,a=0;for(;a{"use strict";d();p();var _8r=YZ();function x8r(r,e="utf8"){let t=_8r[e];if(!t)throw new Error(`Unsupported encoding "${e}"`);return t.encoder.encode(r).substring(1)}fnt.exports=x8r});var aX=x((vWn,ynt)=>{"use strict";d();p();var T8r=XZ(),E8r=Tv(),{createDagLinkFromB58EncodedHash:C8r}=eX(),{serializeDAGNode:I8r}=tX(),k8r=int(),A8r=cnt(),S8r=hnt(),P8r=vB(),R8r=mnt(),nX=class{constructor(e,t=[],n=null){if(e||(e=new Uint8Array(0)),typeof e=="string"&&(e=P8r(e)),!(e instanceof Uint8Array))throw new Error("Passed 'data' is not a Uint8Array or a String!");if(n!==null&&typeof n!="number")throw new Error("Passed 'serializedSize' must be a number!");let a=t.map(i=>i instanceof E8r?i:C8r(i));T8r(a),this.Data=e,this.Links=a,Object.defineProperties(this,{_serializedSize:{value:n,writable:!0,enumerable:!1},_size:{value:null,writable:!0,enumerable:!1}})}toJSON(){return this._json||(this._json=Object.freeze({data:this.Data,links:this.Links.map(e=>e.toJSON()),size:this.size})),Object.assign({},this._json)}toString(){return`DAGNode `}_invalidateCached(){this._serializedSize=null,this._size=null}addLink(e){return this._invalidateCached(),A8r(this,e)}rmLink(e){return this._invalidateCached(),S8r(this,e)}toDAGLink(e){return k8r(this,e)}serialize(){let e=I8r(this);return this._serializedSize=e.length,e}get size(){if(this._size==null){let e;e==null&&(this._serializedSize=this.serialize().length,e=this._serializedSize),this._size=this.Links.reduce((t,n)=>t+n.Tsize,e)}return this._size}set size(e){throw new Error("Can't set property: 'size' is immutable")}};ynt.exports=nX});var sX=x((xWn,vnt)=>{"use strict";d();p();var{PBNode:gnt}=VZ(),M8r=Tv(),bnt=aX(),{serializeDAGNode:N8r,serializeDAGNodeLike:B8r}=tX(),iX=rX(),D8r=(r,e)=>iX.cid(r,e),O8r=r=>r instanceof bnt?N8r(r):B8r(r.Data,r.Links),L8r=r=>{let e=gnt.decode(r),t=gnt.toObject(e,{defaults:!1,arrays:!0,longs:Number,objects:!1}),n=t.Links.map(i=>new M8r(i.Name,i.Tsize,i.Hash)),a=t.Data==null?new Uint8Array(0):t.Data;return new bnt(a,n,r.byteLength)};vnt.exports={codec:iX.codec,defaultHashAlg:iX.defaultHashAlg,serialize:O8r,deserialize:L8r,cid:D8r}});var _nt=x(oX=>{"use strict";d();p();var q8r=I_(),wnt=sX();oX.resolve=(r,e="/")=>{let t=wnt.deserialize(r),n=e.split("/").filter(Boolean);for(;n.length;){let a=n.shift();if(t[a]===void 0){for(let i of t.Links)if(i.Name===a)return{value:i.Hash,remainderPath:n.join("/")};throw new Error(`Object has no property '${a}'`)}if(t=t[a],q8r.isCID(t))return{value:t,remainderPath:n.join("/")}}return{value:t,remainderPath:""}};oX.tree=function*(r){let e=wnt.deserialize(r);yield"Data",yield"Links";for(let t=0;t{"use strict";d();p();var F8r=_nt(),cX=sX(),W8r=aX(),U8r=Tv(),H8r={DAGNode:W8r,DAGLink:U8r,resolver:F8r,util:cX,codec:cX.codec,defaultHashAlg:cX.defaultHashAlg};xnt.exports=H8r});var Ent=x((RWn,Tnt)=>{"use strict";d();p();var{UnixFS:j8r}=C_(),z8r=k_(),{DAGNode:K8r}=A_(),G8r=async(r,e,t)=>{let n=new j8r({type:"directory",mtime:r.mtime,mode:r.mode}),a=new K8r(n.marshal()).serialize(),i=await z8r(a,e,t),s=r.path;return{cid:i,path:s,unixfs:n,size:a.length}};Tnt.exports=G8r});var Int=x((BWn,Cnt)=>{"use strict";d();p();var V8r=async r=>{let e=[];for await(let t of r)e.push(t);return e};Cnt.exports=V8r});var Ant=x((LWn,knt)=>{"use strict";d();p();var $8r=Int();knt.exports=async function(r,e){return e(await $8r(r))}});var Rnt=x((WWn,Pnt)=>{"use strict";d();p();var Y8r=ON();function J8r(r,e,t){return Snt(r,e,t)}async function Snt(r,e,t){let n=[];for await(let a of Y8r(r,t.maxChildrenPerNode))n.push(await e(a));return n.length>1?Snt(n,e,t):n[0]}Pnt.exports=J8r});var Nnt=x((jWn,Mnt)=>{"use strict";d();p();var Q8r=ON();Mnt.exports=async function(e,t,n){let a=new uX(n.layerRepeat),i=0,s=1,o=a;for await(let c of Q8r(e,n.maxChildrenPerNode))o.isFull()&&(o!==a&&a.addChild(await o.reduce(t)),i&&i%n.layerRepeat===0&&s++,o=new wB(s,n.layerRepeat,i),i++),o.append(c);return o&&o!==a&&a.addChild(await o.reduce(t)),a.reduce(t)};var wB=class{constructor(e,t,n=0){this.maxDepth=e,this.layerRepeat=t,this.currentDepth=1,this.iteration=n,this.root=this.node=this.parent={children:[],depth:this.currentDepth,maxDepth:e,maxChildren:(this.maxDepth-this.currentDepth)*this.layerRepeat}}isFull(){if(!this.root.data)return!1;if(this.currentDeptha.data).map(a=>this._reduce(a,t)))),t((e.data||[]).concat(n))}_findParent(e,t){let n=e.parent;if(!(!n||n.depth===0))return n.children.length===n.maxChildren||!n.maxChildren?this._findParent(n,t):n}},uX=class extends wB{constructor(e){super(0,e),this.root.depth=0,this.currentDepth=1}addChild(e){this.root.children.push(e)}reduce(e){return e((this.root.data||[]).concat(this.root.children))}}});var Dnt=x((GWn,Bnt)=>{"use strict";d();p();var{UnixFS:Z8r}=C_(),X8r=k_(),{DAGNode:eIr}=A_();async function*tIr(r,e,t){for await(let n of r.content)yield async()=>{t.progress(n.length,r.path);let a,i={codec:"dag-pb",cidVersion:t.cidVersion,hashAlg:t.hashAlg,onlyHash:t.onlyHash};return t.rawLeaves?(i.codec="raw",i.cidVersion=1):(a=new Z8r({type:t.leafType,data:n,mtime:r.mtime,mode:r.mode}),n=new eIr(a.marshal()).serialize()),{cid:await X8r(n,e,i),unixfs:a,size:n.length}}}Bnt.exports=tIr});var Unt=x((YWn,Wnt)=>{"use strict";d();p();var rIr=dv(),{UnixFS:Ont}=C_(),Lnt=k_(),{DAGNode:qnt,DAGLink:Fnt}=A_(),nIr=NQ(),aIr=z4().multihash,iIr={flat:Ant(),balanced:Rnt(),trickle:Nnt()};async function*sIr(r,e,t){let n=-1,a,i;typeof t.bufferImporter=="function"?i=t.bufferImporter:i=Dnt();for await(let s of nIr(i(r,e,t),t.blockWriteConcurrency)){if(n++,n===0){a=s;continue}else n===1&&a&&(yield a,a=null);yield s}a&&(a.single=!0,yield a)}var oIr=(r,e,t)=>{async function n(a){if(a.length===1&&a[0].single&&t.reduceSingleLeafToSelf){let l=a[0];if(l.cid.codec==="raw"&&(r.mtime!==void 0||r.mode!==void 0)){let{data:h}=await e.get(l.cid,t);l.unixfs=new Ont({type:"file",mtime:r.mtime,mode:r.mode,data:h});let f=aIr.decode(l.cid.multihash);h=new qnt(l.unixfs.marshal()).serialize(),l.cid=await Lnt(h,e,{...t,codec:"dag-pb",hashAlg:f.name,cidVersion:t.cidVersion}),l.size=h.length}return{cid:l.cid,path:r.path,unixfs:l.unixfs,size:l.size}}let i=new Ont({type:"file",mtime:r.mtime,mode:r.mode}),s=a.filter(l=>l.cid.codec==="raw"&&l.size||l.unixfs&&!l.unixfs.data&&l.unixfs.fileSize()?!0:Boolean(l.unixfs&&l.unixfs.data&&l.unixfs.data.length)).map(l=>l.cid.codec==="raw"?(i.addBlockSize(l.size),new Fnt("",l.size,l.cid)):(!l.unixfs||!l.unixfs.data?i.addBlockSize(l.unixfs&&l.unixfs.fileSize()||0):i.addBlockSize(l.unixfs.data.length),new Fnt("",l.size,l.cid))),o=new qnt(i.marshal(),s),c=o.serialize();return{cid:await Lnt(c,e,t),path:r.path,unixfs:i,size:c.length+o.Links.reduce((l,h)=>l+h.Tsize,0)}}return n};function cIr(r,e,t){let n=iIr[t.strategy];if(!n)throw rIr(new Error(`Unknown importer build strategy name: ${t.strategy}`),"ERR_BAD_STRATEGY");return n(sIr(r,e,t),oIr(r,e,t),t)}Wnt.exports=cIr});var lX=x((ZWn,jnt)=>{"use strict";d();p();var{Buffer:Ch}=cc(),Hnt=Symbol.for("BufferList");function ri(r){if(!(this instanceof ri))return new ri(r);ri._init.call(this,r)}ri._init=function(e){Object.defineProperty(this,Hnt,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)};ri.prototype._new=function(e){return new ri(e)};ri.prototype._offset=function(e){if(e===0)return[0,0];let t=0;for(let n=0;nthis.length||e<0)return;let t=this._offset(e);return this._bufs[t[0]][t[1]]};ri.prototype.slice=function(e,t){return typeof e=="number"&&e<0&&(e+=this.length),typeof t=="number"&&t<0&&(t+=this.length),this.copy(null,0,e,t)};ri.prototype.copy=function(e,t,n,a){if((typeof n!="number"||n<0)&&(n=0),(typeof a!="number"||a>this.length)&&(a=this.length),n>=this.length||a<=0)return e||Ch.alloc(0);let i=!!e,s=this._offset(n),o=a-n,c=o,u=i&&t||0,l=s[1];if(n===0&&a===this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Ch.concat(this._bufs,this.length);for(let h=0;hf)this._bufs[h].copy(e,u,l),u+=f;else{this._bufs[h].copy(e,u,l,l+c),u+=f;break}c-=f,l&&(l=0)}return e.length>u?e.slice(0,u):e};ri.prototype.shallowSlice=function(e,t){if(e=e||0,t=typeof t!="number"?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();let n=this._offset(e),a=this._offset(t),i=this._bufs.slice(n[0],a[0]+1);return a[1]===0?i.pop():i[i.length-1]=i[i.length-1].slice(0,a[1]),n[1]!==0&&(i[0]=i[0].slice(n[1])),this._new(i)};ri.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)};ri.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;)if(e>=this._bufs[0].length)e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}return this};ri.prototype.duplicate=function(){let e=this._new();for(let t=0;tthis.length?this.length:e;let n=this._offset(e),a=n[0],i=n[1];for(;a=r.length){let c=s.indexOf(r,i);if(c!==-1)return this._reverseOffset([a,c]);i=s.length-r.length+1}else{let c=this._reverseOffset([a,i]);if(this._match(c,r))return c;i++}i=0}return-1};ri.prototype._match=function(r,e){if(this.length-r{d();p();var dX=class{constructor(e,t=12,n=8*1024,a=32*1024,i=64,s){this.bits=t,this.min=n,this.max=a,this.asModule=e,this.rabin=new e.Rabin(t,n,a,i,s),this.polynomial=s}fingerprint(e){let{__retain:t,__release:n,__allocArray:a,__getInt32Array:i,Int32Array_ID:s,Uint8Array_ID:o}=this.asModule,c=new Int32Array(Math.ceil(e.length/this.min)),u=t(a(s,c)),l=t(a(o,e)),h=this.rabin.fingerprint(l,u),f=i(h);n(l),n(u);let m=f.indexOf(0);return m>=0?f.subarray(0,m):f}};znt.exports=dX});var Qnt=x(Q4=>{"use strict";d();p();var uIr=typeof BigUint64Array<"u",Y4=Symbol(),J4=1024;function Gnt(r,e){let t=new Uint32Array(r),n=new Uint16Array(r);var a=t[e+-4>>>2]>>>1,i=e>>>1;if(a<=J4)return String.fromCharCode.apply(String,n.subarray(i,i+a));let s=[];do{let o=n[i+J4-1],c=o>=55296&&o<56320?J4-1:J4;s.push(String.fromCharCode.apply(String,n.subarray(i,i+=c))),a-=c}while(a>J4);return s.join("")+String.fromCharCode.apply(String,n.subarray(i,i+a))}function pX(r){let e={};function t(a,i){return a?Gnt(a.buffer,i):""}let n=r.env=r.env||{};return n.abort=n.abort||function(i,s,o,c){let u=e.memory||n.memory;throw Error("abort: "+t(u,i)+" at "+t(u,s)+":"+o+":"+c)},n.trace=n.trace||function(i,s){let o=e.memory||n.memory;console.log("trace: "+t(o,i)+(s?" ":"")+Array.prototype.slice.call(arguments,2,2+s).join(", "))},r.Math=r.Math||Math,r.Date=r.Date||Date,e}function hX(r,e){let t=e.exports,n=t.memory,a=t.table,i=t.__alloc,s=t.__retain,o=t.__rtti_base||-1;function c(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2]}function u(K){let H=new Uint32Array(n.buffer),G=H[o>>>2];if((K>>>=0)>=G)throw Error("invalid id: "+K);return H[(o+4>>>2)+K*2+1]}function l(K){return 31-Math.clz32(K>>>5&31)}function h(K){return 31-Math.clz32(K>>>14&31)}function f(K){let H=K.length,G=i(H<<1,1),J=new Uint16Array(n.buffer);for(var q=0,T=G>>>1;q>>2]!==1)throw Error("not a string: "+K);return Gnt(H,K)}r.__getString=m;function y(K,H,G){let J=n.buffer;if(G)switch(K){case 2:return new Float32Array(J);case 3:return new Float64Array(J)}else switch(K){case 0:return new(H?Int8Array:Uint8Array)(J);case 1:return new(H?Int16Array:Uint16Array)(J);case 2:return new(H?Int32Array:Uint32Array)(J);case 3:return new(H?BigInt64Array:BigUint64Array)(J)}throw Error("unsupported align: "+K)}function E(K,H){let G=c(K);if(!(G&3))throw Error("not an array: "+K+" @ "+G);let J=l(G),q=H.length,T=i(q<>>2]=s(T),A[P+4>>>2]=T,A[P+8>>>2]=q<>>2]=q);let v=y(J,G&1024,G&2048);if(G&8192)for(let k=0;k>>J)+k]=s(H[k]);else v.set(H,T>>>J);return P}r.__allocArray=E;function I(K){let H=new Uint32Array(n.buffer),G=H[K+-8>>>2],J=c(G);if(!(J&1))throw Error("not an array: "+G);let q=l(J);var T=H[K+4>>>2];let P=J&2?H[K+12>>>2]:H[T+-4>>>2]>>>q;return y(q,J&1024,J&2048).subarray(T>>>=q,T+P)}r.__getArrayView=I;function S(K){let H=I(K),G=H.length,J=new Array(G);for(let q=0;q>>2];return H.slice(K,K+G)}r.__getArrayBuffer=L;function F(K,H,G){return new K(W(K,H,G))}function W(K,H,G){let J=n.buffer,q=new Uint32Array(J),T=q[G+4>>>2];return new K(J,T,q[T+-4>>>2]>>>H)}r.__getInt8Array=F.bind(null,Int8Array,0),r.__getInt8ArrayView=W.bind(null,Int8Array,0),r.__getUint8Array=F.bind(null,Uint8Array,0),r.__getUint8ArrayView=W.bind(null,Uint8Array,0),r.__getUint8ClampedArray=F.bind(null,Uint8ClampedArray,0),r.__getUint8ClampedArrayView=W.bind(null,Uint8ClampedArray,0),r.__getInt16Array=F.bind(null,Int16Array,1),r.__getInt16ArrayView=W.bind(null,Int16Array,1),r.__getUint16Array=F.bind(null,Uint16Array,1),r.__getUint16ArrayView=W.bind(null,Uint16Array,1),r.__getInt32Array=F.bind(null,Int32Array,2),r.__getInt32ArrayView=W.bind(null,Int32Array,2),r.__getUint32Array=F.bind(null,Uint32Array,2),r.__getUint32ArrayView=W.bind(null,Uint32Array,2),uIr&&(r.__getInt64Array=F.bind(null,BigInt64Array,3),r.__getInt64ArrayView=W.bind(null,BigInt64Array,3),r.__getUint64Array=F.bind(null,BigUint64Array,3),r.__getUint64ArrayView=W.bind(null,BigUint64Array,3)),r.__getFloat32Array=F.bind(null,Float32Array,2),r.__getFloat32ArrayView=W.bind(null,Float32Array,2),r.__getFloat64Array=F.bind(null,Float64Array,3),r.__getFloat64ArrayView=W.bind(null,Float64Array,3);function V(K,H){let G=new Uint32Array(n.buffer);var J=G[K+-8>>>2];if(J<=G[o>>>2])do if(J==H)return!0;while(J=u(J));return!1}return r.__instanceof=V,r.memory=r.memory||n,r.table=r.table||a,Jnt(t,r)}function Vnt(r){return typeof Response<"u"&&r instanceof Response}async function $nt(r,e){return Vnt(r=await r)?Ynt(r,e):hX(pX(e||(e={})),await WebAssembly.instantiate(r instanceof WebAssembly.Module?r:await WebAssembly.compile(r),e))}Q4.instantiate=$nt;function lIr(r,e){return hX(pX(e||(e={})),new WebAssembly.Instance(r instanceof WebAssembly.Module?r:new WebAssembly.Module(r),e))}Q4.instantiateSync=lIr;async function Ynt(r,e){return WebAssembly.instantiateStreaming?hX(pX(e||(e={})),(await WebAssembly.instantiateStreaming(r,e)).instance):$nt(Vnt(r=await r)?r.arrayBuffer():r,e)}Q4.instantiateStreaming=Ynt;function Jnt(r,e){var t=e?Object.create(e):{},n=r.__argumentsLength?function(a){r.__argumentsLength.value=a}:r.__setArgumentsLength||r.__setargc||function(){};for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let i=r[a],s=a.split("."),o=t;for(;s.length>1;){let l=s.shift();Object.prototype.hasOwnProperty.call(o,l)||(o[l]={}),o=o[l]}let c=s[0],u=c.indexOf("#");if(u>=0){let l=c.substring(0,u),h=o[l];if(typeof h>"u"||!h.prototype){let f=function(...m){return f.wrap(f.prototype.constructor(0,...m))};f.prototype={valueOf:function(){return this[Y4]}},f.wrap=function(m){return Object.create(f.prototype,{[Y4]:{value:m,writable:!1}})},h&&Object.getOwnPropertyNames(h).forEach(m=>Object.defineProperty(f,m,Object.getOwnPropertyDescriptor(h,m))),o[l]=f}if(c=c.substring(u+1),o=o[l].prototype,/^(get|set):/.test(c)){if(!Object.prototype.hasOwnProperty.call(o,c=c.substring(4))){let f=r[a.replace("set:","get:")],m=r[a.replace("get:","set:")];Object.defineProperty(o,c,{get:function(){return f(this[Y4])},set:function(y){m(this[Y4],y)},enumerable:!0})}}else c==="constructor"?(o[c]=(...f)=>(n(f.length),i(...f))).original=i:(o[c]=function(...f){return n(f.length),i(this[Y4],...f)}).original=i}else/^(get|set):/.test(c)?Object.prototype.hasOwnProperty.call(o,c=c.substring(4))||Object.defineProperty(o,c,{get:r[a.replace("set:","get:")],set:r[a.replace("get:","set:")],enumerable:!0}):typeof i=="function"&&i!==n?(o[c]=(...l)=>(n(l.length),i(...l))).original=i:o[c]=i}return t}Q4.demangle=Jnt});var Xnt=x((oUn,Znt)=>{d();p();var{instantiate:dIr}=Qnt();fX.supported=typeof WebAssembly<"u";function fX(r={}){if(!fX.supported)return null;var e=new Uint8Array([0,97,115,109,1,0,0,0,1,78,14,96,2,127,126,0,96,1,127,1,126,96,2,127,127,0,96,1,127,1,127,96,1,127,0,96,2,127,127,1,127,96,3,127,127,127,1,127,96,0,0,96,3,127,127,127,0,96,0,1,127,96,4,127,127,127,127,0,96,5,127,127,127,127,127,1,127,96,1,126,1,127,96,2,126,126,1,126,2,13,1,3,101,110,118,5,97,98,111,114,116,0,10,3,54,53,2,2,8,9,3,5,2,8,6,5,3,4,2,6,9,12,13,2,5,11,3,2,3,2,3,2,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,6,7,7,4,4,5,3,1,0,1,6,47,9,127,1,65,0,11,127,1,65,0,11,127,0,65,3,11,127,0,65,4,11,127,1,65,0,11,127,1,65,0,11,127,1,65,0,11,127,0,65,240,2,11,127,0,65,6,11,7,240,5,41,6,109,101,109,111,114,121,2,0,7,95,95,97,108,108,111,99,0,10,8,95,95,114,101,116,97,105,110,0,11,9,95,95,114,101,108,101,97,115,101,0,12,9,95,95,99,111,108,108,101,99,116,0,51,11,95,95,114,116,116,105,95,98,97,115,101,3,7,13,73,110,116,51,50,65,114,114,97,121,95,73,68,3,2,13,85,105,110,116,56,65,114,114,97,121,95,73,68,3,3,6,100,101,103,114,101,101,0,16,3,109,111,100,0,17,5,82,97,98,105,110,3,8,16,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,0,21,16,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,0,22,21,82,97,98,105,110,35,103,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,23,21,82,97,98,105,110,35,115,101,116,58,119,105,110,100,111,119,95,115,105,122,101,0,24,14,82,97,98,105,110,35,103,101,116,58,119,112,111,115,0,25,14,82,97,98,105,110,35,115,101,116,58,119,112,111,115,0,26,15,82,97,98,105,110,35,103,101,116,58,99,111,117,110,116,0,27,15,82,97,98,105,110,35,115,101,116,58,99,111,117,110,116,0,28,13,82,97,98,105,110,35,103,101,116,58,112,111,115,0,29,13,82,97,98,105,110,35,115,101,116,58,112,111,115,0,30,15,82,97,98,105,110,35,103,101,116,58,115,116,97,114,116,0,31,15,82,97,98,105,110,35,115,101,116,58,115,116,97,114,116,0,32,16,82,97,98,105,110,35,103,101,116,58,100,105,103,101,115,116,0,33,16,82,97,98,105,110,35,115,101,116,58,100,105,103,101,115,116,0,34,21,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,35,21,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,115,116,97,114,116,0,36,22,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,37,22,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,108,101,110,103,116,104,0,38,31,82,97,98,105,110,35,103,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,39,31,82,97,98,105,110,35,115,101,116,58,99,104,117,110,107,95,99,117,116,95,102,105,110,103,101,114,112,114,105,110,116,0,40,20,82,97,98,105,110,35,103,101,116,58,112,111,108,121,110,111,109,105,97,108,0,41,20,82,97,98,105,110,35,115,101,116,58,112,111,108,121,110,111,109,105,97,108,0,42,17,82,97,98,105,110,35,103,101,116,58,109,105,110,115,105,122,101,0,43,17,82,97,98,105,110,35,115,101,116,58,109,105,110,115,105,122,101,0,44,17,82,97,98,105,110,35,103,101,116,58,109,97,120,115,105,122,101,0,45,17,82,97,98,105,110,35,115,101,116,58,109,97,120,115,105,122,101,0,46,14,82,97,98,105,110,35,103,101,116,58,109,97,115,107,0,47,14,82,97,98,105,110,35,115,101,116,58,109,97,115,107,0,48,17,82,97,98,105,110,35,99,111,110,115,116,114,117,99,116,111,114,0,20,17,82,97,98,105,110,35,102,105,110,103,101,114,112,114,105,110,116,0,49,8,1,50,10,165,31,53,199,1,1,4,127,32,1,40,2,0,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,3,65,4,107,118,65,16,115,33,4,32,3,65,7,107,11,33,3,32,1,40,2,20,33,2,32,1,40,2,16,34,5,4,64,32,5,32,2,54,2,20,11,32,2,4,64,32,2,32,5,54,2,16,11,32,1,32,0,32,4,32,3,65,4,116,106,65,2,116,106,40,2,96,70,4,64,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,2,54,2,96,32,2,69,4,64,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,65,127,115,113,34,1,54,2,4,32,1,69,4,64,32,0,32,0,40,2,0,65,1,32,3,116,65,127,115,113,54,2,0,11,11,11,11,226,2,1,6,127,32,1,40,2,0,33,3,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,34,5,65,1,113,4,64,32,3,65,124,113,65,16,106,32,5,65,124,113,106,34,2,65,240,255,255,255,3,73,4,64,32,0,32,4,16,1,32,1,32,2,32,3,65,3,113,114,34,3,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,34,4,40,2,0,33,5,11,11,32,3,65,2,113,4,64,32,1,65,4,107,40,2,0,34,2,40,2,0,34,6,65,124,113,65,16,106,32,3,65,124,113,106,34,7,65,240,255,255,255,3,73,4,64,32,0,32,2,16,1,32,2,32,7,32,6,65,3,113,114,34,3,54,2,0,32,2,33,1,11,11,32,4,32,5,65,2,114,54,2,0,32,4,65,4,107,32,1,54,2,0,32,0,32,3,65,124,113,34,2,65,128,2,73,4,127,32,2,65,4,118,33,4,65,0,5,32,2,65,31,32,2,103,107,34,2,65,4,107,118,65,16,115,33,4,32,2,65,7,107,11,34,3,65,4,116,32,4,106,65,2,116,106,40,2,96,33,2,32,1,65,0,54,2,16,32,1,32,2,54,2,20,32,2,4,64,32,2,32,1,54,2,16,11,32,0,32,4,32,3,65,4,116,106,65,2,116,106,32,1,54,2,96,32,0,32,0,40,2,0,65,1,32,3,116,114,54,2,0,32,0,32,3,65,2,116,106,32,0,32,3,65,2,116,106,40,2,4,65,1,32,4,116,114,54,2,4,11,119,1,1,127,32,2,2,127,32,0,40,2,160,12,34,2,4,64,32,2,32,1,65,16,107,70,4,64,32,2,40,2,0,33,3,32,1,65,16,107,33,1,11,11,32,1,11,107,34,2,65,48,73,4,64,15,11,32,1,32,3,65,2,113,32,2,65,32,107,65,1,114,114,54,2,0,32,1,65,0,54,2,16,32,1,65,0,54,2,20,32,1,32,2,106,65,16,107,34,2,65,2,54,2,0,32,0,32,2,54,2,160,12,32,0,32,1,16,2,11,155,1,1,3,127,35,0,34,0,69,4,64,65,1,63,0,34,0,74,4,127,65,1,32,0,107,64,0,65,0,72,5,65,0,11,4,64,0,11,65,176,3,34,0,65,0,54,2,0,65,208,15,65,0,54,2,0,3,64,32,1,65,23,73,4,64,32,1,65,2,116,65,176,3,106,65,0,54,2,4,65,0,33,2,3,64,32,2,65,16,73,4,64,32,1,65,4,116,32,2,106,65,2,116,65,176,3,106,65,0,54,2,96,32,2,65,1,106,33,2,12,1,11,11,32,1,65,1,106,33,1,12,1,11,11,65,176,3,65,224,15,63,0,65,16,116,16,3,65,176,3,36,0,11,32,0,11,45,0,32,0,65,240,255,255,255,3,79,4,64,65,32,65,224,0,65,201,3,65,29,16,0,0,11,32,0,65,15,106,65,112,113,34,0,65,16,32,0,65,16,75,27,11,169,1,1,1,127,32,0,32,1,65,128,2,73,4,127,32,1,65,4,118,33,1,65,0,5,32,1,65,248,255,255,255,1,73,4,64,32,1,65,1,65,27,32,1,103,107,116,106,65,1,107,33,1,11,32,1,65,31,32,1,103,107,34,2,65,4,107,118,65,16,115,33,1,32,2,65,7,107,11,34,2,65,2,116,106,40,2,4,65,127,32,1,116,113,34,1,4,127,32,0,32,1,104,32,2,65,4,116,106,65,2,116,106,40,2,96,5,32,0,40,2,0,65,127,32,2,65,1,106,116,113,34,1,4,127,32,0,32,0,32,1,104,34,0,65,2,116,106,40,2,4,104,32,0,65,4,116,106,65,2,116,106,40,2,96,5,65,0,11,11,11,111,1,1,127,63,0,34,2,32,1,65,248,255,255,255,1,73,4,127,32,1,65,1,65,27,32,1,103,107,116,65,1,107,106,5,32,1,11,65,16,32,0,40,2,160,12,32,2,65,16,116,65,16,107,71,116,106,65,255,255,3,106,65,128,128,124,113,65,16,118,34,1,32,2,32,1,74,27,64,0,65,0,72,4,64,32,1,64,0,65,0,72,4,64,0,11,11,32,0,32,2,65,16,116,63,0,65,16,116,16,3,11,113,1,2,127,32,1,40,2,0,34,3,65,124,113,32,2,107,34,4,65,32,79,4,64,32,1,32,2,32,3,65,2,113,114,54,2,0,32,2,32,1,65,16,106,106,34,1,32,4,65,16,107,65,1,114,54,2,0,32,0,32,1,16,2,5,32,1,32,3,65,126,113,54,2,0,32,1,65,16,106,32,1,40,2,0,65,124,113,106,32,1,65,16,106,32,1,40,2,0,65,124,113,106,40,2,0,65,125,113,54,2,0,11,11,91,1,2,127,32,0,32,1,16,5,34,4,16,6,34,3,69,4,64,65,1,36,1,65,0,36,1,32,0,32,4,16,6,34,3,69,4,64,32,0,32,4,16,7,32,0,32,4,16,6,33,3,11,11,32,3,65,0,54,2,4,32,3,32,2,54,2,8,32,3,32,1,54,2,12,32,0,32,3,16,1,32,0,32,3,32,4,16,8,32,3,11,13,0,16,4,32,0,32,1,16,9,65,16,106,11,33,1,1,127,32,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,18,0,32,0,65,172,3,75,4,64,32,0,65,16,107,16,52,11,11,140,3,1,1,127,2,64,32,1,69,13,0,32,0,65,0,58,0,0,32,0,32,1,106,65,1,107,65,0,58,0,0,32,1,65,2,77,13,0,32,0,65,1,106,65,0,58,0,0,32,0,65,2,106,65,0,58,0,0,32,0,32,1,106,34,2,65,2,107,65,0,58,0,0,32,2,65,3,107,65,0,58,0,0,32,1,65,6,77,13,0,32,0,65,3,106,65,0,58,0,0,32,0,32,1,106,65,4,107,65,0,58,0,0,32,1,65,8,77,13,0,32,1,65,0,32,0,107,65,3,113,34,1,107,33,2,32,0,32,1,106,34,0,65,0,54,2,0,32,0,32,2,65,124,113,34,1,106,65,4,107,65,0,54,2,0,32,1,65,8,77,13,0,32,0,65,4,106,65,0,54,2,0,32,0,65,8,106,65,0,54,2,0,32,0,32,1,106,34,2,65,12,107,65,0,54,2,0,32,2,65,8,107,65,0,54,2,0,32,1,65,24,77,13,0,32,0,65,12,106,65,0,54,2,0,32,0,65,16,106,65,0,54,2,0,32,0,65,20,106,65,0,54,2,0,32,0,65,24,106,65,0,54,2,0,32,0,32,1,106,34,2,65,28,107,65,0,54,2,0,32,2,65,24,107,65,0,54,2,0,32,2,65,20,107,65,0,54,2,0,32,2,65,16,107,65,0,54,2,0,32,0,32,0,65,4,113,65,24,106,34,2,106,33,0,32,1,32,2,107,33,1,3,64,32,1,65,32,79,4,64,32,0,66,0,55,3,0,32,0,65,8,106,66,0,55,3,0,32,0,65,16,106,66,0,55,3,0,32,0,65,24,106,66,0,55,3,0,32,1,65,32,107,33,1,32,0,65,32,106,33,0,12,1,11,11,11,11,178,1,1,3,127,32,1,65,240,255,255,255,3,32,2,118,75,4,64,65,144,1,65,192,1,65,23,65,56,16,0,0,11,32,1,32,2,116,34,3,65,0,16,10,34,2,32,3,16,13,32,0,69,4,64,65,12,65,2,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,2,34,1,32,0,40,2,0,34,4,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,32,4,16,12,11,32,0,32,1,54,2,0,32,0,32,2,54,2,4,32,0,32,3,54,2,8,32,0,11,46,1,2,127,65,12,65,5,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,65,128,2,65,3,16,14,11,9,0,65,63,32,0,121,167,107,11,49,1,2,127,65,63,32,1,121,167,107,33,2,3,64,65,63,32,0,121,167,107,32,2,107,34,3,65,0,78,4,64,32,0,32,1,32,3,172,134,133,33,0,12,1,11,11,32,0,11,40,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,163,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,65,0,58,0,0,11,38,0,32,1,32,0,40,2,8,79,4,64,65,128,2,65,192,2,65,152,1,65,44,16,0,0,11,32,1,32,0,40,2,4,106,45,0,0,11,254,5,2,1,127,4,126,32,0,69,4,64,65,232,0,65,6,16,10,34,0,65,172,3,75,4,64,32,0,65,16,107,34,5,32,5,40,2,4,65,1,106,54,2,4,11,11,32,0,65,0,54,2,0,32,0,65,0,54,2,4,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,24,32,0,66,0,55,3,32,32,0,66,0,55,3,40,32,0,66,0,55,3,48,32,0,66,0,55,3,56,32,0,66,0,55,3,64,32,0,66,0,55,3,72,32,0,66,0,55,3,80,32,0,66,0,55,3,88,32,0,66,0,55,3,96,32,0,32,2,173,55,3,80,32,0,32,3,173,55,3,88,65,12,65,4,16,10,34,2,65,172,3,75,4,64,32,2,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,32,4,65,0,16,14,33,2,32,0,40,2,0,16,12,32,0,32,2,54,2,0,32,0,32,4,54,2,4,32,0,66,1,32,1,173,134,66,1,125,55,3,96,32,0,66,243,130,183,218,216,230,232,30,55,3,72,35,4,69,4,64,65,0,33,2,3,64,32,2,65,128,2,72,4,64,32,2,65,255,1,113,173,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,65,0,33,4,3,64,32,4,32,0,40,2,4,65,1,107,72,4,64,32,6,66,8,134,33,6,32,0,41,3,72,34,7,33,8,65,63,32,7,121,167,107,33,1,3,64,65,63,32,6,121,167,107,32,1,107,34,3,65,0,78,4,64,32,6,32,8,32,3,172,134,133,33,6,12,1,11,11,32,4,65,1,106,33,4,12,1,11,11,35,6,40,2,4,32,2,65,3,116,106,32,6,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,63,32,0,41,3,72,121,167,107,172,33,7,65,0,33,2,3,64,32,2,65,128,2,72,4,64,35,5,33,1,32,2,172,32,7,134,34,8,33,6,65,63,32,0,41,3,72,34,9,121,167,107,33,3,3,64,65,63,32,6,121,167,107,32,3,107,34,4,65,0,78,4,64,32,6,32,9,32,4,172,134,133,33,6,12,1,11,11,32,1,40,2,4,32,2,65,3,116,106,32,6,32,8,132,55,3,0,32,2,65,1,106,33,2,12,1,11,11,65,1,36,4,11,32,0,66,0,55,3,24,32,0,66,0,55,3,32,65,0,33,2,3,64,32,2,32,0,40,2,4,72,4,64,32,0,40,2,0,32,2,16,18,32,2,65,1,106,33,2,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,6,66,45,136,167,65,3,116,106,41,3,0,32,6,66,8,134,66,1,132,133,55,3,40,32,0,11,38,1,1,127,32,0,40,2,0,34,0,65,172,3,75,4,64,32,0,65,16,107,34,1,32,1,40,2,4,65,1,106,54,2,4,11,32,0,11,55,1,2,127,32,1,32,0,40,2,0,34,2,71,4,64,32,1,65,172,3,75,4,64,32,1,65,16,107,34,3,32,3,40,2,4,65,1,106,54,2,4,11,32,2,16,12,11,32,0,32,1,54,2,0,11,7,0,32,0,40,2,4,11,9,0,32,0,32,1,54,2,4,11,7,0,32,0,40,2,8,11,9,0,32,0,32,1,54,2,8,11,7,0,32,0,41,3,16,11,9,0,32,0,32,1,55,3,16,11,7,0,32,0,41,3,24,11,9,0,32,0,32,1,55,3,24,11,7,0,32,0,41,3,32,11,9,0,32,0,32,1,55,3,32,11,7,0,32,0,41,3,40,11,9,0,32,0,32,1,55,3,40,11,7,0,32,0,41,3,48,11,9,0,32,0,32,1,55,3,48,11,7,0,32,0,41,3,56,11,9,0,32,0,32,1,55,3,56,11,7,0,32,0,41,3,64,11,9,0,32,0,32,1,55,3,64,11,7,0,32,0,41,3,72,11,9,0,32,0,32,1,55,3,72,11,7,0,32,0,41,3,80,11,9,0,32,0,32,1,55,3,80,11,7,0,32,0,41,3,88,11,9,0,32,0,32,1,55,3,88,11,7,0,32,0,41,3,96,11,9,0,32,0,32,1,55,3,96,11,172,4,2,5,127,1,126,32,2,65,172,3,75,4,64,32,2,65,16,107,34,4,32,4,40,2,4,65,1,106,54,2,4,11,32,2,33,4,65,0,33,2,32,1,40,2,8,33,5,32,1,40,2,4,33,6,3,64,2,127,65,0,33,3,3,64,32,3,32,5,72,4,64,32,3,32,6,106,45,0,0,33,1,32,0,40,2,0,32,0,40,2,8,16,19,33,7,32,0,40,2,8,32,0,40,2,0,40,2,4,106,32,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,7,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,1,173,32,8,66,8,134,132,133,55,3,40,32,0,32,0,41,3,16,66,1,124,55,3,16,32,0,32,0,41,3,24,66,1,124,55,3,24,32,0,41,3,16,32,0,41,3,80,90,4,127,32,0,41,3,40,32,0,41,3,96,131,80,5,65,0,11,4,127,65,1,5,32,0,41,3,16,32,0,41,3,88,90,11,4,64,32,0,32,0,41,3,32,55,3,48,32,0,32,0,41,3,16,55,3,56,32,0,32,0,41,3,40,55,3,64,65,0,33,1,3,64,32,1,32,0,40,2,4,72,4,64,32,0,40,2,0,32,1,16,18,32,1,65,1,106,33,1,12,1,11,11,32,0,66,0,55,3,40,32,0,65,0,54,2,8,32,0,66,0,55,3,16,32,0,66,0,55,3,40,32,0,40,2,0,32,0,40,2,8,16,19,33,1,32,0,40,2,8,32,0,40,2,0,40,2,4,106,65,1,58,0,0,32,0,32,0,41,3,40,35,6,40,2,4,32,1,65,3,116,106,41,3,0,133,55,3,40,32,0,32,0,40,2,8,65,1,106,32,0,40,2,4,111,54,2,8,32,0,35,5,40,2,4,32,0,41,3,40,34,8,66,45,136,167,65,3,116,106,41,3,0,32,8,66,8,134,66,1,132,133,55,3,40,32,3,65,1,106,12,3,11,32,3,65,1,106,33,3,12,1,11,11,65,127,11,34,1,65,0,78,4,64,32,5,32,1,107,33,5,32,1,32,6,106,33,6,32,2,34,1,65,1,106,33,2,32,4,40,2,4,32,1,65,2,116,106,32,0,41,3,56,62,2,0,12,1,11,11,32,4,11,10,0,16,15,36,5,16,15,36,6,11,3,0,1,11,73,1,2,127,32,0,40,2,4,34,1,65,255,255,255,255,0,113,34,2,65,1,70,4,64,32,0,65,16,106,16,53,32,0,32,0,40,2,0,65,1,114,54,2,0,35,0,32,0,16,2,5,32,0,32,2,65,1,107,32,1,65,128,128,128,128,127,113,114,54,2,4,11,11,58,0,2,64,2,64,2,64,32,0,65,8,107,40,2,0,14,7,0,0,1,1,1,1,1,2,11,15,11,32,0,40,2,0,34,0,4,64,32,0,65,172,3,79,4,64,32,0,65,16,107,16,52,11,11,15,11,0,11,11,137,3,7,0,65,16,11,55,40,0,0,0,1,0,0,0,1,0,0,0,40,0,0,0,97,0,108,0,108,0,111,0,99,0,97,0,116,0,105,0,111,0,110,0,32,0,116,0,111,0,111,0,32,0,108,0,97,0,114,0,103,0,101,0,65,208,0,11,45,30,0,0,0,1,0,0,0,1,0,0,0,30,0,0,0,126,0,108,0,105,0,98,0,47,0,114,0,116,0,47,0,116,0,108,0,115,0,102,0,46,0,116,0,115,0,65,128,1,11,43,28,0,0,0,1,0,0,0,1,0,0,0,28,0,0,0,73,0,110,0,118,0,97,0,108,0,105,0,100,0,32,0,108,0,101,0,110,0,103,0,116,0,104,0,65,176,1,11,53,38,0,0,0,1,0,0,0,1,0,0,0,38,0,0,0,126,0,108,0,105,0,98,0,47,0,97,0,114,0,114,0,97,0,121,0,98,0,117,0,102,0,102,0,101,0,114,0,46,0,116,0,115,0,65,240,1,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,73,0,110,0,100,0,101,0,120,0,32,0,111,0,117,0,116,0,32,0,111,0,102,0,32,0,114,0,97,0,110,0,103,0,101,0,65,176,2,11,51,36,0,0,0,1,0,0,0,1,0,0,0,36,0,0,0,126,0,108,0,105,0,98,0,47,0,116,0,121,0,112,0,101,0,100,0,97,0,114,0,114,0,97,0,121,0,46,0,116,0,115,0,65,240,2,11,53,7,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,145,4,0,0,2,0,0,0,49,0,0,0,2,0,0,0,17,1,0,0,2,0,0,0,16,0,34,16,115,111,117,114,99,101,77,97,112,112,105,110,103,85,82,76,16,46,47,114,97,98,105,110,46,119,97,115,109,46,109,97,112]);return dIr(new Response(new Blob([e],{type:"application/wasm"})),r)}Znt.exports=fX});var rat=x((lUn,tat)=>{d();p();var eat=Knt(),pIr=Xnt(),hIr=async(r,e,t,n,a)=>{let i=await pIr();return new eat(i,r,e,t,n,a)};tat.exports={Rabin:eat,create:hIr}});var iat=x((hUn,aat)=>{"use strict";d();p();var fIr=lX(),{create:mIr}=rat(),nat=dv();aat.exports=async function*(e,t){let n,a,i;if(t.minChunkSize&&t.maxChunkSize&&t.avgChunkSize)i=t.avgChunkSize,n=t.minChunkSize,a=t.maxChunkSize;else if(t.avgChunkSize)i=t.avgChunkSize,n=i/3,a=i+i/2;else throw nat(new Error("please specify an average chunk size"),"ERR_INVALID_AVG_CHUNK_SIZE");if(n<16)throw nat(new Error("rabin min must be greater than 16"),"ERR_INVALID_MIN_CHUNK_SIZE");a{"use strict";d();p();var mX=lX();sat.exports=async function*(e,t){let n=new mX,a=0,i=!1,s=t.maxChunkSize;for await(let o of e)for(n.append(o),a+=o.length;a>=s;)if(yield n.slice(0,s),i=!0,s===n.length)n=new mX,a=0;else{let c=new mX;c.append(n.shallowSlice(s)),n=c,a-=s}(!i||a)&&(yield n.slice(0,a))}});var lat=x((vUn,uat)=>{"use strict";d();p();var cat=dv(),gIr=vB();async function*bIr(r){for await(let e of r){if(e.length===void 0)throw cat(new Error("Content was invalid"),"ERR_INVALID_CONTENT");if(typeof e=="string"||e instanceof String)yield gIr(e.toString());else if(Array.isArray(e))yield Uint8Array.from(e);else if(e instanceof Uint8Array)yield e;else throw cat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}}uat.exports=bIr});var hat=x((xUn,pat)=>{"use strict";d();p();var vIr=Ent(),wIr=Unt(),dat=dv();function _Ir(r){return Symbol.iterator in r}function xIr(r){return Symbol.asyncIterator in r}function TIr(r){try{if(r instanceof Uint8Array)return async function*(){yield r}();if(_Ir(r))return async function*(){yield*r}();if(xIr(r))return r}catch{throw dat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}throw dat(new Error("Content was invalid"),"ERR_INVALID_CONTENT")}async function*EIr(r,e,t){for await(let n of r)if(n.path&&(n.path.substring(0,2)==="./"&&(t.wrapWithDirectory=!0),n.path=n.path.split("/").filter(a=>a&&a!==".").join("/")),n.content){let a;typeof t.chunker=="function"?a=t.chunker:t.chunker==="rabin"?a=iat():a=oat();let i;typeof t.chunkValidator=="function"?i=t.chunkValidator:i=lat();let s={path:n.path,mtime:n.mtime,mode:n.mode,content:a(i(TIr(n.content),t),t)};yield()=>wIr(s,e,t)}else if(n.path){let a={path:n.path,mtime:n.mtime,mode:n.mode};yield()=>vIr(a,e,t)}else throw new Error("Import candidate must have content or path or both")}pat.exports=EIr});var _B=x((CUn,fat)=>{"use strict";d();p();var yX=class{constructor(e,t){this.options=t||{},this.root=e.root,this.dir=e.dir,this.path=e.path,this.dirty=e.dirty,this.flat=e.flat,this.parent=e.parent,this.parentKey=e.parentKey,this.unixfs=e.unixfs,this.mode=e.mode,this.mtime=e.mtime,this.cid=void 0,this.size=void 0}async put(e,t){}get(e){return Promise.resolve(this)}async*eachChildSeries(){}async*flush(e){}};fat.exports=yX});var bX=x((AUn,yat)=>{"use strict";d();p();var{DAGLink:CIr,DAGNode:IIr}=A_(),{UnixFS:kIr}=C_(),mat=_B(),AIr=k_(),gX=class extends mat{constructor(e,t){super(e,t),this._children={}}async put(e,t){this.cid=void 0,this.size=void 0,this._children[e]=t}get(e){return Promise.resolve(this._children[e])}childCount(){return Object.keys(this._children).length}directChildrenCount(){return this.childCount()}onlyChild(){return this._children[Object.keys(this._children)[0]]}async*eachChildSeries(){let e=Object.keys(this._children);for(let t=0;tu+l.Tsize,0);this.cid=o,this.size=c,yield{cid:o,unixfs:a,path:this.path,size:c}}};yat.exports=gX});var vat=x((MUn,bat)=>{"use strict";d();p();bat.exports=class{constructor(){this._bitArrays=[],this._data=[],this._length=0,this._changedLength=!1,this._changedData=!1}set(e,t){let n=this._internalPositionFor(e,!1);if(t===void 0)n!==-1&&(this._unsetInternalPos(n),this._unsetBit(e),this._changedLength=!0,this._changedData=!0);else{let a=!1;n===-1?(n=this._data.length,this._setBit(e),this._changedData=!0):a=!0,this._setInternalPos(n,e,t,a),this._changedLength=!0}}unset(e){this.set(e,void 0)}get(e){this._sortData();let t=this._internalPositionFor(e,!0);if(t!==-1)return this._data[t][1]}push(e){return this.set(this.length,e),this.length}get length(){if(this._sortData(),this._changedLength){let e=this._data[this._data.length-1];this._length=e?e[0]+1:0,this._changedLength=!1}return this._length}forEach(e){let t=0;for(;t=this._bitArrays.length)return-1;let a=this._bitArrays[n],i=e-n*7;if(!((a&1<0))return-1;let o=this._bitArrays.slice(0,n).reduce(SIr,0),c=~(4294967295<=t)i.push(s);else if(i[0][0]<=t)i.unshift(s);else{let o=Math.round(i.length/2);this._data=i.slice(0,o).concat(s).concat(i.slice(o))}else this._data.push(s);this._changedData=!0,this._changedLength=!0}}_unsetInternalPos(e){this._data.splice(e,1)}_sortData(){this._changedData&&this._data.sort(PIr),this._changedData=!1}bitField(){let e=[],t=8,n=0,a=0,i,s=this._bitArrays.slice();for(;s.length||n;){n===0&&(i=s.shift(),n=7);let c=Math.min(n,t),u=~(255<>>c,n-=c,t-=c,(!t||!n&&!s.length)&&(e.push(a),a=0,t=8)}for(var o=e.length-1;o>0&&e[o]===0;o--)e.pop();return e}compactArray(){return this._sortData(),this._data.map(RIr)}};function SIr(r,e){return r+gat(e)}function gat(r){let e=r;return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function PIr(r,e){return r[0]-e[0]}function RIr(r){return r[1]}});var xat=x((DUn,_at)=>{"use strict";d();p();var MIr=vat(),{fromString:NIr}=(gv(),nt(D4)),fp=class{constructor(e,t,n=0){this._options=e,this._popCount=0,this._parent=t,this._posAtParent=n,this._children=new MIr,this.key=null}async put(e,t){let n=await this._findNewBucketAndPos(e);await n.bucket._putAt(n,e,t)}async get(e){let t=await this._findChild(e);if(t)return t.value}async del(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);n&&n.key===e&&t.bucket._delAt(t.pos)}leafCount(){return this._children.compactArray().reduce((t,n)=>n instanceof fp?t+n.leafCount():t+1,0)}childrenCount(){return this._children.length}onlyChild(){return this._children.get(0)}*eachLeafSeries(){let e=this._children.compactArray();for(let t of e)t instanceof fp?yield*t.eachLeafSeries():yield t;return[]}serialize(e,t){let n=[];return t(this._children.reduce((a,i,s)=>(i&&(i instanceof fp?a.push(i.serialize(e,t)):a.push(e(i,s))),a),n))}asyncTransform(e,t){return wat(this,e,t)}toJSON(){return this.serialize(DIr,OIr)}prettyPrint(){return JSON.stringify(this.toJSON(),null," ")}tableSize(){return Math.pow(2,this._options.bits)}async _findChild(e){let t=await this._findPlace(e),n=t.bucket._at(t.pos);if(!(n instanceof fp)&&n&&n.key===e)return n}async _findPlace(e){let t=this._options.hash(typeof e=="string"?NIr(e):e),n=await t.take(this._options.bits),a=this._children.get(n);return a instanceof fp?a._findPlace(t):{bucket:this,pos:n,hash:t,existingChild:a}}async _findNewBucketAndPos(e){let t=await this._findPlace(e);if(t.existingChild&&t.existingChild.key!==e){let n=new fp(this._options,t.bucket,t.pos);t.bucket._putObjectAt(t.pos,n);let a=await n._findPlace(t.existingChild.hash);return a.bucket._putAt(a,t.existingChild.key,t.existingChild.value),n._findNewBucketAndPos(t.hash)}return t}_putAt(e,t,n){this._putObjectAt(e.pos,{key:t,value:n,hash:e.hash})}_putObjectAt(e,t){this._children.get(e)||this._popCount++,this._children.set(e,t)}_delAt(e){if(e===-1)throw new Error("Invalid position");this._children.get(e)&&this._popCount--,this._children.unset(e),this._level()}_level(){if(this._parent&&this._popCount<=1)if(this._popCount===1){let e=this._children.find(BIr);if(e&&!(e instanceof fp)){let t=e.hash;t.untake(this._options.bits);let n={pos:this._posAtParent,hash:t,bucket:this._parent};this._parent._putAt(n,e.key,e.value)}}else this._parent._delAt(this._posAtParent)}_at(e){return this._children.get(e)}};function BIr(r){return Boolean(r)}function DIr(r,e){return r.key}function OIr(r){return r}async function wat(r,e,t){let n=[];for(let a of r._children.compactArray())if(a instanceof fp)await wat(a,e,t);else{let i=await e(a);n.push({bitField:r._children.bitField(),children:i})}return t(n)}_at.exports=fp});var Eat=x((FUn,Tat)=>{"use strict";d();p();var LIr=[255,254,252,248,240,224,192,128],qIr=[1,3,7,15,31,63,127,255];Tat.exports=class{constructor(e){this._value=e,this._currentBytePos=e.length-1,this._currentBitPos=7}availableBits(){return this._currentBitPos+1+this._currentBytePos*8}totalBits(){return this._value.length*8}take(e){let t=e,n=0;for(;t&&this._haveBits();){let a=this._value[this._currentBytePos],i=this._currentBitPos+1,s=Math.min(i,t),o=FIr(a,i-s,s);n=(n<7;)this._currentBitPos-=8,this._currentBytePos+=1}_haveBits(){return this._currentBytePos>=0}};function FIr(r,e,t){let n=WIr(e,t);return(r&n)>>>e}function WIr(r,e){return LIr[r]&qIr[Math.min(e+r-1,7)]}});var Cat=x((HUn,vX)=>{"use strict";d();p();var UIr=Eat(),{concat:HIr}=(bv(),nt(L4));function jIr(r){function e(t){return t instanceof Z4?t:new Z4(t,r)}return e}var Z4=class{constructor(e,t){if(!(e instanceof Uint8Array))throw new Error("can only hash Uint8Arrays");this._value=e,this._hashFn=t,this._depth=-1,this._availableBits=0,this._currentBufferIndex=0,this._buffers=[]}async take(e){let t=e;for(;this._availableBits0;){let a=this._buffers[this._currentBufferIndex],i=Math.min(a.availableBits(),t),s=a.take(i);n=(n<0;){let n=this._buffers[this._currentBufferIndex],a=Math.min(n.totalBits()-n.availableBits(),t);n.untake(a),t-=a,this._availableBits+=a,this._currentBufferIndex>0&&n.totalBits()===n.availableBits()&&(this._depth--,this._currentBufferIndex--)}}async _produceMoreBits(){this._depth++;let e=this._depth?HIr([this._value,Uint8Array.from([this._depth])]):this._value,t=await this._hashFn(e),n=new UIr(t);this._buffers.push(n),this._availableBits+=n.availableBits()}};vX.exports=jIr;vX.exports.InfiniteHash=Z4});var Aat=x((KUn,kat)=>{"use strict";d();p();var Iat=xat(),zIr=Cat();function KIr(r){if(!r||!r.hashFn)throw new Error("please define an options.hashFn");let e={bits:r.bits||8,hash:zIr(r.hashFn)};return new Iat(e)}kat.exports={createHAMT:KIr,Bucket:Iat}});var Rat=x(($Un,Pat)=>{"use strict";d();p();var{DAGLink:wX,DAGNode:GIr}=A_(),{UnixFS:VIr}=C_(),$Ir=_B(),YIr=k_(),{createHAMT:JIr,Bucket:QIr}=Aat(),_X=class extends $Ir{constructor(e,t){super(e,t),this._bucket=JIr({hashFn:t.hamtHashFn,bits:t.hamtBucketBits})}async put(e,t){await this._bucket.put(e,t)}get(e){return this._bucket.get(e)}childCount(){return this._bucket.leafCount()}directChildrenCount(){return this._bucket.childrenCount()}onlyChild(){return this._bucket.onlyChild()}async*eachChildSeries(){for await(let{key:e,value:t}of this._bucket.eachLeafSeries())yield{key:e,child:t}}async*flush(e){for await(let t of Sat(this._bucket,e,this,this.options))yield{...t,path:this.path}}};Pat.exports=_X;async function*Sat(r,e,t,n){let a=r._children,i=[],s=0;for(let m=0;m{"use strict";d();p();var ZIr=Rat(),XIr=bX();Mat.exports=async function r(e,t,n,a){let i=t;t instanceof XIr&&t.directChildrenCount()>=n&&(i=await ekr(t,a));let s=i.parent;if(s){if(i!==t){if(e&&(e.parent=i),!i.parentKey)throw new Error("No parent key found");await s.put(i.parentKey,i)}return r(i,s,n,a)}return i};async function ekr(r,e){let t=new ZIr({root:r.root,dir:!0,parent:r.parent,parentKey:r.parentKey,path:r.path,dirty:r.dirty,flat:!1,mtime:r.mtime,mode:r.mode},e);for await(let{key:n,child:a}of r.eachChildSeries())await t.put(n,a);return t}});var Dat=x((eHn,Bat)=>{"use strict";d();p();var tkr=(r="")=>(r.trim().match(/([^\\^/]|\\\/)+/g)||[]).filter(Boolean);Bat.exports=tkr});var Wat=x((nHn,Fat)=>{"use strict";d();p();var Lat=bX(),rkr=Nat(),qat=_B(),nkr=Dat();async function akr(r,e,t){let n=nkr(r.path||""),a=n.length-1,i=e,s="";for(let o=0;o{"use strict";d();p();var skr=NQ(),okr=rtt();async function*ckr(r,e,t={}){let n=okr(t),a;typeof t.dagBuilder=="function"?a=t.dagBuilder:a=hat();let i;typeof t.treeBuilder=="function"?i=t.treeBuilder:i=Wat();let s;Symbol.asyncIterator in r||Symbol.iterator in r?s=r:s=[r];for await(let o of i(skr(a(s,e,n),n.fileImportConcurrency),e,n))yield{cid:o.cid,path:o.path,unixfs:o.unixfs,size:o.size}}Uat.exports={importer:ckr}});var TX=x((uHn,Hat)=>{d();p();Hat.exports=typeof self=="object"?self.FormData:window.FormData});var Zat=x($a=>{"use strict";d();p();Object.defineProperty($a,"__esModule",{value:!0});var ukr=tn(),lkr=xX(),dkr=TX(),pkr=Fr();function jat(r){return r&&r.__esModule?r:{default:r}}var xB=jat(ukr),hkr=jat(dkr);function fkr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function mkr(r){var e=fkr(r,"string");return typeof e=="symbol"?e:String(e)}function Ev(r,e,t){return e=mkr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var S_={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},zat="https://upload.nftlabs.co",EX="https://api.pinata.cloud/pinning/pinFileToIPFS";function Kat(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function Gat(r){let e={...r,...S_};for(let t of Object.keys(S_))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...S_[t]]}return e}function CX(){return typeof window<"u"}function P_(r){return global.File&&r instanceof File}function I0(r){return global.Buffer&&r instanceof b.Buffer}function R_(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||I0(r.data)))}function M_(r){return P_(r)||I0(r)||R_(r)}function Vat(r,e){if(P_(r)&&P_(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(I0(r)&&I0(e))return r.equals(e);if(R_(r)&&R_(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(I0(r.data)&&I0(e.data))return r.data.equals(e.data)}}return!1}function $at(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function AB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function TB(r,e){return typeof r=="string"?$at(r,e):typeof r=="object"?!r||M_(r)?r:Array.isArray(r)?r.map(t=>TB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,TB(a,e)]})):r}function X4(r,e){return typeof r=="string"?AB(r,e):typeof r=="object"?!r||M_(r)?r:Array.isArray(r)?r.map(t=>X4(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,X4(a,e)]})):r}function EB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(M_(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>EB(t,e)):Object.keys(r).map(t=>EB(r[t],e))}return e}function CB(r,e){if(M_(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>CB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,CB(a,e)]}))):r}async function Yat(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(R_(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return Jat(a,t,n)}async function Jat(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of lkr.importer(r,a,n))i=s;return`${i}`}async function Qat(r){return(await xB.default(`${S_["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var IB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=AB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await xB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},kB=class{constructor(e){Ev(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new hkr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await Yat(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await Qat(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return CX()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await xB.default(`${zat}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else R_(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(Vat(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),CX()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",EX),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await xB.default(EX,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},IX=class{constructor(e){Ev(this,"uploader",void 0),Ev(this,"downloader",void 0),Ev(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new kB,this.downloader=e?.downloader||new IB,this.gatewayUrls=Gat(Kat(e?.gatewayUrls))}resolveScheme(e){return AB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return X4(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>M_(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=TB(n,this.gatewayUrls);let a=EB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=CB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=X4(n,this.gatewayUrls)),n}},kX=class{constructor(e){Ev(this,"gatewayUrls",S_),Ev(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},AX=class{constructor(e){Ev(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=pkr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(P_(s))o=await s.text();else if(I0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=I0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};$a.DEFAULT_GATEWAY_URLS=S_;$a.IpfsUploader=kB;$a.MockDownloader=kX;$a.MockUploader=AX;$a.PINATA_IPFS_URL=EX;$a.StorageDownloader=IB;$a.TW_IPFS_SERVER_URL=zat;$a.ThirdwebStorage=IX;$a.extractObjectFiles=EB;$a.getCID=Jat;$a.getCIDForUpload=Yat;$a.isBrowser=CX;$a.isBufferInstance=I0;$a.isBufferOrStringWithName=R_;$a.isFileBufferOrStringEqual=Vat;$a.isFileInstance=P_;$a.isFileOrBuffer=M_;$a.isUploaded=Qat;$a.parseGatewayUrls=Kat;$a.prepareGatewayUrls=Gat;$a.replaceGatewayUrlWithScheme=$at;$a.replaceObjectFilesWithUris=CB;$a.replaceObjectGatewayUrlsWithSchemes=TB;$a.replaceObjectSchemesWithGatewayUrls=X4;$a.replaceSchemeWithGatewayUrl=AB});var cit=x(Ya=>{"use strict";d();p();Object.defineProperty(Ya,"__esModule",{value:!0});var ykr=tn(),gkr=xX(),bkr=TX(),vkr=Fr();function Xat(r){return r&&r.__esModule?r:{default:r}}var SB=Xat(ykr),wkr=Xat(bkr);function _kr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function xkr(r){var e=_kr(r,"string");return typeof e=="symbol"?e:String(e)}function Cv(r,e,t){return e=xkr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var N_={"ipfs://":["https://ipfs.thirdwebcdn.com/ipfs/","https://cloudflare-ipfs.com/ipfs/","https://ipfs.io/ipfs/"]},eit="https://upload.nftlabs.co",SX="https://api.pinata.cloud/pinning/pinFileToIPFS";function tit(r){return Array.isArray(r)?{"ipfs://":r}:r||{}}function rit(r){let e={...r,...N_};for(let t of Object.keys(N_))if(r&&r[t]){let n=r[t].map(a=>a.replace(/\/$/,"")+"/");e[t]=[...n,...N_[t]]}return e}function PX(){return typeof window<"u"}function B_(r){return global.File&&r instanceof File}function k0(r){return global.Buffer&&r instanceof b.Buffer}function D_(r){return!!(r&&r.name&&r.data&&typeof r.name=="string"&&(typeof r.data=="string"||k0(r.data)))}function O_(r){return B_(r)||k0(r)||D_(r)}function nit(r,e){if(B_(r)&&B_(e)){if(r.name===e.name&&r.lastModified===e.lastModified&&r.size===e.size)return!0}else{if(k0(r)&&k0(e))return r.equals(e);if(D_(r)&&D_(e)&&r.name===e.name){if(typeof r.data=="string"&&typeof e.data=="string")return r.data===e.data;if(k0(r.data)&&k0(e.data))return r.data.equals(e.data)}}return!1}function ait(r,e){for(let t of Object.keys(e))for(let n of e[t])if(r.startsWith(n))return r.replace(n,t);return r}function DB(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=Object.keys(e).find(i=>r.startsWith(i)),a=n?e[n]:[];if(!(!n&&t>0||n&&t>=a.length))return n?r.replace(n,a[t]):r}function PB(r,e){return typeof r=="string"?ait(r,e):typeof r=="object"?!r||O_(r)?r:Array.isArray(r)?r.map(t=>PB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,PB(a,e)]})):r}function e8(r,e){return typeof r=="string"?DB(r,e):typeof r=="object"?!r||O_(r)?r:Array.isArray(r)?r.map(t=>e8(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,e8(a,e)]})):r}function RB(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(O_(r))return e.push(r),e;if(typeof r=="object"){if(!r)return e;Array.isArray(r)?r.forEach(t=>RB(t,e)):Object.keys(r).map(t=>RB(r[t],e))}return e}function MB(r,e){if(O_(r)){if(e.length)return r=e.shift(),r;console.warn("Not enough URIs to replace all files in object.")}return typeof r=="object"?r&&(Array.isArray(r)?r.map(t=>MB(t,e)):Object.fromEntries(Object.entries(r).map(t=>{let[n,a]=t;return[n,MB(a,e)]}))):r}async function iit(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=await Promise.all(r.map(async(i,s)=>{let o=e[s],c;if(typeof i=="string")c=new TextEncoder().encode(i);else if(D_(i))typeof i.data=="string"?c=new TextEncoder().encode(i.data):c=i.data;else if(b.Buffer.isBuffer(i))c=i;else{let u=await i.arrayBuffer();c=new Uint8Array(u)}return{path:o,content:c}}));return sit(a,t,n)}async function sit(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n={onlyHash:!0,wrapWithDirectory:e,cidVersion:t},a={put:async()=>{}},i;for await(let{cid:s}of gkr.importer(r,a,n))i=s;return`${i}`}async function oit(r){return(await SB.default(`${N_["ipfs://"][0]}${r}`,{method:"HEAD"})).ok}var NB=class{async download(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n>3)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Failed to download from URI - too many attempts failed.");let a=DB(e,t,n);if(!a)throw new Error("[FAILED_TO_DOWNLOAD_ERROR] Unable to download from URI - all gateway URLs failed to respond.");let i=await SB.default(a);return i.status>=500||i.status===403||i.status===408?(console.warn(`Request to ${a} failed with status ${i.status} - ${i.statusText}`),this.download(e,t,n+1)):i}},BB=class{constructor(e){Cv(this,"uploadWithGatewayUrl",void 0),this.uploadWithGatewayUrl=e?.uploadWithGatewayUrl||!1}async uploadBatch(e,t){if(t?.uploadWithoutDirectory&&e.length>1)throw new Error("[UPLOAD_WITHOUT_DIRECTORY_ERROR] Cannot upload more than one file or object without directory!");let n=new wkr.default,{form:a,fileNames:i}=this.buildFormData(n,e,t);try{let s=await iit(e,i.map(o=>decodeURIComponent(o)),!t?.uploadWithoutDirectory);if(await oit(s)&&!t?.alwaysUpload)return t?.onProgress&&t?.onProgress({progress:100,total:100}),t?.uploadWithoutDirectory?[`ipfs://${s}`]:i.map(o=>`ipfs://${s}/${o}`)}catch{}return PX()?this.uploadBatchBrowser(a,i,t):this.uploadBatchNode(a,i,t)}async getUploadToken(){let e=await SB.default(`${eit}/grant`,{method:"GET",headers:{"X-APP-NAME":g.env.NODE_ENV==="test"||!!g.env.CI?"Storage SDK CI":"Storage SDK"}});if(!e.ok)throw new Error("Failed to get upload token");return await e.text()}buildFormData(e,t,n){let a=new Map,i=[];for(let o=0;o-1&&(f=c.name.substring(m))}u=`${o+n.rewriteFileNames.fileStartNumber}${f}`}else u=`${c.name}`;else D_(c)?(l=c.data,n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${c.name}`):n?.rewriteFileNames?u=`${o+n.rewriteFileNames.fileStartNumber}`:u=`${o}`;let h=n?.uploadWithoutDirectory?"files":`files/${u}`;if(a.has(u)){if(nit(a.get(u),c)){i.push(u);continue}throw new Error(`[DUPLICATE_FILE_NAME_ERROR] File name ${u} was passed for more than one different file.`)}a.set(u,c),i.push(u),PX()?e.append("file",new Blob([l]),h):e.append("file",l,{filepath:h})}let s={name:"Storage SDK",keyvalues:{...n?.metadata}};return e.append("pinataMetadata",JSON.stringify(s)),n?.uploadWithoutDirectory&&e.append("pinataOptions",JSON.stringify({wrapWithDirectory:!1})),{form:e,fileNames:i.map(o=>encodeURIComponent(o))}}async uploadBatchBrowser(e,t,n){let a=await this.getUploadToken();return new Promise((i,s)=>{let o=new XMLHttpRequest,c=setTimeout(()=>{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4);o.upload.addEventListener("loadstart",()=>{console.log(`[${Date.now()}] [IPFS] Started`)}),o.upload.addEventListener("progress",u=>{console.log(`[IPFS] Progress Event ${u.loaded}/${u.total}`),clearTimeout(c),u.loaded{o.abort(),s(new Error("Request to upload timed out! No upload progress received in 30s"))},3e4):console.log(`[${Date.now()}] [IPFS] Uploaded files. Waiting for response.`),u.lengthComputable&&n?.onProgress&&n?.onProgress({progress:u.loaded,total:u.total})}),o.addEventListener("load",()=>{if(console.log(`[${Date.now()}] [IPFS] Load`),clearTimeout(c),o.status>=200&&o.status<300){let u;try{u=JSON.parse(o.responseText)}catch{return s(new Error("Failed to parse JSON from upload response"))}let l=u.IpfsHash;if(!l)throw new Error("Failed to get IPFS hash from upload response");return n?.uploadWithoutDirectory?i([`ipfs://${l}`]):i(t.map(h=>`ipfs://${l}/${h}`))}return s(new Error(`Upload failed with status ${o.status} - ${o.responseText}`))}),o.addEventListener("error",()=>(console.log("[IPFS] Load"),clearTimeout(c),o.readyState!==0&&o.readyState!==4||o.status===0?s(new Error("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.")):s(new Error("Unknown upload error occured")))),o.open("POST",SX),o.setRequestHeader("Authorization",`Bearer ${a}`),o.send(e)})}async uploadBatchNode(e,t,n){let a=await this.getUploadToken();n?.onProgress&&console.warn("The onProgress option is only supported in the browser");let i=await SB.default(SX,{method:"POST",headers:{Authorization:`Bearer ${a}`,...e.getHeaders()},body:e.getBuffer()}),s=await i.json();if(!i.ok)throw console.warn(s),new Error("Failed to upload files to IPFS");let o=s.IpfsHash;if(!o)throw new Error("Failed to upload files to IPFS");return n?.uploadWithoutDirectory?[`ipfs://${o}`]:t.map(c=>`ipfs://${o}/${c}`)}},RX=class{constructor(e){Cv(this,"uploader",void 0),Cv(this,"downloader",void 0),Cv(this,"gatewayUrls",void 0),this.uploader=e?.uploader||new BB,this.downloader=e?.downloader||new NB,this.gatewayUrls=rit(tit(e?.gatewayUrls))}resolveScheme(e){return DB(e,this.gatewayUrls)}async download(e){return this.downloader.download(e,this.gatewayUrls)}async downloadJSON(e){let n=await(await this.download(e)).json();return e8(n,this.gatewayUrls)}async upload(e,t){let[n]=await this.uploadBatch([e],t);return n}async uploadBatch(e,t){if(e=e.filter(i=>i!==void 0),!e.length)return[];let n=e.map(i=>O_(i)||typeof i=="string").every(i=>!!i),a=[];if(n)a=await this.uploader.uploadBatch(e,t);else{let i=(await this.uploadAndReplaceFilesWithHashes(e,t)).map(s=>typeof s=="string"?s:JSON.stringify(s));a=await this.uploader.uploadBatch(i,t)}return t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl?a.map(i=>this.resolveScheme(i)):a}async uploadAndReplaceFilesWithHashes(e,t){let n=e;n=PB(n,this.gatewayUrls);let a=RB(n);if(a.length){let i=await this.uploader.uploadBatch(a,t);n=MB(n,i)}return(t?.uploadWithGatewayUrl||this.uploader.uploadWithGatewayUrl)&&(n=e8(n,this.gatewayUrls)),n}},MX=class{constructor(e){Cv(this,"gatewayUrls",N_),Cv(this,"storage",void 0),this.storage=e}async download(e){let[t,n]=e.includes("mock://")?e.replace("mock://","").split("/"):e.replace("ipfs://","").split("/"),a=n?this.storage[t][n]:this.storage[t];return{async json(){return Promise.resolve(JSON.parse(a))},async text(){return Promise.resolve(a)}}}},NX=class{constructor(e){Cv(this,"storage",void 0),this.storage=e}async uploadBatch(e,t){let n=vkr.v4(),a=[];this.storage[n]={};let i=t?.rewriteFileNames?.fileStartNumber||0;for(let s of e){let o;if(B_(s))o=await s.text();else if(k0(s))o=s.toString();else if(typeof s=="string")o=s;else{o=k0(s.data)?s.data.toString():s.data;let c=s.name?s.name:`file_${i}`;this.storage[n][c]=o,a.push(`mock://${n}/${c}`);continue}this.storage[n][i.toString()]=o,a.push(`mock://${n}/${i}`),i+=1}return a}};Ya.DEFAULT_GATEWAY_URLS=N_;Ya.IpfsUploader=BB;Ya.MockDownloader=MX;Ya.MockUploader=NX;Ya.PINATA_IPFS_URL=SX;Ya.StorageDownloader=NB;Ya.TW_IPFS_SERVER_URL=eit;Ya.ThirdwebStorage=RX;Ya.extractObjectFiles=RB;Ya.getCID=sit;Ya.getCIDForUpload=iit;Ya.isBrowser=PX;Ya.isBufferInstance=k0;Ya.isBufferOrStringWithName=D_;Ya.isFileBufferOrStringEqual=nit;Ya.isFileInstance=B_;Ya.isFileOrBuffer=O_;Ya.isUploaded=oit;Ya.parseGatewayUrls=tit;Ya.prepareGatewayUrls=rit;Ya.replaceGatewayUrlWithScheme=ait;Ya.replaceObjectFilesWithUris=MB;Ya.replaceObjectGatewayUrlsWithSchemes=PB;Ya.replaceObjectSchemesWithGatewayUrls=e8;Ya.replaceSchemeWithGatewayUrl=DB});var gn=x((bHn,BX)=>{"use strict";d();p();g.env.NODE_ENV==="production"?BX.exports=Zat():BX.exports=cit()});var Gr=x((_Hn,uit)=>{"use strict";d();p();var Tkr=g.env.NODE_ENV==="production",DX="Invariant failed";function Ekr(r,e){if(!r){if(Tkr)throw new Error(DX);var t=typeof e=="function"?e():e,n=t?"".concat(DX,": ").concat(t):DX;throw new Error(n)}}uit.exports=Ekr});var fa=x((EHn,Ckr)=>{Ckr.exports=[{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var dit=x((CHn,lit)=>{d();p();lit.exports=function(e){for(var t=new b.Buffer(e.length),n=0,a=e.length-1;n<=a;++n,--a)t[n]=e[a],t[a]=e[n];return t}});var rn=x((OB,pit)=>{d();p();(function(r,e){typeof OB=="object"?pit.exports=OB=e():typeof define=="function"&&define.amd?define([],e):r.CryptoJS=e()})(OB,function(){var r=r||function(e,t){var n=Object.create||function(){function E(){}return function(I){var S;return E.prototype=I,S=new E,E.prototype=null,S}}(),a={},i=a.lib={},s=i.Base=function(){return{extend:function(E){var I=n(this);return E&&I.mixIn(E),(!I.hasOwnProperty("init")||this.init===I.init)&&(I.init=function(){I.$super.init.apply(this,arguments)}),I.init.prototype=I,I.$super=this,I},create:function(){var E=this.extend();return E.init.apply(E,arguments),E},init:function(){},mixIn:function(E){for(var I in E)E.hasOwnProperty(I)&&(this[I]=E[I]);E.hasOwnProperty("toString")&&(this.toString=E.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),o=i.WordArray=s.extend({init:function(E,I){E=this.words=E||[],I!=t?this.sigBytes=I:this.sigBytes=E.length*4},toString:function(E){return(E||u).stringify(this)},concat:function(E){var I=this.words,S=E.words,L=this.sigBytes,F=E.sigBytes;if(this.clamp(),L%4)for(var W=0;W>>2]>>>24-W%4*8&255;I[L+W>>>2]|=V<<24-(L+W)%4*8}else for(var W=0;W>>2]=S[W>>>2];return this.sigBytes+=F,this},clamp:function(){var E=this.words,I=this.sigBytes;E[I>>>2]&=4294967295<<32-I%4*8,E.length=e.ceil(I/4)},clone:function(){var E=s.clone.call(this);return E.words=this.words.slice(0),E},random:function(E){for(var I=[],S=function(K){var K=K,H=987654321,G=4294967295;return function(){H=36969*(H&65535)+(H>>16)&G,K=18e3*(K&65535)+(K>>16)&G;var J=(H<<16)+K&G;return J/=4294967296,J+=.5,J*(e.random()>.5?1:-1)}},L=0,F;L>>2]>>>24-F%4*8&255;L.push((W>>>4).toString(16)),L.push((W&15).toString(16))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>3]|=parseInt(E.substr(L,2),16)<<24-L%8*4;return new o.init(S,I/2)}},l=c.Latin1={stringify:function(E){for(var I=E.words,S=E.sigBytes,L=[],F=0;F>>2]>>>24-F%4*8&255;L.push(String.fromCharCode(W))}return L.join("")},parse:function(E){for(var I=E.length,S=[],L=0;L>>2]|=(E.charCodeAt(L)&255)<<24-L%4*8;return new o.init(S,I)}},h=c.Utf8={stringify:function(E){try{return decodeURIComponent(escape(l.stringify(E)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(E){return l.parse(unescape(encodeURIComponent(E)))}},f=i.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(E){typeof E=="string"&&(E=h.parse(E)),this._data.concat(E),this._nDataBytes+=E.sigBytes},_process:function(E){var I=this._data,S=I.words,L=I.sigBytes,F=this.blockSize,W=F*4,V=L/W;E?V=e.ceil(V):V=e.max((V|0)-this._minBufferSize,0);var K=V*F,H=e.min(K*4,L);if(K){for(var G=0;G{d();p();(function(r,e){typeof LB=="object"?hit.exports=LB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(LB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[],c=[];(function(){function h(E){for(var I=e.sqrt(E),S=2;S<=I;S++)if(!(E%S))return!1;return!0}function f(E){return(E-(E|0))*4294967296|0}for(var m=2,y=0;y<64;)h(m)&&(y<8&&(o[y]=f(e.pow(m,1/2))),c[y]=f(e.pow(m,1/3)),y++),m++})();var u=[],l=s.SHA256=i.extend({_doReset:function(){this._hash=new a.init(o.slice(0))},_doProcessBlock:function(h,f){for(var m=this._hash.words,y=m[0],E=m[1],I=m[2],S=m[3],L=m[4],F=m[5],W=m[6],V=m[7],K=0;K<64;K++){if(K<16)u[K]=h[f+K]|0;else{var H=u[K-15],G=(H<<25|H>>>7)^(H<<14|H>>>18)^H>>>3,J=u[K-2],q=(J<<15|J>>>17)^(J<<13|J>>>19)^J>>>10;u[K]=G+u[K-7]+q+u[K-16]}var T=L&F^~L&W,P=y&E^y&I^E&I,A=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),v=(L<<26|L>>>6)^(L<<21|L>>>11)^(L<<7|L>>>25),k=V+v+T+c[K]+u[K],O=A+P;V=W,W=F,F=L,L=S+k|0,S=I,I=E,E=y,y=k+O|0}m[0]=m[0]+y|0,m[1]=m[1]+E|0,m[2]=m[2]+I|0,m[3]=m[3]+S|0,m[4]=m[4]+L|0,m[5]=m[5]+F|0,m[6]=m[6]+W|0,m[7]=m[7]+V|0},_doFinalize:function(){var h=this._data,f=h.words,m=this._nDataBytes*8,y=h.sigBytes*8;return f[y>>>5]|=128<<24-y%32,f[(y+64>>>9<<4)+14]=e.floor(m/4294967296),f[(y+64>>>9<<4)+15]=m,h.sigBytes=f.length*4,this._process(),this._hash},clone:function(){var h=i.clone.call(this);return h._hash=this._hash.clone(),h}});t.SHA256=i._createHelper(l),t.HmacSHA256=i._createHmacHelper(l)}(Math),r.SHA256})});var mit=x((OX,fit)=>{d();p();(function(r,e){typeof OX=="object"?fit.exports=e():typeof define=="function"&&define.amd?define(e):r.treeify=e()})(OX,function(){function r(a,i){var s=i?"\u2514":"\u251C";return a?s+="\u2500 ":s+="\u2500\u2500\u2510",s}function e(a,i){var s=[];for(var o in a)!a.hasOwnProperty(o)||i&&typeof a[o]=="function"||s.push(o);return s}function t(a,i,s,o,c,u,l){var h="",f=0,m,y,E=o.slice(0);if(E.push([i,s])&&o.length>0&&(o.forEach(function(S,L){L>0&&(h+=(S[1]?" ":"\u2502")+" "),!y&&S[0]===i&&(y=!0)}),h+=r(a,s)+a,c&&(typeof i!="object"||i instanceof Date)&&(h+=": "+i),y&&(h+=" (circular ref.)"),l(h)),!y&&typeof i=="object"){var I=e(i,u);I.forEach(function(S){m=++f===I.length,t(S,i[S],m,E,c,u,l)})}}var n={};return n.asLines=function(a,i,s,o){var c=typeof s!="function"?s:!1;t(".",a,!1,[],i,c,o||s)},n.asTree=function(a,i,s){var o="";return t(".",a,!1,[],i,s,function(c){o+=c+` +`}),o},n})});var r8=x((qB,yit)=>{d();p();(function(r,e){typeof qB=="object"?yit.exports=qB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(qB,function(r){return function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=t.x64={},o=s.Word=a.extend({init:function(u,l){this.high=u,this.low=l}}),c=s.WordArray=a.extend({init:function(u,l){u=this.words=u||[],l!=e?this.sigBytes=l:this.sigBytes=u.length*8},toX32:function(){for(var u=this.words,l=u.length,h=[],f=0;f{d();p();(function(r,e){typeof FB=="object"?git.exports=FB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(FB,function(r){return function(){if(typeof ArrayBuffer=="function"){var e=r,t=e.lib,n=t.WordArray,a=n.init,i=n.init=function(s){if(s instanceof ArrayBuffer&&(s=new Uint8Array(s)),(s instanceof Int8Array||typeof Uint8ClampedArray<"u"&&s instanceof Uint8ClampedArray||s instanceof Int16Array||s instanceof Uint16Array||s instanceof Int32Array||s instanceof Uint32Array||s instanceof Float32Array||s instanceof Float64Array)&&(s=new Uint8Array(s.buffer,s.byteOffset,s.byteLength)),s instanceof Uint8Array){for(var o=s.byteLength,c=[],u=0;u>>2]|=s[u]<<24-u%4*8;a.call(this,c,o)}else a.apply(this,arguments)};i.prototype=n}}(),r.lib.WordArray})});var wit=x((WB,vit)=>{d();p();(function(r,e){typeof WB=="object"?vit.exports=WB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(WB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Utf16=a.Utf16BE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535;l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=o.charCodeAt(l)<<16-l%2*16;return n.create(u,c*2)}};a.Utf16LE={stringify:function(o){for(var c=o.words,u=o.sigBytes,l=[],h=0;h>>2]>>>16-h%4*8&65535);l.push(String.fromCharCode(f))}return l.join("")},parse:function(o){for(var c=o.length,u=[],l=0;l>>1]|=s(o.charCodeAt(l)<<16-l%2*16);return n.create(u,c*2)}};function s(o){return o<<8&4278255360|o>>>8&16711935}}(),r.enc.Utf16})});var Iv=x((UB,_it)=>{d();p();(function(r,e){typeof UB=="object"?_it.exports=UB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(UB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.enc,i=a.Base64={stringify:function(o){var c=o.words,u=o.sigBytes,l=this._map;o.clamp();for(var h=[],f=0;f>>2]>>>24-f%4*8&255,y=c[f+1>>>2]>>>24-(f+1)%4*8&255,E=c[f+2>>>2]>>>24-(f+2)%4*8&255,I=m<<16|y<<8|E,S=0;S<4&&f+S*.75>>6*(3-S)&63));var L=l.charAt(64);if(L)for(;h.length%4;)h.push(L);return h.join("")},parse:function(o){var c=o.length,u=this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var h=0;h>>6-f%4*2;l[h>>>2]|=(m|y)<<24-h%4*8,h++}return n.create(l,h)}}(),r.enc.Base64})});var kv=x((HB,xit)=>{d();p();(function(r,e){typeof HB=="object"?xit.exports=HB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(HB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=[];(function(){for(var m=0;m<64;m++)o[m]=e.abs(e.sin(m+1))*4294967296|0})();var c=s.MD5=i.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,y){for(var E=0;E<16;E++){var I=y+E,S=m[I];m[I]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var L=this._hash.words,F=m[y+0],W=m[y+1],V=m[y+2],K=m[y+3],H=m[y+4],G=m[y+5],J=m[y+6],q=m[y+7],T=m[y+8],P=m[y+9],A=m[y+10],v=m[y+11],k=m[y+12],O=m[y+13],D=m[y+14],B=m[y+15],_=L[0],N=L[1],U=L[2],C=L[3];_=u(_,N,U,C,F,7,o[0]),C=u(C,_,N,U,W,12,o[1]),U=u(U,C,_,N,V,17,o[2]),N=u(N,U,C,_,K,22,o[3]),_=u(_,N,U,C,H,7,o[4]),C=u(C,_,N,U,G,12,o[5]),U=u(U,C,_,N,J,17,o[6]),N=u(N,U,C,_,q,22,o[7]),_=u(_,N,U,C,T,7,o[8]),C=u(C,_,N,U,P,12,o[9]),U=u(U,C,_,N,A,17,o[10]),N=u(N,U,C,_,v,22,o[11]),_=u(_,N,U,C,k,7,o[12]),C=u(C,_,N,U,O,12,o[13]),U=u(U,C,_,N,D,17,o[14]),N=u(N,U,C,_,B,22,o[15]),_=l(_,N,U,C,W,5,o[16]),C=l(C,_,N,U,J,9,o[17]),U=l(U,C,_,N,v,14,o[18]),N=l(N,U,C,_,F,20,o[19]),_=l(_,N,U,C,G,5,o[20]),C=l(C,_,N,U,A,9,o[21]),U=l(U,C,_,N,B,14,o[22]),N=l(N,U,C,_,H,20,o[23]),_=l(_,N,U,C,P,5,o[24]),C=l(C,_,N,U,D,9,o[25]),U=l(U,C,_,N,K,14,o[26]),N=l(N,U,C,_,T,20,o[27]),_=l(_,N,U,C,O,5,o[28]),C=l(C,_,N,U,V,9,o[29]),U=l(U,C,_,N,q,14,o[30]),N=l(N,U,C,_,k,20,o[31]),_=h(_,N,U,C,G,4,o[32]),C=h(C,_,N,U,T,11,o[33]),U=h(U,C,_,N,v,16,o[34]),N=h(N,U,C,_,D,23,o[35]),_=h(_,N,U,C,W,4,o[36]),C=h(C,_,N,U,H,11,o[37]),U=h(U,C,_,N,q,16,o[38]),N=h(N,U,C,_,A,23,o[39]),_=h(_,N,U,C,O,4,o[40]),C=h(C,_,N,U,F,11,o[41]),U=h(U,C,_,N,K,16,o[42]),N=h(N,U,C,_,J,23,o[43]),_=h(_,N,U,C,P,4,o[44]),C=h(C,_,N,U,k,11,o[45]),U=h(U,C,_,N,B,16,o[46]),N=h(N,U,C,_,V,23,o[47]),_=f(_,N,U,C,F,6,o[48]),C=f(C,_,N,U,q,10,o[49]),U=f(U,C,_,N,D,15,o[50]),N=f(N,U,C,_,G,21,o[51]),_=f(_,N,U,C,k,6,o[52]),C=f(C,_,N,U,K,10,o[53]),U=f(U,C,_,N,A,15,o[54]),N=f(N,U,C,_,W,21,o[55]),_=f(_,N,U,C,T,6,o[56]),C=f(C,_,N,U,B,10,o[57]),U=f(U,C,_,N,J,15,o[58]),N=f(N,U,C,_,O,21,o[59]),_=f(_,N,U,C,H,6,o[60]),C=f(C,_,N,U,v,10,o[61]),U=f(U,C,_,N,V,15,o[62]),N=f(N,U,C,_,P,21,o[63]),L[0]=L[0]+_|0,L[1]=L[1]+N|0,L[2]=L[2]+U|0,L[3]=L[3]+C|0},_doFinalize:function(){var m=this._data,y=m.words,E=this._nDataBytes*8,I=m.sigBytes*8;y[I>>>5]|=128<<24-I%32;var S=e.floor(E/4294967296),L=E;y[(I+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,y[(I+64>>>9<<4)+14]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360,m.sigBytes=(y.length+1)*4,this._process();for(var F=this._hash,W=F.words,V=0;V<4;V++){var K=W[V];W[V]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360}return F},clone:function(){var m=i.clone.call(this);return m._hash=this._hash.clone(),m}});function u(m,y,E,I,S,L,F){var W=m+(y&E|~y&I)+S+F;return(W<>>32-L)+y}function l(m,y,E,I,S,L,F){var W=m+(y&I|E&~I)+S+F;return(W<>>32-L)+y}function h(m,y,E,I,S,L,F){var W=m+(y^E^I)+S+F;return(W<>>32-L)+y}function f(m,y,E,I,S,L,F){var W=m+(E^(y|~I))+S+F;return(W<>>32-L)+y}t.MD5=i._createHelper(c),t.HmacMD5=i._createHmacHelper(c)}(Math),r.MD5})});var zB=x((jB,Tit)=>{d();p();(function(r,e){typeof jB=="object"?Tit.exports=jB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(jB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.Hasher,i=e.algo,s=[],o=i.SHA1=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,u){for(var l=this._hash.words,h=l[0],f=l[1],m=l[2],y=l[3],E=l[4],I=0;I<80;I++){if(I<16)s[I]=c[u+I]|0;else{var S=s[I-3]^s[I-8]^s[I-14]^s[I-16];s[I]=S<<1|S>>>31}var L=(h<<5|h>>>27)+E+s[I];I<20?L+=(f&m|~f&y)+1518500249:I<40?L+=(f^m^y)+1859775393:I<60?L+=(f&m|f&y|m&y)-1894007588:L+=(f^m^y)-899497514,E=y,y=m,m=f<<30|f>>>2,f=h,h=L}l[0]=l[0]+h|0,l[1]=l[1]+f|0,l[2]=l[2]+m|0,l[3]=l[3]+y|0,l[4]=l[4]+E|0},_doFinalize:function(){var c=this._data,u=c.words,l=this._nDataBytes*8,h=c.sigBytes*8;return u[h>>>5]|=128<<24-h%32,u[(h+64>>>9<<4)+14]=Math.floor(l/4294967296),u[(h+64>>>9<<4)+15]=l,c.sigBytes=u.length*4,this._process(),this._hash},clone:function(){var c=a.clone.call(this);return c._hash=this._hash.clone(),c}});e.SHA1=a._createHelper(o),e.HmacSHA1=a._createHmacHelper(o)}(),r.SHA1})});var Cit=x((KB,Eit)=>{d();p();(function(r,e,t){typeof KB=="object"?Eit.exports=KB=e(rn(),t8()):typeof define=="function"&&define.amd?define(["./core","./sha256"],e):e(r.CryptoJS)})(KB,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=e.algo,i=a.SHA256,s=a.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=i._doFinalize.call(this);return o.sigBytes-=4,o}});e.SHA224=i._createHelper(s),e.HmacSHA224=i._createHmacHelper(s)}(),r.SHA224})});var LX=x((GB,Iit)=>{d();p();(function(r,e,t){typeof GB=="object"?Iit.exports=GB=e(rn(),r8()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})(GB,function(r){return function(){var e=r,t=e.lib,n=t.Hasher,a=e.x64,i=a.Word,s=a.WordArray,o=e.algo;function c(){return i.create.apply(i,arguments)}var u=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],l=[];(function(){for(var f=0;f<80;f++)l[f]=c()})();var h=o.SHA512=n.extend({_doReset:function(){this._hash=new s.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(f,m){for(var y=this._hash.words,E=y[0],I=y[1],S=y[2],L=y[3],F=y[4],W=y[5],V=y[6],K=y[7],H=E.high,G=E.low,J=I.high,q=I.low,T=S.high,P=S.low,A=L.high,v=L.low,k=F.high,O=F.low,D=W.high,B=W.low,_=V.high,N=V.low,U=K.high,C=K.low,z=H,ee=G,j=J,X=q,ie=T,ue=P,he=A,ke=v,ge=k,me=O,Ke=D,ve=B,Ae=_,so=N,Et=U,bt=C,ci=0;ci<80;ci++){var _t=l[ci];if(ci<16)var st=_t.high=f[m+ci*2]|0,ui=_t.low=f[m+ci*2+1]|0;else{var Nt=l[ci-15],dt=Nt.high,oo=Nt.low,jt=(dt>>>1|oo<<31)^(dt>>>8|oo<<24)^dt>>>7,Bt=(oo>>>1|dt<<31)^(oo>>>8|dt<<24)^(oo>>>7|dt<<25),ac=l[ci-2],ot=ac.high,pt=ac.low,Nc=(ot>>>19|pt<<13)^(ot<<3|pt>>>29)^ot>>>6,Ct=(pt>>>19|ot<<13)^(pt<<3|ot>>>29)^(pt>>>6|ot<<26),It=l[ci-7],Bc=It.high,Dt=It.low,kt=l[ci-16],Dc=kt.high,At=kt.low,ui=Bt+Dt,st=jt+Bc+(ui>>>0>>0?1:0),ui=ui+Ct,st=st+Nc+(ui>>>0>>0?1:0),ui=ui+At,st=st+Dc+(ui>>>0>>0?1:0);_t.high=st,_t.low=ui}var Ot=ge&Ke^~ge&Ae,ic=me&ve^~me&so,Lt=z&j^z&ie^j&ie,qt=ee&X^ee&ue^X&ue,Oc=(z>>>28|ee<<4)^(z<<30|ee>>>2)^(z<<25|ee>>>7),St=(ee>>>28|z<<4)^(ee<<30|z>>>2)^(ee<<25|z>>>7),Ft=(ge>>>14|me<<18)^(ge>>>18|me<<14)^(ge<<23|me>>>9),Lc=(me>>>14|ge<<18)^(me>>>18|ge<<14)^(me<<23|ge>>>9),Pt=u[ci],Wt=Pt.high,sc=Pt.low,Je=bt+Lc,it=Et+Ft+(Je>>>0>>0?1:0),Je=Je+ic,it=it+Ot+(Je>>>0>>0?1:0),Je=Je+sc,it=it+Wt+(Je>>>0>>0?1:0),Je=Je+ui,it=it+st+(Je>>>0>>0?1:0),oc=St+qt,Ut=Oc+Lt+(oc>>>0>>0?1:0);Et=Ae,bt=so,Ae=Ke,so=ve,Ke=ge,ve=me,me=ke+Je|0,ge=he+it+(me>>>0>>0?1:0)|0,he=ie,ke=ue,ie=j,ue=X,j=z,X=ee,ee=Je+oc|0,z=it+Ut+(ee>>>0>>0?1:0)|0}G=E.low=G+ee,E.high=H+z+(G>>>0>>0?1:0),q=I.low=q+X,I.high=J+j+(q>>>0>>0?1:0),P=S.low=P+ue,S.high=T+ie+(P>>>0>>0?1:0),v=L.low=v+ke,L.high=A+he+(v>>>0>>0?1:0),O=F.low=O+me,F.high=k+ge+(O>>>0>>0?1:0),B=W.low=B+ve,W.high=D+Ke+(B>>>0>>0?1:0),N=V.low=N+so,V.high=_+Ae+(N>>>0>>0?1:0),C=K.low=C+bt,K.high=U+Et+(C>>>0>>0?1:0)},_doFinalize:function(){var f=this._data,m=f.words,y=this._nDataBytes*8,E=f.sigBytes*8;m[E>>>5]|=128<<24-E%32,m[(E+128>>>10<<5)+30]=Math.floor(y/4294967296),m[(E+128>>>10<<5)+31]=y,f.sigBytes=m.length*4,this._process();var I=this._hash.toX32();return I},clone:function(){var f=n.clone.call(this);return f._hash=this._hash.clone(),f},blockSize:1024/32});e.SHA512=n._createHelper(h),e.HmacSHA512=n._createHmacHelper(h)}(),r.SHA512})});var Ait=x((VB,kit)=>{d();p();(function(r,e,t){typeof VB=="object"?kit.exports=VB=e(rn(),r8(),LX()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./sha512"],e):e(r.CryptoJS)})(VB,function(r){return function(){var e=r,t=e.x64,n=t.Word,a=t.WordArray,i=e.algo,s=i.SHA512,o=i.SHA384=s.extend({_doReset:function(){this._hash=new a.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var c=s._doFinalize.call(this);return c.sigBytes-=16,c}});e.SHA384=s._createHelper(o),e.HmacSHA384=s._createHmacHelper(o)}(),r.SHA384})});var Pit=x(($B,Sit)=>{d();p();(function(r,e,t){typeof $B=="object"?Sit.exports=$B=e(rn(),r8()):typeof define=="function"&&define.amd?define(["./core","./x64-core"],e):e(r.CryptoJS)})($B,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.x64,o=s.Word,c=t.algo,u=[],l=[],h=[];(function(){for(var y=1,E=0,I=0;I<24;I++){u[y+5*E]=(I+1)*(I+2)/2%64;var S=E%5,L=(2*y+3*E)%5;y=S,E=L}for(var y=0;y<5;y++)for(var E=0;E<5;E++)l[y+5*E]=E+(2*y+3*E)%5*5;for(var F=1,W=0;W<24;W++){for(var V=0,K=0,H=0;H<7;H++){if(F&1){var G=(1<>>24)&16711935|(F<<24|F>>>8)&4278255360,W=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360;var V=I[L];V.high^=W,V.low^=F}for(var K=0;K<24;K++){for(var H=0;H<5;H++){for(var G=0,J=0,q=0;q<5;q++){var V=I[H+5*q];G^=V.high,J^=V.low}var T=f[H];T.high=G,T.low=J}for(var H=0;H<5;H++)for(var P=f[(H+4)%5],A=f[(H+1)%5],v=A.high,k=A.low,G=P.high^(v<<1|k>>>31),J=P.low^(k<<1|v>>>31),q=0;q<5;q++){var V=I[H+5*q];V.high^=G,V.low^=J}for(var O=1;O<25;O++){var V=I[O],D=V.high,B=V.low,_=u[O];if(_<32)var G=D<<_|B>>>32-_,J=B<<_|D>>>32-_;else var G=B<<_-32|D>>>64-_,J=D<<_-32|B>>>64-_;var N=f[l[O]];N.high=G,N.low=J}var U=f[0],C=I[0];U.high=C.high,U.low=C.low;for(var H=0;H<5;H++)for(var q=0;q<5;q++){var O=H+5*q,V=I[O],z=f[O],ee=f[(H+1)%5+5*q],j=f[(H+2)%5+5*q];V.high=z.high^~ee.high&j.high,V.low=z.low^~ee.low&j.low}var V=I[0],X=h[K];V.high^=X.high,V.low^=X.low}},_doFinalize:function(){var y=this._data,E=y.words,I=this._nDataBytes*8,S=y.sigBytes*8,L=this.blockSize*32;E[S>>>5]|=1<<24-S%32,E[(e.ceil((S+1)/L)*L>>>5)-1]|=128,y.sigBytes=E.length*4,this._process();for(var F=this._state,W=this.cfg.outputLength/8,V=W/8,K=[],H=0;H>>24)&16711935|(J<<24|J>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,K.push(q),K.push(J)}return new a.init(K,W)},clone:function(){for(var y=i.clone.call(this),E=y._state=this._state.slice(0),I=0;I<25;I++)E[I]=E[I].clone();return y}});t.SHA3=i._createHelper(m),t.HmacSHA3=i._createHmacHelper(m)}(Math),r.SHA3})});var Mit=x((YB,Rit)=>{d();p();(function(r,e){typeof YB=="object"?Rit.exports=YB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(YB,function(r){return function(e){var t=r,n=t.lib,a=n.WordArray,i=n.Hasher,s=t.algo,o=a.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),c=a.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=a.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=a.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=a.create([0,1518500249,1859775393,2400959708,2840853838]),f=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=s.RIPEMD160=i.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(W,V){for(var K=0;K<16;K++){var H=V+K,G=W[H];W[H]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}var J=this._hash.words,q=h.words,T=f.words,P=o.words,A=c.words,v=u.words,k=l.words,O,D,B,_,N,U,C,z,ee,j;U=O=J[0],C=D=J[1],z=B=J[2],ee=_=J[3],j=N=J[4];for(var X,K=0;K<80;K+=1)X=O+W[V+P[K]]|0,K<16?X+=y(D,B,_)+q[0]:K<32?X+=E(D,B,_)+q[1]:K<48?X+=I(D,B,_)+q[2]:K<64?X+=S(D,B,_)+q[3]:X+=L(D,B,_)+q[4],X=X|0,X=F(X,v[K]),X=X+N|0,O=N,N=_,_=F(B,10),B=D,D=X,X=U+W[V+A[K]]|0,K<16?X+=L(C,z,ee)+T[0]:K<32?X+=S(C,z,ee)+T[1]:K<48?X+=I(C,z,ee)+T[2]:K<64?X+=E(C,z,ee)+T[3]:X+=y(C,z,ee)+T[4],X=X|0,X=F(X,k[K]),X=X+j|0,U=j,j=ee,ee=F(z,10),z=C,C=X;X=J[1]+B+ee|0,J[1]=J[2]+_+j|0,J[2]=J[3]+N+U|0,J[3]=J[4]+O+C|0,J[4]=J[0]+D+z|0,J[0]=X},_doFinalize:function(){var W=this._data,V=W.words,K=this._nDataBytes*8,H=W.sigBytes*8;V[H>>>5]|=128<<24-H%32,V[(H+64>>>9<<4)+14]=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,W.sigBytes=(V.length+1)*4,this._process();for(var G=this._hash,J=G.words,q=0;q<5;q++){var T=J[q];J[q]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360}return G},clone:function(){var W=i.clone.call(this);return W._hash=this._hash.clone(),W}});function y(W,V,K){return W^V^K}function E(W,V,K){return W&V|~W&K}function I(W,V,K){return(W|~V)^K}function S(W,V,K){return W&K|V&~K}function L(W,V,K){return W^(V|~K)}function F(W,V){return W<>>32-V}t.RIPEMD160=i._createHelper(m),t.HmacRIPEMD160=i._createHmacHelper(m)}(Math),r.RIPEMD160})});var QB=x((JB,Nit)=>{d();p();(function(r,e){typeof JB=="object"?Nit.exports=JB=e(rn()):typeof define=="function"&&define.amd?define(["./core"],e):e(r.CryptoJS)})(JB,function(r){(function(){var e=r,t=e.lib,n=t.Base,a=e.enc,i=a.Utf8,s=e.algo,o=s.HMAC=n.extend({init:function(c,u){c=this._hasher=new c.init,typeof u=="string"&&(u=i.parse(u));var l=c.blockSize,h=l*4;u.sigBytes>h&&(u=c.finalize(u)),u.clamp();for(var f=this._oKey=u.clone(),m=this._iKey=u.clone(),y=f.words,E=m.words,I=0;I{d();p();(function(r,e,t){typeof ZB=="object"?Bit.exports=ZB=e(rn(),zB(),QB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(ZB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.SHA1,o=i.HMAC,c=i.PBKDF2=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,l){for(var h=this.cfg,f=o.create(h.hasher,u),m=a.create(),y=a.create([1]),E=m.words,I=y.words,S=h.keySize,L=h.iterations;E.length{d();p();(function(r,e,t){typeof XB=="object"?Oit.exports=XB=e(rn(),zB(),QB()):typeof define=="function"&&define.amd?define(["./core","./sha1","./hmac"],e):e(r.CryptoJS)})(XB,function(r){return function(){var e=r,t=e.lib,n=t.Base,a=t.WordArray,i=e.algo,s=i.MD5,o=i.EvpKDF=n.extend({cfg:n.extend({keySize:128/32,hasher:s,iterations:1}),init:function(c){this.cfg=this.cfg.extend(c)},compute:function(c,u){for(var l=this.cfg,h=l.hasher.create(),f=a.create(),m=f.words,y=l.keySize,E=l.iterations;m.length{d();p();(function(r,e,t){typeof eD=="object"?Lit.exports=eD=e(rn(),A1()):typeof define=="function"&&define.amd?define(["./core","./evpkdf"],e):e(r.CryptoJS)})(eD,function(r){r.lib.Cipher||function(e){var t=r,n=t.lib,a=n.Base,i=n.WordArray,s=n.BufferedBlockAlgorithm,o=t.enc,c=o.Utf8,u=o.Base64,l=t.algo,h=l.EvpKDF,f=n.Cipher=s.extend({cfg:a.extend(),createEncryptor:function(T,P){return this.create(this._ENC_XFORM_MODE,T,P)},createDecryptor:function(T,P){return this.create(this._DEC_XFORM_MODE,T,P)},init:function(T,P,A){this.cfg=this.cfg.extend(A),this._xformMode=T,this._key=P,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(T){return this._append(T),this._process()},finalize:function(T){T&&this._append(T);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function T(P){return typeof P=="string"?q:H}return function(P){return{encrypt:function(A,v,k){return T(v).encrypt(P,A,v,k)},decrypt:function(A,v,k){return T(v).decrypt(P,A,v,k)}}}}()}),m=n.StreamCipher=f.extend({_doFinalize:function(){var T=this._process(!0);return T},blockSize:1}),y=t.mode={},E=n.BlockCipherMode=a.extend({createEncryptor:function(T,P){return this.Encryptor.create(T,P)},createDecryptor:function(T,P){return this.Decryptor.create(T,P)},init:function(T,P){this._cipher=T,this._iv=P}}),I=y.CBC=function(){var T=E.extend();T.Encryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize;P.call(this,A,v,O),k.encryptBlock(A,v),this._prevBlock=A.slice(v,v+O)}}),T.Decryptor=T.extend({processBlock:function(A,v){var k=this._cipher,O=k.blockSize,D=A.slice(v,v+O);k.decryptBlock(A,v),P.call(this,A,v,O),this._prevBlock=D}});function P(A,v,k){var O=this._iv;if(O){var D=O;this._iv=e}else var D=this._prevBlock;for(var B=0;B>>2]&255;T.sigBytes-=P}},F=n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:I,padding:L}),reset:function(){f.reset.call(this);var T=this.cfg,P=T.iv,A=T.mode;if(this._xformMode==this._ENC_XFORM_MODE)var v=A.createEncryptor;else{var v=A.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==v?this._mode.init(this,P&&P.words):(this._mode=v.call(A,this,P&&P.words),this._mode.__creator=v)},_doProcessBlock:function(T,P){this._mode.processBlock(T,P)},_doFinalize:function(){var T=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){T.pad(this._data,this.blockSize);var P=this._process(!0)}else{var P=this._process(!0);T.unpad(P)}return P},blockSize:128/32}),W=n.CipherParams=a.extend({init:function(T){this.mixIn(T)},toString:function(T){return(T||this.formatter).stringify(this)}}),V=t.format={},K=V.OpenSSL={stringify:function(T){var P=T.ciphertext,A=T.salt;if(A)var v=i.create([1398893684,1701076831]).concat(A).concat(P);else var v=P;return v.toString(u)},parse:function(T){var P=u.parse(T),A=P.words;if(A[0]==1398893684&&A[1]==1701076831){var v=i.create(A.slice(2,4));A.splice(0,4),P.sigBytes-=16}return W.create({ciphertext:P,salt:v})}},H=n.SerializableCipher=a.extend({cfg:a.extend({format:K}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=T.createEncryptor(A,v),O=k.finalize(P),D=k.cfg;return W.create({ciphertext:O,key:A,iv:D.iv,algorithm:T,mode:D.mode,padding:D.padding,blockSize:T.blockSize,formatter:v.format})},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=T.createDecryptor(A,v).finalize(P.ciphertext);return k},_parse:function(T,P){return typeof T=="string"?P.parse(T,this):T}}),G=t.kdf={},J=G.OpenSSL={execute:function(T,P,A,v){v||(v=i.random(64/8));var k=h.create({keySize:P+A}).compute(T,v),O=i.create(k.words.slice(P),A*4);return k.sigBytes=P*4,W.create({key:k,iv:O,salt:v})}},q=n.PasswordBasedCipher=H.extend({cfg:H.cfg.extend({kdf:J}),encrypt:function(T,P,A,v){v=this.cfg.extend(v);var k=v.kdf.execute(A,T.keySize,T.ivSize);v.iv=k.iv;var O=H.encrypt.call(this,T,P,k.key,v);return O.mixIn(k),O},decrypt:function(T,P,A,v){v=this.cfg.extend(v),P=this._parse(P,v.format);var k=v.kdf.execute(A,T.keySize,T.ivSize,P.salt);v.iv=k.iv;var O=H.decrypt.call(this,T,P,k.key,v);return O}})}()})});var Fit=x((tD,qit)=>{d();p();(function(r,e,t){typeof tD=="object"?qit.exports=tD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(tD,function(r){return r.mode.CFB=function(){var e=r.lib.BlockCipherMode.extend();e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize;t.call(this,n,a,s,i),this._prevBlock=n.slice(a,a+s)}}),e.Decryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=n.slice(a,a+s);t.call(this,n,a,s,i),this._prevBlock=o}});function t(n,a,i,s){var o=this._iv;if(o){var c=o.slice(0);this._iv=void 0}else var c=this._prevBlock;s.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof rD=="object"?Wit.exports=rD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(rD,function(r){return r.mode.CTR=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._counter;o&&(c=this._counter=o.slice(0),this._iv=void 0);var u=c.slice(0);i.encryptBlock(u,0),c[s-1]=c[s-1]+1|0;for(var l=0;l{d();p();(function(r,e,t){typeof nD=="object"?Hit.exports=nD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(nD,function(r){return r.mode.CTRGladman=function(){var e=r.lib.BlockCipherMode.extend();function t(i){if((i>>24&255)===255){var s=i>>16&255,o=i>>8&255,c=i&255;s===255?(s=0,o===255?(o=0,c===255?c=0:++c):++o):++s,i=0,i+=s<<16,i+=o<<8,i+=c}else i+=1<<24;return i}function n(i){return(i[0]=t(i[0]))===0&&(i[1]=t(i[1])),i}var a=e.Encryptor=e.extend({processBlock:function(i,s){var o=this._cipher,c=o.blockSize,u=this._iv,l=this._counter;u&&(l=this._counter=u.slice(0),this._iv=void 0),n(l);var h=l.slice(0);o.encryptBlock(h,0);for(var f=0;f{d();p();(function(r,e,t){typeof aD=="object"?zit.exports=aD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(aD,function(r){return r.mode.OFB=function(){var e=r.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(n,a){var i=this._cipher,s=i.blockSize,o=this._iv,c=this._keystream;o&&(c=this._keystream=o.slice(0),this._iv=void 0),i.encryptBlock(c,0);for(var u=0;u{d();p();(function(r,e,t){typeof iD=="object"?Git.exports=iD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(iD,function(r){return r.mode.ECB=function(){var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,n){this._cipher.encryptBlock(t,n)}}),e.Decryptor=e.extend({processBlock:function(t,n){this._cipher.decryptBlock(t,n)}}),e}(),r.mode.ECB})});var Yit=x((sD,$it)=>{d();p();(function(r,e,t){typeof sD=="object"?$it.exports=sD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(sD,function(r){return r.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,a=t*4,i=a-n%a,s=n+i-1;e.clamp(),e.words[s>>>2]|=i<<24-s%4*8,e.sigBytes+=i},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Ansix923})});var Qit=x((oD,Jit)=>{d();p();(function(r,e,t){typeof oD=="object"?Jit.exports=oD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(oD,function(r){return r.pad.Iso10126={pad:function(e,t){var n=t*4,a=n-e.sigBytes%n;e.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(e){var t=e.words[e.sigBytes-1>>>2]&255;e.sigBytes-=t}},r.pad.Iso10126})});var Xit=x((cD,Zit)=>{d();p();(function(r,e,t){typeof cD=="object"?Zit.exports=cD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(cD,function(r){return r.pad.Iso97971={pad:function(e,t){e.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(e,t)},unpad:function(e){r.pad.ZeroPadding.unpad(e),e.sigBytes--}},r.pad.Iso97971})});var tst=x((uD,est)=>{d();p();(function(r,e,t){typeof uD=="object"?est.exports=uD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(uD,function(r){return r.pad.ZeroPadding={pad:function(e,t){var n=t*4;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},r.pad.ZeroPadding})});var nst=x((lD,rst)=>{d();p();(function(r,e,t){typeof lD=="object"?rst.exports=lD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(lD,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})});var ist=x((dD,ast)=>{d();p();(function(r,e,t){typeof dD=="object"?ast.exports=dD=e(rn(),Uo()):typeof define=="function"&&define.amd?define(["./core","./cipher-core"],e):e(r.CryptoJS)})(dD,function(r){return function(e){var t=r,n=t.lib,a=n.CipherParams,i=t.enc,s=i.Hex,o=t.format,c=o.Hex={stringify:function(u){return u.ciphertext.toString(s)},parse:function(u){var l=s.parse(u);return a.create({ciphertext:l})}}}(),r.format.Hex})});var ost=x((pD,sst)=>{d();p();(function(r,e,t){typeof pD=="object"?sst.exports=pD=e(rn(),Iv(),kv(),A1(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(pD,function(r){return function(){var e=r,t=e.lib,n=t.BlockCipher,a=e.algo,i=[],s=[],o=[],c=[],u=[],l=[],h=[],f=[],m=[],y=[];(function(){for(var S=[],L=0;L<256;L++)L<128?S[L]=L<<1:S[L]=L<<1^283;for(var F=0,W=0,L=0;L<256;L++){var V=W^W<<1^W<<2^W<<3^W<<4;V=V>>>8^V&255^99,i[F]=V,s[V]=F;var K=S[F],H=S[K],G=S[H],J=S[V]*257^V*16843008;o[F]=J<<24|J>>>8,c[F]=J<<16|J>>>16,u[F]=J<<8|J>>>24,l[F]=J;var J=G*16843009^H*65537^K*257^F*16843008;h[V]=J<<24|J>>>8,f[V]=J<<16|J>>>16,m[V]=J<<8|J>>>24,y[V]=J,F?(F=K^S[S[S[G^K]]],W^=S[S[W]]):F=W=1}})();var E=[0,1,2,4,8,16,32,64,128,27,54],I=a.AES=n.extend({_doReset:function(){if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var S=this._keyPriorReset=this._key,L=S.words,F=S.sigBytes/4,W=this._nRounds=F+6,V=(W+1)*4,K=this._keySchedule=[],H=0;H6&&H%F==4&&(G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255]):(G=G<<8|G>>>24,G=i[G>>>24]<<24|i[G>>>16&255]<<16|i[G>>>8&255]<<8|i[G&255],G^=E[H/F|0]<<24),K[H]=K[H-F]^G}for(var J=this._invKeySchedule=[],q=0;q>>24]]^f[i[G>>>16&255]]^m[i[G>>>8&255]]^y[i[G&255]]}}},encryptBlock:function(S,L){this._doCryptBlock(S,L,this._keySchedule,o,c,u,l,i)},decryptBlock:function(S,L){var F=S[L+1];S[L+1]=S[L+3],S[L+3]=F,this._doCryptBlock(S,L,this._invKeySchedule,h,f,m,y,s);var F=S[L+1];S[L+1]=S[L+3],S[L+3]=F},_doCryptBlock:function(S,L,F,W,V,K,H,G){for(var J=this._nRounds,q=S[L]^F[0],T=S[L+1]^F[1],P=S[L+2]^F[2],A=S[L+3]^F[3],v=4,k=1;k>>24]^V[T>>>16&255]^K[P>>>8&255]^H[A&255]^F[v++],D=W[T>>>24]^V[P>>>16&255]^K[A>>>8&255]^H[q&255]^F[v++],B=W[P>>>24]^V[A>>>16&255]^K[q>>>8&255]^H[T&255]^F[v++],_=W[A>>>24]^V[q>>>16&255]^K[T>>>8&255]^H[P&255]^F[v++];q=O,T=D,P=B,A=_}var O=(G[q>>>24]<<24|G[T>>>16&255]<<16|G[P>>>8&255]<<8|G[A&255])^F[v++],D=(G[T>>>24]<<24|G[P>>>16&255]<<16|G[A>>>8&255]<<8|G[q&255])^F[v++],B=(G[P>>>24]<<24|G[A>>>16&255]<<16|G[q>>>8&255]<<8|G[T&255])^F[v++],_=(G[A>>>24]<<24|G[q>>>16&255]<<16|G[T>>>8&255]<<8|G[P&255])^F[v++];S[L]=O,S[L+1]=D,S[L+2]=B,S[L+3]=_},keySize:256/32});e.AES=n._createHelper(I)}(),r.AES})});var ust=x((hD,cst)=>{d();p();(function(r,e,t){typeof hD=="object"?cst.exports=hD=e(rn(),Iv(),kv(),A1(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(hD,function(r){return function(){var e=r,t=e.lib,n=t.WordArray,a=t.BlockCipher,i=e.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],o=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],c=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=i.DES=a.extend({_doReset:function(){for(var E=this._key,I=E.words,S=[],L=0;L<56;L++){var F=s[L]-1;S[L]=I[F>>>5]>>>31-F%32&1}for(var W=this._subKeys=[],V=0;V<16;V++){for(var K=W[V]=[],H=c[V],L=0;L<24;L++)K[L/6|0]|=S[(o[L]-1+H)%28]<<31-L%6,K[4+(L/6|0)]|=S[28+(o[L+24]-1+H)%28]<<31-L%6;K[0]=K[0]<<1|K[0]>>>31;for(var L=1;L<7;L++)K[L]=K[L]>>>(L-1)*4+3;K[7]=K[7]<<5|K[7]>>>27}for(var G=this._invSubKeys=[],L=0;L<16;L++)G[L]=W[15-L]},encryptBlock:function(E,I){this._doCryptBlock(E,I,this._subKeys)},decryptBlock:function(E,I){this._doCryptBlock(E,I,this._invSubKeys)},_doCryptBlock:function(E,I,S){this._lBlock=E[I],this._rBlock=E[I+1],f.call(this,4,252645135),f.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),f.call(this,1,1431655765);for(var L=0;L<16;L++){for(var F=S[L],W=this._lBlock,V=this._rBlock,K=0,H=0;H<8;H++)K|=u[H][((V^F[H])&l[H])>>>0];this._lBlock=V,this._rBlock=W^K}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,f.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),E[I]=this._lBlock,E[I+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function f(E,I){var S=(this._lBlock>>>E^this._rBlock)&I;this._rBlock^=S,this._lBlock^=S<>>E^this._lBlock)&I;this._lBlock^=S,this._rBlock^=S<{d();p();(function(r,e,t){typeof fD=="object"?lst.exports=fD=e(rn(),Iv(),kv(),A1(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(fD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=a.RC4=n.extend({_doReset:function(){for(var c=this._key,u=c.words,l=c.sigBytes,h=this._S=[],f=0;f<256;f++)h[f]=f;for(var f=0,m=0;f<256;f++){var y=f%l,E=u[y>>>2]>>>24-y%4*8&255;m=(m+h[f]+E)%256;var I=h[f];h[f]=h[m],h[m]=I}this._i=this._j=0},_doProcessBlock:function(c,u){c[u]^=s.call(this)},keySize:256/32,ivSize:0});function s(){for(var c=this._S,u=this._i,l=this._j,h=0,f=0;f<4;f++){u=(u+1)%256,l=(l+c[u])%256;var m=c[u];c[u]=c[l],c[l]=m,h|=c[(c[u]+c[l])%256]<<24-f*8}return this._i=u,this._j=l,h}e.RC4=n._createHelper(i);var o=a.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var c=this.cfg.drop;c>0;c--)s.call(this)}});e.RC4Drop=n._createHelper(o)}(),r.RC4})});var hst=x((mD,pst)=>{d();p();(function(r,e,t){typeof mD=="object"?pst.exports=mD=e(rn(),Iv(),kv(),A1(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(mD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.Rabbit=n.extend({_doReset:function(){for(var l=this._key.words,h=this.cfg.iv,f=0;f<4;f++)l[f]=(l[f]<<8|l[f]>>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;var m=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],y=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var f=0;f<4;f++)u.call(this);for(var f=0;f<8;f++)y[f]^=m[f+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,F=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;y[0]^=L,y[1]^=W,y[2]^=F,y[3]^=V,y[4]^=L,y[5]^=W,y[6]^=F,y[7]^=V;for(var f=0;f<4;f++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.Rabbit=n._createHelper(c)}(),r.Rabbit})});var mst=x((yD,fst)=>{d();p();(function(r,e,t){typeof yD=="object"?fst.exports=yD=e(rn(),Iv(),kv(),A1(),Uo()):typeof define=="function"&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],e):e(r.CryptoJS)})(yD,function(r){return function(){var e=r,t=e.lib,n=t.StreamCipher,a=e.algo,i=[],s=[],o=[],c=a.RabbitLegacy=n.extend({_doReset:function(){var l=this._key.words,h=this.cfg.iv,f=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],m=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var y=0;y<4;y++)u.call(this);for(var y=0;y<8;y++)m[y]^=f[y+4&7];if(h){var E=h.words,I=E[0],S=E[1],L=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,F=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,W=L>>>16|F&4294901760,V=F<<16|L&65535;m[0]^=L,m[1]^=W,m[2]^=F,m[3]^=V,m[4]^=L,m[5]^=W,m[6]^=F,m[7]^=V;for(var y=0;y<4;y++)u.call(this)}},_doProcessBlock:function(l,h){var f=this._X;u.call(this),i[0]=f[0]^f[5]>>>16^f[3]<<16,i[1]=f[2]^f[7]>>>16^f[5]<<16,i[2]=f[4]^f[1]>>>16^f[7]<<16,i[3]=f[6]^f[3]>>>16^f[1]<<16;for(var m=0;m<4;m++)i[m]=(i[m]<<8|i[m]>>>24)&16711935|(i[m]<<24|i[m]>>>8)&4278255360,l[h+m]^=i[m]},blockSize:128/32,ivSize:64/32});function u(){for(var l=this._X,h=this._C,f=0;f<8;f++)s[f]=h[f];h[0]=h[0]+1295307597+this._b|0,h[1]=h[1]+3545052371+(h[0]>>>0>>0?1:0)|0,h[2]=h[2]+886263092+(h[1]>>>0>>0?1:0)|0,h[3]=h[3]+1295307597+(h[2]>>>0>>0?1:0)|0,h[4]=h[4]+3545052371+(h[3]>>>0>>0?1:0)|0,h[5]=h[5]+886263092+(h[4]>>>0>>0?1:0)|0,h[6]=h[6]+1295307597+(h[5]>>>0>>0?1:0)|0,h[7]=h[7]+3545052371+(h[6]>>>0>>0?1:0)|0,this._b=h[7]>>>0>>0?1:0;for(var f=0;f<8;f++){var m=l[f]+h[f],y=m&65535,E=m>>>16,I=((y*y>>>17)+y*E>>>15)+E*E,S=((m&4294901760)*m|0)+((m&65535)*m|0);o[f]=I^S}l[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,l[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,l[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,l[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,l[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,l[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,l[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,l[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}e.RabbitLegacy=n._createHelper(c)}(),r.RabbitLegacy})});var gst=x((gD,yst)=>{d();p();(function(r,e,t){typeof gD=="object"?yst.exports=gD=e(rn(),r8(),bit(),wit(),Iv(),kv(),zB(),t8(),Cit(),LX(),Ait(),Pit(),Mit(),QB(),Dit(),A1(),Uo(),Fit(),Uit(),jit(),Kit(),Vit(),Yit(),Qit(),Xit(),tst(),nst(),ist(),ost(),ust(),dst(),hst(),mst()):typeof define=="function"&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],e):r.CryptoJS=e(r.CryptoJS)})(gD,function(r){return r})});var FX=x(Av=>{"use strict";d();p();var Ikr=Av&&Av.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Av,"__esModule",{value:!0});Av.Base=void 0;var mp=cc(),qX=Ikr(gst()),im=class{print(){im.print(this)}_bufferIndexOf(e,t){for(let n=0;n{let n=e(t);return mp.Buffer.isBuffer(n)?n:this._isHexString(n)?mp.Buffer.from(n.replace("0x",""),"hex"):typeof n=="string"?mp.Buffer.from(n):ArrayBuffer.isView(n)?mp.Buffer.from(n.buffer,n.byteOffset,n.byteLength):mp.Buffer.from(e(qX.default.enc.Hex.parse(t.toString("hex"))).toString(qX.default.enc.Hex),"hex")}}_isHexString(e){return im.isHexString(e)}_log2(e){return e===1?0:1+this._log2(e/2|0)}_zip(e,t){return e.map((n,a)=>[n,t[a]])}};Av.Base=im;Av.default=im});var vst=x(Sv=>{"use strict";d();p();var bD=Sv&&Sv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Sv,"__esModule",{value:!0});Sv.MerkleTree=void 0;var ni=cc(),A0=bD(dit()),bst=bD(t8()),kkr=bD(mit()),Akr=bD(FX()),vl=class extends Akr.default{constructor(e,t=bst.default,n={}){if(super(),this.duplicateOdd=!1,this.hashLeaves=!1,this.isBitcoinTree=!1,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sort=!1,this.fillDefaultHash=null,this.isBitcoinTree=!!n.isBitcoinTree,this.hashLeaves=!!n.hashLeaves,this.sortLeaves=!!n.sortLeaves,this.sortPairs=!!n.sortPairs,n.fillDefaultHash)if(typeof n.fillDefaultHash=="function")this.fillDefaultHash=n.fillDefaultHash;else if(ni.Buffer.isBuffer(n.fillDefaultHash)||typeof n.fillDefaultHash=="string")this.fillDefaultHash=(a,i)=>n.fillDefaultHash;else throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');this.sort=!!n.sort,this.sort&&(this.sortLeaves=!0,this.sortPairs=!0),this.duplicateOdd=!!n.duplicateOdd,this.hashFn=this.bufferifyFn(t),this.processLeaves(e)}processLeaves(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(ni.Buffer.compare)),this.fillDefaultHash)for(let t=0;t=this.leaves.length&&this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.layers=[this.leaves],this._createHashes(this.leaves)}_createHashes(e){for(;e.length>1;){let t=this.layers.length;this.layers.push([]);for(let n=0;nthis._bufferIndexOf(e,t)!==-1)):this.leaves}getLeaf(e){return e<0||e>this.leaves.length-1?ni.Buffer.from([]):this.leaves[e]}getLeafIndex(e){e=this.bufferify(e);let t=this.getLeaves();for(let n=0;nthis.bufferToHex(e))}static marshalLeaves(e){return JSON.stringify(e.map(t=>vl.bufferToHex(t)),null,2)}static unmarshalLeaves(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(vl.bufferify)}getLayers(){return this.layers}getHexLayers(){return this.layers.reduce((e,t)=>(Array.isArray(t)?e.push(t.map(n=>this.bufferToHex(n))):e.push(t),e),[])}getLayersFlat(){let e=this.layers.reduce((t,n)=>(Array.isArray(n)?t.unshift(...n):t.unshift(n),t),[]);return e.unshift(ni.Buffer.from([0])),e}getHexLayersFlat(){return this.getLayersFlat().map(e=>this.bufferToHex(e))}getLayerCount(){return this.getLayers().length}getRoot(){return this.layers.length===0?ni.Buffer.from([]):this.layers[this.layers.length-1][0]||ni.Buffer.from([])}getHexRoot(){return this.bufferToHex(this.getRoot())}getProof(e,t){if(typeof e>"u")throw new Error("leaf is required");e=this.bufferify(e);let n=[];if(!Number.isInteger(t)){t=-1;for(let a=0;athis.bufferToHex(n.data))}getPositionalHexProof(e,t){return this.getProof(e,t).map(n=>[n.position==="left"?0:1,this.bufferToHex(n.data)])}static marshalProof(e){let t=e.map(n=>typeof n=="string"?n:ni.Buffer.isBuffer(n)?vl.bufferToHex(n):{position:n.position,data:vl.bufferToHex(n.data)});return JSON.stringify(t,null,2)}static unmarshalProof(e){let t=null;if(typeof e=="string")t=JSON.parse(e);else if(e instanceof Object)t=e;else throw new Error("Expected type of string or object");if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n=>{if(typeof n=="string")return vl.bufferify(n);if(n instanceof Object)return{position:n.position,data:vl.bufferify(n.data)};throw new Error("Expected item to be of type string or object")})}getProofIndices(e,t){let n=Math.pow(2,t),a=new Set;for(let u of e){let l=n+u;for(;l>1;)a.add(l^1),l=l/2|0}let i=e.map(u=>n+u),s=Array.from(a).sort((u,l)=>u-l).reverse();a=i.concat(s);let o=new Set,c=[];for(let u of a)if(!o.has(u))for(c.push(u);u>1&&(o.add(u),!!o.has(u^1));)u=u/2|0;return c.filter(u=>!e.includes(u-n))}getProofIndicesForUnevenTree(e,t){let n=Math.ceil(Math.log2(t)),a=[];for(let o=0;oh%2===0?h+1:h-1).filter(h=>!s.includes(h)),l=a.find(({index:h})=>h===o);l&&s.includes(l.leavesCount-1)&&(u=u.slice(0,-1)),i.push(u),s=[...new Set(s.map(h=>h%2===0?h/2:h%2===0?(h+1)/2:(h-1)/2))]}return i}getMultiProof(e,t){if(t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){let a=t;this.sortPairs&&(a=a.sort(ni.Buffer.compare));let i=a.map(u=>this._bufferIndexOf(this.leaves,u)).sort((u,l)=>u===l?0:u>l?1:-1);if(!i.every(u=>u!==-1))throw new Error("Element does not exist in Merkle tree");let s=[],o=[],c=[];for(let u=0;um.indexOf(h)===f),c=[]}return o.filter(u=>!s.includes(u))}return this.getProofIndices(t,this._log2(e.length/2|0)).map(a=>e[a])}getMultiProofForUnevenTree(e,t){t||(t=e,e=this.getLayers());let n=[],a=t;for(let i of e){let s=[];for(let c of a){if(c%2===0){let l=c+1;if(!a.includes(l)&&i[l]){s.push(i[l]);continue}}let u=c-1;if(!a.includes(u)&&i[u]){s.push(i[u]);continue}}n=n.concat(s);let o=new Set;for(let c of a){if(c%2===0){o.add(c/2);continue}if(c%2===0){o.add((c+1)/2);continue}o.add((c-1)/2)}a=Array.from(o)}return n}getHexMultiProof(e,t){return this.getMultiProof(e,t).map(n=>this.bufferToHex(n))}getProofFlags(e,t){if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");let n;if(e.every(Number.isInteger)?n=e.sort((o,c)=>o===c?0:o>c?1:-1):n=e.map(o=>this._bufferIndexOf(this.leaves,o)).sort((o,c)=>o===c?0:o>c?1:-1),!n.every(o=>o!==-1))throw new Error("Element does not exist in Merkle tree");let a=t.map(o=>this.bufferify(o)),i=[],s=[];for(let o=0;o{if(!i.includes(c[l])){let f=this._getPairNode(c,l),m=a.includes(c[l])||a.includes(f);f&&s.push(!m),i.push(c[l]),i.push(f)}return u.push(l/2|0),u},[])}return s}verify(e,t,n){let a=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(let i=0;ithis.bufferify(h)),i=i.map(h=>this.bufferify(h));let c={};for(let[h,f]of this._zip(t,n))c[Math.pow(2,o)+h]=f;for(let[h,f]of this._zip(this.getProofIndices(t,o),i))c[h]=f;let u=Object.keys(c).map(h=>+h).sort((h,f)=>h-f);u=u.slice(0,u.length-1);let l=0;for(;l=2&&{}.hasOwnProperty.call(c,h^1)){let f=[c[h-h%2],c[h-h%2+1]];this.sortPairs&&(f=f.sort(ni.Buffer.compare));let m=f[1]?this.hashFn(ni.Buffer.concat(f)):f[0];c[h/2|0]=m,u.push(h/2|0)}l+=1}return!t.length||{}.hasOwnProperty.call(c,1)&&c[1].equals(e)}verifyMultiProofWithFlags(e,t,n,a){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);let i=t.length,s=a.length,o=[],c=0,u=0,l=0;for(let h=0;hthis.bufferify(o)),i=i.map(o=>this.bufferify(o));let s=this.calculateRootForUnevenTree(t,n,a,i);return e.equals(s)}getDepth(){return this.getLayers().length-1}getLayersAsObject(){let e=this.getLayers().map(n=>n.map(a=>this.bufferToHex(a,!1))),t=[];for(let n=0;nh-f),s=i.map(([h])=>h),o=this.getProofIndicesForUnevenTree(s,n),c=0,u=[];for(let h=0;hI-S).map(([,I])=>I),m=l[h].map(([I])=>I),y=[...new Set(m.map(I=>I%2===0?I/2:I%2===0?(I+1)/2:(I-1)/2))],E=[];for(let I=0;I{"use strict";d();p();var wst=Pv&&Pv.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Pv,"__esModule",{value:!0});Pv.MerkleMountainRange=void 0;var n8=cc(),Skr=wst(t8()),Pkr=wst(FX()),vD=class extends Pkr.default{constructor(e=Skr.default,t=[],n,a,i){super(),this.root=n8.Buffer.alloc(0),this.size=0,this.width=0,this.hashes={},this.data={},t=t.map(this.bufferify),this.hashFn=this.bufferifyFn(e),this.hashLeafFn=n,this.peakBaggingFn=a,this.hashBranchFn=i;for(let s of t)this.append(s)}append(e){e=this.bufferify(e);let t=this.hashFn(e),n=this.bufferToHex(t);(!this.data[n]||this.bufferToHex(this.hashFn(this.data[n]))!==n)&&(this.data[n]=e);let a=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=a,this.width+=1;let i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);let s=[];for(let o=0;o0&&!((e&1<=t));s--);if(a!==n.length)throw new Error("invalid bit calculation");return n}numOfPeaks(e){let t=e,n=0;for(;t>0;)t%2===1&&n++,t=t>>1;return n}peakBagging(e,t){let n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return e===0&&!t.length?n8.Buffer.alloc(0):this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(n8.Buffer.concat([this.bufferify(n),...t.map(this.bufferify)]))}getSize(e){return(e<<1)-this.numOfPeaks(e)}getRoot(){return this.root}getHexRoot(){return this.bufferToHex(this.getRoot())}getNode(e){return this.hashes[e]}mountainHeight(e){let t=1;for(;1<n;)t-=(1<this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");let t=this.root,n=this.width,a=this.getPeakIndexes(this.width),i=[],s=0;for(let h=0;h=e&&s===0&&(s=a[h]);let o=0,c=0,u=this.heightAt(s),l=[];for(;s!==e;)u--,[o,c]=this.getChildren(s),s=e<=o?o:c,l[u-1]=this.hashes[e<=o?c:o];return{root:t,width:n,peakBagging:i,siblings:l}}verify(e,t,n,a,i,s){if(a=this.bufferify(a),this.getSize(t)=n){u=i[I],c=l[I];break}if(!u)throw new Error("target not found");let h=s.length+1,f=new Array(h),m=0,y=0;for(;h>0&&(f[--h]=c,c!==n);)[m,y]=this.getChildren(c),c=n>m?y:m;let E;for(;hthis.size)throw new Error("out of range");if(!this.hashes[e]){let[t,n]=this.getChildren(e),a=this._getOrCreateNode(t),i=this._getOrCreateNode(n);this.hashes[e]=this.hashBranch(e,a,i)}return this.hashes[e]}};Pv.MerkleMountainRange=vD;Pv.default=vD});var ma=x(S1=>{"use strict";d();p();var Rkr=S1&&S1.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(S1,"__esModule",{value:!0});S1.MerkleTree=void 0;var xst=Rkr(vst());S1.MerkleTree=xst.default;var Mkr=_st();Object.defineProperty(S1,"MerkleMountainRange",{enumerable:!0,get:function(){return Mkr.MerkleMountainRange}});S1.default=xst.default});var ya=x((rzn,Tst)=>{"use strict";d();p();Tst.exports=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,a,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(a=n;a--!==0;)if(!r(e[a],t[a]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){var s=i[a];if(!r(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}});var hn=x((izn,Nkr)=>{Nkr.exports=[{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var ga=x((szn,Bkr)=>{Bkr.exports=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var ba=x((ozn,Dkr)=>{Dkr.exports=[{inputs:[{internalType:"uint256",name:"_id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]});var va=x((czn,Okr)=>{Okr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"}],name:"encryptedBaseURI",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes",name:"key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"}]});var wa=x((uzn,Lkr)=>{Lkr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"contract IContractPublisher",name:"_prevPublisher",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],indexed:!1,internalType:"struct IContractPublisher.CustomContractInstance",name:"publishedContract",type:"tuple"}],name:"ContractPublished",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!0,internalType:"string",name:"contractId",type:"string"}],name:"ContractUnpublished",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"isPaused",type:"bool"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"publisher",type:"address"},{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"PublisherProfileUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"}],name:"getAllPublishedContracts",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContract",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance",name:"published",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"getPublishedContractVersions",outputs:[{components:[{internalType:"string",name:"contractId",type:"string"},{internalType:"uint256",name:"publishTimestamp",type:"uint256"},{internalType:"string",name:"publishMetadataUri",type:"string"},{internalType:"bytes32",name:"bytecodeHash",type:"bytes32"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IContractPublisher.CustomContractInstance[]",name:"published",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"compilerMetadataUri",type:"string"}],name:"getPublishedUriFromCompilerUri",outputs:[{internalType:"string[]",name:"publishedMetadataUris",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"}],name:"getPublisherProfileUri",outputs:[{internalType:"string",name:"uri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"isPaused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"prevPublisher",outputs:[{internalType:"contract IContractPublisher",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"},{internalType:"string",name:"_publishMetadataUri",type:"string"},{internalType:"string",name:"_compilerMetadataUri",type:"string"},{internalType:"bytes32",name:"_bytecodeHash",type:"bytes32"},{internalType:"address",name:"_implementation",type:"address"}],name:"publishContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_pause",type:"bool"}],name:"setPause",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"publisher",type:"address"},{internalType:"string",name:"uri",type:"string"}],name:"setPublisherProfileUri",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_publisher",type:"address"},{internalType:"string",name:"_contractId",type:"string"}],name:"unpublishContract",outputs:[],stateMutability:"nonpayable",type:"function"}]});var _a=x((lzn,qkr)=>{qkr.exports=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"},{indexed:!1,internalType:"string",name:"metadataUri",type:"string"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"},{indexed:!0,internalType:"uint256",name:"chainId",type:"uint256"}],name:"Deleted",type:"event"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"_msgSender",outputs:[{internalType:"address",name:"sender",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"string",name:"metadataUri",type:"string"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"deploymentCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{components:[{internalType:"address",name:"deploymentAddress",type:"address"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"string",name:"metadataURI",type:"string"}],internalType:"struct ITWMultichainRegistry.Deployment[]",name:"allDeployments",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_chainId",type:"uint256"},{internalType:"address",name:"_deployment",type:"address"}],name:"getMetadataUri",outputs:[{internalType:"string",name:"metadataUri",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"},{internalType:"uint256",name:"_chainId",type:"uint256"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"}]});var xa=x((dzn,Fkr)=>{Fkr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var Ta=x(WX=>{"use strict";d();p();Object.defineProperty(WX,"__esModule",{value:!0});var Wkr={};WX.GENERATED_ABI=Wkr});var Ea=x((mzn,Ukr)=>{Ukr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"},{internalType:"address",name:"_registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!0,internalType:"bytes32",name:"contractType",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"version",type:"uint256"}],name:"ImplementationAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"bool",name:"isApproved",type:"bool"}],name:"ImplementationApproved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"implementation",type:"address"},{indexed:!1,internalType:"address",name:"proxy",type:"address"},{indexed:!0,internalType:"address",name:"deployer",type:"address"}],name:"ProxyDeployed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FACTORY_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"}],name:"addImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"approval",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bool",name:"_toApprove",type:"bool"}],name:"approveImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"currentVersion",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"deployProxy",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_implementation",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyByImplementation",outputs:[{internalType:"address",name:"deployedProxy",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"bytes",name:"_data",type:"bytes"},{internalType:"bytes32",name:"_salt",type:"bytes32"}],name:"deployProxyDeterministic",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"},{internalType:"uint256",name:"_version",type:"uint256"}],name:"getImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"_type",type:"bytes32"}],name:"getLatestImplementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"},{internalType:"uint256",name:"",type:"uint256"}],name:"implementation",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"registry",outputs:[{internalType:"contract TWRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var Ca=x((yzn,Hkr)=>{Hkr.exports=[{inputs:[{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Added",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"deployer",type:"address"},{indexed:!0,internalType:"address",name:"deployment",type:"address"}],name:"Deleted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"OPERATOR_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"add",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"count",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"}],name:"getAll",outputs:[{internalType:"address[]",name:"",type:"address[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_deployment",type:"address"}],name:"remove",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"}]});var HX=x(Est=>{"use strict";d();p();var jkr=wi(),zkr=je(),UX=class{constructor(e){jkr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&zkr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};Est.DropErc1155History=UX});var a8=x(Cst=>{"use strict";d();p();var Rv=wi(),wD=os(),jX=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Rv._defineProperty(this,"contractWrapper",void 0),Rv._defineProperty(this,"storage",void 0),Rv._defineProperty(this,"erc1155",void 0),Rv._defineProperty(this,"_chainId",void 0),Rv._defineProperty(this,"transfer",wD.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),Rv._defineProperty(this,"setApprovalForAll",wD.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),Rv._defineProperty(this,"airdrop",wD.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new wD.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};Cst.StandardErc1155=jX});var s8=x(L_=>{"use strict";d();p();var Kkr=wi(),Gkr=Gr(),i8=os();function Vkr(r){return r&&r.__esModule?r:{default:r}}var KX=Vkr(Gkr),$kr="https://paper.xyz/api",Ykr="2022-08-12",GX=`${$kr}/${Ykr}/platform/thirdweb`,Ist={[i8.ChainId.Mainnet]:"Ethereum",[i8.ChainId.Goerli]:"Goerli",[i8.ChainId.Polygon]:"Polygon",[i8.ChainId.Mumbai]:"Mumbai",[i8.ChainId.Avalanche]:"Avalanche"};function kst(r){return KX.default(r in Ist,`chainId not supported by paper: ${r}`),Ist[r]}async function Ast(r,e){let t=kst(e),a=await(await fetch(`${GX}/register-contract?contractAddress=${r}&chain=${t}`)).json();return KX.default(a.result.id,"Contract is not registered with paper"),a.result.id}var Jkr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Sst(r,e){let n=await(await fetch(`${GX}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...Jkr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return KX.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var zX=class{constructor(e){Kkr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Ast(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Sst(await this.getCheckoutId(),e)}};L_.PAPER_API_URL=GX;L_.PaperCheckout=zX;L_.createCheckoutLinkIntent=Sst;L_.fetchRegisteredCheckoutId=Ast;L_.parseChainIdToPaperChain=kst});var Rst=x(Pst=>{"use strict";d();p();var ks=wi(),Is=os(),Qkr=HX(),Zkr=a8(),Xkr=s8(),eAr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var q_=class extends Zkr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Is.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ks._defineProperty(this,"abi",void 0),ks._defineProperty(this,"sales",void 0),ks._defineProperty(this,"platformFees",void 0),ks._defineProperty(this,"encoder",void 0),ks._defineProperty(this,"estimator",void 0),ks._defineProperty(this,"events",void 0),ks._defineProperty(this,"metadata",void 0),ks._defineProperty(this,"app",void 0),ks._defineProperty(this,"roles",void 0),ks._defineProperty(this,"royalties",void 0),ks._defineProperty(this,"claimConditions",void 0),ks._defineProperty(this,"checkout",void 0),ks._defineProperty(this,"history",void 0),ks._defineProperty(this,"interceptor",void 0),ks._defineProperty(this,"erc1155",void 0),ks._defineProperty(this,"owner",void 0),ks._defineProperty(this,"createBatch",Is.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),ks._defineProperty(this,"claimTo",Is.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),ks._defineProperty(this,"claim",Is.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),ks._defineProperty(this,"burnTokens",Is.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=s,this.metadata=new Is.ContractMetadata(this.contractWrapper,Is.DropErc1155ContractSchema,this.storage),this.app=new Is.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Is.ContractRoles(this.contractWrapper,q_.contractRoles),this.royalties=new Is.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Is.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Is.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Is.ContractEvents(this.contractWrapper),this.history=new Qkr.DropErc1155History(this.events),this.encoder=new Is.ContractEncoder(this.contractWrapper),this.estimator=new Is.GasCostEstimator(this.contractWrapper),this.platformFees=new Is.ContractPlatformFee(this.contractWrapper),this.interceptor=new Is.ContractInterceptor(this.contractWrapper),this.erc1155=new Is.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new Xkr.PaperCheckout(this.contractWrapper),this.owner=new Is.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Is.getRoleHash("transfer"),eAr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Is.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{tAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop1155.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var $X=x((Pzn,rAr)=>{rAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!1,internalType:"address",name:"saleRecipient",type:"address"}],name:"SaleRecipientForTokenUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!1,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setSaleRecipientForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"_tokenURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var Nst=x(Mst=>{"use strict";d();p();var cs=wi(),_i=os(),nAr=a8(),aAr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var F_=class extends nAr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new _i.ContractWrapper(e,t,i,a);super(o,n,s),cs._defineProperty(this,"abi",void 0),cs._defineProperty(this,"metadata",void 0),cs._defineProperty(this,"app",void 0),cs._defineProperty(this,"roles",void 0),cs._defineProperty(this,"sales",void 0),cs._defineProperty(this,"platformFees",void 0),cs._defineProperty(this,"encoder",void 0),cs._defineProperty(this,"estimator",void 0),cs._defineProperty(this,"events",void 0),cs._defineProperty(this,"royalties",void 0),cs._defineProperty(this,"signature",void 0),cs._defineProperty(this,"interceptor",void 0),cs._defineProperty(this,"erc1155",void 0),cs._defineProperty(this,"owner",void 0),cs._defineProperty(this,"mint",_i.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),cs._defineProperty(this,"mintTo",_i.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),cs._defineProperty(this,"mintAdditionalSupply",_i.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),cs._defineProperty(this,"mintAdditionalSupplyTo",_i.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),cs._defineProperty(this,"mintBatch",_i.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),cs._defineProperty(this,"mintBatchTo",_i.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),cs._defineProperty(this,"burn",_i.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=i,this.metadata=new _i.ContractMetadata(this.contractWrapper,_i.TokenErc1155ContractSchema,this.storage),this.app=new _i.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new _i.ContractRoles(this.contractWrapper,F_.contractRoles),this.royalties=new _i.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new _i.ContractPrimarySale(this.contractWrapper),this.encoder=new _i.ContractEncoder(this.contractWrapper),this.estimator=new _i.GasCostEstimator(this.contractWrapper),this.events=new _i.ContractEvents(this.contractWrapper),this.platformFees=new _i.ContractPlatformFee(this.contractWrapper),this.interceptor=new _i.ContractInterceptor(this.contractWrapper),this.signature=new _i.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new _i.Erc1155(this.contractWrapper,this.storage,s),this.owner=new _i.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(_i.getRoleHash("transfer"),aAr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return _i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{iAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"flatFee",type:"uint256"}],name:"FlatPlatformFeeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"enum TokenERC1155.PlatformFeeType",name:"feeType",type:"uint8"}],name:"PlatformFeeTypeUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC1155.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"value",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"burnBatch",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlatPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeType",outputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"string",name:"_uri",type:"string"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"saleRecipientForToken",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_flatFee",type:"uint256"}],name:"setFlatPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum TokenERC1155.PlatformFeeType",name:"_feeType",type:"uint8"}],name:"setPlatformFeeType",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC1155.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var ZX=x(TD=>{"use strict";d();p();var Ho=wi(),Ge=os(),sAr=hn(),oAr=ln(),cAr=dn(),ur=je(),uAr=Gr();function xD(r){return r&&r.__esModule?r:{default:r}}var lAr=xD(sAr),dAr=xD(oAr),pAr=xD(cAr),_D=xD(uAr),Mv=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),JX=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Ho._defineProperty(this,"makeOffer",Ge.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ge.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=ur.BigNumber.from(a),l=ur.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ge.setErc20Allowance(this.contractWrapper,l,i,h);let f=ur.ethers.constants.MaxUint256;return o&&(f=ur.BigNumber.from(Math.floor(o.getTime()/1e3))),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Ho._defineProperty(this,"acceptOffer",Ge.buildTransactionFunction(async(n,a)=>{await this.validateListing(ur.BigNumber.from(n));let i=await Ge.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(ur.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=ur.BigNumber.from(a),h=ur.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ge.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ur.constants.AddressZero)throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Mv.Direct)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(ur.BigNumber.from(e)),_D.default(ur.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ge.resolveAddress(t));if(n.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:Mv.Direct}}async isStillValidListing(e,t){if(!await Ge.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new ur.Contract(e.assetContractAddress,lAr.default,a),s=await i.supportsInterface(Ge.InterfaceId_IERC721),o=await i.supportsInterface(Ge.InterfaceId_IERC1155);if(s){let u=(await new ur.Contract(e.assetContractAddress,dAr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new ur.Contract(e.assetContractAddress,pAr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},QX=class{constructor(e,t){Ho._defineProperty(this,"contractWrapper",void 0),Ho._defineProperty(this,"storage",void 0),Ho._defineProperty(this,"encoder",void 0),Ho._defineProperty(this,"createListing",Ge.buildTransactionFunction(async n=>{Ge.validateNewListingParam(n);let a=await Ge.resolveAddress(n.assetContractAddress),i=await Ge.resolveAddress(n.currencyContractAddress);await Ge.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Ho._defineProperty(this,"buyoutListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=await Ge.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,ur.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Ho._defineProperty(this,"makeBid",Ge.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(ur.BigNumber.from(n)),s=await Ge.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(ur.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ge.isWinningBid(c.pricePerToken,s,o);_D.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=ur.BigNumber.from(i.reservePrice);_D.default(f.gte(m),"Bid price is too low based on reserve price")}let u=ur.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ge.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,ur.ethers.constants.MaxUint256],overrides:h})})),Ho._defineProperty(this,"cancelListing",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n)),i=ur.BigNumber.from(Math.floor(Date.now()/1e3)),s=ur.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==ur.constants.AddressZero)throw new Ge.AuctionAlreadyStartedError(n.toString());return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Ho._defineProperty(this,"closeListing",Ge.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(ur.BigNumber.from(n));try{return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[ur.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Ho._defineProperty(this,"executeSale",Ge.buildTransactionFunction(async n=>{let a=await this.validateListing(ur.BigNumber.from(n));try{let i=await this.getWinningBid(n);_D.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ge.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Ho._defineProperty(this,"updateListing",Ge.buildTransactionFunction(async n=>Ge.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ge.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ge.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Mv.Auction)throw new Ge.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(ur.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==ur.constants.AddressZero)return await Ge.mapOffer(this.contractWrapper.getProvider(),ur.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(ur.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=ur.BigNumber.from(Math.floor(Date.now()/1e3)),i=ur.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==ur.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(ur.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(ur.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:ur.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ge.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ge.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:ur.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:Mv.Auction}}};TD.ListingType=Mv;TD.MarketplaceAuction=QX;TD.MarketplaceDirect=JX});var Ost=x(Dst=>{"use strict";d();p();var Fi=wi(),fn=os(),Ih=ZX(),ad=je(),hAr=Gr();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function fAr(r){return r&&r.__esModule?r:{default:r}}var Bst=fAr(hAr),W_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new fn.ContractWrapper(e,t,i,a);Fi._defineProperty(this,"abi",void 0),Fi._defineProperty(this,"contractWrapper",void 0),Fi._defineProperty(this,"storage",void 0),Fi._defineProperty(this,"encoder",void 0),Fi._defineProperty(this,"events",void 0),Fi._defineProperty(this,"estimator",void 0),Fi._defineProperty(this,"platformFees",void 0),Fi._defineProperty(this,"metadata",void 0),Fi._defineProperty(this,"app",void 0),Fi._defineProperty(this,"roles",void 0),Fi._defineProperty(this,"interceptor",void 0),Fi._defineProperty(this,"direct",void 0),Fi._defineProperty(this,"auction",void 0),Fi._defineProperty(this,"_chainId",void 0),Fi._defineProperty(this,"getAll",this.getAllListings),Fi._defineProperty(this,"buyoutListing",fn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new fn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Ih.ListingType.Direct:return Bst.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Ih.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Fi._defineProperty(this,"makeOffer",fn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new fn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Ih.ListingType.Direct:return Bst.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,fn.isNativeToken(h.currency)?fn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Ih.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Fi._defineProperty(this,"setBidBufferBps",fn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,ad.BigNumber.from(c)]})})),Fi._defineProperty(this,"setTimeBufferInSeconds",fn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[ad.BigNumber.from(c),u]})})),Fi._defineProperty(this,"allowListingFromSpecificAssetOnly",fn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(ad.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[fn.getRoleHash("asset"),ad.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[fn.getRoleHash("asset"),c])),fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Fi._defineProperty(this,"allowListingFromAnyAsset",fn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[fn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[fn.getRoleHash("asset"),ad.constants.AddressZero])),fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new fn.ContractMetadata(this.contractWrapper,fn.MarketplaceContractSchema,this.storage),this.app=new fn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new fn.ContractRoles(this.contractWrapper,W_.contractRoles),this.encoder=new fn.ContractEncoder(this.contractWrapper),this.estimator=new fn.GasCostEstimator(this.contractWrapper),this.direct=new Ih.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Ih.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new fn.ContractEvents(this.contractWrapper),this.platformFees=new fn.ContractPlatformFee(this.contractWrapper),this.interceptor=new fn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ad.constants.AddressZero)throw new fn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Ih.ListingType.Auction:return await this.auction.mapListing(t);case Ih.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=ad.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Ih.ListingType.Auction&&ad.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&ad.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Ih.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(fn.getRoleHash("lister"),ad.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await fn.mapOffer(this.contractWrapper.getProvider(),ad.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof fn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Ih.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=ad.BigNumber.from(t?.start||0).toNumber(),i=ad.BigNumber.from(t?.count||Fi.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{mAr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"timeBuffer",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bidBufferBps",type:"uint256"}],name:"AuctionBuffersUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"closer",type:"address"},{indexed:!0,internalType:"bool",name:"cancelled",type:"bool"},{indexed:!1,internalType:"address",name:"auctionCreator",type:"address"},{indexed:!1,internalType:"address",name:"winningBidder",type:"address"}],name:"AuctionClosed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{components:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],indexed:!1,internalType:"struct IMarketplace.Listing",name:"listing",type:"tuple"}],name:"ListingAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"listingCreator",type:"address"}],name:"ListingUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"offeror",type:"address"},{indexed:!0,internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"},{indexed:!1,internalType:"uint256",name:"quantityWanted",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalOfferAmount",type:"uint256"},{indexed:!1,internalType:"address",name:"currency",type:"address"}],name:"NewOffer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"listingId",type:"uint256"},{indexed:!0,internalType:"address",name:"assetContract",type:"address"},{indexed:!0,internalType:"address",name:"lister",type:"address"},{indexed:!1,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityBought",type:"uint256"},{indexed:!1,internalType:"uint256",name:"totalPricePaid",type:"uint256"}],name:"NewSale",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_BPS",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_offeror",type:"address"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"}],name:"acceptOffer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"bidBufferBps",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_buyFor",type:"address"},{internalType:"uint256",name:"_quantityToBuy",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_totalPrice",type:"uint256"}],name:"buy",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"}],name:"cancelDirectListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"address",name:"_closeFor",type:"address"}],name:"closeAuction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"secondsUntilEndTime",type:"uint256"},{internalType:"uint256",name:"quantityToList",type:"uint256"},{internalType:"address",name:"currencyToAccept",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],internalType:"struct IMarketplace.ListingParameters",name:"_params",type:"tuple"}],name:"createListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"listings",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"tokenOwner",type:"address"},{internalType:"address",name:"assetContract",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"buyoutPricePerToken",type:"uint256"},{internalType:"enum IMarketplace.TokenType",name:"tokenType",type:"uint8"},{internalType:"enum IMarketplace.ListingType",name:"listingType",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityWanted",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"uint256",name:"_expirationTimestamp",type:"uint256"}],name:"offer",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"},{internalType:"address",name:"",type:"address"}],name:"offers",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_timeBuffer",type:"uint256"},{internalType:"uint256",name:"_bidBufferBps",type:"uint256"}],name:"setAuctionBuffers",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"timeBuffer",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalListings",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_listingId",type:"uint256"},{internalType:"uint256",name:"_quantityToList",type:"uint256"},{internalType:"uint256",name:"_reservePricePerToken",type:"uint256"},{internalType:"uint256",name:"_buyoutPricePerToken",type:"uint256"},{internalType:"address",name:"_currencyToAccept",type:"address"},{internalType:"uint256",name:"_startTime",type:"uint256"},{internalType:"uint256",name:"_secondsUntilEndTime",type:"uint256"}],name:"updateListing",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"winningBid",outputs:[{internalType:"uint256",name:"listingId",type:"uint256"},{internalType:"address",name:"offeror",type:"address"},{internalType:"uint256",name:"quantityWanted",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"uint256",name:"expirationTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var qst=x(Lst=>{"use strict";d();p();var id=wi(),Wi=os();Ir();je();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var U_=class{get directListings(){return Wi.assertEnabled(this.detectDirectListings(),Wi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Wi.assertEnabled(this.detectEnglishAuctions(),Wi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Wi.assertEnabled(this.detectOffers(),Wi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Wi.ContractWrapper(e,t,i,a);id._defineProperty(this,"abi",void 0),id._defineProperty(this,"contractWrapper",void 0),id._defineProperty(this,"storage",void 0),id._defineProperty(this,"encoder",void 0),id._defineProperty(this,"events",void 0),id._defineProperty(this,"estimator",void 0),id._defineProperty(this,"platformFees",void 0),id._defineProperty(this,"metadata",void 0),id._defineProperty(this,"app",void 0),id._defineProperty(this,"roles",void 0),id._defineProperty(this,"interceptor",void 0),id._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Wi.ContractMetadata(this.contractWrapper,Wi.MarketplaceContractSchema,this.storage),this.app=new Wi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Wi.ContractRoles(this.contractWrapper,U_.contractRoles),this.encoder=new Wi.ContractEncoder(this.contractWrapper),this.estimator=new Wi.GasCostEstimator(this.contractWrapper),this.events=new Wi.ContractEvents(this.contractWrapper),this.platformFees=new Wi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Wi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Wi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{yAr.exports=[{inputs:[{internalType:"address",name:"_pluginMap",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"string",name:"functionSignature",type:"string"},{indexed:!0,internalType:"address",name:"pluginAddress",type:"address"}],name:"PluginSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes4",name:"functionSelector",type:"bytes4"},{indexed:!0,internalType:"address",name:"oldPluginAddress",type:"address"},{indexed:!0,internalType:"address",name:"newPluginAddress",type:"address"}],name:"PluginUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"_getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"addPlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_pluginAddress",type:"address"}],name:"getAllFunctionsOfPlugin",outputs:[{internalType:"bytes4[]",name:"registered",type:"bytes4[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"getPluginForFunction",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint16",name:"_platformFeeBps",type:"uint16"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[],name:"pluginMap",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"_selector",type:"bytes4"}],name:"removePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin",name:"_plugin",type:"tuple"}],name:"updatePlugin",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]});var H_=x(Fst=>{"use strict";d();p();var Nv=wi(),P1=os(),tee=class{get chainId(){return this._chainId}constructor(e,t,n){Nv._defineProperty(this,"contractWrapper",void 0),Nv._defineProperty(this,"storage",void 0),Nv._defineProperty(this,"erc721",void 0),Nv._defineProperty(this,"_chainId",void 0),Nv._defineProperty(this,"transfer",P1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),Nv._defineProperty(this,"setApprovalForAll",P1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),Nv._defineProperty(this,"setApprovalForToken",P1.buildTransactionFunction(async(a,i)=>P1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await P1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new P1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await P1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await P1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};Fst.StandardErc721=tee});var Ust=x(Wst=>{"use strict";d();p();var yp=wi(),Ui=os(),gAr=H_(),bAr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var j_=class extends gAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ui.ContractWrapper(e,t,i,a);super(o,n,s),yp._defineProperty(this,"abi",void 0),yp._defineProperty(this,"encoder",void 0),yp._defineProperty(this,"estimator",void 0),yp._defineProperty(this,"metadata",void 0),yp._defineProperty(this,"app",void 0),yp._defineProperty(this,"events",void 0),yp._defineProperty(this,"roles",void 0),yp._defineProperty(this,"royalties",void 0),yp._defineProperty(this,"owner",void 0),yp._defineProperty(this,"wrap",Ui.buildTransactionFunction(async(c,u,l)=>{let h=await Ui.uploadOrExtractURI(u,this.storage),f=await Ui.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Ui.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),yp._defineProperty(this,"unwrap",Ui.buildTransactionFunction(async(c,u)=>{let l=await Ui.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Ui.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=i,this.metadata=new Ui.ContractMetadata(this.contractWrapper,Ui.MultiwrapContractSchema,this.storage),this.app=new Ui.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ui.ContractRoles(this.contractWrapper,j_.contractRoles),this.encoder=new Ui.ContractEncoder(this.contractWrapper),this.estimator=new Ui.GasCostEstimator(this.contractWrapper),this.events=new Ui.ContractEvents(this.contractWrapper),this.royalties=new Ui.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Ui.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Ui.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:bAr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Ui.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Ui.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: @@ -63,7 +63,7 @@ You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return Ui.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{hkr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var Jit=_(Yit=>{"use strict";d();p();var Ks=wi(),us=os(),fkr=Cx(),mkr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var kx=class extends fkr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new us.ContractWrapper(e,t,i,a);super(o,n,s),Ks._defineProperty(this,"abi",void 0),Ks._defineProperty(this,"metadata",void 0),Ks._defineProperty(this,"app",void 0),Ks._defineProperty(this,"roles",void 0),Ks._defineProperty(this,"encoder",void 0),Ks._defineProperty(this,"estimator",void 0),Ks._defineProperty(this,"events",void 0),Ks._defineProperty(this,"sales",void 0),Ks._defineProperty(this,"platformFees",void 0),Ks._defineProperty(this,"royalties",void 0),Ks._defineProperty(this,"owner",void 0),Ks._defineProperty(this,"signature",void 0),Ks._defineProperty(this,"interceptor",void 0),Ks._defineProperty(this,"erc721",void 0),Ks._defineProperty(this,"mint",us.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Ks._defineProperty(this,"mintTo",us.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Ks._defineProperty(this,"mintBatch",us.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Ks._defineProperty(this,"mintBatchTo",us.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Ks._defineProperty(this,"burn",us.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new us.ContractMetadata(this.contractWrapper,us.TokenErc721ContractSchema,this.storage),this.app=new us.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new us.ContractRoles(this.contractWrapper,kx.contractRoles),this.royalties=new us.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new us.ContractPrimarySale(this.contractWrapper),this.encoder=new us.ContractEncoder(this.contractWrapper),this.estimator=new us.GasCostEstimator(this.contractWrapper),this.events=new us.ContractEvents(this.contractWrapper),this.platformFees=new us.ContractPlatformFee(this.contractWrapper),this.interceptor=new us.ContractInterceptor(this.contractWrapper),this.erc721=new us.Erc721(this.contractWrapper,this.storage,s),this.signature=new us.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new us.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(us.getRoleHash("transfer"),mkr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return us.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{ykr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Zit=_(Qit=>{"use strict";d();p();var ai=wi(),Ja=os(),gkr=Cx(),bkr=L4(),Cv=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Ax=class extends gkr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ja.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ai._defineProperty(this,"abi",void 0),ai._defineProperty(this,"encoder",void 0),ai._defineProperty(this,"estimator",void 0),ai._defineProperty(this,"metadata",void 0),ai._defineProperty(this,"app",void 0),ai._defineProperty(this,"sales",void 0),ai._defineProperty(this,"platformFees",void 0),ai._defineProperty(this,"events",void 0),ai._defineProperty(this,"roles",void 0),ai._defineProperty(this,"interceptor",void 0),ai._defineProperty(this,"royalties",void 0),ai._defineProperty(this,"claimConditions",void 0),ai._defineProperty(this,"revealer",void 0),ai._defineProperty(this,"checkout",void 0),ai._defineProperty(this,"erc721",void 0),ai._defineProperty(this,"owner",void 0),ai._defineProperty(this,"createBatch",Ja.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ai._defineProperty(this,"claimTo",Ja.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),ai._defineProperty(this,"claim",Ja.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ai._defineProperty(this,"burn",Ja.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ai._defineProperty(this,"transfer",Ja.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ai._defineProperty(this,"setApprovalForAll",Ja.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ai._defineProperty(this,"setApprovalForToken",Ja.buildTransactionFunction(async(u,l)=>Ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=s,this.metadata=new Ja.ContractMetadata(this.contractWrapper,Ja.DropErc721ContractSchema,this.storage),this.app=new Ja.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ja.ContractRoles(this.contractWrapper,Ax.contractRoles),this.royalties=new Ja.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ja.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ja.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Ja.ContractEncoder(this.contractWrapper),this.estimator=new Ja.GasCostEstimator(this.contractWrapper),this.events=new Ja.ContractEvents(this.contractWrapper),this.platformFees=new Ja.ContractPlatformFee(this.contractWrapper),this.erc721=new Ja.Erc721(this.contractWrapper,this.storage,o),this.revealer=new Ja.DelayedReveal(this.contractWrapper,this.storage,Ja.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Ja.ContractInterceptor(this.contractWrapper),this.owner=new Ja.ContractOwner(this.contractWrapper),this.checkout=new bkr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Cv.BigNumber.from(e?.start||0).toNumber(),n=Cv.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Cv.BigNumber.from(e?.start||0).toNumber(),n=Cv.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Cv.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=Cv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ja.getRoleHash("transfer"),Cv.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{vkr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var RX=_((Kjn,wkr)=>{wkr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var MX=_((Vjn,xkr)=>{xkr.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],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:"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:"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:[],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:"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:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var ist=_(ast=>{"use strict";d();p();var Qa=wi(),Rt=os(),_kr=D4(),Tkr=MX(),Ekr=ia(),Ch=Ge(),T0=kr();Ir();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function Xit(r){return r&&r.__esModule?r:{default:r}}var Ckr=Xit(Tkr),Ikr=Xit(Ekr),BX=T0.z.object({contractAddress:Rt.AddressOrEnsSchema}),kkr=BX.extend({quantity:Qa.AmountSchema}),Akr=BX.extend({tokenId:Rt.BigNumberishSchema}),Skr=BX.extend({tokenId:Rt.BigNumberishSchema,quantity:Rt.BigNumberishSchema}),est=kkr.omit({quantity:!0}).extend({quantityPerReward:Qa.AmountSchema}),tst=Akr,rst=Skr.omit({quantity:!0}).extend({quantityPerReward:Rt.BigNumberishSchema}),Pkr=est.extend({totalRewards:Rt.BigNumberishSchema.default("1")}),Rkr=tst,Mkr=rst.extend({totalRewards:Rt.BigNumberishSchema.default("1")});T0.z.object({erc20Rewards:T0.z.array(est).default([]),erc721Rewards:T0.z.array(tst).default([]),erc1155Rewards:T0.z.array(rst).default([])});var nst=T0.z.object({erc20Rewards:T0.z.array(Pkr).default([]),erc721Rewards:T0.z.array(Rkr).default([]),erc1155Rewards:T0.z.array(Mkr).default([])}),Nkr=nst.extend({packMetadata:Qa.NFTInputOrUriSchema,rewardsPerPack:Rt.BigNumberishSchema.default("1"),openStartTime:Rt.RawDateSchema.default(new Date)}),NX=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Rt.ContractWrapper(e,t,Ikr.default,a);Qa._defineProperty(this,"featureName",Rt.FEATURE_PACK_VRF.name),Qa._defineProperty(this,"contractWrapper",void 0),Qa._defineProperty(this,"storage",void 0),Qa._defineProperty(this,"chainId",void 0),Qa._defineProperty(this,"events",void 0),Qa._defineProperty(this,"open",Rt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=Ch.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Qa._defineProperty(this,"claimRewards",Rt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Rt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Rt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Ch.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Rt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Ch.BigNumber.from(5e5)}),i=Ch.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Rt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Rt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,Ckr.default,this.contractWrapper.options);return new Rt.Erc20(t,this.storage,this.chainId)}},Sx=class extends _kr.StandardErc1155{get vrf(){return Rt.assertEnabled(this._vrf,Rt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Qa._defineProperty(this,"abi",void 0),Qa._defineProperty(this,"metadata",void 0),Qa._defineProperty(this,"app",void 0),Qa._defineProperty(this,"roles",void 0),Qa._defineProperty(this,"encoder",void 0),Qa._defineProperty(this,"events",void 0),Qa._defineProperty(this,"estimator",void 0),Qa._defineProperty(this,"royalties",void 0),Qa._defineProperty(this,"interceptor",void 0),Qa._defineProperty(this,"erc1155",void 0),Qa._defineProperty(this,"owner",void 0),Qa._defineProperty(this,"_vrf",void 0),Qa._defineProperty(this,"create",Rt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Qa._defineProperty(this,"addPackContents",Rt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await nst.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Qa._defineProperty(this,"createTo",Rt.buildTransactionFunction(async(u,l)=>{let h=await Rt.uploadOrExtractURI(l.packMetadata,this.storage),f=await Nkr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await Rt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let G=W[0].args.packId;return{id:G,receipt:F,data:()=>this.erc1155.get(G)}}})})),Qa._defineProperty(this,"open",Rt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Rt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Rt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:Ch.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=s,this.erc1155=new Rt.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new Rt.ContractMetadata(this.contractWrapper,Rt.PackContractSchema,this.storage),this.app=new Rt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Rt.ContractRoles(this.contractWrapper,Sx.contractRoles),this.royalties=new Rt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Rt.ContractEncoder(this.contractWrapper),this.estimator=new Rt.GasCostEstimator(this.contractWrapper),this.events=new Rt.ContractEvents(this.contractWrapper),this.interceptor=new Rt.ContractInterceptor(this.contractWrapper),this.owner=new Rt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Rt.getRoleHash("transfer"),Ch.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{vAr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"unwrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedContents",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"}],name:"TokensUnwrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wrapper",type:"address"},{indexed:!0,internalType:"address",name:"recipientOfWrappedToken",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdOfWrappedToken",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"wrappedContents",type:"tuple[]"}],name:"TokensWrapped",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getWrappedContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"}],name:"unwrap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_tokensToWrap",type:"tuple[]"},{internalType:"string",name:"_uriForWrappedToken",type:"string"},{internalType:"address",name:"_recipient",type:"address"}],name:"wrap",outputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}]});var jst=x(Hst=>{"use strict";d();p();var Vs=wi(),us=os(),wAr=H_(),_Ar=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var z_=class extends wAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new us.ContractWrapper(e,t,i,a);super(o,n,s),Vs._defineProperty(this,"abi",void 0),Vs._defineProperty(this,"metadata",void 0),Vs._defineProperty(this,"app",void 0),Vs._defineProperty(this,"roles",void 0),Vs._defineProperty(this,"encoder",void 0),Vs._defineProperty(this,"estimator",void 0),Vs._defineProperty(this,"events",void 0),Vs._defineProperty(this,"sales",void 0),Vs._defineProperty(this,"platformFees",void 0),Vs._defineProperty(this,"royalties",void 0),Vs._defineProperty(this,"owner",void 0),Vs._defineProperty(this,"signature",void 0),Vs._defineProperty(this,"interceptor",void 0),Vs._defineProperty(this,"erc721",void 0),Vs._defineProperty(this,"mint",us.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Vs._defineProperty(this,"mintTo",us.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Vs._defineProperty(this,"mintBatch",us.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Vs._defineProperty(this,"mintBatchTo",us.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Vs._defineProperty(this,"burn",us.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new us.ContractMetadata(this.contractWrapper,us.TokenErc721ContractSchema,this.storage),this.app=new us.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new us.ContractRoles(this.contractWrapper,z_.contractRoles),this.royalties=new us.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new us.ContractPrimarySale(this.contractWrapper),this.encoder=new us.ContractEncoder(this.contractWrapper),this.estimator=new us.GasCostEstimator(this.contractWrapper),this.events=new us.ContractEvents(this.contractWrapper),this.platformFees=new us.ContractPlatformFee(this.contractWrapper),this.interceptor=new us.ContractInterceptor(this.contractWrapper),this.erc721=new us.Erc721(this.contractWrapper,this.storage,s),this.signature=new us.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new us.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(us.getRoleHash("transfer"),_Ar.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return us.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{xAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{indexed:!1,internalType:"string",name:"uri",type:"string"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_to",type:"address"},{internalType:"string",name:"_uri",type:"string"}],name:"mintTo",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"uint256",name:"tokenIdMinted",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"platformFeeRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var Kst=x(zst=>{"use strict";d();p();var ai=wi(),Ja=os(),TAr=H_(),EAr=s8(),Bv=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var K_=class extends TAr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ja.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ai._defineProperty(this,"abi",void 0),ai._defineProperty(this,"encoder",void 0),ai._defineProperty(this,"estimator",void 0),ai._defineProperty(this,"metadata",void 0),ai._defineProperty(this,"app",void 0),ai._defineProperty(this,"sales",void 0),ai._defineProperty(this,"platformFees",void 0),ai._defineProperty(this,"events",void 0),ai._defineProperty(this,"roles",void 0),ai._defineProperty(this,"interceptor",void 0),ai._defineProperty(this,"royalties",void 0),ai._defineProperty(this,"claimConditions",void 0),ai._defineProperty(this,"revealer",void 0),ai._defineProperty(this,"checkout",void 0),ai._defineProperty(this,"erc721",void 0),ai._defineProperty(this,"owner",void 0),ai._defineProperty(this,"createBatch",Ja.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ai._defineProperty(this,"claimTo",Ja.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),ai._defineProperty(this,"claim",Ja.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ai._defineProperty(this,"burn",Ja.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ai._defineProperty(this,"transfer",Ja.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ai._defineProperty(this,"setApprovalForAll",Ja.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ai._defineProperty(this,"setApprovalForToken",Ja.buildTransactionFunction(async(u,l)=>Ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=s,this.metadata=new Ja.ContractMetadata(this.contractWrapper,Ja.DropErc721ContractSchema,this.storage),this.app=new Ja.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ja.ContractRoles(this.contractWrapper,K_.contractRoles),this.royalties=new Ja.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ja.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ja.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Ja.ContractEncoder(this.contractWrapper),this.estimator=new Ja.GasCostEstimator(this.contractWrapper),this.events=new Ja.ContractEvents(this.contractWrapper),this.platformFees=new Ja.ContractPlatformFee(this.contractWrapper),this.erc721=new Ja.Erc721(this.contractWrapper,this.storage,o),this.revealer=new Ja.DelayedReveal(this.contractWrapper,this.storage,Ja.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Ja.ContractInterceptor(this.contractWrapper),this.owner=new Ja.ContractOwner(this.contractWrapper),this.checkout=new EAr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Bv.BigNumber.from(e?.start||0).toNumber(),n=Bv.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Bv.BigNumber.from(e?.start||0).toNumber(),n=Bv.BigNumber.from(e?.count||ai.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Bv.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=Bv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ja.getRoleHash("transfer"),Bv.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Ja.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{CAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[{internalType:"address",name:"operator",type:"address"}],name:"OperatorNotAllowed",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"restriction",type:"bool"}],name:"OperatorRestriction",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"operatorRestriction",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"_restriction",type:"bool"}],name:"setOperatorRestriction",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var iee=x((oKn,IAr)=>{IAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"NFTRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"baseURIIndices",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToClaim",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"uint256",name:"index",type:"uint256"}],name:"tokenOfOwnerByIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",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:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var see=x((cKn,kAr)=>{kAr.exports=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],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:"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:"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:[],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:"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:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]});var Zst=x(Qst=>{"use strict";d();p();var Qa=wi(),Rt=os(),AAr=a8(),SAr=see(),PAr=ia(),kh=je(),S0=kr();Ir();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function Gst(r){return r&&r.__esModule?r:{default:r}}var RAr=Gst(SAr),MAr=Gst(PAr),cee=S0.z.object({contractAddress:Rt.AddressOrEnsSchema}),NAr=cee.extend({quantity:Qa.AmountSchema}),BAr=cee.extend({tokenId:Rt.BigNumberishSchema}),DAr=cee.extend({tokenId:Rt.BigNumberishSchema,quantity:Rt.BigNumberishSchema}),Vst=NAr.omit({quantity:!0}).extend({quantityPerReward:Qa.AmountSchema}),$st=BAr,Yst=DAr.omit({quantity:!0}).extend({quantityPerReward:Rt.BigNumberishSchema}),OAr=Vst.extend({totalRewards:Rt.BigNumberishSchema.default("1")}),LAr=$st,qAr=Yst.extend({totalRewards:Rt.BigNumberishSchema.default("1")});S0.z.object({erc20Rewards:S0.z.array(Vst).default([]),erc721Rewards:S0.z.array($st).default([]),erc1155Rewards:S0.z.array(Yst).default([])});var Jst=S0.z.object({erc20Rewards:S0.z.array(OAr).default([]),erc721Rewards:S0.z.array(LAr).default([]),erc1155Rewards:S0.z.array(qAr).default([])}),FAr=Jst.extend({packMetadata:Qa.NFTInputOrUriSchema,rewardsPerPack:Rt.BigNumberishSchema.default("1"),openStartTime:Rt.RawDateSchema.default(new Date)}),oee=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Rt.ContractWrapper(e,t,MAr.default,a);Qa._defineProperty(this,"featureName",Rt.FEATURE_PACK_VRF.name),Qa._defineProperty(this,"contractWrapper",void 0),Qa._defineProperty(this,"storage",void 0),Qa._defineProperty(this,"chainId",void 0),Qa._defineProperty(this,"events",void 0),Qa._defineProperty(this,"open",Rt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=kh.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Qa._defineProperty(this,"claimRewards",Rt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Rt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Rt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Rt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:kh.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Rt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:kh.BigNumber.from(5e5)}),i=kh.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Rt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Rt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,RAr.default,this.contractWrapper.options);return new Rt.Erc20(t,this.storage,this.chainId)}},G_=class extends AAr.StandardErc1155{get vrf(){return Rt.assertEnabled(this._vrf,Rt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Qa._defineProperty(this,"abi",void 0),Qa._defineProperty(this,"metadata",void 0),Qa._defineProperty(this,"app",void 0),Qa._defineProperty(this,"roles",void 0),Qa._defineProperty(this,"encoder",void 0),Qa._defineProperty(this,"events",void 0),Qa._defineProperty(this,"estimator",void 0),Qa._defineProperty(this,"royalties",void 0),Qa._defineProperty(this,"interceptor",void 0),Qa._defineProperty(this,"erc1155",void 0),Qa._defineProperty(this,"owner",void 0),Qa._defineProperty(this,"_vrf",void 0),Qa._defineProperty(this,"create",Rt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Qa._defineProperty(this,"addPackContents",Rt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await Jst.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Qa._defineProperty(this,"createTo",Rt.buildTransactionFunction(async(u,l)=>{let h=await Rt.uploadOrExtractURI(l.packMetadata,this.storage),f=await FAr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await Rt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),Qa._defineProperty(this,"open",Rt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Rt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Rt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:kh.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=s,this.erc1155=new Rt.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new Rt.ContractMetadata(this.contractWrapper,Rt.PackContractSchema,this.storage),this.app=new Rt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Rt.ContractRoles(this.contractWrapper,G_.contractRoles),this.royalties=new Rt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Rt.ContractEncoder(this.contractWrapper),this.estimator=new Rt.GasCostEstimator(this.contractWrapper),this.events=new Rt.ContractEvents(this.contractWrapper),this.interceptor=new Rt.ContractInterceptor(this.contractWrapper),this.owner=new Rt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Rt.getRoleHash("transfer"),kh.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{Bkr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var ost=_(sst=>{"use strict";d();p();var _i=wi(),di=os(),Dkr=Cx(),Okr=L4(),Iv=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Px=class extends Dkr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new di.ContractWrapper(e,t,i,a);super(o,n,s),_i._defineProperty(this,"abi",void 0),_i._defineProperty(this,"erc721",void 0),_i._defineProperty(this,"owner",void 0),_i._defineProperty(this,"encoder",void 0),_i._defineProperty(this,"estimator",void 0),_i._defineProperty(this,"metadata",void 0),_i._defineProperty(this,"app",void 0),_i._defineProperty(this,"sales",void 0),_i._defineProperty(this,"platformFees",void 0),_i._defineProperty(this,"events",void 0),_i._defineProperty(this,"roles",void 0),_i._defineProperty(this,"interceptor",void 0),_i._defineProperty(this,"royalties",void 0),_i._defineProperty(this,"claimConditions",void 0),_i._defineProperty(this,"revealer",void 0),_i._defineProperty(this,"signature",void 0),_i._defineProperty(this,"checkout",void 0),_i._defineProperty(this,"createBatch",di.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),_i._defineProperty(this,"claimTo",di.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),_i._defineProperty(this,"claim",di.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),_i._defineProperty(this,"burn",di.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new di.ContractMetadata(this.contractWrapper,di.DropErc721ContractSchema,this.storage),this.app=new di.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new di.ContractRoles(this.contractWrapper,Px.contractRoles),this.royalties=new di.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new di.ContractPrimarySale(this.contractWrapper),this.encoder=new di.ContractEncoder(this.contractWrapper),this.estimator=new di.GasCostEstimator(this.contractWrapper),this.events=new di.ContractEvents(this.contractWrapper),this.platformFees=new di.ContractPlatformFee(this.contractWrapper),this.interceptor=new di.ContractInterceptor(this.contractWrapper),this.erc721=new di.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new di.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new di.DelayedReveal(this.contractWrapper,this.storage,di.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new di.ContractOwner(this.contractWrapper),this.checkout=new Okr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Iv.BigNumber.from(e?.start||0).toNumber(),n=Iv.BigNumber.from(e?.count||_i.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Iv.BigNumber.from(e?.start||0).toNumber(),n=Iv.BigNumber.from(e?.count||_i.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Iv.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Iv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(di.getRoleHash("transfer"),Iv.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Lkr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var LX=_((tzn,qkr)=>{qkr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var ust=_(cst=>{"use strict";d();p();var du=wi(),Ba=os(),Fkr=An(),qX=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function Wkr(r){return r&&r.__esModule?r:{default:r}}var Ukr=Wkr(Fkr),Rx=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ba.ContractWrapper(e,t,i,a);du._defineProperty(this,"contractWrapper",void 0),du._defineProperty(this,"storage",void 0),du._defineProperty(this,"abi",void 0),du._defineProperty(this,"metadata",void 0),du._defineProperty(this,"app",void 0),du._defineProperty(this,"encoder",void 0),du._defineProperty(this,"estimator",void 0),du._defineProperty(this,"events",void 0),du._defineProperty(this,"roles",void 0),du._defineProperty(this,"interceptor",void 0),du._defineProperty(this,"_chainId",void 0),du._defineProperty(this,"withdraw",Ba.buildTransactionFunction(async c=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ba.resolveAddress(c)]}))),du._defineProperty(this,"withdrawToken",Ba.buildTransactionFunction(async(c,u)=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ba.resolveAddress(u),await Ba.resolveAddress(c)]}))),du._defineProperty(this,"distribute",Ba.buildTransactionFunction(async()=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),du._defineProperty(this,"distributeToken",Ba.buildTransactionFunction(async c=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ba.resolveAddress(c)]}))),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Ba.ContractMetadata(this.contractWrapper,Ba.SplitsContractSchema,this.storage),this.app=new Ba.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ba.ContractRoles(this.contractWrapper,Rx.contractRoles),this.encoder=new Ba.ContractEncoder(this.contractWrapper),this.estimator=new Ba.GasCostEstimator(this.contractWrapper),this.events=new Ba.ContractEvents(this.contractWrapper),this.interceptor=new Ba.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=qX.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ba.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ba.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ba.resolveAddress(t),a=await Ba.resolveAddress(e),s=await new qX.Contract(n,Ukr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ba.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ba.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(qX.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ba.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Hkr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var nD=_(lst=>{"use strict";d();p();var Mx=wi(),WX=os(),UX=class{get chainId(){return this._chainId}constructor(e,t,n){Mx._defineProperty(this,"contractWrapper",void 0),Mx._defineProperty(this,"storage",void 0),Mx._defineProperty(this,"erc20",void 0),Mx._defineProperty(this,"_chainId",void 0),Mx._defineProperty(this,"transfer",WX.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Mx._defineProperty(this,"transferFrom",WX.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new WX.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};lst.StandardErc20=UX});var pst=_(dst=>{"use strict";d();p();var yc=wi(),Hi=os(),jkr=nD(),zkr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Nx=class extends jkr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Hi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,yc._defineProperty(this,"abi",void 0),yc._defineProperty(this,"metadata",void 0),yc._defineProperty(this,"app",void 0),yc._defineProperty(this,"roles",void 0),yc._defineProperty(this,"encoder",void 0),yc._defineProperty(this,"estimator",void 0),yc._defineProperty(this,"sales",void 0),yc._defineProperty(this,"platformFees",void 0),yc._defineProperty(this,"events",void 0),yc._defineProperty(this,"claimConditions",void 0),yc._defineProperty(this,"interceptor",void 0),yc._defineProperty(this,"claim",Hi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),yc._defineProperty(this,"claimTo",Hi.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),yc._defineProperty(this,"delegateTo",Hi.buildTransactionFunction(async u=>Hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Hi.resolveAddress(u)]}))),yc._defineProperty(this,"burnTokens",Hi.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),yc._defineProperty(this,"burnFrom",Hi.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=s,this.metadata=new Hi.ContractMetadata(this.contractWrapper,Hi.DropErc20ContractSchema,this.storage),this.app=new Hi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Hi.ContractRoles(this.contractWrapper,Nx.contractRoles),this.encoder=new Hi.ContractEncoder(this.contractWrapper),this.estimator=new Hi.GasCostEstimator(this.contractWrapper),this.events=new Hi.ContractEvents(this.contractWrapper),this.sales=new Hi.ContractPrimarySale(this.contractWrapper),this.platformFees=new Hi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Hi.ContractInterceptor(this.contractWrapper),this.claimConditions=new Hi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Hi.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Hi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Hi.getRoleHash("transfer"),zkr.constants.AddressZero)}async prepare(e,t,n){return Hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Kkr.exports=[{inputs:[],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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var jX=_((hzn,Vkr)=>{Vkr.exports=[{inputs:[],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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var KX=_(fst=>{"use strict";d();p();var hst=wi(),Gkr=os(),aD=Ge(),zX=class{constructor(e,t){hst._defineProperty(this,"events",void 0),hst._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==aD.constants.AddressZero&&(i in n||(n[i]=aD.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==aD.constants.AddressZero&&(s in n||(n[s]=aD.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await Gkr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};fst.TokenERC20History=zX});var yst=_(mst=>{"use strict";d();p();var uo=wi(),ji=os(),$kr=KX(),Ykr=nD(),Jkr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var Bx=class extends Ykr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ji.ContractWrapper(e,t,i,a);super(o,n,s),uo._defineProperty(this,"abi",void 0),uo._defineProperty(this,"metadata",void 0),uo._defineProperty(this,"app",void 0),uo._defineProperty(this,"roles",void 0),uo._defineProperty(this,"encoder",void 0),uo._defineProperty(this,"estimator",void 0),uo._defineProperty(this,"history",void 0),uo._defineProperty(this,"events",void 0),uo._defineProperty(this,"platformFees",void 0),uo._defineProperty(this,"sales",void 0),uo._defineProperty(this,"signature",void 0),uo._defineProperty(this,"interceptor",void 0),uo._defineProperty(this,"mint",ji.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),uo._defineProperty(this,"mintTo",ji.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),uo._defineProperty(this,"mintBatchTo",ji.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),uo._defineProperty(this,"delegateTo",ji.buildTransactionFunction(async c=>ji.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await ji.resolveAddress(c)]}))),uo._defineProperty(this,"burn",ji.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),uo._defineProperty(this,"burnFrom",ji.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=i,this.metadata=new ji.ContractMetadata(this.contractWrapper,ji.TokenErc20ContractSchema,this.storage),this.app=new ji.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ji.ContractRoles(this.contractWrapper,Bx.contractRoles),this.sales=new ji.ContractPrimarySale(this.contractWrapper),this.events=new ji.ContractEvents(this.contractWrapper),this.history=new $kr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new ji.ContractEncoder(this.contractWrapper),this.estimator=new ji.GasCostEstimator(this.contractWrapper),this.platformFees=new ji.ContractPlatformFee(this.contractWrapper),this.interceptor=new ji.ContractInterceptor(this.contractWrapper),this.signature=new ji.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await ji.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ji.getRoleHash("transfer"),Jkr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return ji.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{Qkr.exports=[{inputs:[],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:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",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:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var GX=_(gst=>{"use strict";d();p();var Zkr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});gst.VoteType=Zkr});var vst=_(bst=>{"use strict";d();p();var ad=wi(),lo=os(),Xkr=An(),q4=Ge(),$X=GX();Ir();kr();_n();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function eAr(r){return r&&r.__esModule?r:{default:r}}var tAr=eAr(Xkr),YX=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new lo.ContractWrapper(e,t,s,i);ad._defineProperty(this,"contractWrapper",void 0),ad._defineProperty(this,"storage",void 0),ad._defineProperty(this,"abi",void 0),ad._defineProperty(this,"metadata",void 0),ad._defineProperty(this,"app",void 0),ad._defineProperty(this,"encoder",void 0),ad._defineProperty(this,"estimator",void 0),ad._defineProperty(this,"events",void 0),ad._defineProperty(this,"interceptor",void 0),ad._defineProperty(this,"_chainId",void 0),ad._defineProperty(this,"propose",lo.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return lo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ad._defineProperty(this,"vote",lo.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),lo.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ad._defineProperty(this,"execute",lo.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=q4.ethers.utils.id(l.description);return lo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=s,this.contractWrapper=c,this.storage=n,this.metadata=new lo.ContractMetadata(this.contractWrapper,lo.VoteContractSchema,this.storage),this.app=new lo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new lo.ContractEncoder(this.contractWrapper),this.estimator=new lo.GasCostEstimator(this.contractWrapper),this.events=new lo.ContractEvents(this.contractWrapper),this.interceptor=new lo.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(q4.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:$X.VoteType.Against,label:"Against",count:t.againstVotes},{type:$X.VoteType.For,label:"For",count:t.forVotes},{type:$X.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await lo.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=q4.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:q4.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new q4.Contract(await lo.resolveAddress(e),tAr.default,this.contractWrapper.getProvider());return await lo.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await lo.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return lo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{rAr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var xst=_(wst=>{"use strict";d();p();function nAr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function aAr(r){var e=nAr(r,"string");return typeof e=="symbol"?e:String(e)}function iAr(r,e,t){return e=aAr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}wst._defineProperty=iAr});var XX=_(ZX=>{"use strict";d();p();Object.defineProperty(ZX,"__esModule",{value:!0});var _st=xst(),QX=Ge(),iD=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],Tst="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",sAr=r=>r.length>1,F4=class extends QX.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";d();p();var oAr=_n(),Q=Ge(),cAr=Tn(),uAr=En(),lAr=Cn(),dAr=In(),pAr=kn(),hAr=An(),fAr=Sn(),mAr=Pn(),yAr=Rn(),gAr=Mn(),bAr=Nn(),vAr=Bn(),wAr=Dn(),xAr=On(),_Ar=un(),TAr=Ln(),EAr=qn(),CAr=Fn(),IAr=Wn(),kAr=Un(),AAr=Hn(),SAr=jn(),PAr=zn(),RAr=Kn(),MAr=Vn(),NAr=Gn(),BAr=$n(),DAr=Yn(),OAr=ln(),LAr=Jn(),qAr=Qn(),FAr=Zn(),WAr=Xn(),UAr=ea(),HAr=ta(),jAr=ra(),zAr=na(),KAr=aa(),VAr=ia(),GAr=sa(),$Ar=oa(),YAr=ca(),JAr=ua(),QAr=la(),ZAr=da(),$=wi(),de=kr(),f8=Pt(),XAr=pa(),eSr=tn(),rot=it(),tSr=ha(),Bv=gn(),rSr=Gr(),nSr=Hr(),aSr=fa(),eee=ma(),iSr=ya(),sSr=Fr(),oSr=pn(),cSr=ga(),uSr=ba(),lSr=va(),dSr=wa(),pSr=xa(),hSr=_a(),Est=Ta(),fSr=Ea(),mSr=Ca();function et(r){return r&&r.__esModule?r:{default:r}}function zo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Qee=et(oAr),ySr=et(cAr),not=et(uAr),gSr=et(lAr),aot=et(dAr),iot=et(pAr),pu=et(hAr),bSr=et(fAr),sot=et(mAr),Zee=et(yAr),vSr=et(gAr),wSr=et(bAr),xSr=et(vAr),oot=et(wAr),_Sr=et(xAr),bc=et(_Ar),TSr=et(TAr),ESr=et(EAr),vp=et(CAr),cot=et(IAr),CSr=et(kAr),ISr=et(AAr),kSr=et(SAr),ASr=et(PAr),SSr=et(RAr),PSr=et(MAr),uot=et(NAr),RSr=et(BAr),MSr=et(DAr),Hu=et(OAr),NSr=et(LAr),lot=et(qAr),BSr=et(FAr),DSr=et(WAr),OSr=et(UAr),LSr=et(HAr),qSr=et(jAr),FSr=et(zAr),WSr=et(KAr),USr=et(VAr),HSr=et(GAr),jSr=et($Ar),zSr=et(YAr),KSr=et(JAr),VSr=et(QAr),GSr=et(ZAr),$Sr=et(XAr),K4=et(eSr),oee=et(rot),dot=et(tSr),xt=et(rSr),YSr=et(aSr),pot=et(iSr),RO=et(oSr),JSr=et(cSr),QSr=et(uSr),ZSr=et(lSr),XSr=et(dSr),ePr=et(pSr),tPr=et(hSr),rPr=et(fSr),nPr=et(mSr);function aPr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function cee(r,e,t){aPr(r,e),e.set(r,t)}function iPr(r,e){return e.get?e.get.call(r):e.value}function hot(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function lD(r,e){var t=hot(r,e,"get");return iPr(r,t)}function sPr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function uee(r,e,t){var n=hot(r,e,"set");return sPr(r,n,t),t}var Ne=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),fot=[Ne.Mainnet,Ne.Goerli,Ne.Polygon,Ne.Mumbai,Ne.Fantom,Ne.FantomTestnet,Ne.Avalanche,Ne.AvalancheFujiTestnet,Ne.Optimism,Ne.OptimismGoerli,Ne.Arbitrum,Ne.ArbitrumGoerli,Ne.BinanceSmartChainMainnet,Ne.BinanceSmartChainTestnet,Ne.Hardhat,Ne.Localhost],lee=f8.defaultChains;function mot(r){r&&r.length>0?lee=r:lee=f8.defaultChains}function yot(){return lee}var got="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",E1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",_1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",kv="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",oPr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",cPr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",C1={[Ne.Mainnet]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:kv,twRegistry:_1,twBYOCRegistry:Q.constants.AddressZero},[Ne.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:kv,twRegistry:_1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ne.Polygon]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:kv,twRegistry:_1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ne.Mumbai]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:kv,twRegistry:_1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ne.Avalanche]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:kv,twRegistry:_1,twBYOCRegistry:Q.constants.AddressZero},[Ne.AvalancheFujiTestnet]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:kv,twRegistry:_1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Fantom]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:_1,twBYOCRegistry:Q.constants.AddressZero},[Ne.FantomTestnet]:{openzeppelinForwarder:E1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:kv,twRegistry:_1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.Hardhat]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero},[Ne.Localhost]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero}},dee={[Ne.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ne.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ne.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ne.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ne.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ne.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ne.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ne.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ne.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ne.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function bot(r,e){if(r in dee){let t=dee[r];if(e in t)return t[e]}return null}function V4(r,e){return r===Ne.Hardhat||r===Ne.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Q.constants.AddressZero:C1[r]?.[e]}function vot(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:oPr}function pee(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:cPr}function Xee(r){let e=fot.find(a=>a===r),t=e?C1[e].biconomyForwarder:Q.constants.AddressZero,n=e?C1[e].openzeppelinForwarder:Q.constants.AddressZero;return t!==Q.constants.AddressZero?[n,t]:[n]}var m8=Q.utils.arrayify("0x80ac58cd"),y8=Q.utils.arrayify("0xd9b67a26"),Wu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",G4={[Ne.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ne.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ne.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ne.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function dD(r){let e=yot().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:G4[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var uPr={[Ne.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ne.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ne.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ne.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ne.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ne.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ne.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},gl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function MO(r){return!!(r&&r._isSigner)}function ete(r){return!!(r&&r._isProvider)}function pi(r,e){let t,n;if(MO(r)?(t=r,r.provider&&(n=r.provider)):ete(r)?n=r:n=$4(r,e),e?.readonlySettings&&(n=hD(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var wot=50,xot=250,lPr={timeLimitMs:wot,sizeLimit:xot},hee=class extends Q.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lPr;super(e,t),$._defineProperty(this,"_timeLimitMs",void 0),$._defineProperty(this,"_sizeLimit",void 0),$._defineProperty(this,"_pendingBatchAggregator",void 0),$._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||xot,this._sizeLimit=n.sizeLimit||wot,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Q.utils.deepCopy(e),provider:this}),Q.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},tee,ree=new Map;async function _ot(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;tee||(tee=pi("ethereum")[1]);let t;ree.has(r)?t=ree.get(r):t=tee.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>_ot(r)).refine(r=>!!r&&Q.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Is=de.z.union([de.z.string(),de.z.number(),de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r)),Vs=Is.transform(r=>r.toString()),Tot=de.z.union([de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r).toString()),tte=de.z.custom(r=>typeof r=="string"&&Q.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ti=de.z.union([tte,dPr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),g8=de.z.date().transform(r=>Q.BigNumber.from(Math.floor(r.getTime()/1e3))),rte=g8.default(new Date(0)),b8=g8.default(new Date(Date.now()+1e3*60*60*24*365*10)),Eot=de.z.object({gasLimit:Vs.optional(),gasPrice:Vs.optional(),maxFeePerGas:Vs.optional(),maxPriorityFeePerGas:Vs.optional(),nonce:Vs.optional(),value:Vs.optional(),blockTag:de.z.union([de.z.string(),de.z.number()]).optional(),from:Ti.optional(),type:de.z.number().optional()}).strict(),Cot=de.z.object({rpc:de.z.array(de.z.string().url()),chainId:de.z.number(),nativeCurrency:de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),slug:de.z.string()}),fee=de.z.object({supportedChains:de.z.array(Cot).default(f8.defaultChains),thirdwebApiKey:de.z.string().optional().default($.DEFAULT_API_KEY),alchemyApiKey:de.z.string().optional().optional(),infuraApiKey:de.z.string().optional().optional(),readonlySettings:de.z.object({rpcUrl:de.z.string().url(),chainId:de.z.number().optional()}).optional(),gasSettings:de.z.object({maxPriceInGwei:de.z.number().min(1,"gas price cannot be less than 1").default(300),speed:de.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:de.z.union([de.z.object({openzeppelin:de.z.object({relayerUrl:de.z.string().url(),relayerForwarderAddress:de.z.string().optional(),useEOAForwarder:de.z.boolean().default(!1)}),experimentalChainlessSupport:de.z.boolean().default(!1)}),de.z.object({biconomy:de.z.object({apiId:de.z.string(),apiKey:de.z.string(),deadlineSeconds:de.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:de.z.array(de.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),Iot=de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),kot=Iot.extend({value:Is,displayValue:de.z.string()}),R0=de.z.object({merkle:de.z.record(de.z.string()).default({})}),pD=de.z.object({address:Ti,maxClaimable:$.QuantitySchema.default(0),price:$.QuantitySchema.optional(),currencyAddress:Ti.default(Q.ethers.constants.AddressZero).optional()}),v8=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>pD.parseAsync({address:e})))),de.z.array(pD)]),nte=pD.extend({proof:de.z.array(de.z.string())}),ate=de.z.object({merkleRoot:de.z.string(),claims:de.z.array(nte)}),pPr=de.z.object({merkleRoot:de.z.string(),snapshotUri:de.z.string()}),Aot=de.z.object({name:de.z.string().optional()}).catchall(de.z.unknown()),w8=de.z.object({startTime:rte,currencyAddress:de.z.string().default(Wu),price:$.AmountSchema.default(0),maxClaimableSupply:$.QuantitySchema,maxClaimablePerWallet:$.QuantitySchema,waitInSeconds:Vs.default(0),merkleRootHash:$.BytesLikeSchema.default(Q.utils.hexZeroPad([0],32)),snapshot:de.z.optional(v8).nullable(),metadata:Aot.optional()}),Sot=de.z.array(w8),hPr=w8.partial(),ite=w8.extend({availableSupply:$.QuantitySchema,currentMintSupply:$.QuantitySchema,currencyMetadata:kot.default({value:Q.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Is,waitInSeconds:Is,startTime:Is.transform(r=>new Date(r.toNumber()*1e3)),snapshot:v8.optional().nullable()});function fPr(r){if(r===void 0){let e=b.Buffer.alloc(16);return sSr.v4({},e),Q.utils.hexlify(Q.utils.toUtf8Bytes(e.toString("hex")))}else return Q.utils.hexlify(r)}var NO=de.z.object({to:Ti.refine(r=>r.toLowerCase()!==Q.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:$.AmountSchema.default(0),currencyAddress:tte.default(Wu),mintStartTime:rte,mintEndTime:b8,uid:de.z.string().optional().transform(r=>fPr(r)),primarySaleRecipient:Ti.default(Q.constants.AddressZero)}),ste=NO.extend({quantity:$.AmountSchema}),Pot=ste.extend({mintStartTime:Is,mintEndTime:Is}),BO=NO.extend({metadata:$.NFTInputOrUriSchema,royaltyRecipient:de.z.string().default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0)}),ote=BO.extend({uri:de.z.string(),royaltyBps:Is,mintStartTime:Is,mintEndTime:Is}),Rot=BO.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Vs}),Mot=Rot.extend({tokenId:Vs}),Not=ote.extend({tokenId:Is,quantity:Is}),Bot=BO.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:Is.default(1)}),Dot=ote.extend({quantity:Is.default(1)}),Oot=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Lot=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],qot=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Fot=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Wot=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],wl=de.z.object({name:de.z.string(),description:de.z.string().optional(),image:$.FileOrBufferOrStringSchema.optional(),external_link:de.z.string().optional(),app_uri:de.z.string().optional()}),id=wl.extend({image:de.z.string().optional()}).catchall(de.z.unknown()),jo=de.z.object({seller_fee_basis_points:$.BasisPointsSchema.default(0),fee_recipient:Ti.default(Q.constants.AddressZero)}),I1=de.z.object({primary_sale_recipient:Ti}),bp=de.z.object({platform_fee_basis_points:$.BasisPointsSchema.default(0),platform_fee_recipient:Ti.default(Q.constants.AddressZero)}),sd=de.z.object({trusted_forwarders:de.z.array(Ti).default([])}),fo=de.z.object({symbol:de.z.string().optional().default("")}),Uot=wl.merge(jo).merge(R0).merge(fo),mPr=id.merge(jo).merge(R0).merge(fo),yPr=Uot.merge(bp).merge(I1).merge(sd),cte={deploy:yPr,output:mPr,input:Uot},Hot=wl.merge(jo).merge(R0).merge(fo),gPr=id.merge(jo).merge(R0).merge(fo),bPr=Hot.merge(bp).merge(I1).merge(sd),jot={deploy:bPr,output:gPr,input:Hot},zot=wl,vPr=id,wPr=zot.merge(bp).merge(sd),ute={deploy:wPr,output:vPr,input:zot},Kot=wl.merge(jo).merge(fo),xPr=id.merge(jo).merge(fo),_Pr=Kot.merge(bp).merge(sd),Vot={deploy:_Pr,output:xPr,input:Kot},Got=de.z.object({address:Ti,sharesBps:$.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),TPr=Got.extend({address:Ti,sharesBps:$.BasisPointsSchema}),mee=wl.extend({recipients:de.z.array(Got).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),EPr=id.extend({recipients:de.z.array(TPr)}),CPr=mee.merge(mee).merge(sd),$ot={deploy:CPr,output:EPr,input:mee},Yot=wl.merge(fo),IPr=id.merge(fo),kPr=Yot.merge(bp).merge(I1).merge(sd),Jot={deploy:kPr,output:IPr,input:Yot},Qot=wl.merge(jo).merge(fo),APr=id.merge(jo).merge(fo),SPr=Qot.merge(bp).merge(I1).merge(sd),Zot={deploy:SPr,output:APr,input:Qot},Xot=wl.merge(jo).merge(fo),PPr=id.merge(jo).merge(fo),RPr=Xot.merge(bp).merge(I1).merge(sd),ect={deploy:RPr,output:PPr,input:Xot},tct=de.z.object({voting_delay_in_blocks:de.z.number().min(0).default(0),voting_period_in_blocks:de.z.number().min(1).default(1),voting_token_address:Ti,voting_quorum_fraction:$.PercentSchema.default(0),proposal_token_threshold:Vs.default(1)}),MPr=tct.extend({proposal_token_threshold:Is}),rct=wl.merge(tct),NPr=id.merge(MPr),BPr=rct.merge(sd),nct={deploy:BPr,output:NPr,input:rct};de.z.object({proposalId:Is,proposer:de.z.string(),targets:de.z.array(de.z.string()),values:de.z.array(Is),signatures:de.z.array(de.z.string()),calldatas:de.z.array(de.z.string()),startBlock:Is,endBlock:Is,description:de.z.string()});function DPr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function $4(r,e){if(typeof r=="string"&&OPr(r))return hD(r);let t=fee.parse(e);DO(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=DPr(t),a="",i;try{i=act(r,t),a=f8.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||$.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||$.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return hD(a,i)}function act(r,e){if(DO(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function DO(r){return typeof r!="string"&&typeof r!="number"&&!MO(r)&&!ete(r)}function OPr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var Cst=new Map;function hD(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=Cst.get(n);if(a)return a;let i=e?new hee(r,e):new Q.providers.JsonRpcBatchProvider(r);return Cst.set(n,i),i;case"ws":case"wss":return new Q.providers.WebSocketProvider(r,e)}}catch{}return Q.providers.getDefaultProvider(r)}var Y4=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},yee=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},fD=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},gee=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},bee=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},vee=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},wee=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},xee=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},_ee=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},Tee=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},Eee=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),$._defineProperty(this,"innerError",void 0),this.innerError=t}},mD=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},Cee=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},Iee=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},kee=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},Aee=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},See=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},Pee=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},Fx=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},C0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},nee=new WeakMap,aee=new WeakMap,J4=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:kh.BigNumber.from(u.quantityPerReward).mul(kh.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return Rt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{WAr.exports=[{inputs:[{internalType:"address",name:"_nativeTokenWrapper",type:"address"},{internalType:"address",name:"_trustedForwarder",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!0,internalType:"address",name:"opener",type:"address"},{indexed:!1,internalType:"uint256",name:"numOfPacksOpened",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],indexed:!1,internalType:"struct ITokenBundle.Token[]",name:"rewardUnitsDistributed",type:"tuple[]"}],name:"PackOpened",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"packId",type:"uint256"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"totalPacksCreated",type:"uint256"}],name:"PackUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"address",name:"_recipient",type:"address"}],name:"addPackContents",outputs:[{internalType:"uint256",name:"packTotalSupply",type:"uint256"},{internalType:"uint256",name:"newSupplyAdded",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"canUpdatePack",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"_contents",type:"tuple[]"},{internalType:"uint256[]",name:"_numOfRewardUnits",type:"uint256[]"},{internalType:"string",name:"_packUri",type:"string"},{internalType:"uint128",name:"_openStartTimestamp",type:"uint128"},{internalType:"uint128",name:"_amountDistributedPerOpen",type:"uint128"},{internalType:"address",name:"_recipient",type:"address"}],name:"createPack",outputs:[{internalType:"uint256",name:"packId",type:"uint256"},{internalType:"uint256",name:"packTotalSupply",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"}],name:"getPackContents",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"contents",type:"tuple[]"},{internalType:"uint256[]",name:"perUnitAmounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getTokenCountOfBundle",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getTokenOfBundle",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_bundleId",type:"uint256"}],name:"getUriOfBundle",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_packId",type:"uint256"},{internalType:"uint256",name:"_amountToOpen",type:"uint256"}],name:"openPack",outputs:[{components:[{internalType:"address",name:"assetContract",type:"address"},{internalType:"enum ITokenBundle.TokenType",name:"tokenType",type:"uint8"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"totalAmount",type:"uint256"}],internalType:"struct ITokenBundle.Token[]",name:"",type:"tuple[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var eot=x(Xst=>{"use strict";d();p();var xi=wi(),di=os(),UAr=H_(),HAr=s8(),Dv=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var V_=class extends UAr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new di.ContractWrapper(e,t,i,a);super(o,n,s),xi._defineProperty(this,"abi",void 0),xi._defineProperty(this,"erc721",void 0),xi._defineProperty(this,"owner",void 0),xi._defineProperty(this,"encoder",void 0),xi._defineProperty(this,"estimator",void 0),xi._defineProperty(this,"metadata",void 0),xi._defineProperty(this,"app",void 0),xi._defineProperty(this,"sales",void 0),xi._defineProperty(this,"platformFees",void 0),xi._defineProperty(this,"events",void 0),xi._defineProperty(this,"roles",void 0),xi._defineProperty(this,"interceptor",void 0),xi._defineProperty(this,"royalties",void 0),xi._defineProperty(this,"claimConditions",void 0),xi._defineProperty(this,"revealer",void 0),xi._defineProperty(this,"signature",void 0),xi._defineProperty(this,"checkout",void 0),xi._defineProperty(this,"createBatch",di.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),xi._defineProperty(this,"claimTo",di.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),xi._defineProperty(this,"claim",di.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),xi._defineProperty(this,"burn",di.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new di.ContractMetadata(this.contractWrapper,di.DropErc721ContractSchema,this.storage),this.app=new di.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new di.ContractRoles(this.contractWrapper,V_.contractRoles),this.royalties=new di.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new di.ContractPrimarySale(this.contractWrapper),this.encoder=new di.ContractEncoder(this.contractWrapper),this.estimator=new di.GasCostEstimator(this.contractWrapper),this.events=new di.ContractEvents(this.contractWrapper),this.platformFees=new di.ContractPlatformFee(this.contractWrapper),this.interceptor=new di.ContractInterceptor(this.contractWrapper),this.erc721=new di.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new di.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new di.DelayedReveal(this.contractWrapper,this.storage,di.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new di.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new di.ContractOwner(this.contractWrapper),this.checkout=new HAr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Dv.BigNumber.from(e?.start||0).toNumber(),n=Dv.BigNumber.from(e?.count||xi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Dv.BigNumber.from(e?.start||0).toNumber(),n=Dv.BigNumber.from(e?.count||xi.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Dv.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Dv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(di.getRoleHash("transfer"),Dv.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return di.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{jAr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropSinglePhase.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var dee=x((gKn,zAr)=>{zAr.exports=[{inputs:[],name:"ApprovalCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"ApprovalQueryForNonexistentToken",type:"error"},{inputs:[],name:"ApprovalToCurrentOwner",type:"error"},{inputs:[],name:"ApproveToCaller",type:"error"},{inputs:[],name:"BalanceQueryForZeroAddress",type:"error"},{inputs:[],name:"MintToZeroAddress",type:"error"},{inputs:[],name:"MintZeroQuantity",type:"error"},{inputs:[],name:"OwnerQueryForNonexistentToken",type:"error"},{inputs:[],name:"TransferCallerNotOwnerNorApproved",type:"error"},{inputs:[],name:"TransferFromIncorrectOwner",type:"error"},{inputs:[],name:"TransferToNonERC721ReceiverImplementer",type:"error"},{inputs:[],name:"TransferToZeroAddress",type:"error"},{inputs:[],name:"URIQueryForNonexistentToken",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"approved",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IClaimCondition_V1.ClaimCondition",name:"condition",type:"tuple"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"newRoyaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"newRoyaltyBps",type:"uint256"}],name:"DefaultRoyalty",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"prevOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"},{indexed:!0,internalType:"address",name:"royaltyRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"royaltyBps",type:"uint256"}],name:"RoyaltyForToken",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"index",type:"uint256"},{indexed:!1,internalType:"string",name:"revealedURI",type:"string"}],name:"TokenURIRevealed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endTokenId",type:"uint256"},{indexed:!1,internalType:"string",name:"baseURI",type:"string"},{indexed:!1,internalType:"bytes",name:"encryptedBaseURI",type:"bytes"}],name:"TokensLazyMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenIdMinted",type:"uint256"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ISignatureMintERC721.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"bytes",name:"key",type:"bytes"}],name:"encryptDecrypt",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"encryptedData",outputs:[{internalType:"bytes",name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBaseURICount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"}],name:"getBatchIdAtIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimedAt",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDefaultRoyaltyInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"getRevealURI",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"getRoyaltyInfoForToken",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint128",name:"_royaltyBps",type:"uint128"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"},{internalType:"address",name:"_platformFeeRecipient",type:"address"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_batchId",type:"uint256"}],name:"isEncryptedBatch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"string",name:"_baseURIForTokens",type:"string"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"lazyMint",outputs:[{internalType:"uint256",name:"batchId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[{internalType:"address",name:"signer",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextTokenIdToMint",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_index",type:"uint256"},{internalType:"bytes",name:"_key",type:"bytes"}],name:"reveal",outputs:[{internalType:"string",name:"revealedURI",type:"string"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"salePrice",type:"uint256"}],name:"royaltyInfo",outputs:[{internalType:"address",name:"receiver",type:"address"},{internalType:"uint256",name:"royaltyAmount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IClaimCondition_V1.ClaimCondition",name:"_condition",type:"tuple"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_royaltyRecipient",type:"address"},{internalType:"uint256",name:"_royaltyBps",type:"uint256"}],name:"setDefaultRoyaltyInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newOwner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"uint256",name:"_bps",type:"uint256"}],name:"setRoyaltyInfoForToken",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tokenId",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalMinted",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"royaltyRecipient",type:"address"},{internalType:"uint256",name:"royaltyBps",type:"uint256"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"string",name:"uri",type:"string"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ISignatureMintERC721.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"success",type:"bool"},{internalType:"address",name:"signer",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"maxQuantityInAllowlist",type:"uint256"}],internalType:"struct IDropSinglePhase_V1.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"}]});var rot=x(tot=>{"use strict";d();p();var mu=wi(),Ba=os(),KAr=An(),pee=je();Ir();kr();xn();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function GAr(r){return r&&r.__esModule?r:{default:r}}var VAr=GAr(KAr),$_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ba.ContractWrapper(e,t,i,a);mu._defineProperty(this,"contractWrapper",void 0),mu._defineProperty(this,"storage",void 0),mu._defineProperty(this,"abi",void 0),mu._defineProperty(this,"metadata",void 0),mu._defineProperty(this,"app",void 0),mu._defineProperty(this,"encoder",void 0),mu._defineProperty(this,"estimator",void 0),mu._defineProperty(this,"events",void 0),mu._defineProperty(this,"roles",void 0),mu._defineProperty(this,"interceptor",void 0),mu._defineProperty(this,"_chainId",void 0),mu._defineProperty(this,"withdraw",Ba.buildTransactionFunction(async c=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Ba.resolveAddress(c)]}))),mu._defineProperty(this,"withdrawToken",Ba.buildTransactionFunction(async(c,u)=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Ba.resolveAddress(u),await Ba.resolveAddress(c)]}))),mu._defineProperty(this,"distribute",Ba.buildTransactionFunction(async()=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),mu._defineProperty(this,"distributeToken",Ba.buildTransactionFunction(async c=>Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Ba.resolveAddress(c)]}))),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Ba.ContractMetadata(this.contractWrapper,Ba.SplitsContractSchema,this.storage),this.app=new Ba.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ba.ContractRoles(this.contractWrapper,$_.contractRoles),this.encoder=new Ba.ContractEncoder(this.contractWrapper),this.estimator=new Ba.GasCostEstimator(this.contractWrapper),this.events=new Ba.ContractEvents(this.contractWrapper),this.interceptor=new Ba.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=pee.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Ba.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Ba.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Ba.resolveAddress(t),a=await Ba.resolveAddress(e),s=await new pee.Contract(n,VAr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Ba.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Ba.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(pee.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Ba.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Ba.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{$Ar.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"ERC20PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"},{indexed:!1,internalType:"uint256",name:"shares",type:"uint256"}],name:"PayeeAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"from",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"PaymentReleased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"distribute",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address[]",name:"_payees",type:"address[]"},{internalType:"uint256[]",name:"_shares",type:"uint256[]"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"payee",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"payeeCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"releasable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address payable",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"release",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"},{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"released",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"shares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20Upgradeable",name:"token",type:"address"}],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalReleased",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalShares",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var ED=x(not=>{"use strict";d();p();var Y_=wi(),fee=os(),mee=class{get chainId(){return this._chainId}constructor(e,t,n){Y_._defineProperty(this,"contractWrapper",void 0),Y_._defineProperty(this,"storage",void 0),Y_._defineProperty(this,"erc20",void 0),Y_._defineProperty(this,"_chainId",void 0),Y_._defineProperty(this,"transfer",fee.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Y_._defineProperty(this,"transferFrom",fee.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new fee.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};not.StandardErc20=mee});var iot=x(aot=>{"use strict";d();p();var wc=wi(),Hi=os(),YAr=ED(),JAr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var J_=class extends YAr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Hi.ContractWrapper(e,t,s,i);super(c,n,o),a=this,wc._defineProperty(this,"abi",void 0),wc._defineProperty(this,"metadata",void 0),wc._defineProperty(this,"app",void 0),wc._defineProperty(this,"roles",void 0),wc._defineProperty(this,"encoder",void 0),wc._defineProperty(this,"estimator",void 0),wc._defineProperty(this,"sales",void 0),wc._defineProperty(this,"platformFees",void 0),wc._defineProperty(this,"events",void 0),wc._defineProperty(this,"claimConditions",void 0),wc._defineProperty(this,"interceptor",void 0),wc._defineProperty(this,"claim",Hi.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),wc._defineProperty(this,"claimTo",Hi.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),wc._defineProperty(this,"delegateTo",Hi.buildTransactionFunction(async u=>Hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Hi.resolveAddress(u)]}))),wc._defineProperty(this,"burnTokens",Hi.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),wc._defineProperty(this,"burnFrom",Hi.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=s,this.metadata=new Hi.ContractMetadata(this.contractWrapper,Hi.DropErc20ContractSchema,this.storage),this.app=new Hi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Hi.ContractRoles(this.contractWrapper,J_.contractRoles),this.encoder=new Hi.ContractEncoder(this.contractWrapper),this.estimator=new Hi.GasCostEstimator(this.contractWrapper),this.events=new Hi.ContractEvents(this.contractWrapper),this.sales=new Hi.ContractPrimarySale(this.contractWrapper),this.platformFees=new Hi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Hi.ContractInterceptor(this.contractWrapper),this.claimConditions=new Hi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await Hi.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Hi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Hi.getRoleHash("transfer"),JAr.constants.AddressZero)}async prepare(e,t,n){return Hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{QAr.exports=[{inputs:[],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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],indexed:!1,internalType:"struct IClaimCondition.ClaimCondition[]",name:"claimConditions",type:"tuple[]"},{indexed:!1,internalType:"bool",name:"resetEligibility",type:"bool"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"startTokenId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"member",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getSupplyClaimedByWallet",outputs:[{internalType:"uint256",name:"supplyClaimedByWallet",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRoleWithSwitch",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_saleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint128",name:"_platformFeeBps",type:"uint128"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"string",name:"metadata",type:"string"}],internalType:"struct IClaimCondition.ClaimCondition[]",name:"_conditions",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{components:[{internalType:"bytes32[]",name:"proof",type:"bytes32[]"},{internalType:"uint256",name:"quantityLimitPerWallet",type:"uint256"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDrop.AllowlistProof",name:"_allowlistProof",type:"tuple"}],name:"verifyClaim",outputs:[{internalType:"bool",name:"isOverride",type:"bool"}],stateMutability:"view",type:"function"}]});var gee=x((SKn,ZAr)=>{ZAr.exports=[{inputs:[],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:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],indexed:!1,internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"claimConditions",type:"tuple[]"}],name:"ClaimConditionsUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"prevURI",type:"string"},{indexed:!1,internalType:"string",name:"newURI",type:"string"}],name:"ContractURIUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"maxTotalSupply",type:"uint256"}],name:"MaxTotalSupplyUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"MaxWalletClaimCountUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"claimConditionIndex",type:"uint256"},{indexed:!0,internalType:"address",name:"claimer",type:"address"},{indexed:!0,internalType:"address",name:"receiver",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityClaimed",type:"uint256"}],name:"TokensClaimed",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"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"wallet",type:"address"},{indexed:!1,internalType:"uint256",name:"count",type:"uint256"}],name:"WalletClaimCountUpdated",type:"event"},{inputs:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_receiver",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"claim",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"claimCondition",outputs:[{internalType:"uint256",name:"currentStartId",type:"uint256"},{internalType:"uint256",name:"count",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getActiveClaimConditionId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"}],name:"getClaimConditionById",outputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition",name:"condition",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"}],name:"getClaimTimestamp",outputs:[{internalType:"uint256",name:"lastClaimTimestamp",type:"uint256"},{internalType:"uint256",name:"nextValidClaimTimestamp",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxWalletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"startTimestamp",type:"uint256"},{internalType:"uint256",name:"maxClaimableSupply",type:"uint256"},{internalType:"uint256",name:"supplyClaimed",type:"uint256"},{internalType:"uint256",name:"quantityLimitPerTransaction",type:"uint256"},{internalType:"uint256",name:"waitTimeInSecondsBetweenClaims",type:"uint256"},{internalType:"bytes32",name:"merkleRoot",type:"bytes32"},{internalType:"uint256",name:"pricePerToken",type:"uint256"},{internalType:"address",name:"currency",type:"address"}],internalType:"struct IDropClaimCondition_V2.ClaimCondition[]",name:"_phases",type:"tuple[]"},{internalType:"bool",name:"_resetClaimEligibility",type:"bool"}],name:"setClaimConditions",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_maxTotalSupply",type:"uint256"}],name:"setMaxTotalSupply",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_count",type:"uint256"}],name:"setMaxWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_count",type:"uint256"}],name:"setWalletClaimCount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"address",name:"_currency",type:"address"},{internalType:"uint256",name:"_pricePerToken",type:"uint256"},{internalType:"bool",name:"verifyMaxQuantityPerTransaction",type:"bool"}],name:"verifyClaim",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_conditionId",type:"uint256"},{internalType:"address",name:"_claimer",type:"address"},{internalType:"uint256",name:"_quantity",type:"uint256"},{internalType:"bytes32[]",name:"_proofs",type:"bytes32[]"},{internalType:"uint256",name:"_proofMaxQuantityPerTransaction",type:"uint256"}],name:"verifyClaimMerkleProof",outputs:[{internalType:"bool",name:"validMerkleProof",type:"bool"},{internalType:"uint256",name:"merkleProofIndex",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"walletClaimCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]});var vee=x(oot=>{"use strict";d();p();var sot=wi(),XAr=os(),CD=je(),bee=class{constructor(e,t){sot._defineProperty(this,"events",void 0),sot._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==CD.constants.AddressZero&&(i in n||(n[i]=CD.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==CD.constants.AddressZero&&(s in n||(n[s]=CD.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await XAr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};oot.TokenERC20History=bee});var uot=x(cot=>{"use strict";d();p();var po=wi(),ji=os(),eSr=vee(),tSr=ED(),rSr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Q_=class extends tSr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ji.ContractWrapper(e,t,i,a);super(o,n,s),po._defineProperty(this,"abi",void 0),po._defineProperty(this,"metadata",void 0),po._defineProperty(this,"app",void 0),po._defineProperty(this,"roles",void 0),po._defineProperty(this,"encoder",void 0),po._defineProperty(this,"estimator",void 0),po._defineProperty(this,"history",void 0),po._defineProperty(this,"events",void 0),po._defineProperty(this,"platformFees",void 0),po._defineProperty(this,"sales",void 0),po._defineProperty(this,"signature",void 0),po._defineProperty(this,"interceptor",void 0),po._defineProperty(this,"mint",ji.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),po._defineProperty(this,"mintTo",ji.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),po._defineProperty(this,"mintBatchTo",ji.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),po._defineProperty(this,"delegateTo",ji.buildTransactionFunction(async c=>ji.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await ji.resolveAddress(c)]}))),po._defineProperty(this,"burn",ji.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),po._defineProperty(this,"burnFrom",ji.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=i,this.metadata=new ji.ContractMetadata(this.contractWrapper,ji.TokenErc20ContractSchema,this.storage),this.app=new ji.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new ji.ContractRoles(this.contractWrapper,Q_.contractRoles),this.sales=new ji.ContractPrimarySale(this.contractWrapper),this.events=new ji.ContractEvents(this.contractWrapper),this.history=new eSr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new ji.ContractEncoder(this.contractWrapper),this.estimator=new ji.GasCostEstimator(this.contractWrapper),this.platformFees=new ji.ContractPlatformFee(this.contractWrapper),this.interceptor=new ji.ContractInterceptor(this.contractWrapper),this.signature=new ji.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await ji.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(ji.getRoleHash("transfer"),rSr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return ji.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{nSr.exports=[{inputs:[],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:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"platformFeeRecipient",type:"address"},{indexed:!1,internalType:"uint256",name:"platformFeeBps",type:"uint256"}],name:"PlatformFeeInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"}],name:"PrimarySaleRecipientUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"previousAdminRole",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"newAdminRole",type:"bytes32"}],name:"RoleAdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleGranted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"role",type:"bytes32"},{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"}],name:"RoleRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{indexed:!1,internalType:"uint256",name:"quantityMinted",type:"uint256"}],name:"TokensMinted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"signer",type:"address"},{indexed:!0,internalType:"address",name:"mintedTo",type:"address"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],indexed:!1,internalType:"struct ITokenERC20.MintRequest",name:"mintRequest",type:"tuple"}],name:"TokensMintedWithSignature",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:[],name:"DEFAULT_ADMIN_ROLE",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],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:"uint256",name:"amount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"burnFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint32",name:"pos",type:"uint32"}],name:"checkpoints",outputs:[{components:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint224",name:"votes",type:"uint224"}],internalType:"struct ERC20VotesUpgradeable.Checkpoint",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",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:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastTotalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPastVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getPlatformFeeInfo",outputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleAdmin",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getRoleMember",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"}],name:"getRoleMemberCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"grantRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"hasRole",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:[{internalType:"address",name:"_defaultAdmin",type:"address"},{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_symbol",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_primarySaleRecipient",type:"address"},{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"mintTo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"mintWithSignature",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"primarySaleRecipient",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"renounceRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"role",type:"bytes32"},{internalType:"address",name:"account",type:"address"}],name:"revokeRole",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"_uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_platformFeeRecipient",type:"address"},{internalType:"uint256",name:"_platformFeeBps",type:"uint256"}],name:"setPlatformFeeInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_saleRecipient",type:"address"}],name:"setPrimarySaleRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",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:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"primarySaleRecipient",type:"address"},{internalType:"uint256",name:"quantity",type:"uint256"},{internalType:"uint256",name:"price",type:"uint256"},{internalType:"address",name:"currency",type:"address"},{internalType:"uint128",name:"validityStartTimestamp",type:"uint128"},{internalType:"uint128",name:"validityEndTimestamp",type:"uint128"},{internalType:"bytes32",name:"uid",type:"bytes32"}],internalType:"struct ITokenERC20.MintRequest",name:"_req",type:"tuple"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"verify",outputs:[{internalType:"bool",name:"",type:"bool"},{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}]});var _ee=x(lot=>{"use strict";d();p();var aSr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});lot.VoteType=aSr});var pot=x(dot=>{"use strict";d();p();var sd=wi(),ho=os(),iSr=An(),o8=je(),xee=_ee();Ir();kr();xn();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function sSr(r){return r&&r.__esModule?r:{default:r}}var oSr=sSr(iSr),Tee=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ho.ContractWrapper(e,t,s,i);sd._defineProperty(this,"contractWrapper",void 0),sd._defineProperty(this,"storage",void 0),sd._defineProperty(this,"abi",void 0),sd._defineProperty(this,"metadata",void 0),sd._defineProperty(this,"app",void 0),sd._defineProperty(this,"encoder",void 0),sd._defineProperty(this,"estimator",void 0),sd._defineProperty(this,"events",void 0),sd._defineProperty(this,"interceptor",void 0),sd._defineProperty(this,"_chainId",void 0),sd._defineProperty(this,"propose",ho.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return ho.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),sd._defineProperty(this,"vote",ho.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),ho.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),sd._defineProperty(this,"execute",ho.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=o8.ethers.utils.id(l.description);return ho.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=s,this.contractWrapper=c,this.storage=n,this.metadata=new ho.ContractMetadata(this.contractWrapper,ho.VoteContractSchema,this.storage),this.app=new ho.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new ho.ContractEncoder(this.contractWrapper),this.estimator=new ho.GasCostEstimator(this.contractWrapper),this.events=new ho.ContractEvents(this.contractWrapper),this.interceptor=new ho.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(o8.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:xee.VoteType.Against,label:"Against",count:t.againstVotes},{type:xee.VoteType.For,label:"For",count:t.forVotes},{type:xee.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await ho.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=o8.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:o8.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new o8.Contract(await ho.resolveAddress(e),oSr.default,this.contractWrapper.getProvider());return await ho.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await ho.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return ho.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{cSr.exports=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"Empty",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"version",type:"uint8"}],name:"Initialized",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalCanceled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"address",name:"proposer",type:"address"},{indexed:!1,internalType:"address[]",name:"targets",type:"address[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"},{indexed:!1,internalType:"string[]",name:"signatures",type:"string[]"},{indexed:!1,internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{indexed:!1,internalType:"uint256",name:"startBlock",type:"uint256"},{indexed:!1,internalType:"uint256",name:"endBlock",type:"uint256"},{indexed:!1,internalType:"string",name:"description",type:"string"}],name:"ProposalCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"}],name:"ProposalExecuted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldProposalThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"ProposalThresholdSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldQuorumNumerator",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"QuorumNumeratorUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"}],name:"VoteCast",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"voter",type:"address"},{indexed:!1,internalType:"uint256",name:"proposalId",type:"uint256"},{indexed:!1,internalType:"uint8",name:"support",type:"uint8"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"},{indexed:!1,internalType:"string",name:"reason",type:"string"},{indexed:!1,internalType:"bytes",name:"params",type:"bytes"}],name:"VoteCastWithParams",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingDelay",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"VotingDelaySet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldVotingPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"VotingPeriodSet",type:"event"},{inputs:[],name:"BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"COUNTING_MODE",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"pure",type:"function"},{inputs:[],name:"EXTENDED_BALLOT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"}],name:"castVote",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"}],name:"castVoteWithReason",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"}],name:"castVoteWithReasonAndParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"uint8",name:"support",type:"uint8"},{internalType:"string",name:"reason",type:"string"},{internalType:"bytes",name:"params",type:"bytes"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"castVoteWithReasonAndParamsBySig",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"contractType",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"contractURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"contractVersion",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"execute",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"getAllProposals",outputs:[{components:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"string[]",name:"signatures",type:"string[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],internalType:"struct VoteERC20.Proposal[]",name:"allProposals",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getVotes",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"},{internalType:"bytes",name:"params",type:"bytes"}],name:"getVotesWithParams",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"account",type:"address"}],name:"hasVoted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"bytes32",name:"descriptionHash",type:"bytes32"}],name:"hashProposal",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"string",name:"_name",type:"string"},{internalType:"string",name:"_contractURI",type:"string"},{internalType:"address[]",name:"_trustedForwarders",type:"address[]"},{internalType:"address",name:"_token",type:"address"},{internalType:"uint256",name:"_initialVotingDelay",type:"uint256"},{internalType:"uint256",name:"_initialVotingPeriod",type:"uint256"},{internalType:"uint256",name:"_initialProposalThreshold",type:"uint256"},{internalType:"uint256",name:"_initialVoteQuorumFraction",type:"uint256"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"forwarder",type:"address"}],name:"isTrustedForwarder",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalDeadline",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalIndex",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalSnapshot",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proposalThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"proposalVotes",outputs:[{internalType:"uint256",name:"againstVotes",type:"uint256"},{internalType:"uint256",name:"forVotes",type:"uint256"},{internalType:"uint256",name:"abstainVotes",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"proposals",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"},{internalType:"address",name:"proposer",type:"address"},{internalType:"uint256",name:"startBlock",type:"uint256"},{internalType:"uint256",name:"endBlock",type:"uint256"},{internalType:"string",name:"description",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"targets",type:"address[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"},{internalType:"bytes[]",name:"calldatas",type:"bytes[]"},{internalType:"string",name:"description",type:"string"}],name:"propose",outputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorum",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumDenominator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"quorumNumerator",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"relay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"string",name:"uri",type:"string"}],name:"setContractURI",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newProposalThreshold",type:"uint256"}],name:"setProposalThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingDelay",type:"uint256"}],name:"setVotingDelay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newVotingPeriod",type:"uint256"}],name:"setVotingPeriod",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"proposalId",type:"uint256"}],name:"state",outputs:[{internalType:"enum IGovernorUpgradeable.ProposalState",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token",outputs:[{internalType:"contract IVotesUpgradeable",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newQuorumNumerator",type:"uint256"}],name:"updateQuorumNumerator",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingDelay",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"votingPeriod",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}]});var fot=x(hot=>{"use strict";d();p();function uSr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function lSr(r){var e=uSr(r,"string");return typeof e=="symbol"?e:String(e)}function dSr(r,e,t){return e=lSr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}hot._defineProperty=dSr});var kee=x(Iee=>{"use strict";d();p();Object.defineProperty(Iee,"__esModule",{value:!0});var mot=fot(),Cee=je(),ID=[{inputs:[{internalType:"address",name:"_logic",type:"address"},{internalType:"bytes",name:"_data",type:"bytes"}],stateMutability:"payable",type:"constructor"},{stateMutability:"payable",type:"fallback"},{stateMutability:"payable",type:"receive"}],yot="0x60806040526040516106ab3803806106ab83398101604081905261002291610261565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd61032f565b6000805160206106648339815191521461006957610069610354565b8161008e60008051602061066483398151915260001b6100d060201b6100521760201c565b80546001600160a01b0319166001600160a01b03929092169190911790558051156100c9576100c782826100d360201b6100551760201c565b505b50506103b9565b90565b60606100f88383604051806060016040528060278152602001610684602791396100ff565b9392505050565b60606001600160a01b0384163b61016c5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610187919061036a565b600060405180830381855af49150503d80600081146101c2576040519150601f19603f3d011682016040523d82523d6000602084013e6101c7565b606091505b5090925090506101d88282866101e2565b9695505050505050565b606083156101f15750816100f8565b8251156102015782518084602001fd5b8160405162461bcd60e51b81526004016101639190610386565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561024c578181015183820152602001610234565b8381111561025b576000848401525b50505050565b6000806040838503121561027457600080fd5b82516001600160a01b038116811461028b57600080fd5b60208401519092506001600160401b03808211156102a857600080fd5b818501915085601f8301126102bc57600080fd5b8151818111156102ce576102ce61021b565b604051601f8201601f19908116603f011681019083821181831017156102f6576102f661021b565b8160405282815288602084870101111561030f57600080fd5b610320836020830160208801610231565b80955050505050509250929050565b60008282101561034f57634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161037c818460208701610231565b9190910192915050565b60208152600082518060208401526103a5816040850160208701610231565b601f01601f19169190910160400192915050565b61029c806103c86000396000f3fe60806040523661001357610011610017565b005b6100115b61005061004b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b610081565b565b90565b606061007a8383604051806060016040528060278152602001610240602791396100a5565b9392505050565b3660008037600080366000845af43d6000803e8080156100a0573d6000f35b3d6000fd5b60606001600160a01b0384163b6101125760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b03168560405161012d91906101f0565b600060405180830381855af49150503d8060008114610168576040519150601f19603f3d011682016040523d82523d6000602084013e61016d565b606091505b509150915061017d828286610187565b9695505050505050565b6060831561019657508161007a565b8251156101a65782518084602001fd5b8160405162461bcd60e51b8152600401610109919061020c565b60005b838110156101db5781810151838201526020016101c3565b838111156101ea576000848401525b50505050565b600082516102028184602087016101c0565b9190910192915050565b602081526000825180602084015261022b8160408501602087016101c0565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a264697066735822122021848ba6bc44b36a69178dfbcc49ad6f4ba35ff12408d3dd35eee774bfe7426964736f6c634300080c0033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",pSr=r=>r.length>1,c8=class extends Cee.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";d();p();var hSr=xn(),Q=je(),fSr=Tn(),mSr=En(),ySr=Cn(),gSr=In(),bSr=kn(),vSr=An(),wSr=Sn(),_Sr=Pn(),xSr=Rn(),TSr=Mn(),ESr=Nn(),CSr=Bn(),ISr=Dn(),kSr=On(),ASr=ln(),SSr=Ln(),PSr=qn(),RSr=Fn(),MSr=Wn(),NSr=Un(),BSr=Hn(),DSr=jn(),OSr=zn(),LSr=Kn(),qSr=Gn(),FSr=Vn(),WSr=$n(),USr=Yn(),HSr=dn(),jSr=Jn(),zSr=Qn(),KSr=Zn(),GSr=Xn(),VSr=ea(),$Sr=ta(),YSr=ra(),JSr=na(),QSr=aa(),ZSr=ia(),XSr=sa(),ePr=oa(),tPr=ca(),rPr=ua(),nPr=la(),aPr=da(),$=wi(),de=kr(),L8=vt(),iPr=pa(),sPr=tn(),Yot=Qe(),oPr=ha(),jv=gn(),cPr=Gr(),uPr=Xr(),lPr=fa(),Aee=ma(),dPr=ya(),pPr=Fr(),hPr=hn(),fPr=ga(),mPr=ba(),yPr=va(),gPr=wa(),bPr=_a(),vPr=xa(),got=Ta(),wPr=Ea(),_Pr=Ca();function tt(r){return r&&r.__esModule?r:{default:r}}function Go(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Cte=tt(hSr),xPr=tt(fSr),Jot=tt(mSr),TPr=tt(ySr),Qot=tt(gSr),Zot=tt(bSr),yu=tt(vSr),EPr=tt(wSr),Xot=tt(_Sr),Ite=tt(xSr),CPr=tt(TSr),IPr=tt(ESr),kPr=tt(CSr),ect=tt(ISr),APr=tt(kSr),xc=tt(ASr),SPr=tt(SSr),PPr=tt(PSr),_p=tt(RSr),tct=tt(MSr),RPr=tt(NSr),MPr=tt(BSr),NPr=tt(DSr),BPr=tt(OSr),DPr=tt(LSr),OPr=tt(qSr),rct=tt(FSr),LPr=tt(WSr),qPr=tt(USr),zu=tt(HSr),FPr=tt(jSr),nct=tt(zSr),WPr=tt(KSr),UPr=tt(GSr),HPr=tt(VSr),jPr=tt($Sr),zPr=tt(YSr),KPr=tt(JSr),GPr=tt(QSr),VPr=tt(ZSr),$Pr=tt(XSr),YPr=tt(ePr),JPr=tt(tPr),QPr=tt(rPr),ZPr=tt(nPr),XPr=tt(aPr),e7r=tt(iPr),f8=tt(sPr),Dee=tt(Yot),act=tt(oPr),xt=tt(cPr),t7r=tt(lPr),ict=tt(dPr),ZO=tt(hPr),r7r=tt(fPr),n7r=tt(mPr),a7r=tt(yPr),i7r=tt(gPr),s7r=tt(bPr),o7r=tt(vPr),c7r=tt(wPr),u7r=tt(_Pr);function l7r(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Oee(r,e,t){l7r(r,e),e.set(r,t)}function d7r(r,e){return e.get?e.get.call(r):e.value}function sct(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function RD(r,e){var t=sct(r,e,"get");return d7r(r,t)}function p7r(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function Lee(r,e,t){var n=sct(r,e,"set");return p7r(r,n,t),t}var Ne=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),oct=[Ne.Mainnet,Ne.Goerli,Ne.Polygon,Ne.Mumbai,Ne.Fantom,Ne.FantomTestnet,Ne.Avalanche,Ne.AvalancheFujiTestnet,Ne.Optimism,Ne.OptimismGoerli,Ne.Arbitrum,Ne.ArbitrumGoerli,Ne.BinanceSmartChainMainnet,Ne.BinanceSmartChainTestnet,Ne.Hardhat,Ne.Localhost],qee=L8.defaultChains;function cct(r){r&&r.length>0?qee=r:qee=L8.defaultChains}function uct(){return qee}var lct="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",N1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",R1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",Ov="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",h7r="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",f7r="0xcdAD8FA86e18538aC207872E8ff3536501431B73",B1={[Ne.Mainnet]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:Ov,twRegistry:R1,twBYOCRegistry:Q.constants.AddressZero},[Ne.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:Ov,twRegistry:R1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Ne.Polygon]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:Ov,twRegistry:R1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Ne.Mumbai]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:Ov,twRegistry:R1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Ne.Avalanche]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:Ov,twRegistry:R1,twBYOCRegistry:Q.constants.AddressZero},[Ne.AvalancheFujiTestnet]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:Ov,twRegistry:R1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Fantom]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:R1,twBYOCRegistry:Q.constants.AddressZero},[Ne.FantomTestnet]:{openzeppelinForwarder:N1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:Ov,twRegistry:R1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Ne.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Q.constants.AddressZero},[Ne.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Q.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Ne.Hardhat]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero},[Ne.Localhost]:{openzeppelinForwarder:Q.constants.AddressZero,openzeppelinForwarderEOA:Q.constants.AddressZero,biconomyForwarder:Q.constants.AddressZero,twFactory:Q.constants.AddressZero,twRegistry:Q.constants.AddressZero,twBYOCRegistry:Q.constants.AddressZero}},Fee={[Ne.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Ne.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Ne.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Ne.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Ne.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Ne.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Ne.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Ne.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Ne.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Ne.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Ne.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Ne.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Ne.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function dct(r,e){if(r in Fee){let t=Fee[r];if(e in t)return t[e]}return null}function m8(r,e){return r===Ne.Hardhat||r===Ne.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Q.constants.AddressZero:B1[r]?.[e]}function pct(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:h7r}function Wee(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:f7r}function kte(r){let e=oct.find(a=>a===r),t=e?B1[e].biconomyForwarder:Q.constants.AddressZero,n=e?B1[e].openzeppelinForwarder:Q.constants.AddressZero;return t!==Q.constants.AddressZero?[n,t]:[n]}var q8=Q.utils.arrayify("0x80ac58cd"),F8=Q.utils.arrayify("0xd9b67a26"),Hu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",y8={[Ne.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Ne.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Ne.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Ne.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Ne.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Ne.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Ne.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Ne.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Ne.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function MD(r){let e=uct().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:y8[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Q.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var m7r={[Ne.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Ne.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Ne.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Ne.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Ne.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Ne.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Ne.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Ne.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},_l=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function XO(r){return!!(r&&r._isSigner)}function Ate(r){return!!(r&&r._isProvider)}function pi(r,e){let t,n;if(XO(r)?(t=r,r.provider&&(n=r.provider)):Ate(r)?n=r:n=g8(r,e),e?.readonlySettings&&(n=BD(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var hct=50,fct=250,y7r={timeLimitMs:hct,sizeLimit:fct},Uee=class extends Q.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y7r;super(e,t),$._defineProperty(this,"_timeLimitMs",void 0),$._defineProperty(this,"_sizeLimit",void 0),$._defineProperty(this,"_pendingBatchAggregator",void 0),$._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||fct,this._sizeLimit=n.sizeLimit||hct,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Q.utils.deepCopy(e),provider:this}),Q.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},See,Pee=new Map;async function mct(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;See||(See=pi("ethereum")[1]);let t;Pee.has(r)?t=Pee.get(r):t=See.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>mct(r)).refine(r=>!!r&&Q.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),As=de.z.union([de.z.string(),de.z.number(),de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r)),$s=As.transform(r=>r.toString()),yct=de.z.union([de.z.bigint(),de.z.custom(r=>Q.BigNumber.isBigNumber(r))]).transform(r=>Q.BigNumber.from(r).toString()),Ste=de.z.custom(r=>typeof r=="string"&&Q.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),Ti=de.z.union([Ste,g7r],{invalid_type_error:"Provided value was not a valid address or ENS name"}),W8=de.z.date().transform(r=>Q.BigNumber.from(Math.floor(r.getTime()/1e3))),Pte=W8.default(new Date(0)),U8=W8.default(new Date(Date.now()+1e3*60*60*24*365*10)),gct=de.z.object({gasLimit:$s.optional(),gasPrice:$s.optional(),maxFeePerGas:$s.optional(),maxPriorityFeePerGas:$s.optional(),nonce:$s.optional(),value:$s.optional(),blockTag:de.z.union([de.z.string(),de.z.number()]).optional(),from:Ti.optional(),type:de.z.number().optional()}).strict(),bct=de.z.object({rpc:de.z.array(de.z.string().url()),chainId:de.z.number(),nativeCurrency:de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),slug:de.z.string()}),Hee=de.z.object({supportedChains:de.z.array(bct).default(L8.defaultChains),thirdwebApiKey:de.z.string().optional().default($.DEFAULT_API_KEY),alchemyApiKey:de.z.string().optional().optional(),infuraApiKey:de.z.string().optional().optional(),readonlySettings:de.z.object({rpcUrl:de.z.string().url(),chainId:de.z.number().optional()}).optional(),gasSettings:de.z.object({maxPriceInGwei:de.z.number().min(1,"gas price cannot be less than 1").default(300),speed:de.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:de.z.union([de.z.object({openzeppelin:de.z.object({relayerUrl:de.z.string().url(),relayerForwarderAddress:de.z.string().optional(),useEOAForwarder:de.z.boolean().default(!1)}),experimentalChainlessSupport:de.z.boolean().default(!1)}),de.z.object({biconomy:de.z.object({apiId:de.z.string(),apiKey:de.z.string(),deadlineSeconds:de.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:de.z.array(de.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),vct=de.z.object({name:de.z.string(),symbol:de.z.string(),decimals:de.z.number()}),wct=vct.extend({value:As,displayValue:de.z.string()}),L0=de.z.object({merkle:de.z.record(de.z.string()).default({})}),ND=de.z.object({address:Ti,maxClaimable:$.QuantitySchema.default(0),price:$.QuantitySchema.optional(),currencyAddress:Ti.default(Q.ethers.constants.AddressZero).optional()}),H8=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>ND.parseAsync({address:e})))),de.z.array(ND)]),Rte=ND.extend({proof:de.z.array(de.z.string())}),Mte=de.z.object({merkleRoot:de.z.string(),claims:de.z.array(Rte)}),b7r=de.z.object({merkleRoot:de.z.string(),snapshotUri:de.z.string()}),_ct=de.z.object({name:de.z.string().optional()}).catchall(de.z.unknown()),j8=de.z.object({startTime:Pte,currencyAddress:de.z.string().default(Hu),price:$.AmountSchema.default(0),maxClaimableSupply:$.QuantitySchema,maxClaimablePerWallet:$.QuantitySchema,waitInSeconds:$s.default(0),merkleRootHash:$.BytesLikeSchema.default(Q.utils.hexZeroPad([0],32)),snapshot:de.z.optional(H8).nullable(),metadata:_ct.optional()}),xct=de.z.array(j8),v7r=j8.partial(),Nte=j8.extend({availableSupply:$.QuantitySchema,currentMintSupply:$.QuantitySchema,currencyMetadata:wct.default({value:Q.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:As,waitInSeconds:As,startTime:As.transform(r=>new Date(r.toNumber()*1e3)),snapshot:H8.optional().nullable()});function w7r(r){if(r===void 0){let e=b.Buffer.alloc(16);return pPr.v4({},e),Q.utils.hexlify(Q.utils.toUtf8Bytes(e.toString("hex")))}else return Q.utils.hexlify(r)}var eL=de.z.object({to:Ti.refine(r=>r.toLowerCase()!==Q.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:$.AmountSchema.default(0),currencyAddress:Ste.default(Hu),mintStartTime:Pte,mintEndTime:U8,uid:de.z.string().optional().transform(r=>w7r(r)),primarySaleRecipient:Ti.default(Q.constants.AddressZero)}),Bte=eL.extend({quantity:$.AmountSchema}),Tct=Bte.extend({mintStartTime:As,mintEndTime:As}),tL=eL.extend({metadata:$.NFTInputOrUriSchema,royaltyRecipient:de.z.string().default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0)}),Dte=tL.extend({uri:de.z.string(),royaltyBps:As,mintStartTime:As,mintEndTime:As}),Ect=tL.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:$s}),Cct=Ect.extend({tokenId:$s}),Ict=Dte.extend({tokenId:As,quantity:As}),kct=tL.extend({metadata:$.NFTInputOrUriSchema.default(""),quantity:As.default(1)}),Act=Dte.extend({quantity:As.default(1)}),Sct=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Pct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Rct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Mct=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Nct=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],El=de.z.object({name:de.z.string(),description:de.z.string().optional(),image:$.FileOrBufferOrStringSchema.optional(),external_link:de.z.string().optional(),app_uri:de.z.string().optional()}),od=El.extend({image:de.z.string().optional()}).catchall(de.z.unknown()),Ko=de.z.object({seller_fee_basis_points:$.BasisPointsSchema.default(0),fee_recipient:Ti.default(Q.constants.AddressZero)}),D1=de.z.object({primary_sale_recipient:Ti}),wp=de.z.object({platform_fee_basis_points:$.BasisPointsSchema.default(0),platform_fee_recipient:Ti.default(Q.constants.AddressZero)}),cd=de.z.object({trusted_forwarders:de.z.array(Ti).default([])}),yo=de.z.object({symbol:de.z.string().optional().default("")}),Bct=El.merge(Ko).merge(L0).merge(yo),_7r=od.merge(Ko).merge(L0).merge(yo),x7r=Bct.merge(wp).merge(D1).merge(cd),Ote={deploy:x7r,output:_7r,input:Bct},Dct=El.merge(Ko).merge(L0).merge(yo),T7r=od.merge(Ko).merge(L0).merge(yo),E7r=Dct.merge(wp).merge(D1).merge(cd),Oct={deploy:E7r,output:T7r,input:Dct},Lct=El,C7r=od,I7r=Lct.merge(wp).merge(cd),Lte={deploy:I7r,output:C7r,input:Lct},qct=El.merge(Ko).merge(yo),k7r=od.merge(Ko).merge(yo),A7r=qct.merge(wp).merge(cd),Fct={deploy:A7r,output:k7r,input:qct},Wct=de.z.object({address:Ti,sharesBps:$.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),S7r=Wct.extend({address:Ti,sharesBps:$.BasisPointsSchema}),jee=El.extend({recipients:de.z.array(Wct).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:de.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),P7r=od.extend({recipients:de.z.array(S7r)}),R7r=jee.merge(jee).merge(cd),Uct={deploy:R7r,output:P7r,input:jee},Hct=El.merge(yo),M7r=od.merge(yo),N7r=Hct.merge(wp).merge(D1).merge(cd),jct={deploy:N7r,output:M7r,input:Hct},zct=El.merge(Ko).merge(yo),B7r=od.merge(Ko).merge(yo),D7r=zct.merge(wp).merge(D1).merge(cd),Kct={deploy:D7r,output:B7r,input:zct},Gct=El.merge(Ko).merge(yo),O7r=od.merge(Ko).merge(yo),L7r=Gct.merge(wp).merge(D1).merge(cd),Vct={deploy:L7r,output:O7r,input:Gct},$ct=de.z.object({voting_delay_in_blocks:de.z.number().min(0).default(0),voting_period_in_blocks:de.z.number().min(1).default(1),voting_token_address:Ti,voting_quorum_fraction:$.PercentSchema.default(0),proposal_token_threshold:$s.default(1)}),q7r=$ct.extend({proposal_token_threshold:As}),Yct=El.merge($ct),F7r=od.merge(q7r),W7r=Yct.merge(cd),Jct={deploy:W7r,output:F7r,input:Yct};de.z.object({proposalId:As,proposer:de.z.string(),targets:de.z.array(de.z.string()),values:de.z.array(As),signatures:de.z.array(de.z.string()),calldatas:de.z.array(de.z.string()),startBlock:As,endBlock:As,description:de.z.string()});function U7r(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function g8(r,e){if(typeof r=="string"&&H7r(r))return BD(r);let t=Hee.parse(e);rL(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=U7r(t),a="",i;try{i=Qct(r,t),a=L8.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||$.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||$.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return BD(a,i)}function Qct(r,e){if(rL(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function rL(r){return typeof r!="string"&&typeof r!="number"&&!XO(r)&&!Ate(r)}function H7r(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var bot=new Map;function BD(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=bot.get(n);if(a)return a;let i=e?new Uee(r,e):new Q.providers.JsonRpcBatchProvider(r);return bot.set(n,i),i;case"ws":case"wss":return new Q.providers.WebSocketProvider(r,e)}}catch{}return Q.providers.getDefaultProvider(r)}var b8=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},zee=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},DD=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},Kee=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},Gee=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},Vee=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},$ee=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},Yee=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},Jee=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},Qee=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},Zee=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),$._defineProperty(this,"innerError",void 0),this.innerError=t}},OD=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},Xee=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},ete=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},tte=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},rte=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},nte=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},ate=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},rx=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},R0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},Ree=new WeakMap,Mee=new WeakMap,v8=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -94,7 +94,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=T1("from",e.from),t+=T1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=T1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=T1("rpc",n.hostname)}catch{}if(e.hash&&(t+=T1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=T1("value",`${Q.ethers.utils.formatEther(e.value)} ${G4[e.network.chainId]?.symbol||""}`)),t+=T1("data",`${e.data}`),e.method&&(t+=T1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=M1("from",e.from),t+=M1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=M1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=M1("rpc",n.hostname)}catch{}if(e.hash&&(t+=M1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=M1("value",`${Q.ethers.utils.formatEther(e.value)} ${y8[e.network.chainId]?.symbol||""}`)),t+=M1("data",`${e.data}`),e.method&&(t+=M1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -114,53 +114,53 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),cee(this,nee,{writable:!0,value:void 0}),cee(this,aee,{writable:!0,value:void 0}),uee(this,nee,e.reason),uee(this,aee,e)}get reason(){return lD(this,nee)}get info(){return lD(this,aee)}};function lte(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),Ist(/.*?"message":"([^"\\]*).*?/,e)||Ist(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function T1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),Oee(this,Ree,{writable:!0,value:void 0}),Oee(this,Mee,{writable:!0,value:void 0}),Lee(this,Ree,e.reason),Lee(this,Mee,e)}get reason(){return RD(this,Ree)}get info(){return RD(this,Mee)}};function qte(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),vot(/.*?"message":"([^"\\]*).*?/,e)||vot(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function M1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function Ist(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function Q4(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var ict=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],sct=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],oct=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Dx={},kst={};async function yD(r,e,t){let n=t.join("|"),a=kst[n],i=Date.now()-a>=2e3;if(!(n in Dx)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?Dx[n]=Q.BigNumber.from(o[0]):Dx[n]=Q.BigNumber.from(o),kst[n]=Date.now()}let s=Dx[n];return Dx[n]=Q.BigNumber.from(Dx[n]).add(1),s}function LPr(r){switch(r){case Ne.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ne.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var qPr=Q.ethers.utils.parseUnits("31","gwei"),FPr=Q.ethers.utils.parseUnits("1","gwei");function WPr(r){switch(r){case Ne.Polygon:return qPr;case Ne.Mumbai:return FPr}}async function cct(r){let e=LPr(r);try{let n=(await(await K4.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Q.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return WPr(r)}async function Z4(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Q.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Q.utils.joinSignature(Q.utils.splitSignature(s))}}var UPr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],HPr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],jPr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function zPr(r,e){let t=new Q.Contract(e,jPr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function KPr(r,e){let t=new Q.Contract(e,HPr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function VPr(r,e){return new Q.Contract(e,UPr,r).name()}async function GPr(r,e){let t=await KPr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Q.ethers.utils.hexZeroPad(Q.BigNumber.from(e.chainId).toHexString(),32)};return Q.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function uct(r,e,t,n,a,i,s){let o=await GPr(r,{name:await VPr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await zPr(r,e)).toString(),i=i||Q.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await Z4(r,o,u,c);return{message:c,signature:l}}var dte=()=>typeof window<"u",lct=()=>!dte();function $Pr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),$._defineProperty(this,"writeContract",void 0),$._defineProperty(this,"readContract",void 0),$._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Q.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),uee(this,sD,new Bv.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(dte())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.ethers.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await cct(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Q.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Q.ethers.utils.parseUnits(n.toString(),"gwei"),o=Q.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Q.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Q.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(gl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await Eot.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=Kx(Uu.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. +${r}:${e}`}function vot(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function w8(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Zct=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Xct=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],eut=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Z_={},wot={};async function LD(r,e,t){let n=t.join("|"),a=wot[n],i=Date.now()-a>=2e3;if(!(n in Z_)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?Z_[n]=Q.BigNumber.from(o[0]):Z_[n]=Q.BigNumber.from(o),wot[n]=Date.now()}let s=Z_[n];return Z_[n]=Q.BigNumber.from(Z_[n]).add(1),s}function j7r(r){switch(r){case Ne.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Ne.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var z7r=Q.ethers.utils.parseUnits("31","gwei"),K7r=Q.ethers.utils.parseUnits("1","gwei");function G7r(r){switch(r){case Ne.Polygon:return z7r;case Ne.Mumbai:return K7r}}async function tut(r){let e=j7r(r);try{let n=(await(await f8.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Q.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return G7r(r)}async function _8(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Q.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Q.utils.joinSignature(Q.utils.splitSignature(s))}}var V7r=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],$7r=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],Y7r=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function J7r(r,e){let t=new Q.Contract(e,Y7r,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function Q7r(r,e){let t=new Q.Contract(e,$7r,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function Z7r(r,e){return new Q.Contract(e,V7r,r).name()}async function X7r(r,e){let t=await Q7r(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Q.ethers.utils.hexZeroPad(Q.BigNumber.from(e.chainId).toHexString(),32)};return Q.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function rut(r,e,t,n,a,i,s){let o=await X7r(r,{name:await Z7r(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await J7r(r,e)).toString(),i=i||Q.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await _8(r,o,u,c);return{message:c,signature:l}}var Fte=()=>typeof window<"u",nut=()=>!Fte();function eRr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),$._defineProperty(this,"writeContract",void 0),$._defineProperty(this,"readContract",void 0),$._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Q.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),Lee(this,kD,new jv.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(Fte())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.ethers.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await tut(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Q.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Q.ethers.utils.parseUnits(n.toString(),"gwei"),o=Q.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Q.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Q.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(_l.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await gct.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=cx(ju.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. Expected function signature: ${s[0].signature}`);let c=`${e}(${o.inputs.map(l=>l.type).join()})`,u=c in this.readContract.functions?c:e;return o.stateMutability==="view"||o.stateMutability==="pure"?this.readContract[u](...n):{receipt:await this.sendTransaction(u,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Q.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Q.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=lte(e),L,F;try{let W=await P0(this.readContract.address,this.getProvider(),lD(this,sD));W.name&&(F=W.name),W.metadata.sources&&(L=await FO(W,lD(this,sD)))}catch{}return new J4({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();xt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Q.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Q.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Q.BigNumber.from(5e5)),n.gasLimit&&Q.BigNumber.from(n.gasLimit).gt(l)&&(l=Q.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(gl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await Z4(e,t,n,a);return this.emit(gl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){xt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();xt.default(t&&n,"signer and provider must be set");let a=new Q.ethers.Contract(V4(e.chainId,"biconomyForwarder"),oct,n),i=0,s=await yD(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Q.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Q.ethers.utils.arrayify(Q.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Q.ethers.utils.keccak256(o.data)]));this.emit(gl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(gl.Signature,{status:"completed",message:c,signature:u});let l=await K4.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){xt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();xt.default(t,"provider is not set"),xt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?C1[e.chainId].openzeppelinForwarderEOA:C1[e.chainId].openzeppelinForwarder),i=new Q.Contract(a,dot.default,n),s=await yD(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:sct},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data,chainid:Q.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:ict},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(gl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await uct(t,this.writeContract.address,e.from,y,E),{r:L,s:F,v:W}=Q.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Q.BigNumber.from(I.value).toString(),nonce:Q.BigNumber.from(I.nonce).toString(),deadline:Q.BigNumber.from(I.deadline).toString(),r:L,s:F,v:W},l=S}else{let{signature:y}=await Z4(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(gl.Signature,{status:"completed",message:u,signature:l});let m=await K4.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Nh(r){return r.toLowerCase()===Wu||r.toLowerCase()===Q.constants.AddressZero}function gD(r){return Nh(r)?Wu:r}async function gc(r,e,t){let n=await Qx(r,t);return Q.utils.parseUnits($.AmountSchema.parse(e),n.decimals)}async function Qx(r,e){if(Nh(e)){let t=await r.getNetwork(),n=dD(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Q.Contract(e,YSr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function mp(r,e,t){let n=await Qx(r,e);return{...n,value:Q.BigNumber.from(t),displayValue:Q.utils.formatUnits(t,n.decimals)}}async function I0(r,e,t,n){if(Nh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new ks(a||i,t,pu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function pte(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new ks(i||s,e,pu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Q.BigNumber.from(t).mul(Q.BigNumber.from(n)).div(Q.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function YPr(r,e,t){let n=r.getProvider(),a=new ks(n,e,pu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function JPr(r,e){let t=await r.readContract.decimals();return Q.utils.parseUnits($.AmountSchema.parse(e),t)}function QPr(r){return Q.utils.formatEther(r)}function ZPr(r){return Q.utils.parseEther($.AmountSchema.parse(r))}function XPr(r,e){return Q.utils.parseUnits($.AmountSchema.parse(r),e)}function e7r(r,e){return Q.utils.formatUnits(r,e)}async function dct(r,e,t,n,a,i,s,o,c){let u=am(t.maxClaimablePerWallet,a),l=[Q.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Q.constants.AddressZero)){let I=await OO(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Q.ethers.constants.MaxUint256:await gc(i.getProvider(),I.price,I.currencyAddress||Q.ethers.constants.AddressZero),f=I.currencyAddress||Q.ethers.constants.AddressZero;else if(c===Ov.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Q.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Q.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Nh(E)?m.value=Q.BigNumber.from(y).mul(e).div(Q.ethers.utils.parseUnits("1",a)):o&&await pte(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function t7r(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await yl.fromUri(n,t))?.getAllEntries()||null;{let i=await ate.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function OO(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await yl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await ate.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function pct(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Q.ethers.utils.formatUnits(a,n),s=await w8.parseAsync({...t[r],price:i,...e}),o=await ite.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Q.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function r7r(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await mct(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Q.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function n7r(r,e){let t=Q.BigNumber.from(r),n=Q.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function hct(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await r7r(r,e,t,n,a),o=await Sot.parseAsync(i),c=(await Promise.all(o.map(u=>a7r(u,e,t,n)))).sort((u,l)=>n7r(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function a7r(r,e,t,n){let a=r.currencyAddress===Q.constants.AddressZero?Wu:r.currencyAddress,i=am(r.maxClaimableSupply,e),s=am(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await gc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function bD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function vD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function wD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function xD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function _D(r,e,t,n,a,i){let s=await mp(t,r.currency,r.pricePerToken),o=W4(r.maxClaimableSupply,e),c=W4(r.maxClaimablePerWallet,e),u=W4(Q.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=W4(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),ite.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Q.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await t7r(r.merkleRoot,n,a):void 0,metadata:h})}function W4(r,e){return r.toString()===Q.ethers.constants.MaxUint256.toString()?"unlimited":Q.ethers.utils.formatUnits(r,e)}function am(r,e){return r==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(r,e)}async function fct(r,e,t,n,a){let i={},s=n||Wu,c=(await gc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Wu?i={value:c}:s!==Wu&&a&&await pte(r,s,c,t,0)),i}var i7r=2,Ov=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),yl=class{constructor(e,t,n,a,i){$._defineProperty(this,"shardNybbles",void 0),$._defineProperty(this,"shards",void 0),$._defineProperty(this,"trees",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"baseUri",void 0),$._defineProperty(this,"originalEntriesUri",void 0),$._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return yl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new yl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case Ov.V1:return Q.utils.solidityKeccak256(["address","uint256"],[e.address,am(e.maxClaimable,t)]);case Ov.V2:return Q.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,am(e.maxClaimable,t),am(e.price||"unlimited",n),e.currencyAddress||Q.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await Qx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:i7r,o=await v8.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,G]=F;return[W,new eee.MerkleTree(await Promise.all(G.map(async K=>{let H=await yl.fetchAndCacheDecimals(u,n,K.currencyAddress);return yl.hashEntry(K,t,H,i)})),Q.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new eee.MerkleTree(Object.values(h),Q.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let G={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(G),name:`${F}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await yl.fetchAndCacheDecimals(s,t,f.currencyAddress);return yl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new eee.MerkleTree(h,Q.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await yl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=yl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return nte.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function mct(r,e,t,n,a){let i=await v8.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(Tct(),this?this.decode(e,t):jx.prototype.decode.call(Vst,e,t)));Mv=t>-1?t:e.length,Ce=0,c8=0,VD=null,ho=null,Qe=e;try{Fu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Qe=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof jx){if($r=this,bl=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ls=this.structures,Gst();(!ls||ls.length>0)&&(ls=[])}else $r=Vst,(!ls||ls.length>0)&&(ls=[]),bl=null;return Gst()}};function Gst(){try{let r=bn();if(ho){if(Ce>=ho.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ce=ho.postBundlePosition,ho=null}if(Ce==Mv)ls=null,Qe=null,Ih&&(Ih=null);else if(Ce>Mv){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!Dee)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw Tct(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function bn(){let r=Qe[Ce++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Qe[Ce++];break;case 25:if(e==7)return y7r();r=Fu.getUint16(Ce),Ce+=2;break;case 26:if(e==7){let t=Fu.getFloat32(Ce);if($r.useFloat32>2){let n=Ect[(Qe[Ce]&127)<<1|Qe[Ce+1]>>7];return Ce+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ce+=4,t}r=Fu.getUint32(Ce),Ce+=4;break;case 27:if(e==7){let t=Fu.getFloat64(Ce);return Ce+=8,t}if(e>1){if(Fu.getUint32(Ce)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Fu.getUint32(Ce+4)}else $r.int64AsNumber?(r=Fu.getUint32(Ce)*4294967296,r+=Fu.getUint32(Ce+4)):r=Fu.getBigUint64(Ce);Ce+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=bn())!=Ox;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if($r.mapsAsObjects){let s={};if($r.keyMap)for(;(i=bn())!=Ox;)s[im($r.decodeKey(i))]=bn();else for(;(i=bn())!=Ox;)s[im(i)]=bn();return s}else{U4&&($r.mapsAsObjects=!0,U4=!1);let s=new Map;if($r.keyMap)for(;(i=bn())!=Ox;)s.set($r.decodeKey(i),bn());else for(;(i=bn())!=Ox;)s.set(i,bn());return s}case 7:return Ox;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return m7r(r);case 3:if(c8>=Ce)return VD.slice(Ce-GD,(Ce+=r)-GD);if(c8==0&&Mv<140&&r<32){let a=r<16?vct(r):f7r(r);if(a!=null)return a}return h7r(r);case 4:let t=new Array(r);for(let a=0;a=zst){let a=ls[r&8191];if(a)return a.read||(a.read=Oee(a)),a.read();if(r<65536){if(r==p7r)return qee(bn());if(r==d7r){let i=H4(),s=bn();for(let o=2;o23)switch(t){case 24:t=Qe[Ce++];break;case 25:t=Fu.getUint16(Ce),Ce+=2;break;case 26:t=Fu.getUint32(Ce),Ce+=4;break;default:throw new Error("Expected array header, but got "+Qe[Ce-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(bn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=$r.keyMap?new Function("r","return {"+i.map(s=>$r.decodeKey(s)).map(s=>$st.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>$st.test(s)?im(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(bn)}let a={};if($r.keyMap)for(let i=0;i64&&Nee)return Nee.decode(Qe.subarray(Ce,Ce+=r));let t=Ce+r,n=[];for(e="";Ce65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Uo.apply(String,n),n.length=0)}return n.length>0&&(e+=Uo.apply(String,n)),e}var Uo=String.fromCharCode;function f7r(r){let e=Ce,t=new Array(r);for(let n=0;n0){Ce=e;return}t[n]=a}return Uo.apply(String,t)}function vct(r){if(r<4)if(r<2){if(r===0)return"";{let e=Qe[Ce++];if((e&128)>1){Ce-=1;return}return Uo(e)}}else{let e=Qe[Ce++],t=Qe[Ce++];if((e&128)>0||(t&128)>0){Ce-=2;return}if(r<3)return Uo(e,t);let n=Qe[Ce++];if((n&128)>0){Ce-=3;return}return Uo(e,t,n)}else{let e=Qe[Ce++],t=Qe[Ce++],n=Qe[Ce++],a=Qe[Ce++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ce-=4;return}if(r<6){if(r===4)return Uo(e,t,n,a);{let i=Qe[Ce++];if((i&128)>0){Ce-=5;return}return Uo(e,t,n,a,i)}}else if(r<8){let i=Qe[Ce++],s=Qe[Ce++];if((i&128)>0||(s&128)>0){Ce-=6;return}if(r<7)return Uo(e,t,n,a,i,s);let o=Qe[Ce++];if((o&128)>0){Ce-=7;return}return Uo(e,t,n,a,i,s,o)}else{let i=Qe[Ce++],s=Qe[Ce++],o=Qe[Ce++],c=Qe[Ce++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ce-=8;return}if(r<10){if(r===8)return Uo(e,t,n,a,i,s,o,c);{let u=Qe[Ce++];if((u&128)>0){Ce-=9;return}return Uo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Qe[Ce++],l=Qe[Ce++];if((u&128)>0||(l&128)>0){Ce-=10;return}if(r<11)return Uo(e,t,n,a,i,s,o,c,u,l);let h=Qe[Ce++];if((h&128)>0){Ce-=11;return}return Uo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Qe[Ce++],l=Qe[Ce++],h=Qe[Ce++],f=Qe[Ce++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ce-=12;return}if(r<14){if(r===12)return Uo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Qe[Ce++];if((m&128)>0){Ce-=13;return}return Uo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Qe[Ce++],y=Qe[Ce++];if((m&128)>0||(y&128)>0){Ce-=14;return}if(r<15)return Uo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Qe[Ce++];if((E&128)>0){Ce-=15;return}return Uo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function m7r(r){return $r.copyBuffers?Uint8Array.prototype.slice.call(Qe,Ce,Ce+=r):Qe.subarray(Ce,Ce+=r)}var wct=new Float32Array(1),oD=new Uint8Array(wct.buffer,0,4);function y7r(){let r=Qe[Ce++],e=Qe[Ce++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return oD[3]=r&128|(t>>1)+56,oD[2]=(r&7)<<5|e>>3,oD[1]=e<<5,oD[0]=0,wct[0]}var zx=class{constructor(e,t){this.value=e,this.tag=t}};zi[0]=r=>new Date(r);zi[1]=r=>new Date(Math.round(r*1e3));zi[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-zi[2](r);zi[4]=r=>Number(r[1]+"e"+r[0]);zi[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var qee=r=>{let e=r[0]-57344,t=r[1],n=ls[e];n&&n.isShared&&((ls.restoreStructures||(ls.restoreStructures=[]))[e]=n),ls[e]=t,t.read=Oee(t);let a={};if($r.keyMap)for(let i=2,s=r.length;iho?ho[0].slice(ho.position0,ho.position0+=r):new zx(r,14);zi[15]=r=>ho?ho[1].slice(ho.position1,ho.position1+=r):new zx(r,15);var g7r={Error,RegExp};zi[27]=r=>(g7r[r[0]]||Error)(r[1],r[2]);var xct=r=>{if(Qe[Ce++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return bl=bl?e.concat(bl.slice(e.length)):e,bl.prefixes=r(),bl.suffixes=r(),r()};xct.handlesRead=!0;zi[51]=xct;zi[Kst]=r=>{if(!bl)if($r.getShared)fte();else return new zx(r,Kst);if(typeof r=="number")return bl[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};zi[25]=r=>stringRefs[r];zi[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};zi[256].handlesRead=!0;zi[28]=r=>{Ih||(Ih=new Map,Ih.id=0);let e=Ih.id++,t=Qe[Ce],n;t>>5==4?n=[]:n={};let a={target:n};Ih.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};zi[28].handlesRead=!0;zi[29]=r=>{let e=Ih.get(r);return e.used=!0,e.target};zi[258]=r=>new Set(r);(zi[259]=r=>($r.mapsAsObjects&&($r.mapsAsObjects=!1,U4=!0),r())).handlesRead=!0;function Lx(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function Av(){if(!bl)if($r.getShared)fte();else throw new Error("No packed values available");return bl}var b7r=1399353956;Bee.push((r,e)=>{if(r>=225&&r<=255)return Lx(Av().prefixes[r-224],e);if(r>=28704&&r<=32767)return Lx(Av().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return Lx(Av().prefixes[r-1879048192],e);if(r>=216&&r<=223)return Lx(e,Av().suffixes[r-216]);if(r>=27647&&r<=28671)return Lx(e,Av().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return Lx(e,Av().suffixes[r-1811939328]);if(r==b7r)return{packedValues:bl,structures:ls.slice(0),version:e};if(r==55799)return e});var v7r=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Yst=[Uint8Array],w7r=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Qe[Ce++];break;case 25:r=Fu.getUint16(Ce),Ce+=2;break;case 26:r=Fu.getUint32(Ce),Ce+=4;break}return r}function fte(){if($r.getShared){let r=_ct(()=>(Qe=null,$r.getShared()))||{},e=r.structures||[];$r.sharedVersion=r.version,bl=$r.sharedValues=r.packedValues,ls===!0?$r.structures=ls=e:ls.splice.apply(ls,[0,e.length].concat(e))}}function _ct(r){let e=Mv,t=Ce,n=GD,a=c8,i=VD,s=Ih,o=ho,c=new Uint8Array(Qe.slice(0,Mv)),u=ls,l=$r,h=Dee,f=r();return Mv=e,Ce=t,GD=n,c8=a,VD=i,Ih=s,ho=o,Qe=c,Dee=h,ls=u,$r=l,Fu=new DataView(Qe.buffer,Qe.byteOffset,Qe.byteLength),f}function Tct(){Qe=null,Ih=null,ls=null}var Ect=new Array(147);for(let r=0;r<256;r++)Ect[r]=Number("1e"+Math.floor(45.15-r*.30103));var T7r=new jx({useRecords:!1}),E7r=T7r.decode;function C7r(r,e){return mte(r,e.abis)}function I7r(r,e){return mte(r.abi,[e])}function mte(r,e){let t=Kx(r),n=e.flatMap(i=>Kx(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function Cct(r,e){let t=await Vx(r,e);return yte(t.abi)}async function Ict(r,e){let t=await Vx(r,e);return Kx(t.abi,t.metadata)}function kct(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function yte(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function Act(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function Kx(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=kct(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${Fee(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>Fee(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function Sct(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=kct(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function Fee(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>Fee(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function Pct(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function u8(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=Pct(t);if(n)return await u8(n,e)}catch{}try{let n=await e.getStorageAt(r,Q.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Q.ethers.utils.hexStripZeros(n);if(a!=="0x")return await u8(a,e)}catch{}return await Rct(t)}function Rct(r){let e=k7r(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=E7r(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${$Sr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function k7r(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!A7r(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:u7r,t={};for(let n in e){let a=e[n],i=C7r(r,a),s=x8(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function vte(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),vte(n.features,e)}}function S7r(r){let e=[];return vte(x8(r),e),e}function Wee(r){let e=[];return vte(x8(r),e),e.map(t=>t.name)}function Gx(r,e){let t=x8(r);return Mct(t,e)}function Xt(r,e){if(!r)throw new C0(e);return r}function $e(r,e){return Gx(Uu.parse(r.abi),e)}function Mct(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=Mct(s.features,e),a)break}return a}return r[e].enabled}function po(r,e){return r in e.readContract.functions}async function $D(r,e,t,n,a){let i=[];try{let s=Gx(Uu.parse(e),"PluginRouter");if(Gx(Uu.parse(e),"ExtensionRouter")){let l=(await new ks(t,r,bct,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await Jst(l,t,a)}else if(s){let l=(await new ks(t,r,gct,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await Jst(h,t,a)}}catch{}return i.length>0?R7r([e,...i]):e}function P7r(r){let e=Gx(Uu.parse(r),"PluginRouter");return Gx(Uu.parse(r),"ExtensionRouter")||e}async function Jst(r,e,t){return(await Promise.all(r.map(n=>P0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function R7r(r){let e=r.map(a=>Uu.parse(a)).flat(),n=$Pr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Uu.parse(n)}var De=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new De(n)}static async fromContractInfo(e){let t=e.storage||new Bv.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await P0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Q.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new De(i)}constructor(e){$._defineProperty(this,"contract",void 0),$._defineProperty(this,"method",void 0),$._defineProperty(this,"args",void 0),$._defineProperty(this,"overrides",void 0),$._defineProperty(this,"provider",void 0),$._defineProperty(this,"signer",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"gaslessOptions",void 0),$._defineProperty(this,"parse",void 0),$._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new Bv.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Q.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Q.BigNumber.from(Math.floor(Q.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Q.BigNumber.from(Math.floor(Q.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Q.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(nSr.FormatTypes.json));P7r(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){xt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Q.utils.solidityPack(["bytes","address"],[m,f]))}xt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Q.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Q.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Q.BigNumber.from(5e5)),this.overrides.gasLimit&&Q.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Q.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await s7r(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(dte())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await cct(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Q.utils.parseUnits("300","gwei"),i=Q.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Q.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Q.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` +`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=qte(e),L,F;try{let W=await O0(this.readContract.address,this.getProvider(),RD(this,kD));W.name&&(F=W.name),W.metadata.sources&&(L=await sL(W,RD(this,kD)))}catch{}return new v8({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();xt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Q.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Q.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Q.BigNumber.from(5e5)),n.gasLimit&&Q.BigNumber.from(n.gasLimit).gt(l)&&(l=Q.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(_l.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await _8(e,t,n,a);return this.emit(_l.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){xt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();xt.default(t&&n,"signer and provider must be set");let a=new Q.ethers.Contract(m8(e.chainId,"biconomyForwarder"),eut,n),i=0,s=await LD(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Q.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Q.ethers.utils.arrayify(Q.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Q.ethers.utils.keccak256(o.data)]));this.emit(_l.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(_l.Signature,{status:"completed",message:c,signature:u});let l=await f8.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){xt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();xt.default(t,"provider is not set"),xt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?B1[e.chainId].openzeppelinForwarderEOA:B1[e.chainId].openzeppelinForwarder),i=new Q.Contract(a,act.default,n),s=await LD(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Xct},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data,chainid:Q.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Zct},u={from:e.from,to:e.to,value:Q.BigNumber.from(0).toString(),gas:Q.BigNumber.from(e.gasLimit).toString(),nonce:Q.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(_l.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await rut(t,this.writeContract.address,e.from,y,E),{r:L,s:F,v:W}=Q.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Q.BigNumber.from(I.value).toString(),nonce:Q.BigNumber.from(I.nonce).toString(),deadline:Q.BigNumber.from(I.deadline).toString(),r:L,s:F,v:W},l=S}else{let{signature:y}=await _8(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(_l.Signature,{status:"completed",message:u,signature:l});let m=await f8.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Dh(r){return r.toLowerCase()===Hu||r.toLowerCase()===Q.constants.AddressZero}function qD(r){return Dh(r)?Hu:r}async function _c(r,e,t){let n=await fx(r,t);return Q.utils.parseUnits($.AmountSchema.parse(e),n.decimals)}async function fx(r,e){if(Dh(e)){let t=await r.getNetwork(),n=MD(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Q.Contract(e,t7r.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function gp(r,e,t){let n=await fx(r,e);return{...n,value:Q.BigNumber.from(t),displayValue:Q.utils.formatUnits(t,n.decimals)}}async function M0(r,e,t,n){if(Dh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Ss(a||i,t,yu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function Wte(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Ss(i||s,e,yu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Q.BigNumber.from(t).mul(Q.BigNumber.from(n)).div(Q.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function tRr(r,e,t){let n=r.getProvider(),a=new Ss(n,e,yu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function rRr(r,e){let t=await r.readContract.decimals();return Q.utils.parseUnits($.AmountSchema.parse(e),t)}function nRr(r){return Q.utils.formatEther(r)}function aRr(r){return Q.utils.parseEther($.AmountSchema.parse(r))}function iRr(r,e){return Q.utils.parseUnits($.AmountSchema.parse(r),e)}function sRr(r,e){return Q.utils.formatUnits(r,e)}async function aut(r,e,t,n,a,i,s,o,c){let u=sm(t.maxClaimablePerWallet,a),l=[Q.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Q.constants.AddressZero)){let I=await nL(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Q.ethers.constants.MaxUint256:await _c(i.getProvider(),I.price,I.currencyAddress||Q.ethers.constants.AddressZero),f=I.currencyAddress||Q.ethers.constants.AddressZero;else if(c===Kv.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Q.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Q.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Dh(E)?m.value=Q.BigNumber.from(y).mul(e).div(Q.ethers.utils.parseUnits("1",a)):o&&await Wte(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function oRr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await wl.fromUri(n,t))?.getAllEntries()||null;{let i=await Mte.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function nL(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await wl.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await Mte.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function iut(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Q.ethers.utils.formatUnits(a,n),s=await j8.parseAsync({...t[r],price:i,...e}),o=await Nte.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Q.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function cRr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await cut(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Q.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function uRr(r,e){let t=Q.BigNumber.from(r),n=Q.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function sut(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await cRr(r,e,t,n,a),o=await xct.parseAsync(i),c=(await Promise.all(o.map(u=>lRr(u,e,t,n)))).sort((u,l)=>uRr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function lRr(r,e,t,n){let a=r.currencyAddress===Q.constants.AddressZero?Hu:r.currencyAddress,i=sm(r.maxClaimableSupply,e),s=sm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await _c(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function FD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function WD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function UD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function HD(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function jD(r,e,t,n,a,i){let s=await gp(t,r.currency,r.pricePerToken),o=u8(r.maxClaimableSupply,e),c=u8(r.maxClaimablePerWallet,e),u=u8(Q.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=u8(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),Nte.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Q.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await oRr(r.merkleRoot,n,a):void 0,metadata:h})}function u8(r,e){return r.toString()===Q.ethers.constants.MaxUint256.toString()?"unlimited":Q.ethers.utils.formatUnits(r,e)}function sm(r,e){return r==="unlimited"?Q.ethers.constants.MaxUint256:Q.ethers.utils.parseUnits(r,e)}async function out(r,e,t,n,a){let i={},s=n||Hu,c=(await _c(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Hu?i={value:c}:s!==Hu&&a&&await Wte(r,s,c,t,0)),i}var dRr=2,Kv=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),wl=class{constructor(e,t,n,a,i){$._defineProperty(this,"shardNybbles",void 0),$._defineProperty(this,"shards",void 0),$._defineProperty(this,"trees",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"baseUri",void 0),$._defineProperty(this,"originalEntriesUri",void 0),$._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return wl.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new wl(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case Kv.V1:return Q.utils.solidityKeccak256(["address","uint256"],[e.address,sm(e.maxClaimable,t)]);case Kv.V2:return Q.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,sm(e.maxClaimable,t),sm(e.price||"unlimited",n),e.currencyAddress||Q.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await fx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:dRr,o=await H8.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new Aee.MerkleTree(await Promise.all(V.map(async K=>{let H=await wl.fetchAndCacheDecimals(u,n,K.currencyAddress);return wl.hashEntry(K,t,H,i)})),Q.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new Aee.MerkleTree(Object.values(h),Q.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await wl.fetchAndCacheDecimals(s,t,f.currencyAddress);return wl.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new Aee.MerkleTree(h,Q.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await wl.fetchAndCacheDecimals(s,t,o.currencyAddress),u=wl.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return Rte.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function cut(r,e,t,n,a){let i=await H8.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(yut(),this?this.decode(e,t):sx.prototype.decode.call(Fot,e,t)));Uv=t>-1?t:e.length,Ce=0,R8=0,hO=null,mo=null,Ze=e;try{Uu=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Ze=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof sx){if(Vr=this,xl=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return ls=this.structures,Wot();(!ls||ls.length>0)&&(ls=[])}else Vr=Fot,(!ls||ls.length>0)&&(ls=[]),xl=null;return Wot()}};function Wot(){try{let r=bn();if(mo){if(Ce>=mo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ce=mo.postBundlePosition,mo=null}if(Ce==Uv)ls=null,Ze=null,Ah&&(Ah=null);else if(Ce>Uv){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!ute)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw yut(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function bn(){let r=Ze[Ce++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Ze[Ce++];break;case 25:if(e==7)return xRr();r=Uu.getUint16(Ce),Ce+=2;break;case 26:if(e==7){let t=Uu.getFloat32(Ce);if(Vr.useFloat32>2){let n=gut[(Ze[Ce]&127)<<1|Ze[Ce+1]>>7];return Ce+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ce+=4,t}r=Uu.getUint32(Ce),Ce+=4;break;case 27:if(e==7){let t=Uu.getFloat64(Ce);return Ce+=8,t}if(e>1){if(Uu.getUint32(Ce)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Uu.getUint32(Ce+4)}else Vr.int64AsNumber?(r=Uu.getUint32(Ce)*4294967296,r+=Uu.getUint32(Ce+4)):r=Uu.getBigUint64(Ce);Ce+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=bn())!=X_;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Vr.mapsAsObjects){let s={};if(Vr.keyMap)for(;(i=bn())!=X_;)s[om(Vr.decodeKey(i))]=bn();else for(;(i=bn())!=X_;)s[om(i)]=bn();return s}else{l8&&(Vr.mapsAsObjects=!0,l8=!1);let s=new Map;if(Vr.keyMap)for(;(i=bn())!=X_;)s.set(Vr.decodeKey(i),bn());else for(;(i=bn())!=X_;)s.set(i,bn());return s}case 7:return X_;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return _Rr(r);case 3:if(R8>=Ce)return hO.slice(Ce-fO,(Ce+=r)-fO);if(R8==0&&Uv<140&&r<32){let a=r<16?put(r):wRr(r);if(a!=null)return a}return vRr(r);case 4:let t=new Array(r);for(let a=0;a=Lot){let a=ls[r&8191];if(a)return a.read||(a.read=lte(a)),a.read();if(r<65536){if(r==bRr)return pte(bn());if(r==gRr){let i=d8(),s=bn();for(let o=2;o23)switch(t){case 24:t=Ze[Ce++];break;case 25:t=Uu.getUint16(Ce),Ce+=2;break;case 26:t=Uu.getUint32(Ce),Ce+=4;break;default:throw new Error("Expected array header, but got "+Ze[Ce-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(bn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Vr.keyMap?new Function("r","return {"+i.map(s=>Vr.decodeKey(s)).map(s=>Uot.test(s)?om(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>Uot.test(s)?om(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(bn)}let a={};if(Vr.keyMap)for(let i=0;i64&&ote)return ote.decode(Ze.subarray(Ce,Ce+=r));let t=Ce+r,n=[];for(e="";Ce65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=jo.apply(String,n),n.length=0)}return n.length>0&&(e+=jo.apply(String,n)),e}var jo=String.fromCharCode;function wRr(r){let e=Ce,t=new Array(r);for(let n=0;n0){Ce=e;return}t[n]=a}return jo.apply(String,t)}function put(r){if(r<4)if(r<2){if(r===0)return"";{let e=Ze[Ce++];if((e&128)>1){Ce-=1;return}return jo(e)}}else{let e=Ze[Ce++],t=Ze[Ce++];if((e&128)>0||(t&128)>0){Ce-=2;return}if(r<3)return jo(e,t);let n=Ze[Ce++];if((n&128)>0){Ce-=3;return}return jo(e,t,n)}else{let e=Ze[Ce++],t=Ze[Ce++],n=Ze[Ce++],a=Ze[Ce++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ce-=4;return}if(r<6){if(r===4)return jo(e,t,n,a);{let i=Ze[Ce++];if((i&128)>0){Ce-=5;return}return jo(e,t,n,a,i)}}else if(r<8){let i=Ze[Ce++],s=Ze[Ce++];if((i&128)>0||(s&128)>0){Ce-=6;return}if(r<7)return jo(e,t,n,a,i,s);let o=Ze[Ce++];if((o&128)>0){Ce-=7;return}return jo(e,t,n,a,i,s,o)}else{let i=Ze[Ce++],s=Ze[Ce++],o=Ze[Ce++],c=Ze[Ce++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ce-=8;return}if(r<10){if(r===8)return jo(e,t,n,a,i,s,o,c);{let u=Ze[Ce++];if((u&128)>0){Ce-=9;return}return jo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Ze[Ce++],l=Ze[Ce++];if((u&128)>0||(l&128)>0){Ce-=10;return}if(r<11)return jo(e,t,n,a,i,s,o,c,u,l);let h=Ze[Ce++];if((h&128)>0){Ce-=11;return}return jo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Ze[Ce++],l=Ze[Ce++],h=Ze[Ce++],f=Ze[Ce++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ce-=12;return}if(r<14){if(r===12)return jo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Ze[Ce++];if((m&128)>0){Ce-=13;return}return jo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Ze[Ce++],y=Ze[Ce++];if((m&128)>0||(y&128)>0){Ce-=14;return}if(r<15)return jo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Ze[Ce++];if((E&128)>0){Ce-=15;return}return jo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function _Rr(r){return Vr.copyBuffers?Uint8Array.prototype.slice.call(Ze,Ce,Ce+=r):Ze.subarray(Ce,Ce+=r)}var hut=new Float32Array(1),AD=new Uint8Array(hut.buffer,0,4);function xRr(){let r=Ze[Ce++],e=Ze[Ce++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return AD[3]=r&128|(t>>1)+56,AD[2]=(r&7)<<5|e>>3,AD[1]=e<<5,AD[0]=0,hut[0]}var ox=class{constructor(e,t){this.value=e,this.tag=t}};zi[0]=r=>new Date(r);zi[1]=r=>new Date(Math.round(r*1e3));zi[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-zi[2](r);zi[4]=r=>Number(r[1]+"e"+r[0]);zi[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var pte=r=>{let e=r[0]-57344,t=r[1],n=ls[e];n&&n.isShared&&((ls.restoreStructures||(ls.restoreStructures=[]))[e]=n),ls[e]=t,t.read=lte(t);let a={};if(Vr.keyMap)for(let i=2,s=r.length;imo?mo[0].slice(mo.position0,mo.position0+=r):new ox(r,14);zi[15]=r=>mo?mo[1].slice(mo.position1,mo.position1+=r):new ox(r,15);var TRr={Error,RegExp};zi[27]=r=>(TRr[r[0]]||Error)(r[1],r[2]);var fut=r=>{if(Ze[Ce++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return xl=xl?e.concat(xl.slice(e.length)):e,xl.prefixes=r(),xl.suffixes=r(),r()};fut.handlesRead=!0;zi[51]=fut;zi[qot]=r=>{if(!xl)if(Vr.getShared)Hte();else return new ox(r,qot);if(typeof r=="number")return xl[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};zi[25]=r=>stringRefs[r];zi[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};zi[256].handlesRead=!0;zi[28]=r=>{Ah||(Ah=new Map,Ah.id=0);let e=Ah.id++,t=Ze[Ce],n;t>>5==4?n=[]:n={};let a={target:n};Ah.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};zi[28].handlesRead=!0;zi[29]=r=>{let e=Ah.get(r);return e.used=!0,e.target};zi[258]=r=>new Set(r);(zi[259]=r=>(Vr.mapsAsObjects&&(Vr.mapsAsObjects=!1,l8=!0),r())).handlesRead=!0;function ex(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function Lv(){if(!xl)if(Vr.getShared)Hte();else throw new Error("No packed values available");return xl}var ERr=1399353956;cte.push((r,e)=>{if(r>=225&&r<=255)return ex(Lv().prefixes[r-224],e);if(r>=28704&&r<=32767)return ex(Lv().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return ex(Lv().prefixes[r-1879048192],e);if(r>=216&&r<=223)return ex(e,Lv().suffixes[r-216]);if(r>=27647&&r<=28671)return ex(e,Lv().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return ex(e,Lv().suffixes[r-1811939328]);if(r==ERr)return{packedValues:xl,structures:ls.slice(0),version:e};if(r==55799)return e});var CRr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Hot=[Uint8Array],IRr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Ze[Ce++];break;case 25:r=Uu.getUint16(Ce),Ce+=2;break;case 26:r=Uu.getUint32(Ce),Ce+=4;break}return r}function Hte(){if(Vr.getShared){let r=mut(()=>(Ze=null,Vr.getShared()))||{},e=r.structures||[];Vr.sharedVersion=r.version,xl=Vr.sharedValues=r.packedValues,ls===!0?Vr.structures=ls=e:ls.splice.apply(ls,[0,e.length].concat(e))}}function mut(r){let e=Uv,t=Ce,n=fO,a=R8,i=hO,s=Ah,o=mo,c=new Uint8Array(Ze.slice(0,Uv)),u=ls,l=Vr,h=ute,f=r();return Uv=e,Ce=t,fO=n,R8=a,hO=i,Ah=s,mo=o,Ze=c,ute=h,ls=u,Vr=l,Uu=new DataView(Ze.buffer,Ze.byteOffset,Ze.byteLength),f}function yut(){Ze=null,Ah=null,ls=null}var gut=new Array(147);for(let r=0;r<256;r++)gut[r]=Number("1e"+Math.floor(45.15-r*.30103));var SRr=new sx({useRecords:!1}),PRr=SRr.decode;function RRr(r,e){return jte(r,e.abis)}function MRr(r,e){return jte(r.abi,[e])}function jte(r,e){let t=cx(r),n=e.flatMap(i=>cx(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function but(r,e){let t=await ux(r,e);return zte(t.abi)}async function vut(r,e){let t=await ux(r,e);return cx(t.abi,t.metadata)}function wut(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function zte(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function _ut(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function cx(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=wut(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${hte(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>hte(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function xut(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=wut(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function hte(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>hte(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function Tut(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function M8(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=Tut(t);if(n)return await M8(n,e)}catch{}try{let n=await e.getStorageAt(r,Q.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Q.ethers.utils.hexStripZeros(n);if(a!=="0x")return await M8(a,e)}catch{}return await Eut(t)}function Eut(r){let e=NRr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=PRr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${e7r.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function NRr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!BRr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:mRr,t={};for(let n in e){let a=e[n],i=RRr(r,a),s=z8(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function Vte(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),Vte(n.features,e)}}function DRr(r){let e=[];return Vte(z8(r),e),e}function fte(r){let e=[];return Vte(z8(r),e),e.map(t=>t.name)}function lx(r,e){let t=z8(r);return Cut(t,e)}function Xt(r,e){if(!r)throw new R0(e);return r}function $e(r,e){return lx(ju.parse(r.abi),e)}function Cut(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=Cut(s.features,e),a)break}return a}return r[e].enabled}function fo(r,e){return r in e.readContract.functions}async function mO(r,e,t,n,a){let i=[];try{let s=lx(ju.parse(e),"PluginRouter");if(lx(ju.parse(e),"ExtensionRouter")){let l=(await new Ss(t,r,dut,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await jot(l,t,a)}else if(s){let l=(await new Ss(t,r,lut,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await jot(h,t,a)}}catch{}return i.length>0?LRr([e,...i]):e}function ORr(r){let e=lx(ju.parse(r),"PluginRouter");return lx(ju.parse(r),"ExtensionRouter")||e}async function jot(r,e,t){return(await Promise.all(r.map(n=>O0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function LRr(r){let e=r.map(a=>ju.parse(a)).flat(),n=eRr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return ju.parse(n)}var De=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new De(n)}static async fromContractInfo(e){let t=e.storage||new jv.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await O0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Q.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new De(i)}constructor(e){$._defineProperty(this,"contract",void 0),$._defineProperty(this,"method",void 0),$._defineProperty(this,"args",void 0),$._defineProperty(this,"overrides",void 0),$._defineProperty(this,"provider",void 0),$._defineProperty(this,"signer",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"gaslessOptions",void 0),$._defineProperty(this,"parse",void 0),$._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new jv.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Q.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Q.BigNumber.from(Math.floor(Q.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Q.BigNumber.from(Math.floor(Q.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Q.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(uPr.FormatTypes.json));ORr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){xt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Q.utils.solidityPack(["bytes","address"],[m,f]))}xt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Q.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Q.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Q.BigNumber.from(5e5)),this.overrides.gasLimit&&Q.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Q.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await pRr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(Fte())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Q.utils.parseUnits("1","gwei"),s;n===Ne.Mumbai||n===Ne.Polygon?s=await tut(n):s=Q.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Q.utils.parseUnits("300","gwei"),i=Q.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Q.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Q.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` `+l.map(S=>" "+S.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=lte(e),E,I;try{let S=await P0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await FO(S,this.storage))}catch{}return new J4({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},E0=class{constructor(e,t,n){$._defineProperty(this,"featureName",kD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"schema",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new C0(kD)})),$._defineProperty(this,"update",Te(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{po("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{po("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await P0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return $e(e,"ContractMetadata")}},YD=class{constructor(e,t){$._defineProperty(this,"featureName",ID.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"setAll",Te(async n=>{let a=Object.keys(n);xt.default(a.length,"you must provide at least one role to set"),xt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Pe(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Pe(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[qx(u),y]))}),m.length)for(let y=0;y{xt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[qx(n),i]})})),$._defineProperty(this,"revoke",Te(async(n,a)=>{xt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a),s=await this.getRevokeRoleFunctionName(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[qx(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){xt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){xt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(po("getRoleMemberCount",t)&&po("getRoleMember",t)){let n=qx(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Pe(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new fD(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Pe(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},JD=class{constructor(e,t){$._defineProperty(this,"featureName",TD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"setDefaultRoyaltyInfo",Te(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(po("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),$._defineProperty(this,"setTokenRoyaltyInfo",Te(async(n,a)=>{let i=jo.parse(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return jo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return jo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},QD=class{constructor(e){$._defineProperty(this,"featureName",ED.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"setRecipient",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},LO={name:"Failed to load NFT metadata"};async function wte(r,e,t){let n=e.replace("{id}",Q.ethers.utils.hexZeroPad(Q.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Q.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=LO}}return $.CommonNFTOutput.parse({...a,id:Q.BigNumber.from(r).toString(),uri:e})}async function _8(r,e,t,n){let a,i=new Q.Contract(r,RO.default,e),s=await i.supportsInterface(m8),o=await i.supportsInterface(y8);if(s)a=await new Q.Contract(r,JSr.default,e).tokenURI(t);else if(o)a=await new Q.Contract(r,QSr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?wte(t,a,n):$.CommonNFTOutput.parse({...LO,id:Q.BigNumber.from(t).toString(),uri:""})}async function xte(r,e){return typeof r=="string"?r:await e.upload($.CommonNFTInput.parse(r))}async function Uv(r,e,t,n){if(M7r(r))return r;if(N7r(r))return await e.uploadBatch(r.map(i=>$.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function Ux(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function N7r(r){return r.find(e=>typeof e!="object")===void 0}var l8=class{constructor(e,t,n,a){$._defineProperty(this,"featureName",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"nextTokenIdToMintFn",void 0),$._defineProperty(this,"createDelayedRevealBatch",Te(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([$.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=Ux(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>$.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=Ux(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let F=await this.contractWrapper.getChainID(),W=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(m),E,F]);S=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),G=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let V=G;V.lte(K);V=V.add(1))H.push({id:V,receipt:F});return H}})})),$._defineProperty(this,"reveal",Te(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(po("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(po("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Q.ethers.utils.hexDataLength(u)>0?s?u:Q.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Q.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Q.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return _8(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(po("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Q.ethers.Contract(this.contractWrapper.readContract.address,ZSr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Ho=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ia=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),d8=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=qte(e),E,I;try{let S=await O0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await sL(S,this.storage))}catch{}return new v8({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},P0=class{constructor(e,t,n){$._defineProperty(this,"featureName",$D.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"schema",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new R0($D)})),$._defineProperty(this,"update",Te(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{fo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{fo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await O0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return $e(e,"ContractMetadata")}},yO=class{constructor(e,t){$._defineProperty(this,"featureName",VD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"setAll",Te(async n=>{let a=Object.keys(n);xt.default(a.length,"you must provide at least one role to set"),xt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Pe(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Pe(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[tx(u),y]))}),m.length)for(let y=0;y{xt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[tx(n),i]})})),$._defineProperty(this,"revoke",Te(async(n,a)=>{xt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Pe(a),s=await this.getRevokeRoleFunctionName(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[tx(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){xt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){xt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(fo("getRoleMemberCount",t)&&fo("getRoleMember",t)){let n=tx(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Pe(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new DD(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Pe(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},gO=class{constructor(e,t){$._defineProperty(this,"featureName",zD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"setDefaultRoyaltyInfo",Te(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(fo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),$._defineProperty(this,"setTokenRoyaltyInfo",Te(async(n,a)=>{let i=Ko.parse(a);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Ko.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Ko.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},bO=class{constructor(e){$._defineProperty(this,"featureName",KD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"setRecipient",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},aL={name:"Failed to load NFT metadata"};async function $te(r,e,t){let n=e.replace("{id}",Q.ethers.utils.hexZeroPad(Q.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Q.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=aL}}return $.CommonNFTOutput.parse({...a,id:Q.BigNumber.from(r).toString(),uri:e})}async function K8(r,e,t,n){let a,i=new Q.Contract(r,ZO.default,e),s=await i.supportsInterface(q8),o=await i.supportsInterface(F8);if(s)a=await new Q.Contract(r,r7r.default,e).tokenURI(t);else if(o)a=await new Q.Contract(r,n7r.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?$te(t,a,n):$.CommonNFTOutput.parse({...aL,id:Q.BigNumber.from(t).toString(),uri:""})}async function Yte(r,e){return typeof r=="string"?r:await e.upload($.CommonNFTInput.parse(r))}async function Jv(r,e,t,n){if(qRr(r))return r;if(FRr(r))return await e.uploadBatch(r.map(i=>$.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function ax(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function FRr(r){return r.find(e=>typeof e!="object")===void 0}var N8=class{constructor(e,t,n,a){$._defineProperty(this,"featureName",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"nextTokenIdToMintFn",void 0),$._defineProperty(this,"createDelayedRevealBatch",Te(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([$.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=ax(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>$.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=ax(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let F=await this.contractWrapper.getChainID(),W=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(m),E,F]);S=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),$._defineProperty(this,"reveal",Te(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(fo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(fo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Q.ethers.utils.hexDataLength(u)>0?s?u:Q.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Q.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Q.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return K8(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(fo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Q.ethers.Contract(this.contractWrapper.readContract.address,a7r.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},zo=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),Ia=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),B8=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await hct(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!pot.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(po("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[bD(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(bD),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[vD(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(vD),s]));else throw new Error("Contract does not support claim conditions");return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"update",Te(async(i,s)=>{let o=await this.getAll(),c=await pct(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await _D(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return wD(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return wD(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return xD(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return xD(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;c_D(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Pe(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Q.ethers.utils.parseUnits($.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[Ia.NoWallet];let c=await Pe(t);try{i=await this.getActive()}catch(f){return Q4(f,"!CONDITION")||Q4(f,"no active mint condition")?(n.push(Ia.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(Ia.Unknown),n)}i.availableSupply!=="unlimited"&&Q.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ia.NotEnoughSupply);let l=Q.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ia.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0))return n.push(Ia.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),am(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0)))return n.push(Ia.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(Ia.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Q.BigNumber.from(0),y=am(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=am(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(Ia.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Q.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Q.constants.MaxUint256)?n.push(Ia.AlreadyClaimed):n.push(Ia.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&lct()){let f=i.price.mul(Q.BigNumber.from(e)),m=this.contractWrapper.getProvider();Nh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(Ia.NotEnoughTokens):(await new ks(m,i.currencyAddress,pu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(Ia.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Q.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Pe(e);return await OO(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return $e(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return dct(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Pe(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV2")||$e(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC721ClaimPhasesV2")||$e(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV1")||$e(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC721ClaimPhasesV1")||$e(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Ov.V1:Ov.V2}},ZD=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),$._defineProperty(this,"setBatch",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await sut(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!ict.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(fo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[FD(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(FD),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[WD(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(WD),s]));else throw new Error("Contract does not support claim conditions");return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"update",Te(async(i,s)=>{let o=await this.getAll(),c=await iut(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await jD(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return UD(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return UD(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return HD(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return HD(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cjD(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Pe(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Q.ethers.utils.parseUnits($.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[Ia.NoWallet];let c=await Pe(t);try{i=await this.getActive()}catch(f){return w8(f,"!CONDITION")||w8(f,"no active mint condition")?(n.push(Ia.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(Ia.Unknown),n)}i.availableSupply!=="unlimited"&&Q.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(Ia.NotEnoughSupply);let l=Q.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(Ia.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(Ia.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),sm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0))return n.push(Ia.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),sm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Q.ethers.constants.MaxUint256||f.maxClaimable===Q.BigNumber.from(0)))return n.push(Ia.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(Ia.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Q.BigNumber.from(0),y=sm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=sm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(Ia.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Q.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Q.constants.MaxUint256)?n.push(Ia.AlreadyClaimed):n.push(Ia.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&nut()){let f=i.price.mul(Q.BigNumber.from(e)),m=this.contractWrapper.getProvider();Dh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(Ia.NotEnoughTokens):(await new Ss(m,i.currencyAddress,yu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(Ia.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Q.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Pe(e);return await nL(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return $e(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return aut(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Pe(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV2")||$e(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC721ClaimPhasesV2")||$e(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC721ClaimConditionsV1")||$e(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC721ClaimPhasesV1")||$e(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Kv.V1:Kv.V2}},vO=class{constructor(e,t,n){var a=this;$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),$._defineProperty(this,"setBatch",Te(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Q.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Q.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await hct(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!pot.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(po("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,bD(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(bD),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,vD(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(vD),s]));else throw new Error("Contract does not support claim conditions")}),De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),$._defineProperty(this,"update",Te(async(i,s,o)=>{let c=await this.getAll(i),u=await pct(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await _D(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return wD(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return wD(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return xD(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return xD(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;c_D(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Pe(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ia.NoWallet];let o=await Pe(n);try{s=await this.getActive(e)}catch(y){return Q4(y,"!CONDITION")||Q4(y,"no active mint condition")?(a.push(Ia.NoClaimConditionSet),a):(a.push(Ia.Unknown),a)}s.availableSupply!=="unlimited"&&Q.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ia.NotEnoughSupply);let u=Q.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ia.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0))return a.push(Ia.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0)))return a.push(Ia.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ia.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ia.AddressNotAllowed),a;let[h,f]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Q.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Q.constants.MaxUint256)?a.push(Ia.AlreadyClaimed):a.push(Ia.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&lct()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();Nh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(Ia.NotEnoughTokens):(await new ks(E,s.currencyAddress,pu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ia.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Q.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Pe(t);return await OO(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Pe(a||await this.contractWrapper.getSignerAddress());return dct(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Pe(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Ov.V1:Ov.V2}},XD=class{constructor(e,t){$._defineProperty(this,"featureName",n8.name),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),$._defineProperty(this,"from",Te(async(n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Pe(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},Uee=class{constructor(e,t,n){$._defineProperty(this,"featureName",r8.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new E0(this.contractWrapper,Nv,this.storage);this.conditions=new d8(this.contractWrapper,a,this.storage)}},Hee=class{constructor(e,t,n){$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new Uee(this.erc20,this.contractWrapper,this.storage)}},eO=class{constructor(e,t){$._defineProperty(this,"featureName",RD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"to",Te(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Pe(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},tO=class{constructor(e,t){$._defineProperty(this,"featureName",a8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if($e(this.contractWrapper,"ERC20BatchMintable"))return new eO(this.erc20,this.contractWrapper)}},rO=class{constructor(e,t){$._defineProperty(this,"featureName",PD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await I0(this.contractWrapper,Q.BigNumber.from(s.price),a.currencyAddress,o),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),$._defineProperty(this,"mintBatch",Te(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Q.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>ste.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();xt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await Pot.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Oot},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await gc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},nO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",MD.name),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"droppable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferFrom",Te(async(a,i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Pe(a),await Pe(i),await this.normalizeAmount(s)]}))),$._defineProperty(this,"setAllowance",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferBatch",Te(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Pe(s.toAddress),o])}));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,a8).to.prepare(a,i))),$._defineProperty(this,"mintBatchTo",Te(async a=>Xt(this.mintable?.batch,RD).to.prepare(a))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,n8).tokens.prepare(a))),$._defineProperty(this,"burnFrom",Te(async(a,i)=>Xt(this.burnable,n8).from.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>Xt(this.droppable?.claim,r8).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await Qx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Pe(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Pe(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Pe(e),await Pe(t)))}async getMintTransaction(e,t){return Xt(this.mintable,a8).getMintTransaction(e,t)}get claimConditions(){return Xt(this.droppable?.claim,r8).conditions}get signature(){return Xt(this.signatureMintable,PD)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Q.ethers.utils.parseUnits($.AmountSchema.parse(e),t)}async getValue(e){return await mp(this.contractWrapper.getProvider(),this.getAddress(),Q.BigNumber.from(e))}detectErc20Mintable(){if($e(this.contractWrapper,"ERC20"))return new tO(this,this.contractWrapper)}detectErc20Burnable(){if($e(this.contractWrapper,"ERC20Burnable"))return new XD(this,this.contractWrapper)}detectErc20Droppable(){if($e(this.contractWrapper,"ERC20ClaimConditionsV1")||$e(this.contractWrapper,"ERC20ClaimConditionsV2")||$e(this.contractWrapper,"ERC20ClaimPhasesV1")||$e(this.contractWrapper,"ERC20ClaimPhasesV2"))return new Hee(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if($e(this.contractWrapper,"ERC20SignatureMintable"))return new rO(this.contractWrapper)}},aO=class{constructor(e){$._defineProperty(this,"featureName",ND.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"token",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},jee=class{constructor(e,t){$._defineProperty(this,"featureName",s8.name),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await fct(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},iO=class{constructor(e,t,n){$._defineProperty(this,"featureName",DD.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new E0(this.contractWrapper,Nv,this.storage);this.conditions=new d8(this.contractWrapper,a,this.storage)}},sO=class{constructor(e,t,n){$._defineProperty(this,"featureName",OD.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await Uv(a,this.storage,s.toNumber(),i),c=Ux(o);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Q.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if($e(this.contractWrapper,"ERC721Revealable"))return new l8(this.contractWrapper,this.storage,i8.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if($e(this.contractWrapper,"ERC721ClaimConditionsV1")||$e(this.contractWrapper,"ERC721ClaimConditionsV2")||$e(this.contractWrapper,"ERC721ClaimPhasesV1")||$e(this.contractWrapper,"ERC721ClaimPhasesV2"))return new iO(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if($e(this.contractWrapper,"ERC721ClaimCustom"))return new jee(this.erc721,this.contractWrapper)}},oO=class{constructor(e,t,n){$._defineProperty(this,"featureName",LD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await Uv(i,this.storage),o=await Pe(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},cO=class{constructor(e,t,n){$._defineProperty(this,"featureName",qD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await xte(i,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Pe(e),t)}detectErc721BatchMintable(){if($e(this.contractWrapper,"ERC721BatchMintable"))return new oO(this.erc721,this.contractWrapper,this.storage)}},uO=class{constructor(e,t){$._defineProperty(this,"featureName",Mee.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},lO=class{constructor(e,t){$._defineProperty(this,"featureName",Wx.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Q.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if($e(this.contractWrapper,"ERC721Enumerable"))return new uO(this.erc721,this.contractWrapper)}},B7r=NO.extend({tierPriority:de.z.array(de.z.string()),royaltyRecipient:Ti.default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0),quantity:Is.default(1)}),zee=class{constructor(e,t,n){$._defineProperty(this,"featureName",BD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([$.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=Ux(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>$.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=Ux(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(l),m),E,I=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(l),m,f]);E=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),F=L[0].args[1],W=L[0].args[2],G=[];for(let K=F;K.lte(W);K=K.add(1))G.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return G}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>B7r.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return xt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Wot},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await gc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await I0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await gc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},dO=class{constructor(e,t){$._defineProperty(this,"featureName",FD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await I0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await I0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),$._defineProperty(this,"mintBatch",Te(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(po("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>Bot.parseAsync(c))),a=n.map(c=>c.metadata),i=await Uv(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return xt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await Dot.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Lot},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Fot},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await gc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await gc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return $e(this.contractWrapper,"ERC721SignatureMintV1")}},pO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",WD.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"tieredDropable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Pe(a),i]})})),$._defineProperty(this,"setApprovalForAll",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Pe(a),i]}))),$._defineProperty(this,"setApprovalForToken",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),i]}))),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,qD).to.prepare(a,i))),$._defineProperty(this,"mintBatch",Te(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintBatchTo",Te(async(a,i)=>Xt(this.mintable?.batch,LD).to.prepare(a,i))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,ND).token.prepare(a))),$._defineProperty(this,"lazyMint",Te(async(a,i)=>Xt(this.lazyMintable,OD).lazyMint.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new C0(s8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Q.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...LO}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Pe(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async getAll(e){return Xt(this.query,Wx).all(e)}async getAllOwners(){return Xt(this.query,Wx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Xt(this.query,Wx).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Q.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new C0(s8)}async totalClaimedSupply(){let e=this.contractWrapper;if(po("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(po("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,DD).conditions}get tieredDrop(){return Xt(this.tieredDropable,BD)}get signature(){return Xt(this.signatureMintable,FD)}get revealer(){return Xt(this.lazyMintable?.revealer,i8)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new Y4;return wte(e,t,this.storage)}async nextTokenIdToMint(){if(po("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(po("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if($e(this.contractWrapper,"ERC721Supply")||po("nextTokenIdToMint",this.contractWrapper))return new lO(this,this.contractWrapper)}detectErc721Mintable(){if($e(this.contractWrapper,"ERC721Mintable"))return new cO(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if($e(this.contractWrapper,"ERC721Burnable"))return new aO(this.contractWrapper)}detectErc721LazyMintable(){if($e(this.contractWrapper,"ERC721LazyMintable"))return new sO(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if($e(this.contractWrapper,"ERC721TieredDrop"))return new zee(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if($e(this.contractWrapper,"ERC721SignatureMintV1")||$e(this.contractWrapper,"ERC721SignatureMintV2"))return new dO(this.contractWrapper,this.storage)}},Qst=de.z.object({address:Ti,quantity:$.AmountSchema.default(1)}),D7r=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>Qst.parseAsync({address:e})))),de.z.array(Qst)]),hO=class{constructor(e){$._defineProperty(this,"featureName",Sv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),$._defineProperty(this,"from",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Pe(t),n,a]}))),$._defineProperty(this,"batch",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),$._defineProperty(this,"batchFrom",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Pe(t),n,a]}))),this.contractWrapper=e}},fO=class{constructor(e,t){$._defineProperty(this,"featureName",Rv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function _te(r,e){try{let t=new Q.ethers.Contract(r,Qee.default,e),[n,a]=await Promise.all([Q.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var Kee=class{constructor(e){$._defineProperty(this,"featureName",o8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await fct(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Pe(e),t,n],overrides:i})}},Vee=class{constructor(e,t){$._defineProperty(this,"featureName",UD.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new E0(this.contractWrapper,Nv,this.storage);this.conditions=new ZD(e,n,this.storage)}},mO=class{constructor(e,t,n){$._defineProperty(this,"featureName",HD.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await Uv(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await _te(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Q.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if($e(this.contractWrapper,"ERC1155ClaimCustom"))return new Kee(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if($e(this.contractWrapper,"ERC1155ClaimConditionsV1")||$e(this.contractWrapper,"ERC1155ClaimConditionsV2")||$e(this.contractWrapper,"ERC1155ClaimPhasesV1")||$e(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new Vee(this.contractWrapper,this.storage)}detectErc1155Revealable(){if($e(this.contractWrapper,"ERC1155Revealable"))return new l8(this.contractWrapper,this.storage,Hx.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},yO=class{constructor(e,t,n){$._defineProperty(this,"featureName",zD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await Uv(s,this.storage),u=await Pe(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Q.ethers.constants.MaxUint256,h,o[f]])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},gO=class{constructor(e,t,n){$._defineProperty(this,"featureName",Pv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),$._defineProperty(this,"additionalSupplyTo",Te(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),i,o.uri,s],parse:c=>({id:Q.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await xte(t.metadata,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),Q.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if($e(this.contractWrapper,"ERC1155BatchMintable"))return new yO(this.erc1155,this.contractWrapper,this.storage)}},bO=class{constructor(e,t,n){$._defineProperty(this,"featureName",jD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await I0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),$._defineProperty(this,"mintBatch",Te(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(po("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Q.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Q.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Mot.parseAsync(u))),n=t.map(u=>u.metadata),a=await Uv(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();xt.default(s,"No signer available");let c=(await _te(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await Not.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:qot},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await gc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},vO=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;$._defineProperty(this,"featureName",KD.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Pe(i),s,o,c]})})),$._defineProperty(this,"setApprovalForAll",Te(async(i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),$._defineProperty(this,"airdrop",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await D7r.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"mint",Te(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintTo",Te(async(i,s)=>Xt(this.mintable,Pv).to.prepare(i,s))),$._defineProperty(this,"mintAdditionalSupply",Te(async(i,s)=>Xt(this.mintable,Pv).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),$._defineProperty(this,"mintAdditionalSupplyTo",Te(async(i,s,o)=>Xt(this.mintable,Pv).additionalSupplyTo.prepare(i,s,o))),$._defineProperty(this,"mintBatch",Te(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintBatchTo",Te(async(i,s)=>Xt(this.mintable?.batch,zD).to.prepare(i,s))),$._defineProperty(this,"burn",Te(async(i,s)=>Xt(this.burnable,Sv).tokens.prepare(i,s))),$._defineProperty(this,"burnFrom",Te(async(i,s,o)=>Xt(this.burnable,Sv).from.prepare(i,s,o))),$._defineProperty(this,"burnBatch",Te(async(i,s)=>Xt(this.burnable,Sv).batch.prepare(i,s))),$._defineProperty(this,"burnBatchFrom",Te(async(i,s,o)=>Xt(this.burnable,Sv).batchFrom.prepare(i,s,o))),$._defineProperty(this,"lazyMint",Te(async(i,s)=>Xt(this.lazyMintable,HD).lazyMint.prepare(i,s))),$._defineProperty(this,"claim",Te(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),$._defineProperty(this,"claimTo",Te(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new C0(o8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Q.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...LO}))]);return{owner:Q.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Pe(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async nextTokenIdToMint(){if(po("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Xt(this.query,Rv).all(e)}async totalCount(){return Xt(this.query,Rv).totalCount()}async totalCirculatingSupply(e){return Xt(this.query,Rv).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Pe(e)),Xt(this.query,Rv).owned(e)}async getMintTransaction(e,t){return Xt(this.mintable,Pv).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new C0(o8)}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,UD).conditions}get signature(){return Xt(this.signatureMintable,jD)}get revealer(){return Xt(this.lazyMintable?.revealer,Hx)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new Y4;return wte(e,t,this.storage)}detectErc1155Enumerable(){if($e(this.contractWrapper,"ERC1155Enumerable"))return new fO(this,this.contractWrapper)}detectErc1155Mintable(){if($e(this.contractWrapper,"ERC1155Mintable"))return new gO(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if($e(this.contractWrapper,"ERC1155Burnable"))return new hO(this.contractWrapper)}detectErc1155LazyMintable(){if($e(this.contractWrapper,"ERC1155LazyMintableV1")||$e(this.contractWrapper,"ERC1155LazyMintableV2"))return new mO(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if($e(this.contractWrapper,"ERC1155SignatureMintable"))return new bO(this.contractWrapper,this.storage)}};async function Nct(r,e,t,n,a){try{let i=new Q.Contract(t,RO.default,r),s=await i.supportsInterface(m8),o=await i.supportsInterface(y8);if(s){let c=new Q.Contract(t,bc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Q.Contract(t,Hu.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function p8(r,e,t,n,a){let i=new ks(r.getSignerOrProvider(),t,RO.default,r.options),s=await i.readContract.supportsInterface(m8),o=await i.readContract.supportsInterface(y8);if(s){let c=new ks(r.getSignerOrProvider(),t,bc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new ks(r.getSignerOrProvider(),t,Hu.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function O7r(r){switch(xt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),xt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),xt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),xt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),xt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),xt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":xt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function L7r(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await mp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function q7r(r,e,t){return t=Q.BigNumber.from(t),r=Q.BigNumber.from(r),e=Q.BigNumber.from(e),r.eq(Q.BigNumber.from(0))?!1:e.sub(r).mul($.MAX_BPS).div(r).gte(t)}async function $x(r,e,t){let n=[];for(;e-r>$.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+$.DEFAULT_QUERY_ALL_COUNT-1)),r+=$.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Zst=de.z.object({assetContractAddress:Ti,tokenId:Vs,quantity:Vs.default(1),currencyContractAddress:Ti.default(Wu),pricePerToken:$.AmountSchema,startTimestamp:g8.default(new Date),endTimestamp:b8,isReservedListing:de.z.boolean().default(!1)}),qv=class{constructor(e){$._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(gl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(gl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Zst.parseAsync(n);await p8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await gc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Q.BigNumber.from(o)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:gD(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),$._defineProperty(this,"updateListing",Te(async(n,a)=>{let i=await Zst.parseAsync(a);await p8(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await gc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:gD(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),$._defineProperty(this,"cancelListing",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),$._defineProperty(this,"buyFromListing",Te(async(n,a,i)=>{i&&(i=await Pe(i));let s=await this.validateListing(Q.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Q.BigNumber.from(a),h=Q.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await I0(this.contractWrapper,h,s.currencyContractAddress,f),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),$._defineProperty(this,"approveBuyerForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),$._defineProperty(this,"revokeBuyerApprovalForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),$._defineProperty(this,"approveCurrencyForListing",Te(async(n,a,i)=>{let s=await this.validateListing(Q.BigNumber.from(n)),o=await Pe(a);o===s.currencyContractAddress&&xt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return xt.default(i===c,"Currency already approved with this price."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),$._defineProperty(this,"revokeCurrencyApprovalForListing",Te(async(n,a)=>{let i=await this.validateListing(Q.BigNumber.from(n)),s=await Pe(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return xt.default(!o.isZero(),"Currency not approved."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Q.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new qv(this.contractWrapper),this.encoder=new Lv(this.contractWrapper),this.interceptor=new Fv(this.contractWrapper),this.estimator=new Wv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Q.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Pe(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Q.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Pe(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Q.BigNumber.from(e)),a=await Pe(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Ho.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?Ho.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?Ho.Expired:Ho.Active;break;case 2:t=Ho.Completed;break;case 3:t=Ho.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await mp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),asset:await _8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await Nct(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Q.Contract(e.assetContractAddress,RO.default,a),s=await i.supportsInterface(m8),o=await i.supportsInterface(y8);if(s){let u=(await new Q.Contract(e.assetContractAddress,bc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Q.Contract(e.assetContractAddress,Hu.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=F7r.parse(n);await p8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await gc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await gc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Q.BigNumber.from(c)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:gD(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),$._defineProperty(this,"buyoutAuction",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n)),i=await Qx(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Q.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),$._defineProperty(this,"makeBid",Te(async(n,a)=>{let i=await this.validateAuction(Q.BigNumber.from(n)),s=await gc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Q.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Q.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);xt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Q.BigNumber.from(i.minimumBidAmount);xt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await I0(this.contractWrapper,s,i.currencyContractAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),$._defineProperty(this,"cancelAuction",Te(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),$._defineProperty(this,"closeAuctionForBidder",Te(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Q.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new Fx(n.toString(),i.endTimeInSeconds.toString()):s}})),$._defineProperty(this,"closeAuctionForSeller",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Q.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Fx(n.toString(),a.endTimeInSeconds.toString()):i}})),$._defineProperty(this,"executeSale",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{let i=await this.getWinningBid(n);xt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Fx(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new qv(this.contractWrapper),this.encoder=new Lv(this.contractWrapper),this.interceptor=new Fv(this.contractWrapper),this.estimator=new Wv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Q.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Q.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Q.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Q.BigNumber.from(Math.floor(Date.now()/1e3)),i=Q.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Q.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Q.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Q.BigNumber.from(e))]),i=n?Q.BigNumber.from(n.bidAmount):Q.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return mp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Ho.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?Ho.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?Ho.Expired:Ho.Active;break;case 2:t=Ho.Completed;break;case 3:t=Ho.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await mp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await mp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Q.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Q.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),asset:await _8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Pe(t),s=await Pe(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await mp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await W7r.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Nh(a.currencyContractAddress)?G4[i].wrapped.address:a.currencyContractAddress,o=await gc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await I0(this.contractWrapper,o,s,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),$._defineProperty(this,"cancelOffer",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),$._defineProperty(this,"acceptOffer",Te(async n=>{let a=await this.validateOffer(Q.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await p8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new qv(this.contractWrapper),this.encoder=new Lv(this.contractWrapper),this.interceptor=new Fv(this.contractWrapper),this.estimator=new Wv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await $x(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Ho.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.expirationTimestamp).lt(a)?Ho.Expired:Ho.Active;break;case 2:t=Ho.Completed;break;case 3:t=Ho.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await mp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await _8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Q.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Nh(e.currencyContractAddress)?G4[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new ks(i,a,pu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Pe(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await xl(r,e,t);if(n)return n;let a=await qO(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return zo(vX())})).default:(await Promise.resolve().then(function(){return zo(wX())})).default}},k0={name:"TokenERC1155",contractType:"edition",schema:ect,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(xX())})).default}},yp={name:"Marketplace",contractType:"marketplace",schema:ute,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(CX())})).default}},om={name:"MarketplaceV3",contractType:"marketplace-v3",schema:ute,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);if(n)return await $D(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return zo(IX())})).default;return await $D(r,a,e,{},t)}},gp={name:"Multiwrap",contractType:"multiwrap",schema:Lct,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(AX())})).default}},A0={name:"TokenERC721",contractType:"nft-collection",schema:Zot,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(SX())})).default}},Ah={name:"DropERC721",contractType:"nft-drop",schema:cte,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);if(n)return n;let a=await qO(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return zo(PX())})).default:(await Promise.resolve().then(function(){return zo(RX())})).default}},vl={name:"Pack",contractType:"pack",schema:Vot,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(DX())})).default}},Sh={name:"SignatureDrop",contractType:"signature-drop",schema:cte,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);if(n)return n;let a=await qO(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return zo(OX())})).default:(await Promise.resolve().then(function(){return zo(LX())})).default}},Ph={name:"Split",contractType:"split",schema:$ot,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(FX())})).default}},S0={name:"DropERC20",contractType:"token-drop",schema:Dct,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);if(n)return n;let a=await qO(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return zo(HX())})).default:(await Promise.resolve().then(function(){return zo(jX())})).default}},Rh={name:"TokenERC20",contractType:"token",schema:Jot,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(VX())})).default}},Mh={name:"VoteERC20",contractType:"vote",schema:nct,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await xl(r,e,t);return n||(await Promise.resolve().then(function(){return zo(JX())})).default}};async function qO(r,e){try{return await _te(r,e)}catch{return}}var cm={[kh.contractType]:kh,[k0.contractType]:k0,[yp.contractType]:yp,[om.contractType]:om,[gp.contractType]:gp,[A0.contractType]:A0,[Ah.contractType]:Ah,[vl.contractType]:vl,[Sh.contractType]:Sh,[Ph.contractType]:Ph,[S0.contractType]:S0,[Rh.contractType]:Rh,[Mh.contractType]:Mh},qct={[kh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[k0.contractType]:"",[yp.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[om.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[gp.contractType]:"",[A0.contractType]:"",[Ah.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[vl.contractType]:"",[Sh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Ph.contractType]:"",[S0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Rh.contractType]:"",[Mh.contractType]:""},Xst={name:"SmartContract",contractType:"custom",schema:{},roles:hte},Tte={...cm,[Xst.contractType]:Xst};function Ete(r){return Object.values(Tte).find(e=>e.name===r)?.contractType||"custom"}function Cte(r){return Object.values(Tte).find(e=>e.contractType===r)?.name}async function Fct(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===vl.contractType?[]:Xee(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Ah.contractType:case A0.contractType:let o=await Ah.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Sh.contractType:let c=await Sh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case gp.contractType:let u=await gp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case kh.contractType:case k0.contractType:let l=await kh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case S0.contractType:case Rh.contractType:let h=await Rh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Mh.contractType:let f=await Mh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Q.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Ph.contractType:let m=await Ph.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Q.BigNumber.from(I.sharesBps))];case yp.contractType:case om.contractType:let y=await yp.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case vl.contractType:let E=await vl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function K7r(r,e){return r||(e?.gatewayUrls?new Bv.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new Bv.ThirdwebStorage)}var h8=class{constructor(e,t,n){$._defineProperty(this,"featureName",AD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>$e(this.contractWrapper,"AppURI")?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return $e(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():Bv.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},TO=class{constructor(e){$._defineProperty(this,"featureName",CD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await bp.parseAsync(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return bp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},EO=class{constructor(e,t){$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await P0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return Kx(Uu.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return Sct(Uu.parse(this.contractWrapper.abi),e?.metadata)}},CO=class{get royalties(){return Xt(this.detectRoyalties(),TD)}get roles(){return Xt(this.detectRoles(),ID)}get sales(){return Xt(this.detectPrimarySales(),ED)}get platformFees(){return Xt(this.detectPlatformFees(),CD)}get owner(){return Xt(this.detectOwnable(),SD)}get erc20(){return Xt(this.detectErc20(),MD)}get erc721(){return Xt(this.detectErc721(),WD)}get erc1155(){return Xt(this.detectErc1155(),KD)}get app(){return Xt(this.detectApp(),AD)}get directListings(){return Xt(this.detectDirectListings(),X4)}get englishAuctions(){return Xt(this.detectEnglishAuctions(),e8)}get offers(){return Xt(this.detectOffers(),t8)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new ks(e,t,n,i);$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"interceptor",void 0),$._defineProperty(this,"encoder",void 0),$._defineProperty(this,"estimator",void 0),$._defineProperty(this,"publishedMetadata",void 0),$._defineProperty(this,"abi",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=n,this.events=new qv(this.contractWrapper),this.encoder=new Lv(this.contractWrapper),this.interceptor=new Fv(this.contractWrapper),this.estimator=new Wv(this.contractWrapper),this.publishedMetadata=new EO(this.contractWrapper,this.storage),this.metadata=new E0(this.contractWrapper,Nv,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();xt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),$._defineProperty(this,"publish",Te(async(a,i)=>{let s=this.getSigner();xt.default(s,"A signer is required");let o=await s.getAddress(),c=await gte(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Hct(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Q.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=Yct.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return De.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Q.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),$._defineProperty(this,"unpublish",Te(async(a,i)=>{let s=await Pe(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new ks(e,vot(),XSr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return Cct(e,this.storage)}async extractFunctions(e){return Ict(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return Vx(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await Vx(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Pe(e);return P0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return bte(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Pe(e),n=await u8(t,this.getProvider());return xt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Pe(e),n=await this.fetchCompilerMetadataFromAddress(t);return await FO(n,this.storage)}async getPublisherProfile(e){let t=await Pe(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Zct.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Pe(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Pe(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return xt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Xct.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},Gee=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$._defineProperty(this,"registryLogic",void 0),$._defineProperty(this,"registryRouter",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Pe(o.address),o.chainId])));return De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new ks(e,pee(),ePr.default,n),this.registryRouter=new ks(e,pee(),tPr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Pe(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Q.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},Yx=class{constructor(e,t){$._defineProperty(this,"connection",void 0),$._defineProperty(this,"options",void 0),$._defineProperty(this,"events",new oee.default),this.connection=new Dv(e,t),this.options=t,this.events=new oee.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wu,a=await Pe(e),i=await Pe(n),s=this.requireWallet(),o=await gc(this.connection.getProvider(),t,n);if(Nh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Wu;this.requireWallet();let t=await Pe(e),n=this.connection.getProvider(),a;return Nh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await mp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await Z4(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Q.ethers.utils.hashMessage(e),a=Q.ethers.utils.arrayify(n);return Q.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ne.Localhost||t===Ne.Hardhat)return new Yx(new Q.ethers.Wallet(got,$4(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return xt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new ks(this.connection.getSignerOrProvider(),e,pu.default,this.options)}},sm=class extends Dv{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return sm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=$4(t,n);i=e.connect(o)}let s=new sm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=$4(t,n),s=new Q.Wallet(e,i);return new sm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;DO(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),$._defineProperty(this,"contractCache",new Map),$._defineProperty(this,"_publisher",void 0),$._defineProperty(this,"storageHandler",void 0),$._defineProperty(this,"deployer",void 0),$._defineProperty(this,"multiChainRegistry",void 0),$._defineProperty(this,"wallet",void 0),$._defineProperty(this,"storage",void 0),mot(t?.supportedChains);let a=K7r(n,t);this.storage=a,this.storageHandler=a,this.wallet=new Yx(e,t),this.deployer=new AO(e,t,a),this.multiChainRegistry=new Gee(e,this.storageHandler,this.options),this._publisher=new IO(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await sut(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!ict.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(fo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,FD(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(FD),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,WD(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(WD),s]));else throw new Error("Contract does not support claim conditions")}),De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),$._defineProperty(this,"update",Te(async(i,s,o)=>{let c=await this.getAll(i),u=await iut(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await jD(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return UD(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return UD(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return HD(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return HD(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cjD(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Pe(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[Ia.NoWallet];let o=await Pe(n);try{s=await this.getActive(e)}catch(y){return w8(y,"!CONDITION")||w8(y,"no active mint condition")?(a.push(Ia.NoClaimConditionSet),a):(a.push(Ia.Unknown),a)}s.availableSupply!=="unlimited"&&Q.BigNumber.from(s.availableSupply).lt(t)&&a.push(Ia.NotEnoughSupply);let u=Q.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(Ia.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(Ia.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0))return a.push(Ia.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Q.ethers.constants.MaxUint256||y.maxClaimable===Q.BigNumber.from(0)))return a.push(Ia.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(Ia.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(Ia.AddressNotAllowed),a;let[h,f]=[Q.BigNumber.from(0),Q.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Q.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Q.constants.MaxUint256)?a.push(Ia.AlreadyClaimed):a.push(Ia.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&nut()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();Dh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(Ia.NotEnoughTokens):(await new Ss(E,s.currencyAddress,yu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(Ia.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Q.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Pe(t);return await nL(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Pe(a||await this.contractWrapper.getSignerAddress());return aut(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Pe(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Q.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Q.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return $e(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return $e(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return $e(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?Kv.V1:Kv.V2}},wO=class{constructor(e,t){$._defineProperty(this,"featureName",I8.name),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),$._defineProperty(this,"from",Te(async(n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Pe(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},mte=class{constructor(e,t,n){$._defineProperty(this,"featureName",C8.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new P0(this.contractWrapper,Hv,this.storage);this.conditions=new B8(this.contractWrapper,a,this.storage)}},yte=class{constructor(e,t,n){$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new mte(this.erc20,this.contractWrapper,this.storage)}},_O=class{constructor(e,t){$._defineProperty(this,"featureName",ZD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"to",Te(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Pe(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},xO=class{constructor(e,t){$._defineProperty(this,"featureName",k8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc20",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if($e(this.contractWrapper,"ERC20BatchMintable"))return new _O(this.erc20,this.contractWrapper)}},TO=class{constructor(e,t){$._defineProperty(this,"featureName",QD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,Q.BigNumber.from(s.price),a.currencyAddress,o),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),$._defineProperty(this,"mintBatch",Te(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Q.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>Bte.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();xt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await Tct.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Sct},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await _c(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},EO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",XD.name),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"droppable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferFrom",Te(async(a,i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Pe(a),await Pe(i),await this.normalizeAmount(s)]}))),$._defineProperty(this,"setAllowance",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),await this.normalizeAmount(i)]}))),$._defineProperty(this,"transferBatch",Te(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Pe(s.toAddress),o])}));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,k8).to.prepare(a,i))),$._defineProperty(this,"mintBatchTo",Te(async a=>Xt(this.mintable?.batch,ZD).to.prepare(a))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,I8).tokens.prepare(a))),$._defineProperty(this,"burnFrom",Te(async(a,i)=>Xt(this.burnable,I8).from.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>Xt(this.droppable?.claim,C8).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await fx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Pe(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Pe(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Pe(e),await Pe(t)))}async getMintTransaction(e,t){return Xt(this.mintable,k8).getMintTransaction(e,t)}get claimConditions(){return Xt(this.droppable?.claim,C8).conditions}get signature(){return Xt(this.signatureMintable,QD)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Q.ethers.utils.parseUnits($.AmountSchema.parse(e),t)}async getValue(e){return await gp(this.contractWrapper.getProvider(),this.getAddress(),Q.BigNumber.from(e))}detectErc20Mintable(){if($e(this.contractWrapper,"ERC20"))return new xO(this,this.contractWrapper)}detectErc20Burnable(){if($e(this.contractWrapper,"ERC20Burnable"))return new wO(this,this.contractWrapper)}detectErc20Droppable(){if($e(this.contractWrapper,"ERC20ClaimConditionsV1")||$e(this.contractWrapper,"ERC20ClaimConditionsV2")||$e(this.contractWrapper,"ERC20ClaimPhasesV1")||$e(this.contractWrapper,"ERC20ClaimPhasesV2"))return new yte(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if($e(this.contractWrapper,"ERC20SignatureMintable"))return new TO(this.contractWrapper)}},CO=class{constructor(e){$._defineProperty(this,"featureName",eO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"token",Te(async t=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},gte=class{constructor(e,t){$._defineProperty(this,"featureName",S8.name),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await out(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},IO=class{constructor(e,t,n){$._defineProperty(this,"featureName",rO.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new P0(this.contractWrapper,Hv,this.storage);this.conditions=new B8(this.contractWrapper,a,this.storage)}},kO=class{constructor(e,t,n){$._defineProperty(this,"featureName",nO.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await Jv(a,this.storage,s.toNumber(),i),c=ax(o);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Q.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if($e(this.contractWrapper,"ERC721Revealable"))return new N8(this.contractWrapper,this.storage,A8.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if($e(this.contractWrapper,"ERC721ClaimConditionsV1")||$e(this.contractWrapper,"ERC721ClaimConditionsV2")||$e(this.contractWrapper,"ERC721ClaimPhasesV1")||$e(this.contractWrapper,"ERC721ClaimPhasesV2"))return new IO(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if($e(this.contractWrapper,"ERC721ClaimCustom"))return new gte(this.erc721,this.contractWrapper)}},AO=class{constructor(e,t,n){$._defineProperty(this,"featureName",aO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await Jv(i,this.storage),o=await Pe(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},SO=class{constructor(e,t,n){$._defineProperty(this,"featureName",iO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await Yte(i,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Pe(e),t)}detectErc721BatchMintable(){if($e(this.contractWrapper,"ERC721BatchMintable"))return new AO(this.erc721,this.contractWrapper,this.storage)}},PO=class{constructor(e,t){$._defineProperty(this,"featureName",ste.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},RO=class{constructor(e,t){$._defineProperty(this,"featureName",nx.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Q.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if($e(this.contractWrapper,"ERC721Enumerable"))return new PO(this.erc721,this.contractWrapper)}},WRr=eL.extend({tierPriority:de.z.array(de.z.string()),royaltyRecipient:Ti.default(Q.constants.AddressZero),royaltyBps:$.BasisPointsSchema.default(0),quantity:As.default(1)}),bte=class{constructor(e,t,n){$._defineProperty(this,"featureName",tO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc721",void 0),$._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([$.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=ax(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>$.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=ax(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Q.ethers.utils.toUtf8Bytes(l),m),E,I=Q.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Q.ethers.utils.toUtf8Bytes(l),m,f]);E=Q.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Q.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>WRr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return xt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Nct},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await _c(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await M0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await _c(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Q.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},MO=class{constructor(e,t){$._defineProperty(this,"featureName",sO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"mint",Te(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await M0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await M0(this.contractWrapper,u,a.currencyAddress,s),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),$._defineProperty(this,"mintBatch",Te(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>kct.parseAsync(c))),a=n.map(c=>c.metadata),i=await Jv(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return xt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await Act.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Pct},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Mct},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await _c(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await _c(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return $e(this.contractWrapper,"ERC721SignatureMintV1")}},NO=class{get chainId(){return this._chainId}constructor(e,t,n){$._defineProperty(this,"featureName",oO.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"tieredDropable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Pe(a),i]})})),$._defineProperty(this,"setApprovalForAll",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Pe(a),i]}))),$._defineProperty(this,"setApprovalForToken",Te(async(a,i)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Pe(a),i]}))),$._defineProperty(this,"mint",Te(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintTo",Te(async(a,i)=>Xt(this.mintable,iO).to.prepare(a,i))),$._defineProperty(this,"mintBatch",Te(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),$._defineProperty(this,"mintBatchTo",Te(async(a,i)=>Xt(this.mintable?.batch,aO).to.prepare(a,i))),$._defineProperty(this,"burn",Te(async a=>Xt(this.burnable,eO).token.prepare(a))),$._defineProperty(this,"lazyMint",Te(async(a,i)=>Xt(this.lazyMintable,nO).lazyMint.prepare(a,i))),$._defineProperty(this,"claim",Te(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),$._defineProperty(this,"claimTo",Te(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new R0(S8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Q.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...aL}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Pe(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async getAll(e){return Xt(this.query,nx).all(e)}async getAllOwners(){return Xt(this.query,nx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return Xt(this.query,nx).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Pe(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Q.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new R0(S8)}async totalClaimedSupply(){let e=this.contractWrapper;if(fo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(fo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,rO).conditions}get tieredDrop(){return Xt(this.tieredDropable,tO)}get signature(){return Xt(this.signatureMintable,sO)}get revealer(){return Xt(this.lazyMintable?.revealer,A8)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new b8;return $te(e,t,this.storage)}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(fo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if($e(this.contractWrapper,"ERC721Supply")||fo("nextTokenIdToMint",this.contractWrapper))return new RO(this,this.contractWrapper)}detectErc721Mintable(){if($e(this.contractWrapper,"ERC721Mintable"))return new SO(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if($e(this.contractWrapper,"ERC721Burnable"))return new CO(this.contractWrapper)}detectErc721LazyMintable(){if($e(this.contractWrapper,"ERC721LazyMintable"))return new kO(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if($e(this.contractWrapper,"ERC721TieredDrop"))return new bte(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if($e(this.contractWrapper,"ERC721SignatureMintV1")||$e(this.contractWrapper,"ERC721SignatureMintV2"))return new MO(this.contractWrapper,this.storage)}},zot=de.z.object({address:Ti,quantity:$.AmountSchema.default(1)}),URr=de.z.union([de.z.array(de.z.string()).transform(async r=>await Promise.all(r.map(e=>zot.parseAsync({address:e})))),de.z.array(zot)]),BO=class{constructor(e){$._defineProperty(this,"featureName",qv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"tokens",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),$._defineProperty(this,"from",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Pe(t),n,a]}))),$._defineProperty(this,"batch",Te(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),$._defineProperty(this,"batchFrom",Te(async(t,n,a)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Pe(t),n,a]}))),this.contractWrapper=e}},DO=class{constructor(e,t){$._defineProperty(this,"featureName",Wv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Q.BigNumber.from(e?.start||0).toNumber(),n=Q.BigNumber.from(e?.count||$.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Pe(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function Jte(r,e){try{let t=new Q.ethers.Contract(r,Cte.default,e),[n,a]=await Promise.all([Q.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var vte=class{constructor(e){$._defineProperty(this,"featureName",P8.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"to",Te(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await out(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Pe(e),t,n],overrides:i})}},wte=class{constructor(e,t){$._defineProperty(this,"featureName",cO.name),$._defineProperty(this,"conditions",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new P0(this.contractWrapper,Hv,this.storage);this.conditions=new vO(e,n,this.storage)}},OO=class{constructor(e,t,n){$._defineProperty(this,"featureName",uO.name),$._defineProperty(this,"revealer",void 0),$._defineProperty(this,"claimWithConditions",void 0),$._defineProperty(this,"claim",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"lazyMint",Te(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await Jv(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await Jte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Q.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if($e(this.contractWrapper,"ERC1155ClaimCustom"))return new vte(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if($e(this.contractWrapper,"ERC1155ClaimConditionsV1")||$e(this.contractWrapper,"ERC1155ClaimConditionsV2")||$e(this.contractWrapper,"ERC1155ClaimPhasesV1")||$e(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new wte(this.contractWrapper,this.storage)}detectErc1155Revealable(){if($e(this.contractWrapper,"ERC1155Revealable"))return new N8(this.contractWrapper,this.storage,ix.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},LO=class{constructor(e,t,n){$._defineProperty(this,"featureName",dO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await Jv(s,this.storage),u=await Pe(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Q.ethers.constants.MaxUint256,h,o[f]])));return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},qO=class{constructor(e,t,n){$._defineProperty(this,"featureName",Fv.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"erc1155",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"batch",void 0),$._defineProperty(this,"to",Te(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),$._defineProperty(this,"additionalSupplyTo",Te(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(a),i,o.uri,s],parse:c=>({id:Q.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Yte(t.metadata,this.storage);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Pe(e),Q.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if($e(this.contractWrapper,"ERC1155BatchMintable"))return new LO(this.erc1155,this.contractWrapper,this.storage)}},FO=class{constructor(e,t,n){$._defineProperty(this,"featureName",lO.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"roles",void 0),$._defineProperty(this,"mint",Te(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),$._defineProperty(this,"mintBatch",Te(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Q.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(fo("multicall",this.contractWrapper))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Q.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Q.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>Cct.parseAsync(u))),n=t.map(u=>u.metadata),a=await Jv(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();xt.default(s,"No signer available");let c=(await Jte(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await Ict.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:Rct},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await _c(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},WO=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;$._defineProperty(this,"featureName",pO.name),$._defineProperty(this,"query",void 0),$._defineProperty(this,"mintable",void 0),$._defineProperty(this,"burnable",void 0),$._defineProperty(this,"lazyMintable",void 0),$._defineProperty(this,"signatureMintable",void 0),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_chainId",void 0),$._defineProperty(this,"transfer",Te(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Pe(i),s,o,c]})})),$._defineProperty(this,"setApprovalForAll",Te(async(i,s)=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),$._defineProperty(this,"airdrop",Te(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await URr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return De.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),$._defineProperty(this,"mint",Te(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintTo",Te(async(i,s)=>Xt(this.mintable,Fv).to.prepare(i,s))),$._defineProperty(this,"mintAdditionalSupply",Te(async(i,s)=>Xt(this.mintable,Fv).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),$._defineProperty(this,"mintAdditionalSupplyTo",Te(async(i,s,o)=>Xt(this.mintable,Fv).additionalSupplyTo.prepare(i,s,o))),$._defineProperty(this,"mintBatch",Te(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),$._defineProperty(this,"mintBatchTo",Te(async(i,s)=>Xt(this.mintable?.batch,dO).to.prepare(i,s))),$._defineProperty(this,"burn",Te(async(i,s)=>Xt(this.burnable,qv).tokens.prepare(i,s))),$._defineProperty(this,"burnFrom",Te(async(i,s,o)=>Xt(this.burnable,qv).from.prepare(i,s,o))),$._defineProperty(this,"burnBatch",Te(async(i,s)=>Xt(this.burnable,qv).batch.prepare(i,s))),$._defineProperty(this,"burnBatchFrom",Te(async(i,s,o)=>Xt(this.burnable,qv).batchFrom.prepare(i,s,o))),$._defineProperty(this,"lazyMint",Te(async(i,s)=>Xt(this.lazyMintable,uO).lazyMint.prepare(i,s))),$._defineProperty(this,"claim",Te(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),$._defineProperty(this,"claimTo",Te(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new R0(P8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Q.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...aL}))]);return{owner:Q.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Pe(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Pe(e),await Pe(t))}async nextTokenIdToMint(){if(fo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return Xt(this.query,Wv).all(e)}async totalCount(){return Xt(this.query,Wv).totalCount()}async totalCirculatingSupply(e){return Xt(this.query,Wv).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Pe(e)),Xt(this.query,Wv).owned(e)}async getMintTransaction(e,t){return Xt(this.mintable,Fv).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new R0(P8)}get claimConditions(){return Xt(this.lazyMintable?.claimWithConditions,cO).conditions}get signature(){return Xt(this.signatureMintable,lO)}get revealer(){return Xt(this.lazyMintable?.revealer,ix)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new b8;return $te(e,t,this.storage)}detectErc1155Enumerable(){if($e(this.contractWrapper,"ERC1155Enumerable"))return new DO(this,this.contractWrapper)}detectErc1155Mintable(){if($e(this.contractWrapper,"ERC1155Mintable"))return new qO(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if($e(this.contractWrapper,"ERC1155Burnable"))return new BO(this.contractWrapper)}detectErc1155LazyMintable(){if($e(this.contractWrapper,"ERC1155LazyMintableV1")||$e(this.contractWrapper,"ERC1155LazyMintableV2"))return new OO(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if($e(this.contractWrapper,"ERC1155SignatureMintable"))return new FO(this.contractWrapper,this.storage)}};async function Iut(r,e,t,n,a){try{let i=new Q.Contract(t,ZO.default,r),s=await i.supportsInterface(q8),o=await i.supportsInterface(F8);if(s){let c=new Q.Contract(t,xc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Q.Contract(t,zu.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function D8(r,e,t,n,a){let i=new Ss(r.getSignerOrProvider(),t,ZO.default,r.options),s=await i.readContract.supportsInterface(q8),o=await i.readContract.supportsInterface(F8);if(s){let c=new Ss(r.getSignerOrProvider(),t,xc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Ss(r.getSignerOrProvider(),t,zu.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function HRr(r){switch(xt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),xt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),xt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),xt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),xt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),xt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":xt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function jRr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await gp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function zRr(r,e,t){return t=Q.BigNumber.from(t),r=Q.BigNumber.from(r),e=Q.BigNumber.from(e),r.eq(Q.BigNumber.from(0))?!1:e.sub(r).mul($.MAX_BPS).div(r).gte(t)}async function dx(r,e,t){let n=[];for(;e-r>$.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+$.DEFAULT_QUERY_ALL_COUNT-1)),r+=$.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Kot=de.z.object({assetContractAddress:Ti,tokenId:$s,quantity:$s.default(1),currencyContractAddress:Ti.default(Hu),pricePerToken:$.AmountSchema,startTimestamp:W8.default(new Date),endTimestamp:U8,isReservedListing:de.z.boolean().default(!1)}),Vv=class{constructor(e){$._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(_l.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(_l.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Kot.parseAsync(n);await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await _c(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Q.BigNumber.from(o)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:qD(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),$._defineProperty(this,"updateListing",Te(async(n,a)=>{let i=await Kot.parseAsync(a);await D8(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await _c(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:qD(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),$._defineProperty(this,"cancelListing",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),$._defineProperty(this,"buyFromListing",Te(async(n,a,i)=>{i&&(i=await Pe(i));let s=await this.validateListing(Q.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Q.BigNumber.from(a),h=Q.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await M0(this.contractWrapper,h,s.currencyContractAddress,f),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),$._defineProperty(this,"approveBuyerForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),$._defineProperty(this,"revokeBuyerApprovalForReservedListing",Te(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),$._defineProperty(this,"approveCurrencyForListing",Te(async(n,a,i)=>{let s=await this.validateListing(Q.BigNumber.from(n)),o=await Pe(a);o===s.currencyContractAddress&&xt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return xt.default(i===c,"Currency already approved with this price."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),$._defineProperty(this,"revokeCurrencyApprovalForListing",Te(async(n,a)=>{let i=await this.validateListing(Q.BigNumber.from(n)),s=await Pe(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return xt.default(!o.isZero(),"Currency not approved."),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Q.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new Vv(this.contractWrapper),this.encoder=new Gv(this.contractWrapper),this.interceptor=new $v(this.contractWrapper),this.estimator=new Yv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Q.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Pe(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Q.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Pe(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Q.BigNumber.from(e)),a=await Pe(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=zo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?zo.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?zo.Expired:zo.Active;break;case 2:t=zo.Completed;break;case 3:t=zo.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await gp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await Iut(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Q.Contract(e.assetContractAddress,ZO.default,a),s=await i.supportsInterface(q8),o=await i.supportsInterface(F8);if(s){let u=(await new Q.Contract(e.assetContractAddress,xc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Q.Contract(e.assetContractAddress,zu.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=KRr.parse(n);await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await _c(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await _c(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Q.BigNumber.from(c)),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:qD(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),$._defineProperty(this,"buyoutAuction",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n)),i=await fx(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Q.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),$._defineProperty(this,"makeBid",Te(async(n,a)=>{let i=await this.validateAuction(Q.BigNumber.from(n)),s=await _c(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Q.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Q.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);xt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Q.BigNumber.from(i.minimumBidAmount);xt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await M0(this.contractWrapper,s,i.currencyContractAddress,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),$._defineProperty(this,"cancelAuction",Te(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),$._defineProperty(this,"closeAuctionForBidder",Te(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Q.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new rx(n.toString(),i.endTimeInSeconds.toString()):s}})),$._defineProperty(this,"closeAuctionForSeller",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Q.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new rx(n.toString(),a.endTimeInSeconds.toString()):i}})),$._defineProperty(this,"executeSale",Te(async n=>{let a=await this.validateAuction(Q.BigNumber.from(n));try{let i=await this.getWinningBid(n);xt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new rx(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new Vv(this.contractWrapper),this.encoder=new Gv(this.contractWrapper),this.interceptor=new $v(this.contractWrapper),this.estimator=new Yv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Q.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Q.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Q.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Q.BigNumber.from(Math.floor(Date.now()/1e3)),i=Q.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Q.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Q.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Q.BigNumber.from(e))]),i=n?Q.BigNumber.from(n.bidAmount):Q.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return gp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=zo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.startTimestamp).gt(a)?zo.Created:Q.BigNumber.from(e.endTimestamp).lt(a)?zo.Expired:zo.Active;break;case 2:t=zo.Completed;break;case 3:t=zo.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await gp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await gp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Q.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Q.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Q.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Q.BigNumber.from(e.endTimestamp).toNumber(),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Pe(t),s=await Pe(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await gp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Pe(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await GRr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Dh(a.currencyContractAddress)?y8[i].wrapped.address:a.currencyContractAddress,o=await _c(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await M0(this.contractWrapper,o,s,c),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),$._defineProperty(this,"cancelOffer",Te(async n=>De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),$._defineProperty(this,"acceptOffer",Te(async n=>{let a=await this.validateOffer(Q.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await D8(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new Vv(this.contractWrapper),this.encoder=new Gv(this.contractWrapper),this.interceptor=new $v(this.contractWrapper),this.estimator=new Yv(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Q.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await dx(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=zo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Q.BigNumber.from(e.expirationTimestamp).lt(a)?zo.Expired:zo.Active;break;case 2:t=zo.Completed;break;case 3:t=zo.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await gp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await K8(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Q.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Q.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Dh(e.currencyContractAddress)?y8[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Ss(i,a,yu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Pe(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Pe(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Go(VX())})).default:(await Promise.resolve().then(function(){return Go($X())})).default}},N0={name:"TokenERC1155",contractType:"edition",schema:Vct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(YX())})).default}},bp={name:"Marketplace",contractType:"marketplace",schema:Lte,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(XX())})).default}},um={name:"MarketplaceV3",contractType:"marketplace-v3",schema:Lte,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return await mO(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Go(eee())})).default;return await mO(r,a,e,{},t)}},vp={name:"Multiwrap",contractType:"multiwrap",schema:Put,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(ree())})).default}},B0={name:"TokenERC721",contractType:"nft-collection",schema:Kct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(nee())})).default}},Ph={name:"DropERC721",contractType:"nft-drop",schema:Ote,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Go(aee())})).default:(await Promise.resolve().then(function(){return Go(iee())})).default}},Tl={name:"Pack",contractType:"pack",schema:Fct,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(uee())})).default}},Rh={name:"SignatureDrop",contractType:"signature-drop",schema:Ote,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Go(lee())})).default:(await Promise.resolve().then(function(){return Go(dee())})).default}},Mh={name:"Split",contractType:"split",schema:Uct,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(hee())})).default}},D0={name:"DropERC20",contractType:"token-drop",schema:Aut,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);if(n)return n;let a=await iL(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Go(yee())})).default:(await Promise.resolve().then(function(){return Go(gee())})).default}},Nh={name:"TokenERC20",contractType:"token",schema:jct,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(wee())})).default}},Bh={name:"VoteERC20",contractType:"vote",schema:Jct,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Cl(r,e,t);return n||(await Promise.resolve().then(function(){return Go(Eee())})).default}};async function iL(r,e){try{return await Jte(r,e)}catch{return}}var lm={[Sh.contractType]:Sh,[N0.contractType]:N0,[bp.contractType]:bp,[um.contractType]:um,[vp.contractType]:vp,[B0.contractType]:B0,[Ph.contractType]:Ph,[Tl.contractType]:Tl,[Rh.contractType]:Rh,[Mh.contractType]:Mh,[D0.contractType]:D0,[Nh.contractType]:Nh,[Bh.contractType]:Bh},Rut={[Sh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[N0.contractType]:"",[bp.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[um.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[vp.contractType]:"",[B0.contractType]:"",[Ph.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Tl.contractType]:"",[Rh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Mh.contractType]:"",[D0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Nh.contractType]:"",[Bh.contractType]:""},Got={name:"SmartContract",contractType:"custom",schema:{},roles:Ute},Qte={...lm,[Got.contractType]:Got};function Zte(r){return Object.values(Qte).find(e=>e.name===r)?.contractType||"custom"}function Xte(r){return Object.values(Qte).find(e=>e.contractType===r)?.name}async function Mut(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Tl.contractType?[]:kte(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Ph.contractType:case B0.contractType:let o=await Ph.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Rh.contractType:let c=await Rh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case vp.contractType:let u=await vp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Sh.contractType:case N0.contractType:let l=await Sh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case D0.contractType:case Nh.contractType:let h=await Nh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Bh.contractType:let f=await Bh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Q.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Mh.contractType:let m=await Mh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Q.BigNumber.from(I.sharesBps))];case bp.contractType:case um.contractType:let y=await bp.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Tl.contractType:let E=await Tl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function QRr(r,e){return r||(e?.gatewayUrls?new jv.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new jv.ThirdwebStorage)}var O8=class{constructor(e,t,n){$._defineProperty(this,"featureName",YD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"set",Te(async a=>$e(this.contractWrapper,"AppURI")?De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return $e(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():jv.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},zO=class{constructor(e){$._defineProperty(this,"featureName",GD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await wp.parseAsync(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return wp.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},KO=class{constructor(e,t){$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await O0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return cx(ju.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return xut(ju.parse(this.contractWrapper.abi),e?.metadata)}},GO=class{get royalties(){return Xt(this.detectRoyalties(),zD)}get roles(){return Xt(this.detectRoles(),VD)}get sales(){return Xt(this.detectPrimarySales(),KD)}get platformFees(){return Xt(this.detectPlatformFees(),GD)}get owner(){return Xt(this.detectOwnable(),JD)}get erc20(){return Xt(this.detectErc20(),XD)}get erc721(){return Xt(this.detectErc721(),oO)}get erc1155(){return Xt(this.detectErc1155(),pO)}get app(){return Xt(this.detectApp(),YD)}get directListings(){return Xt(this.detectDirectListings(),x8)}get englishAuctions(){return Xt(this.detectEnglishAuctions(),T8)}get offers(){return Xt(this.detectOffers(),E8)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ss(e,t,n,i);$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"interceptor",void 0),$._defineProperty(this,"encoder",void 0),$._defineProperty(this,"estimator",void 0),$._defineProperty(this,"publishedMetadata",void 0),$._defineProperty(this,"abi",void 0),$._defineProperty(this,"metadata",void 0),$._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=n,this.events=new Vv(this.contractWrapper),this.encoder=new Gv(this.contractWrapper),this.interceptor=new $v(this.contractWrapper),this.estimator=new Yv(this.contractWrapper),this.publishedMetadata=new KO(this.contractWrapper,this.storage),this.metadata=new P0(this.contractWrapper,Hv,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();xt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),$._defineProperty(this,"publish",Te(async(a,i)=>{let s=this.getSigner();xt.default(s,"A signer is required");let o=await s.getAddress(),c=await Kte(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Dut(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Q.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=Hut.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return De.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Q.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),$._defineProperty(this,"unpublish",Te(async(a,i)=>{let s=await Pe(a);return De.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Ss(e,pct(),i7r.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return but(e,this.storage)}async extractFunctions(e){return vut(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return ux(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await ux(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Pe(e);return O0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return Gte(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Pe(e),n=await M8(t,this.getProvider());return xt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Pe(e),n=await this.fetchCompilerMetadataFromAddress(t);return await sL(n,this.storage)}async getPublisherProfile(e){let t=await Pe(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Kut.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Pe(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Pe(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return xt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Pe(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Gut.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},_te=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};$._defineProperty(this,"registryLogic",void 0),$._defineProperty(this,"registryRouter",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Pe(o.address),o.chainId])));return De.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Ss(e,Wee(),s7r.default,n),this.registryRouter=new Ss(e,Wee(),o7r.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Pe(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Q.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},px=class{constructor(e,t){$._defineProperty(this,"connection",void 0),$._defineProperty(this,"options",void 0),$._defineProperty(this,"events",new Dee.default),this.connection=new zv(e,t),this.options=t,this.events=new Dee.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hu,a=await Pe(e),i=await Pe(n),s=this.requireWallet(),o=await _c(this.connection.getProvider(),t,n);if(Dh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Hu;this.requireWallet();let t=await Pe(e),n=this.connection.getProvider(),a;return Dh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await gp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await _8(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Q.ethers.utils.hashMessage(e),a=Q.ethers.utils.arrayify(n);return Q.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Ne.Localhost||t===Ne.Hardhat)return new px(new Q.ethers.Wallet(lct,g8(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return xt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Ss(this.connection.getSignerOrProvider(),e,yu.default,this.options)}},cm=class extends zv{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return cm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=g8(t,n);i=e.connect(o)}let s=new cm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=g8(t,n),s=new Q.Wallet(e,i);return new cm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;rL(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),$._defineProperty(this,"contractCache",new Map),$._defineProperty(this,"_publisher",void 0),$._defineProperty(this,"storageHandler",void 0),$._defineProperty(this,"deployer",void 0),$._defineProperty(this,"multiChainRegistry",void 0),$._defineProperty(this,"wallet",void 0),$._defineProperty(this,"storage",void 0),cct(t?.supportedChains);let a=QRr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new px(e,t),this.deployer=new YO(e,t,a),this.multiChainRegistry=new _te(e,this.storageHandler,this.options),this._publisher=new VO(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in Est.GENERATED_ABI)return await this.getContractFromAbi(n,Est.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await cm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in cm?a=await cm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Q.Contract(await Pe(e),Qee.default,this.getProvider()),n=Q.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return Ete(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Pe(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>Wee((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:f8.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new sm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>Wee((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=pi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new CO(this.getSignerOrProvider(),n,await $D(n,Uu.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return mp(this.getProvider(),Wu,await this.getProvider().getBalance(await Pe(e)))}getPublisher(){return this._publisher}},kO=class extends ks{constructor(e,t,n,a){super(t,e,rPr.default,a),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"DEFAULT_VERSION_MAP",{[Ah.contractType]:3,[A0.contractType]:1,[Sh.contractType]:4,[gp.contractType]:1,[kh.contractType]:2,[k0.contractType]:1,[S0.contractType]:2,[Rh.contractType]:1,[Mh.contractType]:1,[Ph.contractType]:1,[yp.contractType]:2,[om.contractType]:1,[vl.contractType]:2}),$._defineProperty(this,"deploy",Te(async(i,s,o,c)=>{let u=cm[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Q.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();xt.default(y,"A signer is required to deploy contracts");let E=await Fct(i,l,h,y),I=Q.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Q.ethers.utils.formatBytes32String(S.toString());return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:F=>{let W=this.parseLogs("ProxyDeployed",F.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let G=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:G,transactionHash:F.transactionHash}),G}})})),$._defineProperty(this,"deployProxyByImplementation",Te(async(i,s,o,c,u)=>{let l=Q.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Q.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===vl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Ah.contractType:case A0.contractType:let i=await Ah.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Sh.contractType:let s=await Sh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case gp.contractType:let o=await gp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case kh.contractType:case k0.contractType:let c=await kh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case S0.contractType:case Rh.contractType:let u=await Rh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Mh.contractType:let l=await Mh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Q.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Ph.contractType:let h=await Ph.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Q.BigNumber.from(E.sharesBps))];case yp.contractType:let f=await yp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case om.contractType:let m=await om.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case vl.contractType:let y=await vl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return Xee(e)}async getImplementation(e,t){let n=Q.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=bot(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Cte(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Q.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},$ee=class extends ks{constructor(e,t,n){super(t,e,nPr.default,n),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t)&&t.toLowerCase()!==Q.constants.AddressZero)}},V7r="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",AO=class extends Dv{constructor(e,t,n){super(e,t),$._defineProperty(this,"_factory",void 0),$._defineProperty(this,"_registry",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"deployMetadataCache",{}),$._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new rot.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(A0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Ah.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Sh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(gp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(k0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(kh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Rh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(S0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(yp.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(om.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(vl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Ph.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Mh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();xt.default(a,"A signer is required to deploy contracts");let i={app_uri:qct[e],...await cm[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(gl.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(gl.Transaction,this.transactionListener),E}let s=Cte(e);xt.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await Fct(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(V7r,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Pe(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Pe(e),o=await Pe(t),c=this.getSigner();xt.default(c,"signer is required");let u=new kO(s,this.getSignerOrProvider(),this.storage,this.options);u.on(gl.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(gl.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Pe(e),s=Q.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return zo(XX())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=V4(t,"twRegistry");if(!!n)return new $ee(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=V4(t,"twFactory");return n?new kO(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();xt.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;xt.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Pe(f);xt.default(m,`implementationAddress not found for chainId '${h}'`),xt.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=Act(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){xt.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];xt.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Pe(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Q.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in got.GENERATED_ABI)return await this.getContractFromAbi(n,got.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await lm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in lm?a=await lm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Q.Contract(await Pe(e),Cte.default,this.getProvider()),n=Q.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return Zte(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Pe(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>fte((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:L8.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new cm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>fte((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Pe(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=pi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new GO(this.getSignerOrProvider(),n,await mO(n,ju.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return gp(this.getProvider(),Hu,await this.getProvider().getBalance(await Pe(e)))}getPublisher(){return this._publisher}},$O=class extends Ss{constructor(e,t,n,a){super(t,e,c7r.default,a),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"DEFAULT_VERSION_MAP",{[Ph.contractType]:3,[B0.contractType]:1,[Rh.contractType]:4,[vp.contractType]:1,[Sh.contractType]:2,[N0.contractType]:1,[D0.contractType]:2,[Nh.contractType]:1,[Bh.contractType]:1,[Mh.contractType]:1,[bp.contractType]:2,[um.contractType]:1,[Tl.contractType]:2}),$._defineProperty(this,"deploy",Te(async(i,s,o,c)=>{let u=lm[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Q.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();xt.default(y,"A signer is required to deploy contracts");let E=await Mut(i,l,h,y),I=Q.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Q.ethers.utils.formatBytes32String(S.toString());return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:F=>{let W=this.parseLogs("ProxyDeployed",F.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let V=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:V,transactionHash:F.transactionHash}),V}})})),$._defineProperty(this,"deployProxyByImplementation",Te(async(i,s,o,c,u)=>{let l=Q.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return De.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Q.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Tl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Ph.contractType:case B0.contractType:let i=await Ph.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Rh.contractType:let s=await Rh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case vp.contractType:let o=await vp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Sh.contractType:case N0.contractType:let c=await Sh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case D0.contractType:case Nh.contractType:let u=await Nh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Bh.contractType:let l=await Bh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Q.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Mh.contractType:let h=await Mh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Q.BigNumber.from(E.sharesBps))];case bp.contractType:let f=await bp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case um.contractType:let m=await um.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Tl.contractType:let y=await Tl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return kte(e)}async getImplementation(e,t){let n=Q.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=dct(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Xte(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Q.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},xte=class extends Ss{constructor(e,t,n){super(t,e,u7r.default,n),$._defineProperty(this,"addContract",Te(async a=>await this.addContracts.prepare([a]))),$._defineProperty(this,"addContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),$._defineProperty(this,"removeContract",Te(async a=>await this.removeContracts.prepare([a]))),$._defineProperty(this,"removeContracts",Te(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Pe(o)])));return De.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Pe(e))).filter(t=>Q.utils.isAddress(t)&&t.toLowerCase()!==Q.constants.AddressZero)}},ZRr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",YO=class extends zv{constructor(e,t,n){super(e,t),$._defineProperty(this,"_factory",void 0),$._defineProperty(this,"_registry",void 0),$._defineProperty(this,"storage",void 0),$._defineProperty(this,"events",void 0),$._defineProperty(this,"deployMetadataCache",{}),$._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new Yot.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(B0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Ph.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Rh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(vp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(N0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Sh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Nh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(D0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(bp.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(um.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(Tl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Mh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Bh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();xt.default(a,"A signer is required to deploy contracts");let i={app_uri:Rut[e],...await lm[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(_l.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(_l.Transaction,this.transactionListener),E}let s=Xte(e);xt.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await Mut(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(ZRr,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Pe(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Pe(e),o=await Pe(t),c=this.getSigner();xt.default(c,"signer is required");let u=new $O(s,this.getSignerOrProvider(),this.storage,this.options);u.on(_l.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(_l.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Pe(e),s=Q.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return Go(kee())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=m8(t,"twRegistry");if(!!n)return new xte(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=m8(t,"twFactory");return n?new $O(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();xt.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;xt.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Pe(f);xt.default(m,`implementationAddress not found for chainId '${h}'`),xt.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=_ut(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){xt.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];xt.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Pe(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Q.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. -${c}`);let u=yte(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();xt.default(a,"Signer is required to deploy contracts");let i=await new Q.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await Vx(e,this.storage),n;try{n=await bte(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Pe(e),i=await new sm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case yp.contractType:case gp.contractType:return[dD(t)?.wrapped?.address||Q.ethers.constants.AddressZero];case vl.contractType:return[dD(t).wrapped.address||Q.ethers.constants.AddressZero,Q.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(xt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Q.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(xt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Q.BigNumber.from(t[a].toString()):t[a])}},SO=class{constructor(e){$._defineProperty(this,"featureName",SD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await Pe(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Wct={},G7r=new sm("polygon");function Uct(r,e){return`${r}-${e}`}function $7r(r,e,t){Wct[Uct(r,e)]=t}function Y7r(r,e){return Wct[Uct(r,e)]}async function P0(r,e,t){let n=(await e.getNetwork()).chainId,a=Y7r(r,n);if(a)return a;let i;try{let s=await u8(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await PO(s,t)}catch{try{let o=await G7r.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await PO(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return $7r(r,n,i),i}async function xl(r,e,t){try{let n=await P0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function PO(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Uu.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=Ate.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function FO(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var eot=256,iee="0|[1-9]\\d*",J7r=`(${iee})\\.(${iee})\\.(${iee})`,Q7r=new RegExp(J7r);function Jx(r){if(r.length>eot)throw new Error(`version is longer than ${eot} characters`);let e=r.trim().match(Q7r);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Hct(r,e){let t=Jx(r),n=Jx(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function Z7r(r,e){let t=Jx(r),n=Jx(e);if(n.major{try{return Jx(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:de.z.string().optional(),description:de.z.string().optional(),readme:de.z.string().optional(),license:de.z.string().optional(),changelog:de.z.string().optional(),tags:de.z.array(de.z.string()).optional(),audit:$.FileOrBufferOrStringSchema.nullable().optional(),logo:$.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:de.z.boolean().optional(),isDeployableViaProxy:de.z.boolean().optional(),factoryDeploymentData:Gct.optional(),constructorParams:de.z.record(de.z.string(),de.z.object({displayName:de.z.string().optional(),description:de.z.string().optional(),defaultValue:de.z.string().optional()}).catchall(de.z.any())).optional()}).catchall(de.z.any()),$ct=kte.extend({audit:de.z.string().nullable().optional(),logo:de.z.string().nullable().optional()}),Yct=T8.merge(kte).extend({publisher:Ti.optional()}),Jct=T8.merge($ct).extend({publisher:Ti.optional()}),Qct=de.z.object({name:de.z.string().optional(),bio:de.z.string().optional(),avatar:$.FileOrBufferOrStringSchema.nullable().optional(),website:de.z.string().optional(),twitter:de.z.string().optional(),telegram:de.z.string().optional(),facebook:de.z.string().optional(),github:de.z.string().optional(),medium:de.z.string().optional(),linkedin:de.z.string().optional(),reddit:de.z.string().optional(),discord:de.z.string().optional()}),Zct=Qct.extend({avatar:de.z.string().nullable().optional()}),Xct=de.z.object({id:de.z.string(),timestamp:Vs,metadataUri:de.z.string()}),Ate=de.z.object({title:de.z.string().optional(),author:de.z.string().optional(),details:de.z.string().optional(),notice:de.z.string().optional()}),eut=de.z.object({name:de.z.string(),abi:Uu,metadata:de.z.record(de.z.string(),de.z.any()),info:Ate,licenses:de.z.array(de.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),tut=T8.merge(eut).extend({bytecode:de.z.string()}),X7r=new Bv.ThirdwebStorage,Ste=new Map;function Pte(r,e){return`${r}-${e}`}function Rte(r,e){let t=Pte(r,e);return Ste.has(t)}function rut(r,e){if(!Rte(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=Pte(r,e);return Ste.get(t)}function nut(r,e,t){let n=Pte(e,t);Ste.set(n,r)}function z4(r){return r||X7r}async function uD(r){let e=await Pe(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(Rte(e,a))return rut(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new CO(t||n,e,await $D(e,Uu.parse(i),n,r.sdkOptions,z4(r.storage)),z4(r.storage),r.sdkOptions,a);return nut(s,e,a),s}async function eRr(r){try{let e=new Q.Contract(r.address,Qee.default,r.provider),t=Q.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return Ete(t)}catch{return"custom"}}async function tRr(r){let e=await Pe(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(Rte(e,a))return rut(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await eRr({address:e,provider:n});if(i==="custom"){let s=new IO(r.network,r.sdkOptions,z4(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return uD({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await cm[i].getAbi(e,n,z4(r.storage));return uD({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in cm){let i=await cm[r.contractTypeOrAbi].initialize(t||n,e,z4(r.storage),r.sdkOptions);return nut(i,e,a),i}else return uD({...r,address:e,abi:r.contractTypeOrAbi})}var cD=new WeakMap;async function Mte(r){let[,e]=pi(r.network,r.sdkOptions),t;return cD.has(e)?t=cD.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw cD.delete(e),n}),cD.set(e,t)),await t}async function rRr(r){let[,e]=pi(r.network,r.sdkOptions);return e.getBlockNumber()}var j4=new Map;async function aut(r){let e=await Mte(r),t=r.block,n=`${e}_${t}`,a;if(j4.has(n))a=j4.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw j4.delete(n),s}),j4.set(n,a)}return await a}var see=new Map;async function iut(r){let e=await Mte(r),t=r.block,n=`${e}_${t}`,a;if(j4.has(n))a=see.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw see.delete(n),s}),see.set(n,a)}return await a}function Nte(r){let[,e]=pi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function nRr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await aut({block:a,...t}))}catch{}}return Nte({...t,onBlockNumber:n})}function sut(r){let{onBlock:e,...t}=r;async function n(a){try{e(await iut({block:a,...t}))}catch{}}return Nte({...t,onBlockNumber:n})}function aRr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return sut({...n,onBlock:i})}te.ALL_ROLES=hte;te.APPROVED_IMPLEMENTATIONS=dee;te.AbiObjectSchema=Vct;te.AbiSchema=Uu;te.AbiTypeSchema=Yee;te.AddressOrEnsSchema=Ti;te.AddressSchema=tte;te.AdminRoleMissingError=Pee;te.AssetNotFoundError=gee;te.AuctionAlreadyStartedError=Cee;te.AuctionHasNotEndedError=Fx;te.BYOCContractMetadataSchema=jct;te.BaseSignaturePayloadInput=NO;te.BigNumberSchema=Is;te.BigNumberTransformSchema=Tot;te.BigNumberishSchema=Vs;te.CONTRACTS_MAP=Tte;te.CONTRACT_ADDRESSES=C1;te.CallOverrideSchema=Eot;te.ChainId=Ne;te.ChainIdToAddressSchema=Jee;te.ChainInfoInputSchema=Cot;te.ClaimConditionInputArray=Sot;te.ClaimConditionInputSchema=w8;te.ClaimConditionMetadataSchema=Aot;te.ClaimConditionOutputSchema=ite;te.ClaimEligibility=Ia;te.CommonContractOutputSchema=id;te.CommonContractSchema=wl;te.CommonPlatformFeeSchema=bp;te.CommonPrimarySaleSchema=I1;te.CommonRoyaltySchema=jo;te.CommonSymbolSchema=fo;te.CommonTrustedForwarderSchema=sd;te.CompilerMetadataFetchedSchema=eut;te.ContractAppURI=h8;te.ContractDeployer=AO;te.ContractEncoder=Lv;te.ContractEvents=qv;te.ContractInfoSchema=Ate;te.ContractInterceptor=Fv;te.ContractMetadata=E0;te.ContractOwner=SO;te.ContractPlatformFee=TO;te.ContractPrimarySale=QD;te.ContractPublishedMetadata=EO;te.ContractRoles=YD;te.ContractRoyalty=JD;te.ContractWrapper=ks;te.CurrencySchema=Iot;te.CurrencyValueSchema=kot;te.CustomContractDeploy=Kct;te.CustomContractInput=Ite;te.CustomContractOutput=zct;te.CustomContractSchema=Nv;te.DelayedReveal=l8;te.DropClaimConditions=d8;te.DropErc1155ClaimConditions=ZD;te.DropErc1155ContractSchema=jot;te.DropErc20ContractSchema=Dct;te.DropErc721ContractSchema=cte;te.DuplicateFileNameError=wee;te.DuplicateLeafsError=mD;te.EditionDropInitializer=kh;te.EditionInitializer=k0;te.EndDateSchema=b8;te.Erc1155=vO;te.Erc1155BatchMintable=yO;te.Erc1155Burnable=hO;te.Erc1155Enumerable=fO;te.Erc1155LazyMintable=mO;te.Erc1155Mintable=gO;te.Erc1155SignatureMintable=bO;te.Erc20=nO;te.Erc20BatchMintable=eO;te.Erc20Burnable=XD;te.Erc20Mintable=tO;te.Erc20SignatureMintable=rO;te.Erc721=pO;te.Erc721BatchMintable=oO;te.Erc721Burnable=aO;te.Erc721ClaimableWithConditions=iO;te.Erc721Enumerable=uO;te.Erc721LazyMintable=sO;te.Erc721Mintable=cO;te.Erc721Supply=lO;te.Erc721WithQuantitySignatureMintable=dO;te.EventType=gl;te.ExtensionNotImplementedError=C0;te.ExtraPublishMetadataSchemaInput=kte;te.ExtraPublishMetadataSchemaOutput=$ct;te.FEATURE_DIRECT_LISTINGS=X4;te.FEATURE_ENGLISH_AUCTIONS=e8;te.FEATURE_NFT_REVEALABLE=i8;te.FEATURE_OFFERS=t8;te.FEATURE_PACK_VRF=Ree;te.FactoryDeploymentSchema=Gct;te.FetchError=Eee;te.FileNameMissingError=vee;te.FullPublishMetadataSchemaInput=Yct;te.FullPublishMetadataSchemaOutput=Jct;te.FunctionDeprecatedError=Iee;te.GasCostEstimator=Wv;te.GenericRequest=Wot;te.InterfaceId_IERC1155=y8;te.InterfaceId_IERC721=m8;te.InvalidAddressError=yee;te.LINK_TOKEN_ADDRESS=uPr;te.LOCAL_NODE_PKEY=got;te.ListingNotFoundError=kee;te.MarketplaceContractSchema=ute;te.MarketplaceInitializer=yp;te.MarketplaceV3DirectListings=wO;te.MarketplaceV3EnglishAuctions=xO;te.MarketplaceV3Initializer=om;te.MarketplaceV3Offers=_O;te.MerkleSchema=R0;te.MintRequest1155=qot;te.MintRequest20=Oot;te.MintRequest721=Lot;te.MintRequest721withQuantity=Fot;te.MissingOwnerRoleError=_ee;te.MissingRoleError=fD;te.MultiwrapContractSchema=Lct;te.MultiwrapInitializer=gp;te.NATIVE_TOKENS=G4;te.NATIVE_TOKEN_ADDRESS=Wu;te.NFTCollectionInitializer=A0;te.NFTDropInitializer=Ah;te.NotEnoughTokensError=xee;te.NotFoundError=Y4;te.OZ_DEFENDER_FORWARDER_ADDRESS=E1;te.PREBUILT_CONTRACTS_APPURI_MAP=qct;te.PREBUILT_CONTRACTS_MAP=cm;te.PackContractSchema=Vot;te.PackInitializer=vl;te.PartialClaimConditionInputSchema=hPr;te.PreDeployMetadata=T8;te.PreDeployMetadataFetchedSchema=tut;te.ProfileSchemaInput=Qct;te.ProfileSchemaOutput=Zct;te.PublishedContractSchema=Xct;te.QuantityAboveLimitError=Tee;te.RawDateSchema=g8;te.RestrictedTransferError=See;te.SUPPORTED_CHAIN_IDS=fot;te.Signature1155PayloadInput=Rot;te.Signature1155PayloadInputWithTokenId=Mot;te.Signature1155PayloadOutput=Not;te.Signature20PayloadInput=ste;te.Signature20PayloadOutput=Pot;te.Signature721PayloadInput=BO;te.Signature721PayloadOutput=ote;te.Signature721WithQuantityInput=Bot;te.Signature721WithQuantityOutput=Dot;te.SignatureDropInitializer=Sh;te.SnapshotEntryInput=pD;te.SnapshotEntryWithProofSchema=nte;te.SnapshotInfoSchema=pPr;te.SnapshotInputSchema=v8;te.SnapshotSchema=ate;te.SplitInitializer=Ph;te.SplitsContractSchema=$ot;te.StartDateSchema=rte;te.Status=Ho;te.ThirdwebSDK=sm;te.TokenDropInitializer=S0;te.TokenErc1155ContractSchema=ect;te.TokenErc20ContractSchema=Jot;te.TokenErc721ContractSchema=Zot;te.TokenInitializer=Rh;te.Transaction=De;te.TransactionError=J4;te.UploadError=bee;te.UserWallet=Yx;te.VoteContractSchema=nct;te.VoteInitializer=Mh;te.WrongListingTypeError=Aee;te.approveErc20Allowance=pte;te.assertEnabled=Xt;te.buildTransactionFunction=Te;te.cleanCurrencyAddress=gD;te.convertToReadableQuantity=W4;te.createSnapshot=mct;te.detectContractFeature=$e;te.detectFeatures=x8;te.extractConstructorParams=Cct;te.extractConstructorParamsFromAbi=yte;te.extractEventsFromAbi=Sct;te.extractFunctionParamsFromAbi=Act;te.extractFunctions=Ict;te.extractFunctionsFromAbi=Kx;te.extractIPFSHashFromBytecode=Rct;te.extractMinimalProxyImplementationAddress=Pct;te.fetchAbiFromAddress=xl;te.fetchContractMetadata=PO;te.fetchContractMetadataFromAddress=P0;te.fetchCurrencyMetadata=Qx;te.fetchCurrencyValue=mp;te.fetchExtendedReleaseMetadata=bte;te.fetchPreDeployMetadata=Vx;te.fetchRawPredeployMetadata=gte;te.fetchSnapshotEntryForAddress=OO;te.fetchSourceFilesFromMetadata=FO;te.fetchTokenMetadataForContract=_8;te.getAllDetectedFeatureNames=Wee;te.getAllDetectedFeatures=S7r;te.getApprovedImplementation=bot;te.getBlock=aut;te.getBlockNumber=rRr;te.getBlockWithTransactions=iut;te.getChainId=Mte;te.getChainIdFromNetwork=act;te.getChainProvider=$4;te.getContract=tRr;te.getContractAddressByChainId=V4;te.getContractFromAbi=uD;te.getContractName=Cte;te.getContractPublisherAddress=vot;te.getContractTypeForRemoteName=Ete;te.getDefaultTrustedForwarders=Xee;te.getMultichainRegistryAddress=pee;te.getNativeTokenByChainId=dD;te.getProviderFromRpcUrl=hD;te.getRoleHash=qx;te.getSignerAndProvider=pi;te.getSupportedChains=yot;te.handleTokenApproval=p8;te.hasERC20Allowance=YPr;te.hasFunction=po;te.hasMatchingAbi=mte;te.includesErrorMessage=Q4;te.isChainConfig=DO;te.isDowngradeVersion=Z7r;te.isFeatureEnabled=Gx;te.isIncrementalVersion=Hct;te.isNativeToken=Nh;te.isProvider=ete;te.isSigner=MO;te.isTokenApprovedForTransfer=Nct;te.isWinningBid=q7r;te.mapOffer=L7r;te.matchesPrebuiltAbi=I7r;te.normalizeAmount=JPr;te.normalizePriceValue=gc;te.parseRevertReason=lte;te.resolveAddress=Pe;te.resolveContractUriFromAddress=u8;te.setErc20Allowance=I0;te.setSupportedChains=mot;te.toDisplayValue=e7r;te.toEther=QPr;te.toSemver=Jx;te.toUnits=XPr;te.toWei=ZPr;te.uploadOrExtractURI=xte;te.validateNewListingParam=O7r;te.watchBlock=nRr;te.watchBlockNumber=Nte;te.watchBlockWithTransactions=sut;te.watchTransactions=aRr});var uut=_(k1=>{"use strict";d();p();var Zx=os(),um=kr(),WO=wi(),out=um.z.object({}).catchall(um.z.union([Zx.BigNumberTransformSchema,um.z.unknown()])),iRr=um.z.union([um.z.array(out),out]).optional(),cut=um.z.object({supply:Zx.BigNumberSchema,metadata:WO.CommonNFTOutput}),sRr=cut.extend({owner:um.z.string(),quantityOwned:Zx.BigNumberSchema}),oRr=um.z.object({supply:Zx.BigNumberishSchema,metadata:WO.CommonNFTInput}),cRr=um.z.object({supply:Zx.BigNumberishSchema,metadata:WO.NFTInputOrUriSchema}),uRr=um.z.object({toAddress:Zx.AddressOrEnsSchema,amount:WO.AmountSchema}),lRr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});k1.EditionMetadataInputOrUriSchema=cRr;k1.EditionMetadataInputSchema=oRr;k1.EditionMetadataOutputSchema=cut;k1.EditionMetadataWithOwnerOutputSchema=sRr;k1.OptionalPropertiesInput=iRr;k1.ProposalState=lRr;k1.TokenMintInputSchema=uRr});var lut=_(ne=>{"use strict";d();p();Object.defineProperty(ne,"__esModule",{value:!0});var dRr=wi(),se=os(),Hv=uut(),pRr=fX(),hRr=KX(),fRr=nD(),mRr=Cx(),yRr=D4(),Bte=EX(),gRr=GX(),E8=L4();Ir();Ge();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();globalThis.global=globalThis;ne.getRpcUrl=dRr.getRpcUrl;ne.ALL_ROLES=se.ALL_ROLES;ne.APPROVED_IMPLEMENTATIONS=se.APPROVED_IMPLEMENTATIONS;ne.AbiObjectSchema=se.AbiObjectSchema;ne.AbiSchema=se.AbiSchema;ne.AbiTypeSchema=se.AbiTypeSchema;ne.AddressOrEnsSchema=se.AddressOrEnsSchema;ne.AddressSchema=se.AddressSchema;ne.AdminRoleMissingError=se.AdminRoleMissingError;ne.AssetNotFoundError=se.AssetNotFoundError;ne.AuctionAlreadyStartedError=se.AuctionAlreadyStartedError;ne.AuctionHasNotEndedError=se.AuctionHasNotEndedError;ne.BYOCContractMetadataSchema=se.BYOCContractMetadataSchema;ne.BaseSignaturePayloadInput=se.BaseSignaturePayloadInput;ne.BigNumberSchema=se.BigNumberSchema;ne.BigNumberTransformSchema=se.BigNumberTransformSchema;ne.BigNumberishSchema=se.BigNumberishSchema;ne.CONTRACTS_MAP=se.CONTRACTS_MAP;ne.CONTRACT_ADDRESSES=se.CONTRACT_ADDRESSES;ne.CallOverrideSchema=se.CallOverrideSchema;ne.ChainId=se.ChainId;ne.ChainIdToAddressSchema=se.ChainIdToAddressSchema;ne.ChainInfoInputSchema=se.ChainInfoInputSchema;ne.ClaimConditionInputArray=se.ClaimConditionInputArray;ne.ClaimConditionInputSchema=se.ClaimConditionInputSchema;ne.ClaimConditionMetadataSchema=se.ClaimConditionMetadataSchema;ne.ClaimConditionOutputSchema=se.ClaimConditionOutputSchema;ne.ClaimEligibility=se.ClaimEligibility;ne.CommonContractOutputSchema=se.CommonContractOutputSchema;ne.CommonContractSchema=se.CommonContractSchema;ne.CommonPlatformFeeSchema=se.CommonPlatformFeeSchema;ne.CommonPrimarySaleSchema=se.CommonPrimarySaleSchema;ne.CommonRoyaltySchema=se.CommonRoyaltySchema;ne.CommonSymbolSchema=se.CommonSymbolSchema;ne.CommonTrustedForwarderSchema=se.CommonTrustedForwarderSchema;ne.CompilerMetadataFetchedSchema=se.CompilerMetadataFetchedSchema;ne.ContractAppURI=se.ContractAppURI;ne.ContractDeployer=se.ContractDeployer;ne.ContractEncoder=se.ContractEncoder;ne.ContractEvents=se.ContractEvents;ne.ContractInfoSchema=se.ContractInfoSchema;ne.ContractInterceptor=se.ContractInterceptor;ne.ContractMetadata=se.ContractMetadata;ne.ContractOwner=se.ContractOwner;ne.ContractPlatformFee=se.ContractPlatformFee;ne.ContractPrimarySale=se.ContractPrimarySale;ne.ContractPublishedMetadata=se.ContractPublishedMetadata;ne.ContractRoles=se.ContractRoles;ne.ContractRoyalty=se.ContractRoyalty;ne.CurrencySchema=se.CurrencySchema;ne.CurrencyValueSchema=se.CurrencyValueSchema;ne.CustomContractDeploy=se.CustomContractDeploy;ne.CustomContractInput=se.CustomContractInput;ne.CustomContractOutput=se.CustomContractOutput;ne.CustomContractSchema=se.CustomContractSchema;ne.DelayedReveal=se.DelayedReveal;ne.DropClaimConditions=se.DropClaimConditions;ne.DropErc1155ClaimConditions=se.DropErc1155ClaimConditions;ne.DuplicateFileNameError=se.DuplicateFileNameError;ne.DuplicateLeafsError=se.DuplicateLeafsError;ne.EditionDropInitializer=se.EditionDropInitializer;ne.EditionInitializer=se.EditionInitializer;ne.EndDateSchema=se.EndDateSchema;ne.Erc1155=se.Erc1155;ne.Erc1155BatchMintable=se.Erc1155BatchMintable;ne.Erc1155Burnable=se.Erc1155Burnable;ne.Erc1155Enumerable=se.Erc1155Enumerable;ne.Erc1155LazyMintable=se.Erc1155LazyMintable;ne.Erc1155Mintable=se.Erc1155Mintable;ne.Erc1155SignatureMintable=se.Erc1155SignatureMintable;ne.Erc20=se.Erc20;ne.Erc20BatchMintable=se.Erc20BatchMintable;ne.Erc20Burnable=se.Erc20Burnable;ne.Erc20Mintable=se.Erc20Mintable;ne.Erc20SignatureMintable=se.Erc20SignatureMintable;ne.Erc721=se.Erc721;ne.Erc721BatchMintable=se.Erc721BatchMintable;ne.Erc721Burnable=se.Erc721Burnable;ne.Erc721ClaimableWithConditions=se.Erc721ClaimableWithConditions;ne.Erc721Enumerable=se.Erc721Enumerable;ne.Erc721LazyMintable=se.Erc721LazyMintable;ne.Erc721Mintable=se.Erc721Mintable;ne.Erc721Supply=se.Erc721Supply;ne.Erc721WithQuantitySignatureMintable=se.Erc721WithQuantitySignatureMintable;ne.EventType=se.EventType;ne.ExtensionNotImplementedError=se.ExtensionNotImplementedError;ne.ExtraPublishMetadataSchemaInput=se.ExtraPublishMetadataSchemaInput;ne.ExtraPublishMetadataSchemaOutput=se.ExtraPublishMetadataSchemaOutput;ne.FactoryDeploymentSchema=se.FactoryDeploymentSchema;ne.FetchError=se.FetchError;ne.FileNameMissingError=se.FileNameMissingError;ne.FullPublishMetadataSchemaInput=se.FullPublishMetadataSchemaInput;ne.FullPublishMetadataSchemaOutput=se.FullPublishMetadataSchemaOutput;ne.FunctionDeprecatedError=se.FunctionDeprecatedError;ne.GasCostEstimator=se.GasCostEstimator;ne.GenericRequest=se.GenericRequest;ne.InterfaceId_IERC1155=se.InterfaceId_IERC1155;ne.InterfaceId_IERC721=se.InterfaceId_IERC721;ne.InvalidAddressError=se.InvalidAddressError;ne.LINK_TOKEN_ADDRESS=se.LINK_TOKEN_ADDRESS;ne.LOCAL_NODE_PKEY=se.LOCAL_NODE_PKEY;ne.ListingNotFoundError=se.ListingNotFoundError;ne.MarketplaceInitializer=se.MarketplaceInitializer;ne.MarketplaceV3DirectListings=se.MarketplaceV3DirectListings;ne.MarketplaceV3EnglishAuctions=se.MarketplaceV3EnglishAuctions;ne.MarketplaceV3Initializer=se.MarketplaceV3Initializer;ne.MarketplaceV3Offers=se.MarketplaceV3Offers;ne.MerkleSchema=se.MerkleSchema;ne.MintRequest1155=se.MintRequest1155;ne.MintRequest20=se.MintRequest20;ne.MintRequest721=se.MintRequest721;ne.MintRequest721withQuantity=se.MintRequest721withQuantity;ne.MissingOwnerRoleError=se.MissingOwnerRoleError;ne.MissingRoleError=se.MissingRoleError;ne.MultiwrapInitializer=se.MultiwrapInitializer;ne.NATIVE_TOKENS=se.NATIVE_TOKENS;ne.NATIVE_TOKEN_ADDRESS=se.NATIVE_TOKEN_ADDRESS;ne.NFTCollectionInitializer=se.NFTCollectionInitializer;ne.NFTDropInitializer=se.NFTDropInitializer;ne.NotEnoughTokensError=se.NotEnoughTokensError;ne.NotFoundError=se.NotFoundError;ne.OZ_DEFENDER_FORWARDER_ADDRESS=se.OZ_DEFENDER_FORWARDER_ADDRESS;ne.PREBUILT_CONTRACTS_APPURI_MAP=se.PREBUILT_CONTRACTS_APPURI_MAP;ne.PREBUILT_CONTRACTS_MAP=se.PREBUILT_CONTRACTS_MAP;ne.PackInitializer=se.PackInitializer;ne.PartialClaimConditionInputSchema=se.PartialClaimConditionInputSchema;ne.PreDeployMetadata=se.PreDeployMetadata;ne.PreDeployMetadataFetchedSchema=se.PreDeployMetadataFetchedSchema;ne.ProfileSchemaInput=se.ProfileSchemaInput;ne.ProfileSchemaOutput=se.ProfileSchemaOutput;ne.PublishedContractSchema=se.PublishedContractSchema;ne.QuantityAboveLimitError=se.QuantityAboveLimitError;ne.RawDateSchema=se.RawDateSchema;ne.RestrictedTransferError=se.RestrictedTransferError;ne.SUPPORTED_CHAIN_IDS=se.SUPPORTED_CHAIN_IDS;ne.Signature1155PayloadInput=se.Signature1155PayloadInput;ne.Signature1155PayloadInputWithTokenId=se.Signature1155PayloadInputWithTokenId;ne.Signature1155PayloadOutput=se.Signature1155PayloadOutput;ne.Signature20PayloadInput=se.Signature20PayloadInput;ne.Signature20PayloadOutput=se.Signature20PayloadOutput;ne.Signature721PayloadInput=se.Signature721PayloadInput;ne.Signature721PayloadOutput=se.Signature721PayloadOutput;ne.Signature721WithQuantityInput=se.Signature721WithQuantityInput;ne.Signature721WithQuantityOutput=se.Signature721WithQuantityOutput;ne.SignatureDropInitializer=se.SignatureDropInitializer;ne.SnapshotEntryInput=se.SnapshotEntryInput;ne.SnapshotEntryWithProofSchema=se.SnapshotEntryWithProofSchema;ne.SnapshotInfoSchema=se.SnapshotInfoSchema;ne.SnapshotInputSchema=se.SnapshotInputSchema;ne.SnapshotSchema=se.SnapshotSchema;ne.SplitInitializer=se.SplitInitializer;ne.StartDateSchema=se.StartDateSchema;ne.Status=se.Status;ne.ThirdwebSDK=se.ThirdwebSDK;ne.TokenDropInitializer=se.TokenDropInitializer;ne.TokenInitializer=se.TokenInitializer;ne.Transaction=se.Transaction;ne.TransactionError=se.TransactionError;ne.UploadError=se.UploadError;ne.UserWallet=se.UserWallet;ne.VoteInitializer=se.VoteInitializer;ne.WrongListingTypeError=se.WrongListingTypeError;ne.approveErc20Allowance=se.approveErc20Allowance;ne.assertEnabled=se.assertEnabled;ne.cleanCurrencyAddress=se.cleanCurrencyAddress;ne.convertToReadableQuantity=se.convertToReadableQuantity;ne.createSnapshot=se.createSnapshot;ne.detectContractFeature=se.detectContractFeature;ne.detectFeatures=se.detectFeatures;ne.extractConstructorParams=se.extractConstructorParams;ne.extractConstructorParamsFromAbi=se.extractConstructorParamsFromAbi;ne.extractEventsFromAbi=se.extractEventsFromAbi;ne.extractFunctionParamsFromAbi=se.extractFunctionParamsFromAbi;ne.extractFunctions=se.extractFunctions;ne.extractFunctionsFromAbi=se.extractFunctionsFromAbi;ne.extractIPFSHashFromBytecode=se.extractIPFSHashFromBytecode;ne.extractMinimalProxyImplementationAddress=se.extractMinimalProxyImplementationAddress;ne.fetchAbiFromAddress=se.fetchAbiFromAddress;ne.fetchContractMetadata=se.fetchContractMetadata;ne.fetchContractMetadataFromAddress=se.fetchContractMetadataFromAddress;ne.fetchCurrencyMetadata=se.fetchCurrencyMetadata;ne.fetchCurrencyValue=se.fetchCurrencyValue;ne.fetchExtendedReleaseMetadata=se.fetchExtendedReleaseMetadata;ne.fetchPreDeployMetadata=se.fetchPreDeployMetadata;ne.fetchRawPredeployMetadata=se.fetchRawPredeployMetadata;ne.fetchSnapshotEntryForAddress=se.fetchSnapshotEntryForAddress;ne.fetchSourceFilesFromMetadata=se.fetchSourceFilesFromMetadata;ne.getAllDetectedFeatureNames=se.getAllDetectedFeatureNames;ne.getAllDetectedFeatures=se.getAllDetectedFeatures;ne.getApprovedImplementation=se.getApprovedImplementation;ne.getBlock=se.getBlock;ne.getBlockNumber=se.getBlockNumber;ne.getBlockWithTransactions=se.getBlockWithTransactions;ne.getChainId=se.getChainId;ne.getChainIdFromNetwork=se.getChainIdFromNetwork;ne.getChainProvider=se.getChainProvider;ne.getContract=se.getContract;ne.getContractAddressByChainId=se.getContractAddressByChainId;ne.getContractFromAbi=se.getContractFromAbi;ne.getContractName=se.getContractName;ne.getContractPublisherAddress=se.getContractPublisherAddress;ne.getContractTypeForRemoteName=se.getContractTypeForRemoteName;ne.getDefaultTrustedForwarders=se.getDefaultTrustedForwarders;ne.getMultichainRegistryAddress=se.getMultichainRegistryAddress;ne.getNativeTokenByChainId=se.getNativeTokenByChainId;ne.getProviderFromRpcUrl=se.getProviderFromRpcUrl;ne.getRoleHash=se.getRoleHash;ne.getSignerAndProvider=se.getSignerAndProvider;ne.getSupportedChains=se.getSupportedChains;ne.hasERC20Allowance=se.hasERC20Allowance;ne.hasFunction=se.hasFunction;ne.hasMatchingAbi=se.hasMatchingAbi;ne.includesErrorMessage=se.includesErrorMessage;ne.isChainConfig=se.isChainConfig;ne.isDowngradeVersion=se.isDowngradeVersion;ne.isFeatureEnabled=se.isFeatureEnabled;ne.isIncrementalVersion=se.isIncrementalVersion;ne.isNativeToken=se.isNativeToken;ne.isProvider=se.isProvider;ne.isSigner=se.isSigner;ne.matchesPrebuiltAbi=se.matchesPrebuiltAbi;ne.normalizeAmount=se.normalizeAmount;ne.normalizePriceValue=se.normalizePriceValue;ne.parseRevertReason=se.parseRevertReason;ne.resolveContractUriFromAddress=se.resolveContractUriFromAddress;ne.setErc20Allowance=se.setErc20Allowance;ne.setSupportedChains=se.setSupportedChains;ne.toDisplayValue=se.toDisplayValue;ne.toEther=se.toEther;ne.toSemver=se.toSemver;ne.toUnits=se.toUnits;ne.toWei=se.toWei;ne.watchBlock=se.watchBlock;ne.watchBlockNumber=se.watchBlockNumber;ne.watchBlockWithTransactions=se.watchBlockWithTransactions;ne.watchTransactions=se.watchTransactions;ne.EditionMetadataInputOrUriSchema=Hv.EditionMetadataInputOrUriSchema;ne.EditionMetadataInputSchema=Hv.EditionMetadataInputSchema;ne.EditionMetadataOutputSchema=Hv.EditionMetadataOutputSchema;ne.EditionMetadataWithOwnerOutputSchema=Hv.EditionMetadataWithOwnerOutputSchema;ne.OptionalPropertiesInput=Hv.OptionalPropertiesInput;ne.ProposalState=Hv.ProposalState;ne.TokenMintInputSchema=Hv.TokenMintInputSchema;ne.DropErc1155History=pRr.DropErc1155History;ne.TokenERC20History=hRr.TokenERC20History;ne.StandardErc20=fRr.StandardErc20;ne.StandardErc721=mRr.StandardErc721;ne.StandardErc1155=yRr.StandardErc1155;ne.ListingType=Bte.ListingType;ne.MarketplaceAuction=Bte.MarketplaceAuction;ne.MarketplaceDirect=Bte.MarketplaceDirect;ne.VoteType=gRr.VoteType;ne.PAPER_API_URL=E8.PAPER_API_URL;ne.PaperCheckout=E8.PaperCheckout;ne.createCheckoutLinkIntent=E8.createCheckoutLinkIntent;ne.fetchRegisteredCheckoutId=E8.fetchRegisteredCheckoutId;ne.parseChainIdToPaperChain=E8.parseChainIdToPaperChain});var Ei=_(hu=>{"use strict";d();p();var bRr=Ir(),Xx=Ge(),lt=kr();function vRr(r){return r&&r.__esModule?r:{default:r}}var e_=vRr(bRr),fut="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function wRr(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fut;return`https://${r}.rpc.thirdweb.com/${e}`}var xRr=()=>typeof window<"u",dut=xRr()?lt.z.instanceof(File):lt.z.instanceof(b.Buffer),_Rr=lt.z.union([dut,lt.z.object({data:lt.z.union([dut,lt.z.string()]),name:lt.z.string()})]),UO=lt.z.union([_Rr,lt.z.string()]),mut=1e4,TRr=lt.z.union([lt.z.array(lt.z.number()),lt.z.string()]),ERr=lt.z.union([lt.z.string(),lt.z.number(),lt.z.bigint(),lt.z.custom(r=>Xx.BigNumber.isBigNumber(r)),lt.z.custom(r=>e_.default.isBN(r))]).transform(r=>{let e=e_.default.isBN(r)?new e_.default(r).toString():Xx.BigNumber.from(r).toString();return Xx.BigNumber.from(e)});ERr.transform(r=>r.toString());var yut=lt.z.union([lt.z.bigint(),lt.z.custom(r=>Xx.BigNumber.isBigNumber(r)),lt.z.custom(r=>e_.default.isBN(r))]).transform(r=>e_.default.isBN(r)?new e_.default(r).toString():Xx.BigNumber.from(r).toString()),CRr=lt.z.number().max(mut,"Cannot exceed 100%").min(0,"Cannot be below 0%"),IRr=lt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),kRr=lt.z.union([lt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),lt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),lt.z.string().length(0)]),gut=lt.z.union([lt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),lt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),ARr=lt.z.union([gut,lt.z.literal("unlimited")]).default("unlimited"),but=lt.z.date().transform(r=>Xx.BigNumber.from(Math.floor(r.getTime()/1e3)));but.default(new Date(0));but.default(new Date(Date.now()+1e3*60*60*24*365*10));function SRr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function PRr(r){var e=SRr(r,"string");return typeof e=="symbol"?e:String(e)}function RRr(r,e,t){return e=PRr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var put=lt.z.object({}).catchall(lt.z.union([yut,lt.z.unknown()])),hut=lt.z.union([lt.z.array(put),put]).optional().nullable(),Ote=lt.z.object({name:lt.z.union([lt.z.string(),lt.z.number()]).optional().nullable(),description:lt.z.string().nullable().optional().nullable(),image:UO.nullable().optional(),external_url:UO.nullable().optional(),animation_url:UO.optional().nullable(),background_color:kRr.optional().nullable(),properties:hut,attributes:hut}).catchall(lt.z.union([yut,lt.z.unknown()])),MRr=lt.z.union([Ote,lt.z.string()]),NRr=Ote.extend({id:lt.z.string(),uri:lt.z.string(),image:lt.z.string().nullable().optional(),external_url:lt.z.string().nullable().optional(),animation_url:lt.z.string().nullable().optional()}),Dte=100,BRr=lt.z.object({start:lt.z.number().default(0),count:lt.z.number().default(Dte)}).default({start:0,count:Dte});hu.AmountSchema=gut;hu.BasisPointsSchema=CRr;hu.BytesLikeSchema=TRr;hu.CommonNFTInput=Ote;hu.CommonNFTOutput=NRr;hu.DEFAULT_API_KEY=fut;hu.DEFAULT_QUERY_ALL_COUNT=Dte;hu.FileOrBufferOrStringSchema=UO;hu.MAX_BPS=mut;hu.NFTInputOrUriSchema=MRr;hu.PercentSchema=IRr;hu.QuantitySchema=ARr;hu.QueryAllParamsSchema=BRr;hu._defineProperty=RRr;hu.getRpcUrl=wRr});var qte=_(vut=>{"use strict";d();p();var DRr=Ei(),ORr=Ge(),Lte=class{constructor(e){DRr._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&ORr.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};vut.DropErc1155History=Lte});var C8=_(wut=>{"use strict";d();p();var jv=Ei(),HO=ds(),Fte=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;jv._defineProperty(this,"contractWrapper",void 0),jv._defineProperty(this,"storage",void 0),jv._defineProperty(this,"erc1155",void 0),jv._defineProperty(this,"_chainId",void 0),jv._defineProperty(this,"transfer",HO.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),jv._defineProperty(this,"setApprovalForAll",HO.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),jv._defineProperty(this,"airdrop",HO.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new HO.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};wut.StandardErc1155=Fte});var k8=_(t_=>{"use strict";d();p();var LRr=Ei(),qRr=Gr(),I8=ds();function FRr(r){return r&&r.__esModule?r:{default:r}}var Ute=FRr(qRr),WRr="https://paper.xyz/api",URr="2022-08-12",Hte=`${WRr}/${URr}/platform/thirdweb`,xut={[I8.ChainId.Mainnet]:"Ethereum",[I8.ChainId.Goerli]:"Goerli",[I8.ChainId.Polygon]:"Polygon",[I8.ChainId.Mumbai]:"Mumbai",[I8.ChainId.Avalanche]:"Avalanche"};function _ut(r){return Ute.default(r in xut,`chainId not supported by paper: ${r}`),xut[r]}async function Tut(r,e){let t=_ut(e),a=await(await fetch(`${Hte}/register-contract?contractAddress=${r}&chain=${t}`)).json();return Ute.default(a.result.id,"Contract is not registered with paper"),a.result.id}var HRr={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function Eut(r,e){let n=await(await fetch(`${Hte}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...HRr,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return Ute.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var Wte=class{constructor(e){LRr._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return Tut(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await Eut(await this.getCheckoutId(),e)}};t_.PAPER_API_URL=Hte;t_.PaperCheckout=Wte;t_.createCheckoutLinkIntent=Eut;t_.fetchRegisteredCheckoutId=Tut;t_.parseChainIdToPaperChain=_ut});var Iut=_(Cut=>{"use strict";d();p();var Ss=Ei(),As=ds(),jRr=qte(),zRr=C8(),KRr=k8(),VRr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var r_=class extends zRr.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new As.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Ss._defineProperty(this,"abi",void 0),Ss._defineProperty(this,"sales",void 0),Ss._defineProperty(this,"platformFees",void 0),Ss._defineProperty(this,"encoder",void 0),Ss._defineProperty(this,"estimator",void 0),Ss._defineProperty(this,"events",void 0),Ss._defineProperty(this,"metadata",void 0),Ss._defineProperty(this,"app",void 0),Ss._defineProperty(this,"roles",void 0),Ss._defineProperty(this,"royalties",void 0),Ss._defineProperty(this,"claimConditions",void 0),Ss._defineProperty(this,"checkout",void 0),Ss._defineProperty(this,"history",void 0),Ss._defineProperty(this,"interceptor",void 0),Ss._defineProperty(this,"erc1155",void 0),Ss._defineProperty(this,"owner",void 0),Ss._defineProperty(this,"createBatch",As.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Ss._defineProperty(this,"claimTo",As.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Ss._defineProperty(this,"claim",As.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Ss._defineProperty(this,"burnTokens",As.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=s,this.metadata=new As.ContractMetadata(this.contractWrapper,As.DropErc1155ContractSchema,this.storage),this.app=new As.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new As.ContractRoles(this.contractWrapper,r_.contractRoles),this.royalties=new As.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new As.ContractPrimarySale(this.contractWrapper),this.claimConditions=new As.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new As.ContractEvents(this.contractWrapper),this.history=new jRr.DropErc1155History(this.events),this.encoder=new As.ContractEncoder(this.contractWrapper),this.estimator=new As.GasCostEstimator(this.contractWrapper),this.platformFees=new As.ContractPlatformFee(this.contractWrapper),this.interceptor=new As.ContractInterceptor(this.contractWrapper),this.erc1155=new As.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new KRr.PaperCheckout(this.contractWrapper),this.owner=new As.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(As.getRoleHash("transfer"),VRr.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return As.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ps=Ei(),Ci=ds(),GRr=C8(),$Rr=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var n_=class extends GRr.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ci.ContractWrapper(e,t,i,a);super(o,n,s),ps._defineProperty(this,"abi",void 0),ps._defineProperty(this,"metadata",void 0),ps._defineProperty(this,"app",void 0),ps._defineProperty(this,"roles",void 0),ps._defineProperty(this,"sales",void 0),ps._defineProperty(this,"platformFees",void 0),ps._defineProperty(this,"encoder",void 0),ps._defineProperty(this,"estimator",void 0),ps._defineProperty(this,"events",void 0),ps._defineProperty(this,"royalties",void 0),ps._defineProperty(this,"signature",void 0),ps._defineProperty(this,"interceptor",void 0),ps._defineProperty(this,"erc1155",void 0),ps._defineProperty(this,"owner",void 0),ps._defineProperty(this,"mint",Ci.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),ps._defineProperty(this,"mintTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),ps._defineProperty(this,"mintAdditionalSupply",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),ps._defineProperty(this,"mintAdditionalSupplyTo",Ci.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),ps._defineProperty(this,"mintBatch",Ci.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),ps._defineProperty(this,"mintBatchTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),ps._defineProperty(this,"burn",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=i,this.metadata=new Ci.ContractMetadata(this.contractWrapper,Ci.TokenErc1155ContractSchema,this.storage),this.app=new Ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ci.ContractRoles(this.contractWrapper,n_.contractRoles),this.royalties=new Ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ci.ContractPrimarySale(this.contractWrapper),this.encoder=new Ci.ContractEncoder(this.contractWrapper),this.estimator=new Ci.GasCostEstimator(this.contractWrapper),this.events=new Ci.ContractEvents(this.contractWrapper),this.platformFees=new Ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ci.ContractInterceptor(this.contractWrapper),this.signature=new Ci.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new Ci.Erc1155(this.contractWrapper,this.storage,s),this.owner=new Ci.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ci.getRoleHash("transfer"),$Rr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Ko=Ei(),Ve=ds(),YRr=pn(),JRr=un(),QRr=ln(),lr=Ge(),ZRr=Gr();function zO(r){return r&&r.__esModule?r:{default:r}}var XRr=zO(YRr),e9r=zO(JRr),t9r=zO(QRr),jO=zO(ZRr),zv=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),jte=class{constructor(e,t){Ko._defineProperty(this,"contractWrapper",void 0),Ko._defineProperty(this,"storage",void 0),Ko._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Ko._defineProperty(this,"makeOffer",Ve.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ve.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=lr.BigNumber.from(a),l=lr.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ve.setErc20Allowance(this.contractWrapper,l,i,h);let f=lr.ethers.constants.MaxUint256;return o&&(f=lr.BigNumber.from(Math.floor(o.getTime()/1e3))),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Ko._defineProperty(this,"acceptOffer",Ve.buildTransactionFunction(async(n,a)=>{await this.validateListing(lr.BigNumber.from(n));let i=await Ve.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Ko._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(lr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=lr.BigNumber.from(a),h=lr.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Ko._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ve.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Ko._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===lr.constants.AddressZero)throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==zv.Direct)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(lr.BigNumber.from(e)),jO.default(lr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ve.resolveAddress(t));if(n.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:zv.Direct}}async isStillValidListing(e,t){if(!await Ve.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new lr.Contract(e.assetContractAddress,XRr.default,a),s=await i.supportsInterface(Ve.InterfaceId_IERC721),o=await i.supportsInterface(Ve.InterfaceId_IERC1155);if(s){let u=(await new lr.Contract(e.assetContractAddress,e9r.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new lr.Contract(e.assetContractAddress,t9r.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},zte=class{constructor(e,t){Ko._defineProperty(this,"contractWrapper",void 0),Ko._defineProperty(this,"storage",void 0),Ko._defineProperty(this,"encoder",void 0),Ko._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Ko._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=await Ve.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,lr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Ko._defineProperty(this,"makeBid",Ve.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(lr.BigNumber.from(n)),s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(lr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ve.isWinningBid(c.pricePerToken,s,o);jO.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=lr.BigNumber.from(i.reservePrice);jO.default(f.gte(m),"Bid price is too low based on reserve price")}let u=lr.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,lr.ethers.constants.MaxUint256],overrides:h})})),Ko._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=lr.BigNumber.from(Math.floor(Date.now()/1e3)),s=lr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==lr.constants.AddressZero)throw new Ve.AuctionAlreadyStartedError(n.toString());return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Ko._defineProperty(this,"closeListing",Ve.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(lr.BigNumber.from(n));try{return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Ko._defineProperty(this,"executeSale",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n));try{let i=await this.getWinningBid(n);jO.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Ko._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ve.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==zv.Auction)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(lr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(lr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=lr.BigNumber.from(Math.floor(Date.now()/1e3)),i=lr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==lr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(lr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(lr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:lr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:zv.Auction}}};KO.ListingType=zv;KO.MarketplaceAuction=zte;KO.MarketplaceDirect=jte});var Rut=_(Put=>{"use strict";d();p();var Ki=Ei(),fn=ds(),Bh=Kte(),od=Ge(),r9r=Gr();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function n9r(r){return r&&r.__esModule?r:{default:r}}var Sut=n9r(r9r),a_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new fn.ContractWrapper(e,t,i,a);Ki._defineProperty(this,"abi",void 0),Ki._defineProperty(this,"contractWrapper",void 0),Ki._defineProperty(this,"storage",void 0),Ki._defineProperty(this,"encoder",void 0),Ki._defineProperty(this,"events",void 0),Ki._defineProperty(this,"estimator",void 0),Ki._defineProperty(this,"platformFees",void 0),Ki._defineProperty(this,"metadata",void 0),Ki._defineProperty(this,"app",void 0),Ki._defineProperty(this,"roles",void 0),Ki._defineProperty(this,"interceptor",void 0),Ki._defineProperty(this,"direct",void 0),Ki._defineProperty(this,"auction",void 0),Ki._defineProperty(this,"_chainId",void 0),Ki._defineProperty(this,"getAll",this.getAllListings),Ki._defineProperty(this,"buyoutListing",fn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new fn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Bh.ListingType.Direct:return Sut.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Bh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Ki._defineProperty(this,"makeOffer",fn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new fn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Bh.ListingType.Direct:return Sut.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,fn.isNativeToken(h.currency)?fn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Bh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Ki._defineProperty(this,"setBidBufferBps",fn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,od.BigNumber.from(c)]})})),Ki._defineProperty(this,"setTimeBufferInSeconds",fn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[od.BigNumber.from(c),u]})})),Ki._defineProperty(this,"allowListingFromSpecificAssetOnly",fn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(od.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[fn.getRoleHash("asset"),od.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[fn.getRoleHash("asset"),c])),fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Ki._defineProperty(this,"allowListingFromAnyAsset",fn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[fn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[fn.getRoleHash("asset"),od.constants.AddressZero])),fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new fn.ContractMetadata(this.contractWrapper,fn.MarketplaceContractSchema,this.storage),this.app=new fn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new fn.ContractRoles(this.contractWrapper,a_.contractRoles),this.encoder=new fn.ContractEncoder(this.contractWrapper),this.estimator=new fn.GasCostEstimator(this.contractWrapper),this.direct=new Bh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Bh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new fn.ContractEvents(this.contractWrapper),this.platformFees=new fn.ContractPlatformFee(this.contractWrapper),this.interceptor=new fn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===od.constants.AddressZero)throw new fn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Bh.ListingType.Auction:return await this.auction.mapListing(t);case Bh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=od.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Bh.ListingType.Auction&&od.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&od.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Bh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(fn.getRoleHash("lister"),od.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await fn.mapOffer(this.contractWrapper.getProvider(),od.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof fn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Bh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=od.BigNumber.from(t?.start||0).toNumber(),i=od.BigNumber.from(t?.count||Ki.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return fn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var cd=Ei(),Vi=ds();Ir();Ge();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var i_=class{get directListings(){return Vi.assertEnabled(this.detectDirectListings(),Vi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Vi.assertEnabled(this.detectEnglishAuctions(),Vi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Vi.assertEnabled(this.detectOffers(),Vi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Vi.ContractWrapper(e,t,i,a);cd._defineProperty(this,"abi",void 0),cd._defineProperty(this,"contractWrapper",void 0),cd._defineProperty(this,"storage",void 0),cd._defineProperty(this,"encoder",void 0),cd._defineProperty(this,"events",void 0),cd._defineProperty(this,"estimator",void 0),cd._defineProperty(this,"platformFees",void 0),cd._defineProperty(this,"metadata",void 0),cd._defineProperty(this,"app",void 0),cd._defineProperty(this,"roles",void 0),cd._defineProperty(this,"interceptor",void 0),cd._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Vi.ContractMetadata(this.contractWrapper,Vi.MarketplaceContractSchema,this.storage),this.app=new Vi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Vi.ContractRoles(this.contractWrapper,i_.contractRoles),this.encoder=new Vi.ContractEncoder(this.contractWrapper),this.estimator=new Vi.GasCostEstimator(this.contractWrapper),this.events=new Vi.ContractEvents(this.contractWrapper),this.platformFees=new Vi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Vi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Vi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Kv=Ei(),A1=ds(),Vte=class{get chainId(){return this._chainId}constructor(e,t,n){Kv._defineProperty(this,"contractWrapper",void 0),Kv._defineProperty(this,"storage",void 0),Kv._defineProperty(this,"erc721",void 0),Kv._defineProperty(this,"_chainId",void 0),Kv._defineProperty(this,"transfer",A1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),Kv._defineProperty(this,"setApprovalForAll",A1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),Kv._defineProperty(this,"setApprovalForToken",A1.buildTransactionFunction(async(a,i)=>A1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await A1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new A1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await A1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await A1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};But.StandardErc721=Vte});var Out=_(Dut=>{"use strict";d();p();var wp=Ei(),Gi=ds(),a9r=s_(),i9r=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var o_=class extends a9r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Gi.ContractWrapper(e,t,i,a);super(o,n,s),wp._defineProperty(this,"abi",void 0),wp._defineProperty(this,"encoder",void 0),wp._defineProperty(this,"estimator",void 0),wp._defineProperty(this,"metadata",void 0),wp._defineProperty(this,"app",void 0),wp._defineProperty(this,"events",void 0),wp._defineProperty(this,"roles",void 0),wp._defineProperty(this,"royalties",void 0),wp._defineProperty(this,"owner",void 0),wp._defineProperty(this,"wrap",Gi.buildTransactionFunction(async(c,u,l)=>{let h=await Gi.uploadOrExtractURI(u,this.storage),f=await Gi.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Gi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),wp._defineProperty(this,"unwrap",Gi.buildTransactionFunction(async(c,u)=>{let l=await Gi.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Gi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=i,this.metadata=new Gi.ContractMetadata(this.contractWrapper,Gi.MultiwrapContractSchema,this.storage),this.app=new Gi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Gi.ContractRoles(this.contractWrapper,o_.contractRoles),this.encoder=new Gi.ContractEncoder(this.contractWrapper),this.estimator=new Gi.GasCostEstimator(this.contractWrapper),this.events=new Gi.ContractEvents(this.contractWrapper),this.royalties=new Gi.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Gi.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Gi.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:i9r.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Gi.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Gi.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. +${c}`);let u=zte(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();xt.default(a,"Signer is required to deploy contracts");let i=await new Q.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await ux(e,this.storage),n;try{n=await Gte(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Pe(e),i=await new cm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case bp.contractType:case vp.contractType:return[MD(t)?.wrapped?.address||Q.ethers.constants.AddressZero];case Tl.contractType:return[MD(t).wrapped.address||Q.ethers.constants.AddressZero,Q.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(xt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Q.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(xt.default(Q.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Q.BigNumber.from(t[a].toString()):t[a])}},JO=class{constructor(e){$._defineProperty(this,"featureName",JD.name),$._defineProperty(this,"contractWrapper",void 0),$._defineProperty(this,"set",Te(async t=>{let n=await Pe(t);return De.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Nut={},XRr=new cm("polygon");function But(r,e){return`${r}-${e}`}function e9r(r,e,t){Nut[But(r,e)]=t}function t9r(r,e){return Nut[But(r,e)]}async function O0(r,e,t){let n=(await e.getNetwork()).chainId,a=t9r(r,n);if(a)return a;let i;try{let s=await M8(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await QO(s,t)}catch{try{let o=await XRr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await QO(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return e9r(r,n,i),i}async function Cl(r,e,t){try{let n=await O0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function QO(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=ju.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=rre.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function sL(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Vot=256,Nee="0|[1-9]\\d*",r9r=`(${Nee})\\.(${Nee})\\.(${Nee})`,n9r=new RegExp(r9r);function hx(r){if(r.length>Vot)throw new Error(`version is longer than ${Vot} characters`);let e=r.trim().match(n9r);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Dut(r,e){let t=hx(r),n=hx(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function a9r(r,e){let t=hx(r),n=hx(e);if(n.major{try{return hx(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:de.z.string().optional(),description:de.z.string().optional(),readme:de.z.string().optional(),license:de.z.string().optional(),changelog:de.z.string().optional(),tags:de.z.array(de.z.string()).optional(),audit:$.FileOrBufferOrStringSchema.nullable().optional(),logo:$.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:de.z.boolean().optional(),isDeployableViaProxy:de.z.boolean().optional(),factoryDeploymentData:Wut.optional(),constructorParams:de.z.record(de.z.string(),de.z.object({displayName:de.z.string().optional(),description:de.z.string().optional(),defaultValue:de.z.string().optional()}).catchall(de.z.any())).optional()}).catchall(de.z.any()),Uut=tre.extend({audit:de.z.string().nullable().optional(),logo:de.z.string().nullable().optional()}),Hut=G8.merge(tre).extend({publisher:Ti.optional()}),jut=G8.merge(Uut).extend({publisher:Ti.optional()}),zut=de.z.object({name:de.z.string().optional(),bio:de.z.string().optional(),avatar:$.FileOrBufferOrStringSchema.nullable().optional(),website:de.z.string().optional(),twitter:de.z.string().optional(),telegram:de.z.string().optional(),facebook:de.z.string().optional(),github:de.z.string().optional(),medium:de.z.string().optional(),linkedin:de.z.string().optional(),reddit:de.z.string().optional(),discord:de.z.string().optional()}),Kut=zut.extend({avatar:de.z.string().nullable().optional()}),Gut=de.z.object({id:de.z.string(),timestamp:$s,metadataUri:de.z.string()}),rre=de.z.object({title:de.z.string().optional(),author:de.z.string().optional(),details:de.z.string().optional(),notice:de.z.string().optional()}),Vut=de.z.object({name:de.z.string(),abi:ju,metadata:de.z.record(de.z.string(),de.z.any()),info:rre,licenses:de.z.array(de.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),$ut=G8.merge(Vut).extend({bytecode:de.z.string()}),i9r=new jv.ThirdwebStorage,nre=new Map;function are(r,e){return`${r}-${e}`}function ire(r,e){let t=are(r,e);return nre.has(t)}function Yut(r,e){if(!ire(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=are(r,e);return nre.get(t)}function Jut(r,e,t){let n=are(e,t);nre.set(n,r)}function h8(r){return r||i9r}async function PD(r){let e=await Pe(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(ire(e,a))return Yut(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new GO(t||n,e,await mO(e,ju.parse(i),n,r.sdkOptions,h8(r.storage)),h8(r.storage),r.sdkOptions,a);return Jut(s,e,a),s}async function s9r(r){try{let e=new Q.Contract(r.address,Cte.default,r.provider),t=Q.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return Zte(t)}catch{return"custom"}}async function o9r(r){let e=await Pe(r.address),[t,n]=pi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(ire(e,a))return Yut(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await s9r({address:e,provider:n});if(i==="custom"){let s=new VO(r.network,r.sdkOptions,h8(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return PD({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await lm[i].getAbi(e,n,h8(r.storage));return PD({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in lm){let i=await lm[r.contractTypeOrAbi].initialize(t||n,e,h8(r.storage),r.sdkOptions);return Jut(i,e,a),i}else return PD({...r,address:e,abi:r.contractTypeOrAbi})}var SD=new WeakMap;async function sre(r){let[,e]=pi(r.network,r.sdkOptions),t;return SD.has(e)?t=SD.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw SD.delete(e),n}),SD.set(e,t)),await t}async function c9r(r){let[,e]=pi(r.network,r.sdkOptions);return e.getBlockNumber()}var p8=new Map;async function Qut(r){let e=await sre(r),t=r.block,n=`${e}_${t}`,a;if(p8.has(n))a=p8.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw p8.delete(n),s}),p8.set(n,a)}return await a}var Bee=new Map;async function Zut(r){let e=await sre(r),t=r.block,n=`${e}_${t}`,a;if(p8.has(n))a=Bee.get(n);else{let[,i]=pi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw Bee.delete(n),s}),Bee.set(n,a)}return await a}function ore(r){let[,e]=pi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function u9r(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Qut({block:a,...t}))}catch{}}return ore({...t,onBlockNumber:n})}function Xut(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Zut({block:a,...t}))}catch{}}return ore({...t,onBlockNumber:n})}function l9r(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Xut({...n,onBlock:i})}te.ALL_ROLES=Ute;te.APPROVED_IMPLEMENTATIONS=Fee;te.AbiObjectSchema=Fut;te.AbiSchema=ju;te.AbiTypeSchema=Tte;te.AddressOrEnsSchema=Ti;te.AddressSchema=Ste;te.AdminRoleMissingError=ate;te.AssetNotFoundError=Kee;te.AuctionAlreadyStartedError=Xee;te.AuctionHasNotEndedError=rx;te.BYOCContractMetadataSchema=Out;te.BaseSignaturePayloadInput=eL;te.BigNumberSchema=As;te.BigNumberTransformSchema=yct;te.BigNumberishSchema=$s;te.CONTRACTS_MAP=Qte;te.CONTRACT_ADDRESSES=B1;te.CallOverrideSchema=gct;te.ChainId=Ne;te.ChainIdToAddressSchema=Ete;te.ChainInfoInputSchema=bct;te.ClaimConditionInputArray=xct;te.ClaimConditionInputSchema=j8;te.ClaimConditionMetadataSchema=_ct;te.ClaimConditionOutputSchema=Nte;te.ClaimEligibility=Ia;te.CommonContractOutputSchema=od;te.CommonContractSchema=El;te.CommonPlatformFeeSchema=wp;te.CommonPrimarySaleSchema=D1;te.CommonRoyaltySchema=Ko;te.CommonSymbolSchema=yo;te.CommonTrustedForwarderSchema=cd;te.CompilerMetadataFetchedSchema=Vut;te.ContractAppURI=O8;te.ContractDeployer=YO;te.ContractEncoder=Gv;te.ContractEvents=Vv;te.ContractInfoSchema=rre;te.ContractInterceptor=$v;te.ContractMetadata=P0;te.ContractOwner=JO;te.ContractPlatformFee=zO;te.ContractPrimarySale=bO;te.ContractPublishedMetadata=KO;te.ContractRoles=yO;te.ContractRoyalty=gO;te.ContractWrapper=Ss;te.CurrencySchema=vct;te.CurrencyValueSchema=wct;te.CustomContractDeploy=qut;te.CustomContractInput=ere;te.CustomContractOutput=Lut;te.CustomContractSchema=Hv;te.DelayedReveal=N8;te.DropClaimConditions=B8;te.DropErc1155ClaimConditions=vO;te.DropErc1155ContractSchema=Oct;te.DropErc20ContractSchema=Aut;te.DropErc721ContractSchema=Ote;te.DuplicateFileNameError=$ee;te.DuplicateLeafsError=OD;te.EditionDropInitializer=Sh;te.EditionInitializer=N0;te.EndDateSchema=U8;te.Erc1155=WO;te.Erc1155BatchMintable=LO;te.Erc1155Burnable=BO;te.Erc1155Enumerable=DO;te.Erc1155LazyMintable=OO;te.Erc1155Mintable=qO;te.Erc1155SignatureMintable=FO;te.Erc20=EO;te.Erc20BatchMintable=_O;te.Erc20Burnable=wO;te.Erc20Mintable=xO;te.Erc20SignatureMintable=TO;te.Erc721=NO;te.Erc721BatchMintable=AO;te.Erc721Burnable=CO;te.Erc721ClaimableWithConditions=IO;te.Erc721Enumerable=PO;te.Erc721LazyMintable=kO;te.Erc721Mintable=SO;te.Erc721Supply=RO;te.Erc721WithQuantitySignatureMintable=MO;te.EventType=_l;te.ExtensionNotImplementedError=R0;te.ExtraPublishMetadataSchemaInput=tre;te.ExtraPublishMetadataSchemaOutput=Uut;te.FEATURE_DIRECT_LISTINGS=x8;te.FEATURE_ENGLISH_AUCTIONS=T8;te.FEATURE_NFT_REVEALABLE=A8;te.FEATURE_OFFERS=E8;te.FEATURE_PACK_VRF=ite;te.FactoryDeploymentSchema=Wut;te.FetchError=Zee;te.FileNameMissingError=Vee;te.FullPublishMetadataSchemaInput=Hut;te.FullPublishMetadataSchemaOutput=jut;te.FunctionDeprecatedError=ete;te.GasCostEstimator=Yv;te.GenericRequest=Nct;te.InterfaceId_IERC1155=F8;te.InterfaceId_IERC721=q8;te.InvalidAddressError=zee;te.LINK_TOKEN_ADDRESS=m7r;te.LOCAL_NODE_PKEY=lct;te.ListingNotFoundError=tte;te.MarketplaceContractSchema=Lte;te.MarketplaceInitializer=bp;te.MarketplaceV3DirectListings=UO;te.MarketplaceV3EnglishAuctions=HO;te.MarketplaceV3Initializer=um;te.MarketplaceV3Offers=jO;te.MerkleSchema=L0;te.MintRequest1155=Rct;te.MintRequest20=Sct;te.MintRequest721=Pct;te.MintRequest721withQuantity=Mct;te.MissingOwnerRoleError=Jee;te.MissingRoleError=DD;te.MultiwrapContractSchema=Put;te.MultiwrapInitializer=vp;te.NATIVE_TOKENS=y8;te.NATIVE_TOKEN_ADDRESS=Hu;te.NFTCollectionInitializer=B0;te.NFTDropInitializer=Ph;te.NotEnoughTokensError=Yee;te.NotFoundError=b8;te.OZ_DEFENDER_FORWARDER_ADDRESS=N1;te.PREBUILT_CONTRACTS_APPURI_MAP=Rut;te.PREBUILT_CONTRACTS_MAP=lm;te.PackContractSchema=Fct;te.PackInitializer=Tl;te.PartialClaimConditionInputSchema=v7r;te.PreDeployMetadata=G8;te.PreDeployMetadataFetchedSchema=$ut;te.ProfileSchemaInput=zut;te.ProfileSchemaOutput=Kut;te.PublishedContractSchema=Gut;te.QuantityAboveLimitError=Qee;te.RawDateSchema=W8;te.RestrictedTransferError=nte;te.SUPPORTED_CHAIN_IDS=oct;te.Signature1155PayloadInput=Ect;te.Signature1155PayloadInputWithTokenId=Cct;te.Signature1155PayloadOutput=Ict;te.Signature20PayloadInput=Bte;te.Signature20PayloadOutput=Tct;te.Signature721PayloadInput=tL;te.Signature721PayloadOutput=Dte;te.Signature721WithQuantityInput=kct;te.Signature721WithQuantityOutput=Act;te.SignatureDropInitializer=Rh;te.SnapshotEntryInput=ND;te.SnapshotEntryWithProofSchema=Rte;te.SnapshotInfoSchema=b7r;te.SnapshotInputSchema=H8;te.SnapshotSchema=Mte;te.SplitInitializer=Mh;te.SplitsContractSchema=Uct;te.StartDateSchema=Pte;te.Status=zo;te.ThirdwebSDK=cm;te.TokenDropInitializer=D0;te.TokenErc1155ContractSchema=Vct;te.TokenErc20ContractSchema=jct;te.TokenErc721ContractSchema=Kct;te.TokenInitializer=Nh;te.Transaction=De;te.TransactionError=v8;te.UploadError=Gee;te.UserWallet=px;te.VoteContractSchema=Jct;te.VoteInitializer=Bh;te.WrongListingTypeError=rte;te.approveErc20Allowance=Wte;te.assertEnabled=Xt;te.buildTransactionFunction=Te;te.cleanCurrencyAddress=qD;te.convertToReadableQuantity=u8;te.createSnapshot=cut;te.detectContractFeature=$e;te.detectFeatures=z8;te.extractConstructorParams=but;te.extractConstructorParamsFromAbi=zte;te.extractEventsFromAbi=xut;te.extractFunctionParamsFromAbi=_ut;te.extractFunctions=vut;te.extractFunctionsFromAbi=cx;te.extractIPFSHashFromBytecode=Eut;te.extractMinimalProxyImplementationAddress=Tut;te.fetchAbiFromAddress=Cl;te.fetchContractMetadata=QO;te.fetchContractMetadataFromAddress=O0;te.fetchCurrencyMetadata=fx;te.fetchCurrencyValue=gp;te.fetchExtendedReleaseMetadata=Gte;te.fetchPreDeployMetadata=ux;te.fetchRawPredeployMetadata=Kte;te.fetchSnapshotEntryForAddress=nL;te.fetchSourceFilesFromMetadata=sL;te.fetchTokenMetadataForContract=K8;te.getAllDetectedFeatureNames=fte;te.getAllDetectedFeatures=DRr;te.getApprovedImplementation=dct;te.getBlock=Qut;te.getBlockNumber=c9r;te.getBlockWithTransactions=Zut;te.getChainId=sre;te.getChainIdFromNetwork=Qct;te.getChainProvider=g8;te.getContract=o9r;te.getContractAddressByChainId=m8;te.getContractFromAbi=PD;te.getContractName=Xte;te.getContractPublisherAddress=pct;te.getContractTypeForRemoteName=Zte;te.getDefaultTrustedForwarders=kte;te.getMultichainRegistryAddress=Wee;te.getNativeTokenByChainId=MD;te.getProviderFromRpcUrl=BD;te.getRoleHash=tx;te.getSignerAndProvider=pi;te.getSupportedChains=uct;te.handleTokenApproval=D8;te.hasERC20Allowance=tRr;te.hasFunction=fo;te.hasMatchingAbi=jte;te.includesErrorMessage=w8;te.isChainConfig=rL;te.isDowngradeVersion=a9r;te.isFeatureEnabled=lx;te.isIncrementalVersion=Dut;te.isNativeToken=Dh;te.isProvider=Ate;te.isSigner=XO;te.isTokenApprovedForTransfer=Iut;te.isWinningBid=zRr;te.mapOffer=jRr;te.matchesPrebuiltAbi=MRr;te.normalizeAmount=rRr;te.normalizePriceValue=_c;te.parseRevertReason=qte;te.resolveAddress=Pe;te.resolveContractUriFromAddress=M8;te.setErc20Allowance=M0;te.setSupportedChains=cct;te.toDisplayValue=sRr;te.toEther=nRr;te.toSemver=hx;te.toUnits=iRr;te.toWei=aRr;te.uploadOrExtractURI=Yte;te.validateNewListingParam=HRr;te.watchBlock=u9r;te.watchBlockNumber=ore;te.watchBlockWithTransactions=Xut;te.watchTransactions=l9r});var rlt=x(O1=>{"use strict";d();p();var mx=os(),dm=kr(),oL=wi(),elt=dm.z.object({}).catchall(dm.z.union([mx.BigNumberTransformSchema,dm.z.unknown()])),d9r=dm.z.union([dm.z.array(elt),elt]).optional(),tlt=dm.z.object({supply:mx.BigNumberSchema,metadata:oL.CommonNFTOutput}),p9r=tlt.extend({owner:dm.z.string(),quantityOwned:mx.BigNumberSchema}),h9r=dm.z.object({supply:mx.BigNumberishSchema,metadata:oL.CommonNFTInput}),f9r=dm.z.object({supply:mx.BigNumberishSchema,metadata:oL.NFTInputOrUriSchema}),m9r=dm.z.object({toAddress:mx.AddressOrEnsSchema,amount:oL.AmountSchema}),y9r=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});O1.EditionMetadataInputOrUriSchema=f9r;O1.EditionMetadataInputSchema=h9r;O1.EditionMetadataOutputSchema=tlt;O1.EditionMetadataWithOwnerOutputSchema=p9r;O1.OptionalPropertiesInput=d9r;O1.ProposalState=y9r;O1.TokenMintInputSchema=m9r});var nlt=x(ne=>{"use strict";d();p();Object.defineProperty(ne,"__esModule",{value:!0});var g9r=wi(),se=os(),Qv=rlt(),b9r=HX(),v9r=vee(),w9r=ED(),_9r=H_(),x9r=a8(),cre=ZX(),T9r=_ee(),V8=s8();Ir();je();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();globalThis.global=globalThis;ne.getRpcUrl=g9r.getRpcUrl;ne.ALL_ROLES=se.ALL_ROLES;ne.APPROVED_IMPLEMENTATIONS=se.APPROVED_IMPLEMENTATIONS;ne.AbiObjectSchema=se.AbiObjectSchema;ne.AbiSchema=se.AbiSchema;ne.AbiTypeSchema=se.AbiTypeSchema;ne.AddressOrEnsSchema=se.AddressOrEnsSchema;ne.AddressSchema=se.AddressSchema;ne.AdminRoleMissingError=se.AdminRoleMissingError;ne.AssetNotFoundError=se.AssetNotFoundError;ne.AuctionAlreadyStartedError=se.AuctionAlreadyStartedError;ne.AuctionHasNotEndedError=se.AuctionHasNotEndedError;ne.BYOCContractMetadataSchema=se.BYOCContractMetadataSchema;ne.BaseSignaturePayloadInput=se.BaseSignaturePayloadInput;ne.BigNumberSchema=se.BigNumberSchema;ne.BigNumberTransformSchema=se.BigNumberTransformSchema;ne.BigNumberishSchema=se.BigNumberishSchema;ne.CONTRACTS_MAP=se.CONTRACTS_MAP;ne.CONTRACT_ADDRESSES=se.CONTRACT_ADDRESSES;ne.CallOverrideSchema=se.CallOverrideSchema;ne.ChainId=se.ChainId;ne.ChainIdToAddressSchema=se.ChainIdToAddressSchema;ne.ChainInfoInputSchema=se.ChainInfoInputSchema;ne.ClaimConditionInputArray=se.ClaimConditionInputArray;ne.ClaimConditionInputSchema=se.ClaimConditionInputSchema;ne.ClaimConditionMetadataSchema=se.ClaimConditionMetadataSchema;ne.ClaimConditionOutputSchema=se.ClaimConditionOutputSchema;ne.ClaimEligibility=se.ClaimEligibility;ne.CommonContractOutputSchema=se.CommonContractOutputSchema;ne.CommonContractSchema=se.CommonContractSchema;ne.CommonPlatformFeeSchema=se.CommonPlatformFeeSchema;ne.CommonPrimarySaleSchema=se.CommonPrimarySaleSchema;ne.CommonRoyaltySchema=se.CommonRoyaltySchema;ne.CommonSymbolSchema=se.CommonSymbolSchema;ne.CommonTrustedForwarderSchema=se.CommonTrustedForwarderSchema;ne.CompilerMetadataFetchedSchema=se.CompilerMetadataFetchedSchema;ne.ContractAppURI=se.ContractAppURI;ne.ContractDeployer=se.ContractDeployer;ne.ContractEncoder=se.ContractEncoder;ne.ContractEvents=se.ContractEvents;ne.ContractInfoSchema=se.ContractInfoSchema;ne.ContractInterceptor=se.ContractInterceptor;ne.ContractMetadata=se.ContractMetadata;ne.ContractOwner=se.ContractOwner;ne.ContractPlatformFee=se.ContractPlatformFee;ne.ContractPrimarySale=se.ContractPrimarySale;ne.ContractPublishedMetadata=se.ContractPublishedMetadata;ne.ContractRoles=se.ContractRoles;ne.ContractRoyalty=se.ContractRoyalty;ne.CurrencySchema=se.CurrencySchema;ne.CurrencyValueSchema=se.CurrencyValueSchema;ne.CustomContractDeploy=se.CustomContractDeploy;ne.CustomContractInput=se.CustomContractInput;ne.CustomContractOutput=se.CustomContractOutput;ne.CustomContractSchema=se.CustomContractSchema;ne.DelayedReveal=se.DelayedReveal;ne.DropClaimConditions=se.DropClaimConditions;ne.DropErc1155ClaimConditions=se.DropErc1155ClaimConditions;ne.DuplicateFileNameError=se.DuplicateFileNameError;ne.DuplicateLeafsError=se.DuplicateLeafsError;ne.EditionDropInitializer=se.EditionDropInitializer;ne.EditionInitializer=se.EditionInitializer;ne.EndDateSchema=se.EndDateSchema;ne.Erc1155=se.Erc1155;ne.Erc1155BatchMintable=se.Erc1155BatchMintable;ne.Erc1155Burnable=se.Erc1155Burnable;ne.Erc1155Enumerable=se.Erc1155Enumerable;ne.Erc1155LazyMintable=se.Erc1155LazyMintable;ne.Erc1155Mintable=se.Erc1155Mintable;ne.Erc1155SignatureMintable=se.Erc1155SignatureMintable;ne.Erc20=se.Erc20;ne.Erc20BatchMintable=se.Erc20BatchMintable;ne.Erc20Burnable=se.Erc20Burnable;ne.Erc20Mintable=se.Erc20Mintable;ne.Erc20SignatureMintable=se.Erc20SignatureMintable;ne.Erc721=se.Erc721;ne.Erc721BatchMintable=se.Erc721BatchMintable;ne.Erc721Burnable=se.Erc721Burnable;ne.Erc721ClaimableWithConditions=se.Erc721ClaimableWithConditions;ne.Erc721Enumerable=se.Erc721Enumerable;ne.Erc721LazyMintable=se.Erc721LazyMintable;ne.Erc721Mintable=se.Erc721Mintable;ne.Erc721Supply=se.Erc721Supply;ne.Erc721WithQuantitySignatureMintable=se.Erc721WithQuantitySignatureMintable;ne.EventType=se.EventType;ne.ExtensionNotImplementedError=se.ExtensionNotImplementedError;ne.ExtraPublishMetadataSchemaInput=se.ExtraPublishMetadataSchemaInput;ne.ExtraPublishMetadataSchemaOutput=se.ExtraPublishMetadataSchemaOutput;ne.FactoryDeploymentSchema=se.FactoryDeploymentSchema;ne.FetchError=se.FetchError;ne.FileNameMissingError=se.FileNameMissingError;ne.FullPublishMetadataSchemaInput=se.FullPublishMetadataSchemaInput;ne.FullPublishMetadataSchemaOutput=se.FullPublishMetadataSchemaOutput;ne.FunctionDeprecatedError=se.FunctionDeprecatedError;ne.GasCostEstimator=se.GasCostEstimator;ne.GenericRequest=se.GenericRequest;ne.InterfaceId_IERC1155=se.InterfaceId_IERC1155;ne.InterfaceId_IERC721=se.InterfaceId_IERC721;ne.InvalidAddressError=se.InvalidAddressError;ne.LINK_TOKEN_ADDRESS=se.LINK_TOKEN_ADDRESS;ne.LOCAL_NODE_PKEY=se.LOCAL_NODE_PKEY;ne.ListingNotFoundError=se.ListingNotFoundError;ne.MarketplaceInitializer=se.MarketplaceInitializer;ne.MarketplaceV3DirectListings=se.MarketplaceV3DirectListings;ne.MarketplaceV3EnglishAuctions=se.MarketplaceV3EnglishAuctions;ne.MarketplaceV3Initializer=se.MarketplaceV3Initializer;ne.MarketplaceV3Offers=se.MarketplaceV3Offers;ne.MerkleSchema=se.MerkleSchema;ne.MintRequest1155=se.MintRequest1155;ne.MintRequest20=se.MintRequest20;ne.MintRequest721=se.MintRequest721;ne.MintRequest721withQuantity=se.MintRequest721withQuantity;ne.MissingOwnerRoleError=se.MissingOwnerRoleError;ne.MissingRoleError=se.MissingRoleError;ne.MultiwrapInitializer=se.MultiwrapInitializer;ne.NATIVE_TOKENS=se.NATIVE_TOKENS;ne.NATIVE_TOKEN_ADDRESS=se.NATIVE_TOKEN_ADDRESS;ne.NFTCollectionInitializer=se.NFTCollectionInitializer;ne.NFTDropInitializer=se.NFTDropInitializer;ne.NotEnoughTokensError=se.NotEnoughTokensError;ne.NotFoundError=se.NotFoundError;ne.OZ_DEFENDER_FORWARDER_ADDRESS=se.OZ_DEFENDER_FORWARDER_ADDRESS;ne.PREBUILT_CONTRACTS_APPURI_MAP=se.PREBUILT_CONTRACTS_APPURI_MAP;ne.PREBUILT_CONTRACTS_MAP=se.PREBUILT_CONTRACTS_MAP;ne.PackInitializer=se.PackInitializer;ne.PartialClaimConditionInputSchema=se.PartialClaimConditionInputSchema;ne.PreDeployMetadata=se.PreDeployMetadata;ne.PreDeployMetadataFetchedSchema=se.PreDeployMetadataFetchedSchema;ne.ProfileSchemaInput=se.ProfileSchemaInput;ne.ProfileSchemaOutput=se.ProfileSchemaOutput;ne.PublishedContractSchema=se.PublishedContractSchema;ne.QuantityAboveLimitError=se.QuantityAboveLimitError;ne.RawDateSchema=se.RawDateSchema;ne.RestrictedTransferError=se.RestrictedTransferError;ne.SUPPORTED_CHAIN_IDS=se.SUPPORTED_CHAIN_IDS;ne.Signature1155PayloadInput=se.Signature1155PayloadInput;ne.Signature1155PayloadInputWithTokenId=se.Signature1155PayloadInputWithTokenId;ne.Signature1155PayloadOutput=se.Signature1155PayloadOutput;ne.Signature20PayloadInput=se.Signature20PayloadInput;ne.Signature20PayloadOutput=se.Signature20PayloadOutput;ne.Signature721PayloadInput=se.Signature721PayloadInput;ne.Signature721PayloadOutput=se.Signature721PayloadOutput;ne.Signature721WithQuantityInput=se.Signature721WithQuantityInput;ne.Signature721WithQuantityOutput=se.Signature721WithQuantityOutput;ne.SignatureDropInitializer=se.SignatureDropInitializer;ne.SnapshotEntryInput=se.SnapshotEntryInput;ne.SnapshotEntryWithProofSchema=se.SnapshotEntryWithProofSchema;ne.SnapshotInfoSchema=se.SnapshotInfoSchema;ne.SnapshotInputSchema=se.SnapshotInputSchema;ne.SnapshotSchema=se.SnapshotSchema;ne.SplitInitializer=se.SplitInitializer;ne.StartDateSchema=se.StartDateSchema;ne.Status=se.Status;ne.ThirdwebSDK=se.ThirdwebSDK;ne.TokenDropInitializer=se.TokenDropInitializer;ne.TokenInitializer=se.TokenInitializer;ne.Transaction=se.Transaction;ne.TransactionError=se.TransactionError;ne.UploadError=se.UploadError;ne.UserWallet=se.UserWallet;ne.VoteInitializer=se.VoteInitializer;ne.WrongListingTypeError=se.WrongListingTypeError;ne.approveErc20Allowance=se.approveErc20Allowance;ne.assertEnabled=se.assertEnabled;ne.cleanCurrencyAddress=se.cleanCurrencyAddress;ne.convertToReadableQuantity=se.convertToReadableQuantity;ne.createSnapshot=se.createSnapshot;ne.detectContractFeature=se.detectContractFeature;ne.detectFeatures=se.detectFeatures;ne.extractConstructorParams=se.extractConstructorParams;ne.extractConstructorParamsFromAbi=se.extractConstructorParamsFromAbi;ne.extractEventsFromAbi=se.extractEventsFromAbi;ne.extractFunctionParamsFromAbi=se.extractFunctionParamsFromAbi;ne.extractFunctions=se.extractFunctions;ne.extractFunctionsFromAbi=se.extractFunctionsFromAbi;ne.extractIPFSHashFromBytecode=se.extractIPFSHashFromBytecode;ne.extractMinimalProxyImplementationAddress=se.extractMinimalProxyImplementationAddress;ne.fetchAbiFromAddress=se.fetchAbiFromAddress;ne.fetchContractMetadata=se.fetchContractMetadata;ne.fetchContractMetadataFromAddress=se.fetchContractMetadataFromAddress;ne.fetchCurrencyMetadata=se.fetchCurrencyMetadata;ne.fetchCurrencyValue=se.fetchCurrencyValue;ne.fetchExtendedReleaseMetadata=se.fetchExtendedReleaseMetadata;ne.fetchPreDeployMetadata=se.fetchPreDeployMetadata;ne.fetchRawPredeployMetadata=se.fetchRawPredeployMetadata;ne.fetchSnapshotEntryForAddress=se.fetchSnapshotEntryForAddress;ne.fetchSourceFilesFromMetadata=se.fetchSourceFilesFromMetadata;ne.getAllDetectedFeatureNames=se.getAllDetectedFeatureNames;ne.getAllDetectedFeatures=se.getAllDetectedFeatures;ne.getApprovedImplementation=se.getApprovedImplementation;ne.getBlock=se.getBlock;ne.getBlockNumber=se.getBlockNumber;ne.getBlockWithTransactions=se.getBlockWithTransactions;ne.getChainId=se.getChainId;ne.getChainIdFromNetwork=se.getChainIdFromNetwork;ne.getChainProvider=se.getChainProvider;ne.getContract=se.getContract;ne.getContractAddressByChainId=se.getContractAddressByChainId;ne.getContractFromAbi=se.getContractFromAbi;ne.getContractName=se.getContractName;ne.getContractPublisherAddress=se.getContractPublisherAddress;ne.getContractTypeForRemoteName=se.getContractTypeForRemoteName;ne.getDefaultTrustedForwarders=se.getDefaultTrustedForwarders;ne.getMultichainRegistryAddress=se.getMultichainRegistryAddress;ne.getNativeTokenByChainId=se.getNativeTokenByChainId;ne.getProviderFromRpcUrl=se.getProviderFromRpcUrl;ne.getRoleHash=se.getRoleHash;ne.getSignerAndProvider=se.getSignerAndProvider;ne.getSupportedChains=se.getSupportedChains;ne.hasERC20Allowance=se.hasERC20Allowance;ne.hasFunction=se.hasFunction;ne.hasMatchingAbi=se.hasMatchingAbi;ne.includesErrorMessage=se.includesErrorMessage;ne.isChainConfig=se.isChainConfig;ne.isDowngradeVersion=se.isDowngradeVersion;ne.isFeatureEnabled=se.isFeatureEnabled;ne.isIncrementalVersion=se.isIncrementalVersion;ne.isNativeToken=se.isNativeToken;ne.isProvider=se.isProvider;ne.isSigner=se.isSigner;ne.matchesPrebuiltAbi=se.matchesPrebuiltAbi;ne.normalizeAmount=se.normalizeAmount;ne.normalizePriceValue=se.normalizePriceValue;ne.parseRevertReason=se.parseRevertReason;ne.resolveContractUriFromAddress=se.resolveContractUriFromAddress;ne.setErc20Allowance=se.setErc20Allowance;ne.setSupportedChains=se.setSupportedChains;ne.toDisplayValue=se.toDisplayValue;ne.toEther=se.toEther;ne.toSemver=se.toSemver;ne.toUnits=se.toUnits;ne.toWei=se.toWei;ne.watchBlock=se.watchBlock;ne.watchBlockNumber=se.watchBlockNumber;ne.watchBlockWithTransactions=se.watchBlockWithTransactions;ne.watchTransactions=se.watchTransactions;ne.EditionMetadataInputOrUriSchema=Qv.EditionMetadataInputOrUriSchema;ne.EditionMetadataInputSchema=Qv.EditionMetadataInputSchema;ne.EditionMetadataOutputSchema=Qv.EditionMetadataOutputSchema;ne.EditionMetadataWithOwnerOutputSchema=Qv.EditionMetadataWithOwnerOutputSchema;ne.OptionalPropertiesInput=Qv.OptionalPropertiesInput;ne.ProposalState=Qv.ProposalState;ne.TokenMintInputSchema=Qv.TokenMintInputSchema;ne.DropErc1155History=b9r.DropErc1155History;ne.TokenERC20History=v9r.TokenERC20History;ne.StandardErc20=w9r.StandardErc20;ne.StandardErc721=_9r.StandardErc721;ne.StandardErc1155=x9r.StandardErc1155;ne.ListingType=cre.ListingType;ne.MarketplaceAuction=cre.MarketplaceAuction;ne.MarketplaceDirect=cre.MarketplaceDirect;ne.VoteType=T9r.VoteType;ne.PAPER_API_URL=V8.PAPER_API_URL;ne.PaperCheckout=V8.PaperCheckout;ne.createCheckoutLinkIntent=V8.createCheckoutLinkIntent;ne.fetchRegisteredCheckoutId=V8.fetchRegisteredCheckoutId;ne.parseChainIdToPaperChain=V8.parseChainIdToPaperChain});var Ei=x(gu=>{"use strict";d();p();var E9r=Ir(),yx=je(),lt=kr();function C9r(r){return r&&r.__esModule?r:{default:r}}var gx=C9r(E9r),olt="c6634ad2d97b74baf15ff556016830c251050e6c36b9da508ce3ec80095d3dc1";function I9r(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:olt;return`https://${r}.rpc.thirdweb.com/${e}`}var k9r=()=>typeof window<"u",alt=k9r()?lt.z.instanceof(File):lt.z.instanceof(b.Buffer),A9r=lt.z.union([alt,lt.z.object({data:lt.z.union([alt,lt.z.string()]),name:lt.z.string()})]),cL=lt.z.union([A9r,lt.z.string()]),clt=1e4,S9r=lt.z.union([lt.z.array(lt.z.number()),lt.z.string()]),P9r=lt.z.union([lt.z.string(),lt.z.number(),lt.z.bigint(),lt.z.custom(r=>yx.BigNumber.isBigNumber(r)),lt.z.custom(r=>gx.default.isBN(r))]).transform(r=>{let e=gx.default.isBN(r)?new gx.default(r).toString():yx.BigNumber.from(r).toString();return yx.BigNumber.from(e)});P9r.transform(r=>r.toString());var ult=lt.z.union([lt.z.bigint(),lt.z.custom(r=>yx.BigNumber.isBigNumber(r)),lt.z.custom(r=>gx.default.isBN(r))]).transform(r=>gx.default.isBN(r)?new gx.default(r).toString():yx.BigNumber.from(r).toString()),R9r=lt.z.number().max(clt,"Cannot exceed 100%").min(0,"Cannot be below 0%"),M9r=lt.z.number().max(100,"Cannot exceed 100%").min(0,"Cannot be below 0%"),N9r=lt.z.union([lt.z.string().regex(/^([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color"),lt.z.string().regex(/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,"Invalid hex color").transform(r=>r.replace("#","")),lt.z.string().length(0)]),llt=lt.z.union([lt.z.string().regex(/^([0-9]+\.?[0-9]*|\.[0-9]+)$/,"Invalid amount"),lt.z.number().min(0,"Amount cannot be negative")]).transform(r=>typeof r=="number"?r.toString():r),B9r=lt.z.union([llt,lt.z.literal("unlimited")]).default("unlimited"),dlt=lt.z.date().transform(r=>yx.BigNumber.from(Math.floor(r.getTime()/1e3)));dlt.default(new Date(0));dlt.default(new Date(Date.now()+1e3*60*60*24*365*10));function D9r(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function O9r(r){var e=D9r(r,"string");return typeof e=="symbol"?e:String(e)}function L9r(r,e,t){return e=O9r(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var ilt=lt.z.object({}).catchall(lt.z.union([ult,lt.z.unknown()])),slt=lt.z.union([lt.z.array(ilt),ilt]).optional().nullable(),lre=lt.z.object({name:lt.z.union([lt.z.string(),lt.z.number()]).optional().nullable(),description:lt.z.string().nullable().optional().nullable(),image:cL.nullable().optional(),external_url:cL.nullable().optional(),animation_url:cL.optional().nullable(),background_color:N9r.optional().nullable(),properties:slt,attributes:slt}).catchall(lt.z.union([ult,lt.z.unknown()])),q9r=lt.z.union([lre,lt.z.string()]),F9r=lre.extend({id:lt.z.string(),uri:lt.z.string(),image:lt.z.string().nullable().optional(),external_url:lt.z.string().nullable().optional(),animation_url:lt.z.string().nullable().optional()}),ure=100,W9r=lt.z.object({start:lt.z.number().default(0),count:lt.z.number().default(ure)}).default({start:0,count:ure});gu.AmountSchema=llt;gu.BasisPointsSchema=R9r;gu.BytesLikeSchema=S9r;gu.CommonNFTInput=lre;gu.CommonNFTOutput=F9r;gu.DEFAULT_API_KEY=olt;gu.DEFAULT_QUERY_ALL_COUNT=ure;gu.FileOrBufferOrStringSchema=cL;gu.MAX_BPS=clt;gu.NFTInputOrUriSchema=q9r;gu.PercentSchema=M9r;gu.QuantitySchema=B9r;gu.QueryAllParamsSchema=W9r;gu._defineProperty=L9r;gu.getRpcUrl=I9r});var pre=x(plt=>{"use strict";d();p();var U9r=Ei(),H9r=je(),dre=class{constructor(e){U9r._defineProperty(this,"events",void 0),this.events=e}async getAllClaimerAddresses(e){let t=(await this.events.getEvents("TokensClaimed")).filter(n=>n.data&&H9r.BigNumber.isBigNumber(n.data.tokenId)?n.data.tokenId.eq(e):!1);return Array.from(new Set(t.filter(n=>typeof n.data?.claimer=="string").map(n=>n.data.claimer)))}};plt.DropErc1155History=dre});var $8=x(hlt=>{"use strict";d();p();var Zv=Ei(),uL=ds(),hre=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Zv._defineProperty(this,"contractWrapper",void 0),Zv._defineProperty(this,"storage",void 0),Zv._defineProperty(this,"erc1155",void 0),Zv._defineProperty(this,"_chainId",void 0),Zv._defineProperty(this,"transfer",uL.buildTransactionFunction(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0];return a.erc1155.transfer.prepare(i,s,o,c)})),Zv._defineProperty(this,"setApprovalForAll",uL.buildTransactionFunction(async(i,s)=>this.erc1155.setApprovalForAll.prepare(i,s))),Zv._defineProperty(this,"airdrop",uL.buildTransactionFunction(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0];return a.erc1155.airdrop.prepare(i,s,o)})),this.contractWrapper=e,this.storage=t,this.erc1155=new uL.Erc1155(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async totalSupply(e){return this.erc1155.totalSupply(e)}async balanceOf(e,t){return this.erc1155.balanceOf(e,t)}async balance(e){return this.erc1155.balance(e)}async isApproved(e,t){return this.erc1155.isApproved(e,t)}};hlt.StandardErc1155=hre});var J8=x(bx=>{"use strict";d();p();var j9r=Ei(),z9r=Gr(),Y8=ds();function K9r(r){return r&&r.__esModule?r:{default:r}}var mre=K9r(z9r),G9r="https://paper.xyz/api",V9r="2022-08-12",yre=`${G9r}/${V9r}/platform/thirdweb`,flt={[Y8.ChainId.Mainnet]:"Ethereum",[Y8.ChainId.Goerli]:"Goerli",[Y8.ChainId.Polygon]:"Polygon",[Y8.ChainId.Mumbai]:"Mumbai",[Y8.ChainId.Avalanche]:"Avalanche"};function mlt(r){return mre.default(r in flt,`chainId not supported by paper: ${r}`),flt[r]}async function ylt(r,e){let t=mlt(e),a=await(await fetch(`${yre}/register-contract?contractAddress=${r}&chain=${t}`)).json();return mre.default(a.result.id,"Contract is not registered with paper"),a.result.id}var $9r={expiresInMinutes:15,feeBearer:"BUYER",sendEmailOnSuccess:!0,redirectAfterPayment:!1};async function glt(r,e){let n=await(await fetch(`${yre}/checkout-link-intent`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({contractId:r,...$9r,...e,metadata:{...e.metadata,via_platform:"thirdweb"},hideNativeMint:!0,hidePaperWallet:!!e.walletAddress,hideExternalWallet:!0,hidePayWithCrypto:!0,usePaperKey:!1})})).json();return mre.default(n.checkoutLinkIntentUrl,"Failed to create checkout link intent"),n.checkoutLinkIntentUrl}var fre=class{constructor(e){j9r._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}async getCheckoutId(){return ylt(this.contractWrapper.readContract.address,await this.contractWrapper.getChainID())}async isEnabled(){try{return!!await this.getCheckoutId()}catch{return!1}}async createLinkIntent(e){return await glt(await this.getCheckoutId(),e)}};bx.PAPER_API_URL=yre;bx.PaperCheckout=fre;bx.createCheckoutLinkIntent=glt;bx.fetchRegisteredCheckoutId=ylt;bx.parseChainIdToPaperChain=mlt});var vlt=x(blt=>{"use strict";d();p();var Rs=Ei(),Ps=ds(),Y9r=pre(),J9r=$8(),Q9r=J8(),Z9r=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var vx=class extends J9r.StandardErc1155{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ps.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Rs._defineProperty(this,"abi",void 0),Rs._defineProperty(this,"sales",void 0),Rs._defineProperty(this,"platformFees",void 0),Rs._defineProperty(this,"encoder",void 0),Rs._defineProperty(this,"estimator",void 0),Rs._defineProperty(this,"events",void 0),Rs._defineProperty(this,"metadata",void 0),Rs._defineProperty(this,"app",void 0),Rs._defineProperty(this,"roles",void 0),Rs._defineProperty(this,"royalties",void 0),Rs._defineProperty(this,"claimConditions",void 0),Rs._defineProperty(this,"checkout",void 0),Rs._defineProperty(this,"history",void 0),Rs._defineProperty(this,"interceptor",void 0),Rs._defineProperty(this,"erc1155",void 0),Rs._defineProperty(this,"owner",void 0),Rs._defineProperty(this,"createBatch",Ps.buildTransactionFunction(async(u,l)=>this.erc1155.lazyMint.prepare(u,l))),Rs._defineProperty(this,"claimTo",Ps.buildTransactionFunction(async function(u,l,h){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return a.erc1155.claimTo.prepare(u,l,h,{checkERC20Allowance:f})})),Rs._defineProperty(this,"claim",Ps.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,f=await a.contractWrapper.getSignerAddress();return a.claimTo.prepare(f,u,l,h)})),Rs._defineProperty(this,"burnTokens",Ps.buildTransactionFunction(async(u,l)=>this.erc1155.burn.prepare(u,l))),this.abi=s,this.metadata=new Ps.ContractMetadata(this.contractWrapper,Ps.DropErc1155ContractSchema,this.storage),this.app=new Ps.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ps.ContractRoles(this.contractWrapper,vx.contractRoles),this.royalties=new Ps.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ps.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Ps.DropErc1155ClaimConditions(this.contractWrapper,this.metadata,this.storage),this.events=new Ps.ContractEvents(this.contractWrapper),this.history=new Y9r.DropErc1155History(this.events),this.encoder=new Ps.ContractEncoder(this.contractWrapper),this.estimator=new Ps.GasCostEstimator(this.contractWrapper),this.platformFees=new Ps.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ps.ContractInterceptor(this.contractWrapper),this.erc1155=new Ps.Erc1155(this.contractWrapper,this.storage,o),this.checkout=new Q9r.PaperCheckout(this.contractWrapper),this.owner=new Ps.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ps.getRoleHash("transfer"),Z9r.constants.AddressZero)}async getClaimTransaction(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return this.erc1155.getClaimTransaction(e,t,n,{checkERC20Allowance:a})}async prepare(e,t,n){return Ps.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ps=Ei(),Ci=ds(),X9r=$8(),eMr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var wx=class extends X9r.StandardErc1155{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ci.ContractWrapper(e,t,i,a);super(o,n,s),ps._defineProperty(this,"abi",void 0),ps._defineProperty(this,"metadata",void 0),ps._defineProperty(this,"app",void 0),ps._defineProperty(this,"roles",void 0),ps._defineProperty(this,"sales",void 0),ps._defineProperty(this,"platformFees",void 0),ps._defineProperty(this,"encoder",void 0),ps._defineProperty(this,"estimator",void 0),ps._defineProperty(this,"events",void 0),ps._defineProperty(this,"royalties",void 0),ps._defineProperty(this,"signature",void 0),ps._defineProperty(this,"interceptor",void 0),ps._defineProperty(this,"erc1155",void 0),ps._defineProperty(this,"owner",void 0),ps._defineProperty(this,"mint",Ci.buildTransactionFunction(async c=>this.erc1155.mint.prepare(c))),ps._defineProperty(this,"mintTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintTo.prepare(c,u))),ps._defineProperty(this,"mintAdditionalSupply",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintAdditionalSupply.prepare(c,u))),ps._defineProperty(this,"mintAdditionalSupplyTo",Ci.buildTransactionFunction(async(c,u,l)=>this.erc1155.mintAdditionalSupplyTo.prepare(c,u,l))),ps._defineProperty(this,"mintBatch",Ci.buildTransactionFunction(async c=>this.erc1155.mintBatch.prepare(c))),ps._defineProperty(this,"mintBatchTo",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.mintBatchTo.prepare(c,u))),ps._defineProperty(this,"burn",Ci.buildTransactionFunction(async(c,u)=>this.erc1155.burn.prepare(c,u))),this.abi=i,this.metadata=new Ci.ContractMetadata(this.contractWrapper,Ci.TokenErc1155ContractSchema,this.storage),this.app=new Ci.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Ci.ContractRoles(this.contractWrapper,wx.contractRoles),this.royalties=new Ci.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Ci.ContractPrimarySale(this.contractWrapper),this.encoder=new Ci.ContractEncoder(this.contractWrapper),this.estimator=new Ci.GasCostEstimator(this.contractWrapper),this.events=new Ci.ContractEvents(this.contractWrapper),this.platformFees=new Ci.ContractPlatformFee(this.contractWrapper),this.interceptor=new Ci.ContractInterceptor(this.contractWrapper),this.signature=new Ci.Erc1155SignatureMintable(this.contractWrapper,this.storage,this.roles),this.erc1155=new Ci.Erc1155(this.contractWrapper,this.storage,s),this.owner=new Ci.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Ci.getRoleHash("transfer"),eMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc1155.getMintTransaction(e,t)}async prepare(e,t,n){return Ci.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Vo=Ei(),Ve=ds(),tMr=hn(),rMr=ln(),nMr=dn(),lr=je(),aMr=Gr();function dL(r){return r&&r.__esModule?r:{default:r}}var iMr=dL(tMr),sMr=dL(rMr),oMr=dL(nMr),lL=dL(aMr),Xv=function(r){return r[r.Direct=0]="Direct",r[r.Auction=1]="Auction",r}({}),gre=class{constructor(e,t){Vo._defineProperty(this,"contractWrapper",void 0),Vo._defineProperty(this,"storage",void 0),Vo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=Math.floor(n.startTimestamp.getTime()/1e3),u=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return o({id:this.contractWrapper.parseLogs("ListingAdded",l?.logs)[0].args.listingId,receipt:l})})})),Vo._defineProperty(this,"makeOffer",Ve.buildTransactionFunction(async(n,a,i,s,o)=>{if(Ve.isNativeToken(i))throw new Error("You must use the wrapped native token address when making an offer with a native token");let c=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),s,i);try{await this.getListing(n)}catch(m){throw console.error("Failed to get listing, err =",m),new Error(`Error getting the listing with id ${n}`)}let u=lr.BigNumber.from(a),l=lr.BigNumber.from(c).mul(u),h=await this.contractWrapper.getCallOverrides()||{};await Ve.setErc20Allowance(this.contractWrapper,l,i,h);let f=lr.ethers.constants.MaxUint256;return o&&(f=lr.BigNumber.from(Math.floor(o.getTime()/1e3))),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,a,i,c,f],overrides:h})})),Vo._defineProperty(this,"acceptOffer",Ve.buildTransactionFunction(async(n,a)=>{await this.validateListing(lr.BigNumber.from(n));let i=await Ve.resolveAddress(a),s=await this.contractWrapper.readContract.offers(n,i);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n,i,s.currency,s.pricePerToken]})})),Vo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async(n,a,i)=>{let s=await this.validateListing(lr.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=lr.BigNumber.from(a),h=lr.BigNumber.from(s.buyoutPrice).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,h,s.currencyContractAddress,f),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buy",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Vo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.buyoutPrice,n.buyoutPrice,await Ve.resolveAddress(n.currencyContractAddress),n.startTimeInSeconds,n.secondsUntilEnd]}))),Vo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelDirectListing",args:[n]}))),this.contractWrapper=e,this.storage=t}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===lr.constants.AddressZero)throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Xv.Direct)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Auction","Direct");return await this.mapListing(t)}async getActiveOffer(e,t){await this.validateListing(lr.BigNumber.from(e)),lL.default(lr.utils.isAddress(t),"Address must be a valid address");let n=await this.contractWrapper.readContract.offers(e,await Ve.resolveAddress(t));if(n.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),n)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),secondsUntilEnd:e.endTime,sellerAddress:e.tokenOwner,type:Xv.Direct}}async isStillValidListing(e,t){if(!await Ve.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.sellerAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new lr.Contract(e.assetContractAddress,iMr.default,a),s=await i.supportsInterface(Ve.InterfaceId_IERC721),o=await i.supportsInterface(Ve.InterfaceId_IERC1155);if(s){let u=(await new lr.Contract(e.assetContractAddress,sMr.default,a).ownerOf(e.tokenId)).toLowerCase()===e.sellerAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new lr.Contract(e.assetContractAddress,oMr.default,a).balanceOf(e.sellerAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}},bre=class{constructor(e,t){Vo._defineProperty(this,"contractWrapper",void 0),Vo._defineProperty(this,"storage",void 0),Vo._defineProperty(this,"encoder",void 0),Vo._defineProperty(this,"createListing",Ve.buildTransactionFunction(async n=>{Ve.validateNewListingParam(n);let a=await Ve.resolveAddress(n.assetContractAddress),i=await Ve.resolveAddress(n.currencyContractAddress);await Ve.handleTokenApproval(this.contractWrapper,this.getAddress(),a,n.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.buyoutPricePerToken,i),o=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),n.reservePricePerToken,i),c=Math.floor(n.startTimestamp.getTime()/1e3),l=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return c({id:this.contractWrapper.parseLogs("ListingAdded",h?.logs)[0].args.listingId,receipt:h})})})),Vo._defineProperty(this,"buyoutListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=await Ve.fetchCurrencyMetadata(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,lr.ethers.utils.formatUnits(a.buyoutPrice,i.decimals))})),Vo._defineProperty(this,"makeBid",Ve.buildTransactionFunction(async(n,a)=>{let i=await this.validateListing(lr.BigNumber.from(n)),s=await Ve.normalizePriceValue(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(lr.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");let o=await this.contractWrapper.readContract.bidBufferBps(),c=await this.getWinningBid(n);if(c){let f=Ve.isWinningBid(c.pricePerToken,s,o);lL.default(f,"Bid price is too low based on the current winning bid and the bid buffer")}else{let f=s,m=lr.BigNumber.from(i.reservePrice);lL.default(f.gte(m),"Bid price is too low based on reserve price")}let u=lr.BigNumber.from(i.quantity),l=s.mul(u),h=await this.contractWrapper.getCallOverrides()||{};return await Ve.setErc20Allowance(this.contractWrapper,l,i.currencyContractAddress,h),Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"offer",args:[n,i.quantity,i.currencyContractAddress,s,lr.ethers.constants.MaxUint256],overrides:h})})),Vo._defineProperty(this,"cancelListing",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n)),i=lr.BigNumber.from(Math.floor(Date.now()/1e3)),s=lr.BigNumber.from(a.startTimeInEpochSeconds),o=await this.contractWrapper.readContract.winningBid(n);if(i.gt(s)&&o.offeror!==lr.constants.AddressZero)throw new Ve.AuctionAlreadyStartedError(n.toString());return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),await this.contractWrapper.getSignerAddress()]})})),Vo._defineProperty(this,"closeListing",Ve.buildTransactionFunction(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateListing(lr.BigNumber.from(n));try{return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"closeAuction",args:[lr.BigNumber.from(n),a]})}catch(s){throw s.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),i.endTimeInEpochSeconds.toString()):s}})),Vo._defineProperty(this,"executeSale",Ve.buildTransactionFunction(async n=>{let a=await this.validateListing(lr.BigNumber.from(n));try{let i=await this.getWinningBid(n);lL.default(i,"No winning bid found");let s=this.encoder.encode("closeAuction",[n,a.sellerAddress]),o=this.encoder.encode("closeAuction",[n,i.buyerAddress]);return Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s,o]})}catch(i){throw i.message.includes("cannot close auction before it has ended")?new Ve.AuctionHasNotEndedError(n.toString(),a.endTimeInEpochSeconds.toString()):i}})),Vo._defineProperty(this,"updateListing",Ve.buildTransactionFunction(async n=>Ve.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n.id,n.quantity,n.reservePrice,n.buyoutPrice,n.currencyContractAddress,n.startTimeInEpochSeconds,n.endTimeInEpochSeconds]}))),this.contractWrapper=e,this.storage=t,this.encoder=new Ve.ContractEncoder(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.listingId.toString()!==e.toString())throw new Ve.ListingNotFoundError(this.getAddress(),e.toString());if(t.listingType!==Xv.Auction)throw new Ve.WrongListingTypeError(this.getAddress(),e.toString(),"Direct","Auction");return await this.mapListing(t)}async getWinningBid(e){await this.validateListing(lr.BigNumber.from(e));let t=await this.contractWrapper.readContract.winningBid(e);if(t.offeror!==lr.constants.AddressZero)return await Ve.mapOffer(this.contractWrapper.getProvider(),lr.BigNumber.from(e),t)}async getWinner(e){let t=await this.validateListing(lr.BigNumber.from(e)),n=await this.contractWrapper.readContract.winningBid(e),a=lr.BigNumber.from(Math.floor(Date.now()/1e3)),i=lr.BigNumber.from(t.endTimeInEpochSeconds);if(a.gt(i)&&n.offeror!==lr.constants.AddressZero)return n.offeror;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.listingId.eq(lr.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with listingId ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(),this.getWinningBid(e),await this.validateListing(lr.BigNumber.from(e))]),i=n?n.currencyValue.value:a.reservePrice,s=i.add(i.mul(t).div(1e4));return Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){return{assetContractAddress:e.assetContract,buyoutPrice:lr.BigNumber.from(e.buyoutPricePerToken),currencyContractAddress:e.currency,buyoutCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.buyoutPricePerToken),id:e.listingId.toString(),tokenId:e.tokenId,quantity:e.quantity,startTimeInEpochSeconds:e.startTime,asset:await Ve.fetchTokenMetadataForContract(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),reservePriceCurrencyValuePerToken:await Ve.fetchCurrencyValue(this.contractWrapper.getProvider(),e.currency,e.reservePricePerToken),reservePrice:lr.BigNumber.from(e.reservePricePerToken),endTimeInEpochSeconds:e.endTime,sellerAddress:e.tokenOwner,type:Xv.Auction}}};pL.ListingType=Xv;pL.MarketplaceAuction=bre;pL.MarketplaceDirect=gre});var Elt=x(Tlt=>{"use strict";d();p();var Ki=Ei(),mn=ds(),Oh=vre(),ud=je(),cMr=Gr();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function uMr(r){return r&&r.__esModule?r:{default:r}}var xlt=uMr(cMr),_x=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new mn.ContractWrapper(e,t,i,a);Ki._defineProperty(this,"abi",void 0),Ki._defineProperty(this,"contractWrapper",void 0),Ki._defineProperty(this,"storage",void 0),Ki._defineProperty(this,"encoder",void 0),Ki._defineProperty(this,"events",void 0),Ki._defineProperty(this,"estimator",void 0),Ki._defineProperty(this,"platformFees",void 0),Ki._defineProperty(this,"metadata",void 0),Ki._defineProperty(this,"app",void 0),Ki._defineProperty(this,"roles",void 0),Ki._defineProperty(this,"interceptor",void 0),Ki._defineProperty(this,"direct",void 0),Ki._defineProperty(this,"auction",void 0),Ki._defineProperty(this,"_chainId",void 0),Ki._defineProperty(this,"getAll",this.getAllListings),Ki._defineProperty(this,"buyoutListing",mn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new mn.ListingNotFoundError(this.getAddress(),c.toString());switch(h.listingType){case Oh.ListingType.Direct:return xlt.default(u!==void 0,"quantityDesired is required when buying out a direct listing"),await this.direct.buyoutListing.prepare(c,u,l);case Oh.ListingType.Auction:return await this.auction.buyoutListing.prepare(c);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Ki._defineProperty(this,"makeOffer",mn.buildTransactionFunction(async(c,u,l)=>{let h=await this.contractWrapper.readContract.listings(c);if(h.listingId.toString()!==c.toString())throw new mn.ListingNotFoundError(this.getAddress(),c.toString());let f=await this.contractWrapper.getChainID();switch(h.listingType){case Oh.ListingType.Direct:return xlt.default(l,"quantity is required when making an offer on a direct listing"),await this.direct.makeOffer.prepare(c,l,mn.isNativeToken(h.currency)?mn.NATIVE_TOKENS[f].wrapped.address:h.currency,u);case Oh.ListingType.Auction:return await this.auction.makeBid.prepare(c,u);default:throw Error(`Unknown listing type: ${h.listingType}`)}})),Ki._defineProperty(this,"setBidBufferBps",mn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getTimeBufferInSeconds();return mn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[u,ud.BigNumber.from(c)]})})),Ki._defineProperty(this,"setTimeBufferInSeconds",mn.buildTransactionFunction(async c=>{await this.roles.verify(["admin"],await this.contractWrapper.getSignerAddress());let u=await this.getBidBufferBps();return mn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAuctionBuffers",args:[ud.BigNumber.from(c),u]})})),Ki._defineProperty(this,"allowListingFromSpecificAssetOnly",mn.buildTransactionFunction(async c=>{let u=[];return(await this.roles.get("asset")).includes(ud.constants.AddressZero)&&u.push(this.encoder.encode("revokeRole",[mn.getRoleHash("asset"),ud.constants.AddressZero])),u.push(this.encoder.encode("grantRole",[mn.getRoleHash("asset"),c])),mn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[u]})})),Ki._defineProperty(this,"allowListingFromAnyAsset",mn.buildTransactionFunction(async()=>{let c=[],u=await this.roles.get("asset");for(let l in u)c.push(this.encoder.encode("revokeRole",[mn.getRoleHash("asset"),l]));return c.push(this.encoder.encode("grantRole",[mn.getRoleHash("asset"),ud.constants.AddressZero])),mn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c]})})),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new mn.ContractMetadata(this.contractWrapper,mn.MarketplaceContractSchema,this.storage),this.app=new mn.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new mn.ContractRoles(this.contractWrapper,_x.contractRoles),this.encoder=new mn.ContractEncoder(this.contractWrapper),this.estimator=new mn.GasCostEstimator(this.contractWrapper),this.direct=new Oh.MarketplaceDirect(this.contractWrapper,this.storage),this.auction=new Oh.MarketplaceAuction(this.contractWrapper,this.storage),this.events=new mn.ContractEvents(this.contractWrapper),this.platformFees=new mn.ContractPlatformFee(this.contractWrapper),this.interceptor=new mn.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getListing(e){let t=await this.contractWrapper.readContract.listings(e);if(t.assetContract===ud.constants.AddressZero)throw new mn.ListingNotFoundError(this.getAddress(),e.toString());switch(t.listingType){case Oh.ListingType.Auction:return await this.auction.mapListing(t);case Oh.ListingType.Direct:return await this.direct.mapListing(t);default:throw new Error(`Unknown listing type: ${t.listingType}`)}}async getActiveListings(e){let t=await this.getAllListingsNoFilter(!0),n=this.applyFilter(t,e),a=ud.BigNumber.from(Math.floor(Date.now()/1e3));return n.filter(i=>i.type===Oh.ListingType.Auction&&ud.BigNumber.from(i.endTimeInEpochSeconds).gt(a)&&ud.BigNumber.from(i.startTimeInEpochSeconds).lte(a)||i.type===Oh.ListingType.Direct&&i.quantity>0)}async getAllListings(e){let t=await this.getAllListingsNoFilter(!1);return this.applyFilter(t,e)}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async isRestrictedToListerRoleOnly(){return!await this.contractWrapper.readContract.hasRole(mn.getRoleHash("lister"),ud.constants.AddressZero)}async getBidBufferBps(){return this.contractWrapper.readContract.bidBufferBps()}async getTimeBufferInSeconds(){return this.contractWrapper.readContract.timeBuffer()}async getOffers(e){let t=await this.events.getEvents("NewOffer",{order:"desc",filters:{listingId:e}});return await Promise.all(t.map(async n=>await mn.mapOffer(this.contractWrapper.getProvider(),ud.BigNumber.from(e),{quantityWanted:n.data.quantityWanted,pricePerToken:n.data.quantityWanted.gt(0)?n.data.totalOfferAmount.div(n.data.quantityWanted):n.data.totalOfferAmount,currency:n.data.currency,offeror:n.data.offeror})))}async getAllListingsNoFilter(e){return(await Promise.all(Array.from(Array((await this.contractWrapper.readContract.totalListings()).toNumber()).keys()).map(async n=>{let a;try{a=await this.getListing(n)}catch(i){if(i instanceof mn.ListingNotFoundError)return;console.warn(`Failed to get listing ${n}' - skipping. Try 'marketplace.getListing(${n})' to get the underlying error.`);return}if(a.type===Oh.ListingType.Auction)return a;if(e){let{valid:i}=await this.direct.isStillValidListing(a);if(!i)return}return a}))).filter(n=>n!==void 0)}applyFilter(e,t){let n=[...e],a=ud.BigNumber.from(t?.start||0).toNumber(),i=ud.BigNumber.from(t?.count||Ki.DEFAULT_QUERY_ALL_COUNT).toNumber();return t&&(t.seller&&(n=n.filter(s=>s.sellerAddress.toString().toLowerCase()===t?.seller?.toString().toLowerCase())),t.tokenContract&&(n=n.filter(s=>s.assetContractAddress.toString().toLowerCase()===t?.tokenContract?.toString().toLowerCase())),t.tokenId!==void 0&&(n=n.filter(s=>s.tokenId.toString()===t?.tokenId?.toString())),n=n.filter((s,o)=>o>=a),n=n.slice(0,i)),n}async prepare(e,t,n){return mn.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ld=Ei(),Gi=ds();Ir();je();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var xx=class{get directListings(){return Gi.assertEnabled(this.detectDirectListings(),Gi.FEATURE_DIRECT_LISTINGS)}get englishAuctions(){return Gi.assertEnabled(this.detectEnglishAuctions(),Gi.FEATURE_ENGLISH_AUCTIONS)}get offers(){return Gi.assertEnabled(this.detectOffers(),Gi.FEATURE_OFFERS)}get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Gi.ContractWrapper(e,t,i,a);ld._defineProperty(this,"abi",void 0),ld._defineProperty(this,"contractWrapper",void 0),ld._defineProperty(this,"storage",void 0),ld._defineProperty(this,"encoder",void 0),ld._defineProperty(this,"events",void 0),ld._defineProperty(this,"estimator",void 0),ld._defineProperty(this,"platformFees",void 0),ld._defineProperty(this,"metadata",void 0),ld._defineProperty(this,"app",void 0),ld._defineProperty(this,"roles",void 0),ld._defineProperty(this,"interceptor",void 0),ld._defineProperty(this,"_chainId",void 0),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Gi.ContractMetadata(this.contractWrapper,Gi.MarketplaceContractSchema,this.storage),this.app=new Gi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Gi.ContractRoles(this.contractWrapper,xx.contractRoles),this.encoder=new Gi.ContractEncoder(this.contractWrapper),this.estimator=new Gi.GasCostEstimator(this.contractWrapper),this.events=new Gi.ContractEvents(this.contractWrapper),this.platformFees=new Gi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Gi.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async prepare(e,t,n){return Gi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var e2=Ei(),L1=ds(),wre=class{get chainId(){return this._chainId}constructor(e,t,n){e2._defineProperty(this,"contractWrapper",void 0),e2._defineProperty(this,"storage",void 0),e2._defineProperty(this,"erc721",void 0),e2._defineProperty(this,"_chainId",void 0),e2._defineProperty(this,"transfer",L1.buildTransactionFunction(async(a,i)=>this.erc721.transfer.prepare(a,i))),e2._defineProperty(this,"setApprovalForAll",L1.buildTransactionFunction(async(a,i)=>this.erc721.setApprovalForAll.prepare(a,i))),e2._defineProperty(this,"setApprovalForToken",L1.buildTransactionFunction(async(a,i)=>L1.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await L1.resolveAddress(a),i]}))),this.contractWrapper=e,this.storage=t,this.erc721=new L1.Erc721(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAll(e){return this.erc721.getAll(e)}async getOwned(e){return e&&(e=await L1.resolveAddress(e)),this.erc721.getOwned(e)}async getOwnedTokenIds(e){return e&&(e=await L1.resolveAddress(e)),this.erc721.getOwnedTokenIds(e)}async totalSupply(){return this.erc721.totalCirculatingSupply()}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}};klt.StandardErc721=wre});var Slt=x(Alt=>{"use strict";d();p();var xp=Ei(),Vi=ds(),lMr=Tx(),dMr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Ex=class extends lMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Vi.ContractWrapper(e,t,i,a);super(o,n,s),xp._defineProperty(this,"abi",void 0),xp._defineProperty(this,"encoder",void 0),xp._defineProperty(this,"estimator",void 0),xp._defineProperty(this,"metadata",void 0),xp._defineProperty(this,"app",void 0),xp._defineProperty(this,"events",void 0),xp._defineProperty(this,"roles",void 0),xp._defineProperty(this,"royalties",void 0),xp._defineProperty(this,"owner",void 0),xp._defineProperty(this,"wrap",Vi.buildTransactionFunction(async(c,u,l)=>{let h=await Vi.uploadOrExtractURI(u,this.storage),f=await Vi.resolveAddress(l||await this.contractWrapper.getSignerAddress()),m=await this.toTokenStructList(c);return Vi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"wrap",args:[m,h,f],parse:y=>{let E=this.contractWrapper.parseLogs("TokensWrapped",y?.logs);if(E.length===0)throw new Error("TokensWrapped event not found");let I=E[0].args.tokenIdOfWrappedToken;return{id:I,receipt:y,data:()=>this.get(I)}}})})),xp._defineProperty(this,"unwrap",Vi.buildTransactionFunction(async(c,u)=>{let l=await Vi.resolveAddress(u||await this.contractWrapper.getSignerAddress());return Vi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"unwrap",args:[c,l]})})),this.abi=i,this.metadata=new Vi.ContractMetadata(this.contractWrapper,Vi.MultiwrapContractSchema,this.storage),this.app=new Vi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Vi.ContractRoles(this.contractWrapper,Ex.contractRoles),this.encoder=new Vi.ContractEncoder(this.contractWrapper),this.estimator=new Vi.GasCostEstimator(this.contractWrapper),this.events=new Vi.ContractEvents(this.contractWrapper),this.royalties=new Vi.ContractRoyalty(this.contractWrapper,this.metadata),this.owner=new Vi.ContractOwner(this.contractWrapper)}async getWrappedContents(e){let t=await this.contractWrapper.readContract.getWrappedContents(e),n=[],a=[],i=[];for(let s of t)switch(s.tokenType){case 0:{let o=await Vi.fetchCurrencyMetadata(this.contractWrapper.getProvider(),s.assetContract);n.push({contractAddress:s.assetContract,quantity:dMr.ethers.utils.formatUnits(s.totalAmount,o.decimals)});break}case 1:{a.push({contractAddress:s.assetContract,tokenId:s.tokenId});break}case 2:{i.push({contractAddress:s.assetContract,tokenId:s.tokenId,quantity:s.totalAmount.toString()});break}}return{erc20Tokens:n,erc721Tokens:a,erc1155Tokens:i}}async toTokenStructList(e){let t=[],n=this.contractWrapper.getProvider(),a=await this.contractWrapper.getSignerAddress();if(e.erc20Tokens)for(let i of e.erc20Tokens){let s=await Vi.normalizePriceValue(n,i.quantity,i.contractAddress);if(!await Vi.hasERC20Allowance(this.contractWrapper,i.contractAddress,s))throw new Error(`ERC20 token with contract address "${i.contractAddress}" does not have enough allowance to transfer. You can set allowance to the multiwrap contract to transfer these tokens by running: await sdk.getToken("${i.contractAddress}").setAllowance("${this.getAddress()}", ${i.quantity}); -`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Gi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:s,tokenId:0,tokenType:0})}if(e.erc721Tokens)for(let i of e.erc721Tokens){if(!await Vi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC721 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getNFTCollection("${i.contractAddress}").setApprovalForToken("${this.getAddress()}", ${i.tokenId}); -`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Gi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. +`);t.push({assetContract:i.contractAddress,totalAmount:0,tokenId:i.tokenId,tokenType:1})}if(e.erc1155Tokens)for(let i of e.erc1155Tokens){if(!await Vi.isTokenApprovedForTransfer(this.contractWrapper.getProvider(),this.getAddress(),i.contractAddress,i.tokenId,a))throw new Error(`ERC1155 token "${i.tokenId}" with contract address "${i.contractAddress}" is not approved for transfer. You can give approval the multiwrap contract to transfer this token by running: await sdk.getEdition("${i.contractAddress}").setApprovalForAll("${this.getAddress()}", true); -`);t.push({assetContract:i.contractAddress,totalAmount:i.quantity,tokenId:i.tokenId,tokenType:2})}return t}async prepare(e,t,n){return Gi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Gs=Ei(),hs=ds(),s9r=s_(),o9r=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var c_=class extends s9r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hs.ContractWrapper(e,t,i,a);super(o,n,s),Gs._defineProperty(this,"abi",void 0),Gs._defineProperty(this,"metadata",void 0),Gs._defineProperty(this,"app",void 0),Gs._defineProperty(this,"roles",void 0),Gs._defineProperty(this,"encoder",void 0),Gs._defineProperty(this,"estimator",void 0),Gs._defineProperty(this,"events",void 0),Gs._defineProperty(this,"sales",void 0),Gs._defineProperty(this,"platformFees",void 0),Gs._defineProperty(this,"royalties",void 0),Gs._defineProperty(this,"owner",void 0),Gs._defineProperty(this,"signature",void 0),Gs._defineProperty(this,"interceptor",void 0),Gs._defineProperty(this,"erc721",void 0),Gs._defineProperty(this,"mint",hs.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Gs._defineProperty(this,"mintTo",hs.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Gs._defineProperty(this,"mintBatch",hs.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Gs._defineProperty(this,"mintBatchTo",hs.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Gs._defineProperty(this,"burn",hs.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new hs.ContractMetadata(this.contractWrapper,hs.TokenErc721ContractSchema,this.storage),this.app=new hs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hs.ContractRoles(this.contractWrapper,c_.contractRoles),this.royalties=new hs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hs.ContractPrimarySale(this.contractWrapper),this.encoder=new hs.ContractEncoder(this.contractWrapper),this.estimator=new hs.GasCostEstimator(this.contractWrapper),this.events=new hs.ContractEvents(this.contractWrapper),this.platformFees=new hs.ContractPlatformFee(this.contractWrapper),this.interceptor=new hs.ContractInterceptor(this.contractWrapper),this.erc721=new hs.Erc721(this.contractWrapper,this.storage,s),this.signature=new hs.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new hs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hs.getRoleHash("transfer"),o9r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return hs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ii=Ei(),Za=ds(),c9r=s_(),u9r=k8(),Vv=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var u_=class extends c9r.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Za.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ii._defineProperty(this,"abi",void 0),ii._defineProperty(this,"encoder",void 0),ii._defineProperty(this,"estimator",void 0),ii._defineProperty(this,"metadata",void 0),ii._defineProperty(this,"app",void 0),ii._defineProperty(this,"sales",void 0),ii._defineProperty(this,"platformFees",void 0),ii._defineProperty(this,"events",void 0),ii._defineProperty(this,"roles",void 0),ii._defineProperty(this,"interceptor",void 0),ii._defineProperty(this,"royalties",void 0),ii._defineProperty(this,"claimConditions",void 0),ii._defineProperty(this,"revealer",void 0),ii._defineProperty(this,"checkout",void 0),ii._defineProperty(this,"erc721",void 0),ii._defineProperty(this,"owner",void 0),ii._defineProperty(this,"createBatch",Za.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ii._defineProperty(this,"claimTo",Za.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),ii._defineProperty(this,"claim",Za.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ii._defineProperty(this,"burn",Za.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ii._defineProperty(this,"transfer",Za.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ii._defineProperty(this,"setApprovalForAll",Za.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ii._defineProperty(this,"setApprovalForToken",Za.buildTransactionFunction(async(u,l)=>Za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=s,this.metadata=new Za.ContractMetadata(this.contractWrapper,Za.DropErc721ContractSchema,this.storage),this.app=new Za.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Za.ContractRoles(this.contractWrapper,u_.contractRoles),this.royalties=new Za.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Za.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Za.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Za.ContractEncoder(this.contractWrapper),this.estimator=new Za.GasCostEstimator(this.contractWrapper),this.events=new Za.ContractEvents(this.contractWrapper),this.platformFees=new Za.ContractPlatformFee(this.contractWrapper),this.erc721=new Za.Erc721(this.contractWrapper,this.storage,o),this.revealer=new Za.DelayedReveal(this.contractWrapper,this.storage,Za.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Za.ContractInterceptor(this.contractWrapper),this.owner=new Za.ContractOwner(this.contractWrapper),this.checkout=new u9r.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Vv.BigNumber.from(e?.start||0).toNumber(),n=Vv.BigNumber.from(e?.count||ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Vv.BigNumber.from(e?.start||0).toNumber(),n=Vv.BigNumber.from(e?.count||ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Vv.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=Vv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Za.getRoleHash("transfer"),Vv.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Xa=Ei(),Mt=ds(),l9r=C8(),d9r=MX(),p9r=ia(),Dh=Ge(),M0=kr();Ir();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function Uut(r){return r&&r.__esModule?r:{default:r}}var h9r=Uut(d9r),f9r=Uut(p9r),$te=M0.z.object({contractAddress:Mt.AddressOrEnsSchema}),m9r=$te.extend({quantity:Xa.AmountSchema}),y9r=$te.extend({tokenId:Mt.BigNumberishSchema}),g9r=$te.extend({tokenId:Mt.BigNumberishSchema,quantity:Mt.BigNumberishSchema}),Hut=m9r.omit({quantity:!0}).extend({quantityPerReward:Xa.AmountSchema}),jut=y9r,zut=g9r.omit({quantity:!0}).extend({quantityPerReward:Mt.BigNumberishSchema}),b9r=Hut.extend({totalRewards:Mt.BigNumberishSchema.default("1")}),v9r=jut,w9r=zut.extend({totalRewards:Mt.BigNumberishSchema.default("1")});M0.z.object({erc20Rewards:M0.z.array(Hut).default([]),erc721Rewards:M0.z.array(jut).default([]),erc1155Rewards:M0.z.array(zut).default([])});var Kut=M0.z.object({erc20Rewards:M0.z.array(b9r).default([]),erc721Rewards:M0.z.array(v9r).default([]),erc1155Rewards:M0.z.array(w9r).default([])}),x9r=Kut.extend({packMetadata:Xa.NFTInputOrUriSchema,rewardsPerPack:Mt.BigNumberishSchema.default("1"),openStartTime:Mt.RawDateSchema.default(new Date)}),Gte=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Mt.ContractWrapper(e,t,f9r.default,a);Xa._defineProperty(this,"featureName",Mt.FEATURE_PACK_VRF.name),Xa._defineProperty(this,"contractWrapper",void 0),Xa._defineProperty(this,"storage",void 0),Xa._defineProperty(this,"chainId",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"open",Mt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=Dh.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Xa._defineProperty(this,"claimRewards",Mt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Mt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Mt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Dh.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Mt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Dh.BigNumber.from(5e5)}),i=Dh.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Mt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Mt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,h9r.default,this.contractWrapper.options);return new Mt.Erc20(t,this.storage,this.chainId)}},l_=class extends l9r.StandardErc1155{get vrf(){return Mt.assertEnabled(this._vrf,Mt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Xa._defineProperty(this,"abi",void 0),Xa._defineProperty(this,"metadata",void 0),Xa._defineProperty(this,"app",void 0),Xa._defineProperty(this,"roles",void 0),Xa._defineProperty(this,"encoder",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"estimator",void 0),Xa._defineProperty(this,"royalties",void 0),Xa._defineProperty(this,"interceptor",void 0),Xa._defineProperty(this,"erc1155",void 0),Xa._defineProperty(this,"owner",void 0),Xa._defineProperty(this,"_vrf",void 0),Xa._defineProperty(this,"create",Mt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Xa._defineProperty(this,"addPackContents",Mt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await Kut.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Xa._defineProperty(this,"createTo",Mt.buildTransactionFunction(async(u,l)=>{let h=await Mt.uploadOrExtractURI(l.packMetadata,this.storage),f=await x9r.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await Mt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let G=W[0].args.packId;return{id:G,receipt:F,data:()=>this.erc1155.get(G)}}})})),Xa._defineProperty(this,"open",Mt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Mt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Mt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:Dh.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=s,this.erc1155=new Mt.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new Mt.ContractMetadata(this.contractWrapper,Mt.PackContractSchema,this.storage),this.app=new Mt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mt.ContractRoles(this.contractWrapper,l_.contractRoles),this.royalties=new Mt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Mt.ContractEncoder(this.contractWrapper),this.estimator=new Mt.GasCostEstimator(this.contractWrapper),this.events=new Mt.ContractEvents(this.contractWrapper),this.interceptor=new Mt.ContractInterceptor(this.contractWrapper),this.owner=new Mt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Mt.getRoleHash("transfer"),Dh.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{"use strict";d();p();var Ys=Ei(),hs=ds(),pMr=Tx(),hMr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Cx=class extends pMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hs.ContractWrapper(e,t,i,a);super(o,n,s),Ys._defineProperty(this,"abi",void 0),Ys._defineProperty(this,"metadata",void 0),Ys._defineProperty(this,"app",void 0),Ys._defineProperty(this,"roles",void 0),Ys._defineProperty(this,"encoder",void 0),Ys._defineProperty(this,"estimator",void 0),Ys._defineProperty(this,"events",void 0),Ys._defineProperty(this,"sales",void 0),Ys._defineProperty(this,"platformFees",void 0),Ys._defineProperty(this,"royalties",void 0),Ys._defineProperty(this,"owner",void 0),Ys._defineProperty(this,"signature",void 0),Ys._defineProperty(this,"interceptor",void 0),Ys._defineProperty(this,"erc721",void 0),Ys._defineProperty(this,"mint",hs.buildTransactionFunction(async c=>this.erc721.mint.prepare(c))),Ys._defineProperty(this,"mintTo",hs.buildTransactionFunction(async(c,u)=>this.erc721.mintTo.prepare(c,u))),Ys._defineProperty(this,"mintBatch",hs.buildTransactionFunction(async c=>this.erc721.mintBatch.prepare(c))),Ys._defineProperty(this,"mintBatchTo",hs.buildTransactionFunction(async(c,u)=>this.erc721.mintBatchTo.prepare(c,u))),Ys._defineProperty(this,"burn",hs.buildTransactionFunction(c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new hs.ContractMetadata(this.contractWrapper,hs.TokenErc721ContractSchema,this.storage),this.app=new hs.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hs.ContractRoles(this.contractWrapper,Cx.contractRoles),this.royalties=new hs.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hs.ContractPrimarySale(this.contractWrapper),this.encoder=new hs.ContractEncoder(this.contractWrapper),this.estimator=new hs.GasCostEstimator(this.contractWrapper),this.events=new hs.ContractEvents(this.contractWrapper),this.platformFees=new hs.ContractPlatformFee(this.contractWrapper),this.interceptor=new hs.ContractInterceptor(this.contractWrapper),this.erc721=new hs.Erc721(this.contractWrapper,this.storage,s),this.signature=new hs.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new hs.ContractOwner(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hs.getRoleHash("transfer"),hMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc721.getMintTransaction(e,t)}async prepare(e,t,n){return hs.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var ii=Ei(),Za=ds(),fMr=Tx(),mMr=J8(),t2=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Ix=class extends fMr.StandardErc721{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Za.ContractWrapper(e,t,s,i);super(c,n,o),a=this,ii._defineProperty(this,"abi",void 0),ii._defineProperty(this,"encoder",void 0),ii._defineProperty(this,"estimator",void 0),ii._defineProperty(this,"metadata",void 0),ii._defineProperty(this,"app",void 0),ii._defineProperty(this,"sales",void 0),ii._defineProperty(this,"platformFees",void 0),ii._defineProperty(this,"events",void 0),ii._defineProperty(this,"roles",void 0),ii._defineProperty(this,"interceptor",void 0),ii._defineProperty(this,"royalties",void 0),ii._defineProperty(this,"claimConditions",void 0),ii._defineProperty(this,"revealer",void 0),ii._defineProperty(this,"checkout",void 0),ii._defineProperty(this,"erc721",void 0),ii._defineProperty(this,"owner",void 0),ii._defineProperty(this,"createBatch",Za.buildTransactionFunction(async(u,l)=>this.erc721.lazyMint.prepare(u,l))),ii._defineProperty(this,"claimTo",Za.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc721.claimTo.prepare(u,l,{checkERC20Allowance:h})})),ii._defineProperty(this,"claim",Za.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),ii._defineProperty(this,"burn",Za.buildTransactionFunction(async u=>this.erc721.burn.prepare(u))),ii._defineProperty(this,"transfer",Za.buildTransactionFunction(async(u,l)=>this.erc721.transfer.prepare(u,l))),ii._defineProperty(this,"setApprovalForAll",Za.buildTransactionFunction(async(u,l)=>this.erc721.setApprovalForAll.prepare(u,l))),ii._defineProperty(this,"setApprovalForToken",Za.buildTransactionFunction(async(u,l)=>Za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[u,l]}))),this.abi=s,this.metadata=new Za.ContractMetadata(this.contractWrapper,Za.DropErc721ContractSchema,this.storage),this.app=new Za.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Za.ContractRoles(this.contractWrapper,Ix.contractRoles),this.royalties=new Za.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new Za.ContractPrimarySale(this.contractWrapper),this.claimConditions=new Za.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.encoder=new Za.ContractEncoder(this.contractWrapper),this.estimator=new Za.GasCostEstimator(this.contractWrapper),this.events=new Za.ContractEvents(this.contractWrapper),this.platformFees=new Za.ContractPlatformFee(this.contractWrapper),this.erc721=new Za.Erc721(this.contractWrapper,this.storage,o),this.revealer=new Za.DelayedReveal(this.contractWrapper,this.storage,Za.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.interceptor=new Za.ContractInterceptor(this.contractWrapper),this.owner=new Za.ContractOwner(this.contractWrapper),this.checkout=new mMr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=t2.BigNumber.from(e?.start||0).toNumber(),n=t2.BigNumber.from(e?.count||ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=t2.BigNumber.from(e?.start||0).toNumber(),n=t2.BigNumber.from(e?.count||ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=t2.BigNumber.from(Math.max((await this.contractWrapper.readContract.nextTokenIdToClaim()).toNumber(),t)),i=t2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Za.getRoleHash("transfer"),t2.constants.AddressZero)}async getClaimTransaction(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return this.erc721.getClaimTransaction(e,t,{checkERC20Allowance:n})}async get(e){return this.erc721.get(e)}async ownerOf(e){return this.erc721.ownerOf(e)}async balanceOf(e){return this.erc721.balanceOf(e)}async balance(){return this.erc721.balance()}async isApproved(e,t){return this.erc721.isApproved(e,t)}async prepare(e,t,n){return Za.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Xa=Ei(),Mt=ds(),yMr=$8(),gMr=see(),bMr=ia(),Lh=je(),q0=kr();Ir();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function Blt(r){return r&&r.__esModule?r:{default:r}}var vMr=Blt(gMr),wMr=Blt(bMr),xre=q0.z.object({contractAddress:Mt.AddressOrEnsSchema}),_Mr=xre.extend({quantity:Xa.AmountSchema}),xMr=xre.extend({tokenId:Mt.BigNumberishSchema}),TMr=xre.extend({tokenId:Mt.BigNumberishSchema,quantity:Mt.BigNumberishSchema}),Dlt=_Mr.omit({quantity:!0}).extend({quantityPerReward:Xa.AmountSchema}),Olt=xMr,Llt=TMr.omit({quantity:!0}).extend({quantityPerReward:Mt.BigNumberishSchema}),EMr=Dlt.extend({totalRewards:Mt.BigNumberishSchema.default("1")}),CMr=Olt,IMr=Llt.extend({totalRewards:Mt.BigNumberishSchema.default("1")});q0.z.object({erc20Rewards:q0.z.array(Dlt).default([]),erc721Rewards:q0.z.array(Olt).default([]),erc1155Rewards:q0.z.array(Llt).default([])});var qlt=q0.z.object({erc20Rewards:q0.z.array(EMr).default([]),erc721Rewards:q0.z.array(CMr).default([]),erc1155Rewards:q0.z.array(IMr).default([])}),kMr=qlt.extend({packMetadata:Xa.NFTInputOrUriSchema,rewardsPerPack:Mt.BigNumberishSchema.default("1"),openStartTime:Mt.RawDateSchema.default(new Date)}),_re=class{constructor(e,t,n,a,i){var s=this;let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Mt.ContractWrapper(e,t,wMr.default,a);Xa._defineProperty(this,"featureName",Mt.FEATURE_PACK_VRF.name),Xa._defineProperty(this,"contractWrapper",void 0),Xa._defineProperty(this,"storage",void 0),Xa._defineProperty(this,"chainId",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"open",Mt.buildTransactionFunction(async function(c){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"openPack",args:[c,u],overrides:{gasLimit:l},parse:h=>{let f=Lh.BigNumber.from(0);try{f=s.contractWrapper.parseLogs("PackOpenRequested",h?.logs)[0].args.requestId}catch{}return{receipt:h,id:f}}})})),Xa._defineProperty(this,"claimRewards",Mt.buildTransactionFunction(async function(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e5;return Mt.Transaction.fromContractWrapper({contractWrapper:s.contractWrapper,method:"claimRewards",args:[],overrides:{gasLimit:c},parse:async u=>{let l=s.contractWrapper.parseLogs("PackOpened",u?.logs);if(l.length===0)throw new Error("PackOpened event not found");let h=l[0].args.rewardUnitsDistributed;return await s.parseRewards(h)}})})),this.contractWrapper=o,this.storage=n,this.chainId=i,this.events=new Mt.ContractEvents(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async parseRewards(e){let t=[],n=[],a=[];for(let i of e)switch(i.tokenType){case 0:{let s=await Mt.fetchCurrencyMetadata(this.contractWrapper.getProvider(),i.assetContract);t.push({contractAddress:i.assetContract,quantityPerReward:Lh.ethers.utils.formatUnits(i.totalAmount,s.decimals).toString()});break}case 1:{n.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString()});break}case 2:{a.push({contractAddress:i.assetContract,tokenId:i.tokenId.toString(),quantityPerReward:i.totalAmount.toString()});break}}return{erc20Rewards:t,erc721Rewards:n,erc1155Rewards:a}}async addPackOpenEventListener(e){return this.events.addEventListener("PackOpened",async t=>{e(t.data.packId.toString(),t.data.opener,await this.parseRewards(t.data.rewardUnitsDistributed))})}async canClaimRewards(e){let t=await Mt.resolveAddress(e||await this.contractWrapper.getSignerAddress());return await this.contractWrapper.readContract.canClaimRewards(t)}async openAndClaim(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5,a=await this.contractWrapper.sendTransaction("openPackAndClaimRewards",[e,t,n],{gasLimit:Lh.BigNumber.from(5e5)}),i=Lh.BigNumber.from(0);try{i=this.contractWrapper.parseLogs("PackOpenRequested",a?.logs)[0].args.requestId}catch{}return{receipt:a,id:i}}async getLinkBalance(){return this.getLinkContract().balanceOf(this.contractWrapper.readContract.address)}async transferLink(e){await this.getLinkContract().transfer(this.contractWrapper.readContract.address,e)}getLinkContract(){let e=Mt.LINK_TOKEN_ADDRESS[this.chainId];if(!e)throw new Error(`No LINK token address found for chainId ${this.chainId}`);let t=new Mt.ContractWrapper(this.contractWrapper.getSignerOrProvider(),e,vMr.default,this.contractWrapper.options);return new Mt.Erc20(t,this.storage,this.chainId)}},kx=class extends yMr.StandardErc1155{get vrf(){return Mt.assertEnabled(this._vrf,Mt.FEATURE_PACK_VRF)}constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Mt.ContractWrapper(e,t,s,i.gasless&&"openzeppelin"in i.gasless?{...i,gasless:{openzeppelin:{...i.gasless.openzeppelin,useEOAForwarder:!0}}}:i);super(c,n,o),a=this,Xa._defineProperty(this,"abi",void 0),Xa._defineProperty(this,"metadata",void 0),Xa._defineProperty(this,"app",void 0),Xa._defineProperty(this,"roles",void 0),Xa._defineProperty(this,"encoder",void 0),Xa._defineProperty(this,"events",void 0),Xa._defineProperty(this,"estimator",void 0),Xa._defineProperty(this,"royalties",void 0),Xa._defineProperty(this,"interceptor",void 0),Xa._defineProperty(this,"erc1155",void 0),Xa._defineProperty(this,"owner",void 0),Xa._defineProperty(this,"_vrf",void 0),Xa._defineProperty(this,"create",Mt.buildTransactionFunction(async u=>{let l=await this.contractWrapper.getSignerAddress();return this.createTo.prepare(l,u)})),Xa._defineProperty(this,"addPackContents",Mt.buildTransactionFunction(async(u,l)=>{let h=await this.contractWrapper.getSignerAddress(),f=await qlt.parseAsync(l),{contents:m,numOfRewardUnits:y}=await this.toPackContentArgs(f);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"addPackContents",args:[u,m,y,h],parse:E=>{let I=this.contractWrapper.parseLogs("PackUpdated",E?.logs);if(I.length===0)throw new Error("PackUpdated event not found");let S=I[0].args.packId;return{id:S,receipt:E,data:()=>this.erc1155.get(S)}}})})),Xa._defineProperty(this,"createTo",Mt.buildTransactionFunction(async(u,l)=>{let h=await Mt.uploadOrExtractURI(l.packMetadata,this.storage),f=await kMr.parseAsync(l),{erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E}=f,I={erc20Rewards:m,erc721Rewards:y,erc1155Rewards:E},{contents:S,numOfRewardUnits:L}=await this.toPackContentArgs(I);return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createPack",args:[S,L,h,f.openStartTime,f.rewardsPerPack,await Mt.resolveAddress(u)],parse:F=>{let W=this.contractWrapper.parseLogs("PackCreated",F?.logs);if(W.length===0)throw new Error("PackCreated event not found");let V=W[0].args.packId;return{id:V,receipt:F,data:()=>this.erc1155.get(V)}}})})),Xa._defineProperty(this,"open",Mt.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5e5;if(a._vrf)throw new Error("This contract is using Chainlink VRF, use `contract.vrf.open()` or `contract.vrf.openAndClaim()` instead");return Mt.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"openPack",args:[u,l],overrides:{gasLimit:h},parse:async f=>{let m=a.contractWrapper.parseLogs("PackOpened",f?.logs);if(m.length===0)throw new Error("PackOpened event not found");let y=m[0].args.rewardUnitsDistributed,E=[],I=[],S=[];for(let L of y)switch(L.tokenType){case 0:{let F=await Mt.fetchCurrencyMetadata(a.contractWrapper.getProvider(),L.assetContract);E.push({contractAddress:L.assetContract,quantityPerReward:Lh.ethers.utils.formatUnits(L.totalAmount,F.decimals).toString()});break}case 1:{I.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString()});break}case 2:{S.push({contractAddress:L.assetContract,tokenId:L.tokenId.toString(),quantityPerReward:L.totalAmount.toString()});break}}return{erc20Rewards:E,erc721Rewards:I,erc1155Rewards:S}}})})),this.abi=s,this.erc1155=new Mt.Erc1155(this.contractWrapper,this.storage,o),this.metadata=new Mt.ContractMetadata(this.contractWrapper,Mt.PackContractSchema,this.storage),this.app=new Mt.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Mt.ContractRoles(this.contractWrapper,kx.contractRoles),this.royalties=new Mt.ContractRoyalty(this.contractWrapper,this.metadata),this.encoder=new Mt.ContractEncoder(this.contractWrapper),this.estimator=new Mt.GasCostEstimator(this.contractWrapper),this.events=new Mt.ContractEvents(this.contractWrapper),this.interceptor=new Mt.ContractInterceptor(this.contractWrapper),this.owner=new Mt.ContractOwner(this.contractWrapper),this._vrf=this.detectVrf()}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e),this._vrf?.onNetworkUpdated(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){return this.erc1155.get(e)}async getAll(e){return this.erc1155.getAll(e)}async getOwned(e){return this.erc1155.getOwned(e)}async getTotalCount(){return this.erc1155.totalCount()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Mt.getRoleHash("transfer"),Lh.ethers.constants.AddressZero)}async getPackContents(e){let{contents:t,perUnitAmounts:n}=await this.contractWrapper.readContract.getPackContents(e),a=[],i=[],s=[];for(let o=0;o1?t-1:0),a=1;a{"use strict";d();p();var Ii=Ei(),hi=ds(),_9r=s_(),T9r=k8(),Gv=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var d_=class extends _9r.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hi.ContractWrapper(e,t,i,a);super(o,n,s),Ii._defineProperty(this,"abi",void 0),Ii._defineProperty(this,"erc721",void 0),Ii._defineProperty(this,"owner",void 0),Ii._defineProperty(this,"encoder",void 0),Ii._defineProperty(this,"estimator",void 0),Ii._defineProperty(this,"metadata",void 0),Ii._defineProperty(this,"app",void 0),Ii._defineProperty(this,"sales",void 0),Ii._defineProperty(this,"platformFees",void 0),Ii._defineProperty(this,"events",void 0),Ii._defineProperty(this,"roles",void 0),Ii._defineProperty(this,"interceptor",void 0),Ii._defineProperty(this,"royalties",void 0),Ii._defineProperty(this,"claimConditions",void 0),Ii._defineProperty(this,"revealer",void 0),Ii._defineProperty(this,"signature",void 0),Ii._defineProperty(this,"checkout",void 0),Ii._defineProperty(this,"createBatch",hi.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Ii._defineProperty(this,"claimTo",hi.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Ii._defineProperty(this,"claim",hi.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Ii._defineProperty(this,"burn",hi.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new hi.ContractMetadata(this.contractWrapper,hi.DropErc721ContractSchema,this.storage),this.app=new hi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hi.ContractRoles(this.contractWrapper,d_.contractRoles),this.royalties=new hi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hi.ContractPrimarySale(this.contractWrapper),this.encoder=new hi.ContractEncoder(this.contractWrapper),this.estimator=new hi.GasCostEstimator(this.contractWrapper),this.events=new hi.ContractEvents(this.contractWrapper),this.platformFees=new hi.ContractPlatformFee(this.contractWrapper),this.interceptor=new hi.ContractInterceptor(this.contractWrapper),this.erc721=new hi.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new hi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new hi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new hi.DelayedReveal(this.contractWrapper,this.storage,hi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new hi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new hi.ContractOwner(this.contractWrapper),this.checkout=new T9r.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=Gv.BigNumber.from(e?.start||0).toNumber(),n=Gv.BigNumber.from(e?.count||Ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=Gv.BigNumber.from(e?.start||0).toNumber(),n=Gv.BigNumber.from(e?.count||Ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Gv.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=Gv.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hi.getRoleHash("transfer"),Gv.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var fu=Ei(),Da=ds(),E9r=An(),Yte=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function C9r(r){return r&&r.__esModule?r:{default:r}}var I9r=C9r(E9r),p_=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Da.ContractWrapper(e,t,i,a);fu._defineProperty(this,"contractWrapper",void 0),fu._defineProperty(this,"storage",void 0),fu._defineProperty(this,"abi",void 0),fu._defineProperty(this,"metadata",void 0),fu._defineProperty(this,"app",void 0),fu._defineProperty(this,"encoder",void 0),fu._defineProperty(this,"estimator",void 0),fu._defineProperty(this,"events",void 0),fu._defineProperty(this,"roles",void 0),fu._defineProperty(this,"interceptor",void 0),fu._defineProperty(this,"_chainId",void 0),fu._defineProperty(this,"withdraw",Da.buildTransactionFunction(async c=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Da.resolveAddress(c)]}))),fu._defineProperty(this,"withdrawToken",Da.buildTransactionFunction(async(c,u)=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Da.resolveAddress(u),await Da.resolveAddress(c)]}))),fu._defineProperty(this,"distribute",Da.buildTransactionFunction(async()=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),fu._defineProperty(this,"distributeToken",Da.buildTransactionFunction(async c=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Da.resolveAddress(c)]}))),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Da.ContractMetadata(this.contractWrapper,Da.SplitsContractSchema,this.storage),this.app=new Da.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Da.ContractRoles(this.contractWrapper,p_.contractRoles),this.encoder=new Da.ContractEncoder(this.contractWrapper),this.estimator=new Da.GasCostEstimator(this.contractWrapper),this.events=new Da.ContractEvents(this.contractWrapper),this.interceptor=new Da.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=Yte.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Da.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Da.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Da.resolveAddress(t),a=await Da.resolveAddress(e),s=await new Yte.Contract(n,I9r.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Da.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Da.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(Yte.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Da.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var h_=Ei(),Jte=ds(),Qte=class{get chainId(){return this._chainId}constructor(e,t,n){h_._defineProperty(this,"contractWrapper",void 0),h_._defineProperty(this,"storage",void 0),h_._defineProperty(this,"erc20",void 0),h_._defineProperty(this,"_chainId",void 0),h_._defineProperty(this,"transfer",Jte.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),h_._defineProperty(this,"transferFrom",Jte.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new Jte.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};Zut.StandardErc20=Qte});var elt=_(Xut=>{"use strict";d();p();var vc=Ei(),$i=ds(),k9r=VO(),A9r=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var f_=class extends k9r.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $i.ContractWrapper(e,t,s,i);super(c,n,o),a=this,vc._defineProperty(this,"abi",void 0),vc._defineProperty(this,"metadata",void 0),vc._defineProperty(this,"app",void 0),vc._defineProperty(this,"roles",void 0),vc._defineProperty(this,"encoder",void 0),vc._defineProperty(this,"estimator",void 0),vc._defineProperty(this,"sales",void 0),vc._defineProperty(this,"platformFees",void 0),vc._defineProperty(this,"events",void 0),vc._defineProperty(this,"claimConditions",void 0),vc._defineProperty(this,"interceptor",void 0),vc._defineProperty(this,"claim",$i.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),vc._defineProperty(this,"claimTo",$i.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),vc._defineProperty(this,"delegateTo",$i.buildTransactionFunction(async u=>$i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await $i.resolveAddress(u)]}))),vc._defineProperty(this,"burnTokens",$i.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),vc._defineProperty(this,"burnFrom",$i.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=s,this.metadata=new $i.ContractMetadata(this.contractWrapper,$i.DropErc20ContractSchema,this.storage),this.app=new $i.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new $i.ContractRoles(this.contractWrapper,f_.contractRoles),this.encoder=new $i.ContractEncoder(this.contractWrapper),this.estimator=new $i.GasCostEstimator(this.contractWrapper),this.events=new $i.ContractEvents(this.contractWrapper),this.sales=new $i.ContractPrimarySale(this.contractWrapper),this.platformFees=new $i.ContractPlatformFee(this.contractWrapper),this.interceptor=new $i.ContractInterceptor(this.contractWrapper),this.claimConditions=new $i.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await $i.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await $i.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole($i.getRoleHash("transfer"),A9r.constants.AddressZero)}async prepare(e,t,n){return $i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var tlt=Ei(),S9r=ds(),GO=Ge(),Zte=class{constructor(e,t){tlt._defineProperty(this,"events",void 0),tlt._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==GO.constants.AddressZero&&(i in n||(n[i]=GO.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==GO.constants.AddressZero&&(s in n||(n[s]=GO.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await S9r.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};rlt.TokenERC20History=Zte});var alt=_(nlt=>{"use strict";d();p();var mo=Ei(),Yi=ds(),P9r=Xte(),R9r=VO(),M9r=Ge();Ir();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();var m_=class extends R9r.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yi.ContractWrapper(e,t,i,a);super(o,n,s),mo._defineProperty(this,"abi",void 0),mo._defineProperty(this,"metadata",void 0),mo._defineProperty(this,"app",void 0),mo._defineProperty(this,"roles",void 0),mo._defineProperty(this,"encoder",void 0),mo._defineProperty(this,"estimator",void 0),mo._defineProperty(this,"history",void 0),mo._defineProperty(this,"events",void 0),mo._defineProperty(this,"platformFees",void 0),mo._defineProperty(this,"sales",void 0),mo._defineProperty(this,"signature",void 0),mo._defineProperty(this,"interceptor",void 0),mo._defineProperty(this,"mint",Yi.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),mo._defineProperty(this,"mintTo",Yi.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),mo._defineProperty(this,"mintBatchTo",Yi.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),mo._defineProperty(this,"delegateTo",Yi.buildTransactionFunction(async c=>Yi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Yi.resolveAddress(c)]}))),mo._defineProperty(this,"burn",Yi.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),mo._defineProperty(this,"burnFrom",Yi.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=i,this.metadata=new Yi.ContractMetadata(this.contractWrapper,Yi.TokenErc20ContractSchema,this.storage),this.app=new Yi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Yi.ContractRoles(this.contractWrapper,m_.contractRoles),this.sales=new Yi.ContractPrimarySale(this.contractWrapper),this.events=new Yi.ContractEvents(this.contractWrapper),this.history=new P9r.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Yi.ContractEncoder(this.contractWrapper),this.estimator=new Yi.GasCostEstimator(this.contractWrapper),this.platformFees=new Yi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Yi.ContractInterceptor(this.contractWrapper),this.signature=new Yi.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Yi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Yi.getRoleHash("transfer"),M9r.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Yi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var N9r=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});ilt.VoteType=N9r});var olt=_(slt=>{"use strict";d();p();var ud=Ei(),yo=ds(),B9r=An(),A8=Ge(),tre=ere();Ir();kr();_n();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();function D9r(r){return r&&r.__esModule?r:{default:r}}var O9r=D9r(B9r),rre=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new yo.ContractWrapper(e,t,s,i);ud._defineProperty(this,"contractWrapper",void 0),ud._defineProperty(this,"storage",void 0),ud._defineProperty(this,"abi",void 0),ud._defineProperty(this,"metadata",void 0),ud._defineProperty(this,"app",void 0),ud._defineProperty(this,"encoder",void 0),ud._defineProperty(this,"estimator",void 0),ud._defineProperty(this,"events",void 0),ud._defineProperty(this,"interceptor",void 0),ud._defineProperty(this,"_chainId",void 0),ud._defineProperty(this,"propose",yo.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return yo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),ud._defineProperty(this,"vote",yo.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),yo.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),ud._defineProperty(this,"execute",yo.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=A8.ethers.utils.id(l.description);return yo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=s,this.contractWrapper=c,this.storage=n,this.metadata=new yo.ContractMetadata(this.contractWrapper,yo.VoteContractSchema,this.storage),this.app=new yo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new yo.ContractEncoder(this.contractWrapper),this.estimator=new yo.GasCostEstimator(this.contractWrapper),this.events=new yo.ContractEvents(this.contractWrapper),this.interceptor=new yo.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(A8.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:tre.VoteType.Against,label:"Against",count:t.againstVotes},{type:tre.VoteType.For,label:"For",count:t.forVotes},{type:tre.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await yo.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=A8.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:A8.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new A8.Contract(await yo.resolveAddress(e),O9r.default,this.contractWrapper.getProvider());return await yo.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await yo.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return yo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var L9r=_n(),Z=Ge(),q9r=Tn(),F9r=En(),W9r=Cn(),U9r=In(),H9r=kn(),j9r=An(),z9r=Sn(),K9r=Pn(),V9r=Rn(),G9r=Mn(),$9r=Nn(),Y9r=Bn(),J9r=Dn(),Q9r=On(),Z9r=un(),X9r=Ln(),eMr=qn(),tMr=Fn(),rMr=Wn(),nMr=Un(),aMr=Hn(),iMr=jn(),sMr=zn(),oMr=Kn(),cMr=Vn(),uMr=Gn(),lMr=$n(),dMr=Yn(),pMr=ln(),hMr=Jn(),fMr=Qn(),mMr=Zn(),yMr=Xn(),gMr=ea(),bMr=ta(),vMr=ra(),wMr=na(),xMr=aa(),_Mr=ia(),TMr=sa(),EMr=oa(),CMr=ca(),IMr=ua(),kMr=la(),AMr=da(),Y=Ei(),pe=kr(),nI=Pt(),SMr=pa(),PMr=tn(),Wlt=it(),RMr=ha(),t2=gn(),MMr=Gr(),NMr=Hr(),BMr=fa(),nre=ma(),DMr=ya(),OMr=Fr(),LMr=pn(),qMr=ga(),FMr=ba(),WMr=va(),UMr=wa(),HMr=xa(),jMr=_a(),clt=Ta(),zMr=Ea(),KMr=Ca();function tt(r){return r&&r.__esModule?r:{default:r}}function Yo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var ene=tt(L9r),VMr=tt(q9r),Ult=tt(F9r),GMr=tt(W9r),Hlt=tt(U9r),jlt=tt(H9r),mu=tt(j9r),$Mr=tt(z9r),zlt=tt(K9r),tne=tt(V9r),YMr=tt(G9r),JMr=tt($9r),QMr=tt(Y9r),Klt=tt(J9r),ZMr=tt(Q9r),xc=tt(Z9r),XMr=tt(X9r),eNr=tt(eMr),Cp=tt(tMr),Vlt=tt(rMr),tNr=tt(nMr),rNr=tt(aMr),nNr=tt(iMr),aNr=tt(sMr),iNr=tt(oMr),sNr=tt(cMr),Glt=tt(uMr),oNr=tt(lMr),cNr=tt(dMr),Vu=tt(pMr),uNr=tt(hMr),$lt=tt(fMr),lNr=tt(mMr),dNr=tt(yMr),pNr=tt(gMr),hNr=tt(bMr),fNr=tt(vMr),mNr=tt(wMr),yNr=tt(xMr),gNr=tt(_Mr),bNr=tt(TMr),vNr=tt(EMr),wNr=tt(CMr),xNr=tt(IMr),_Nr=tt(kMr),TNr=tt(AMr),ENr=tt(SMr),B8=tt(PMr),lre=tt(Wlt),Ylt=tt(RMr),_t=tt(MMr),CNr=tt(BMr),Jlt=tt(DMr),vq=tt(LMr),INr=tt(qMr),kNr=tt(FMr),ANr=tt(WMr),SNr=tt(UMr),PNr=tt(HMr),RNr=tt(jMr),MNr=tt(zMr),NNr=tt(KMr);function BNr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function dre(r,e,t){BNr(r,e),e.set(r,t)}function DNr(r,e){return e.get?e.get.call(r):e.value}function Qlt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function ZO(r,e){var t=Qlt(r,e,"get");return DNr(r,t)}function ONr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function pre(r,e,t){var n=Qlt(r,e,"set");return ONr(r,n,t),t}var Be=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Zlt=[Be.Mainnet,Be.Goerli,Be.Polygon,Be.Mumbai,Be.Fantom,Be.FantomTestnet,Be.Avalanche,Be.AvalancheFujiTestnet,Be.Optimism,Be.OptimismGoerli,Be.Arbitrum,Be.ArbitrumGoerli,Be.BinanceSmartChainMainnet,Be.BinanceSmartChainTestnet,Be.Hardhat,Be.Localhost],hre=nI.defaultChains;function Xlt(r){r&&r.length>0?hre=r:hre=nI.defaultChains}function edt(){return hre}var tdt="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",R1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",S1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",$v="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",LNr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",qNr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",M1={[Be.Mainnet]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:$v,twRegistry:S1,twBYOCRegistry:Z.constants.AddressZero},[Be.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:$v,twRegistry:S1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Be.Polygon]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:$v,twRegistry:S1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Be.Mumbai]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:$v,twRegistry:S1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Be.Avalanche]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:$v,twRegistry:S1,twBYOCRegistry:Z.constants.AddressZero},[Be.AvalancheFujiTestnet]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:$v,twRegistry:S1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Fantom]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:S1,twBYOCRegistry:Z.constants.AddressZero},[Be.FantomTestnet]:{openzeppelinForwarder:R1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:$v,twRegistry:S1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Be.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},fre={[Be.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Be.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Be.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Be.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Be.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Be.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Be.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Be.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Be.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Be.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function rdt(r,e){if(r in fre){let t=fre[r];if(e in t)return t[e]}return null}function D8(r,e){return r===Be.Hardhat||r===Be.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:M1[r]?.[e]}function ndt(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:LNr}function mre(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:qNr}function rne(r){let e=Zlt.find(a=>a===r),t=e?M1[e].biconomyForwarder:Z.constants.AddressZero,n=e?M1[e].openzeppelinForwarder:Z.constants.AddressZero;return t!==Z.constants.AddressZero?[n,t]:[n]}var aI=Z.utils.arrayify("0x80ac58cd"),iI=Z.utils.arrayify("0xd9b67a26"),zu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",O8={[Be.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Be.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Be.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Be.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Be.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Be.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function XO(r){let e=edt().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:O8[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var FNr={[Be.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Be.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Be.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Be.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Be.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Be.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Be.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},Tl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function wq(r){return!!(r&&r._isSigner)}function nne(r){return!!(r&&r._isProvider)}function fi(r,e){let t,n;if(wq(r)?(t=r,r.provider&&(n=r.provider)):nne(r)?n=r:n=L8(r,e),e?.readonlySettings&&(n=tL(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var adt=50,idt=250,WNr={timeLimitMs:adt,sizeLimit:idt},yre=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:WNr;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||idt,this._sizeLimit=n.sizeLimit||adt,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},are,ire=new Map;async function sdt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;are||(are=fi("ethereum")[1]);let t;ire.has(r)?t=ire.get(r):t=are.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>sdt(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Ps=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),$s=Ps.transform(r=>r.toString()),odt=pe.z.union([pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),ane=pe.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),ki=pe.z.union([ane,UNr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),sI=pe.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),ine=sI.default(new Date(0)),oI=sI.default(new Date(Date.now()+1e3*60*60*24*365*10)),cdt=pe.z.object({gasLimit:$s.optional(),gasPrice:$s.optional(),maxFeePerGas:$s.optional(),maxPriorityFeePerGas:$s.optional(),nonce:$s.optional(),value:$s.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:ki.optional(),type:pe.z.number().optional()}).strict(),udt=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),gre=pe.z.object({supportedChains:pe.z.array(udt).default(nI.defaultChains),thirdwebApiKey:pe.z.string().optional().default(Y.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional().optional(),infuraApiKey:pe.z.string().optional().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1)}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),ldt=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),ddt=ldt.extend({value:Ps,displayValue:pe.z.string()}),W0=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),eL=pe.z.object({address:ki,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:ki.default(Z.ethers.constants.AddressZero).optional()}),cI=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>eL.parseAsync({address:e})))),pe.z.array(eL)]),sne=eL.extend({proof:pe.z.array(pe.z.string())}),one=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(sne)}),HNr=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),pdt=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),uI=pe.z.object({startTime:ine,currencyAddress:pe.z.string().default(zu),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:$s.default(0),merkleRootHash:Y.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(cI).nullable(),metadata:pdt.optional()}),hdt=pe.z.array(uI),jNr=uI.partial(),cne=uI.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:ddt.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Ps,waitInSeconds:Ps,startTime:Ps.transform(r=>new Date(r.toNumber()*1e3)),snapshot:cI.optional().nullable()});function zNr(r){if(r===void 0){let e=b.Buffer.alloc(16);return OMr.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var xq=pe.z.object({to:ki.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:ane.default(zu),mintStartTime:ine,mintEndTime:oI,uid:pe.z.string().optional().transform(r=>zNr(r)),primarySaleRecipient:ki.default(Z.constants.AddressZero)}),une=xq.extend({quantity:Y.AmountSchema}),fdt=une.extend({mintStartTime:Ps,mintEndTime:Ps}),_q=xq.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),lne=_q.extend({uri:pe.z.string(),royaltyBps:Ps,mintStartTime:Ps,mintEndTime:Ps}),mdt=_q.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:$s}),ydt=mdt.extend({tokenId:$s}),gdt=lne.extend({tokenId:Ps,quantity:Ps}),bdt=_q.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Ps.default(1)}),vdt=lne.extend({quantity:Ps.default(1)}),wdt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],xdt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],_dt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Tdt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],Edt=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Il=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),ld=Il.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),$o=pe.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:ki.default(Z.constants.AddressZero)}),N1=pe.z.object({primary_sale_recipient:ki}),Ep=pe.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:ki.default(Z.constants.AddressZero)}),dd=pe.z.object({trusted_forwarders:pe.z.array(ki).default([])}),vo=pe.z.object({symbol:pe.z.string().optional().default("")}),Cdt=Il.merge($o).merge(W0).merge(vo),KNr=ld.merge($o).merge(W0).merge(vo),VNr=Cdt.merge(Ep).merge(N1).merge(dd),dne={deploy:VNr,output:KNr,input:Cdt},Idt=Il.merge($o).merge(W0).merge(vo),GNr=ld.merge($o).merge(W0).merge(vo),$Nr=Idt.merge(Ep).merge(N1).merge(dd),kdt={deploy:$Nr,output:GNr,input:Idt},Adt=Il,YNr=ld,JNr=Adt.merge(Ep).merge(dd),pne={deploy:JNr,output:YNr,input:Adt},Sdt=Il.merge($o).merge(vo),QNr=ld.merge($o).merge(vo),ZNr=Sdt.merge(Ep).merge(dd),Pdt={deploy:ZNr,output:QNr,input:Sdt},Rdt=pe.z.object({address:ki,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),XNr=Rdt.extend({address:ki,sharesBps:Y.BasisPointsSchema}),bre=Il.extend({recipients:pe.z.array(Rdt).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),eBr=ld.extend({recipients:pe.z.array(XNr)}),tBr=bre.merge(bre).merge(dd),Mdt={deploy:tBr,output:eBr,input:bre},Ndt=Il.merge(vo),rBr=ld.merge(vo),nBr=Ndt.merge(Ep).merge(N1).merge(dd),Bdt={deploy:nBr,output:rBr,input:Ndt},Ddt=Il.merge($o).merge(vo),aBr=ld.merge($o).merge(vo),iBr=Ddt.merge(Ep).merge(N1).merge(dd),Odt={deploy:iBr,output:aBr,input:Ddt},Ldt=Il.merge($o).merge(vo),sBr=ld.merge($o).merge(vo),oBr=Ldt.merge(Ep).merge(N1).merge(dd),qdt={deploy:oBr,output:sBr,input:Ldt},Fdt=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:ki,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:$s.default(1)}),cBr=Fdt.extend({proposal_token_threshold:Ps}),Wdt=Il.merge(Fdt),uBr=ld.merge(cBr),lBr=Wdt.merge(dd),Udt={deploy:lBr,output:uBr,input:Wdt};pe.z.object({proposalId:Ps,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Ps),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Ps,endBlock:Ps,description:pe.z.string()});function dBr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function L8(r,e){if(typeof r=="string"&&pBr(r))return tL(r);let t=gre.parse(e);Tq(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=dBr(t),a="",i;try{i=Hdt(r,t),a=nI.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return tL(a,i)}function Hdt(r,e){if(Tq(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function Tq(r){return typeof r!="string"&&typeof r!="number"&&!wq(r)&&!nne(r)}function pBr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var ult=new Map;function tL(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=ult.get(n);if(a)return a;let i=e?new yre(r,e):new Z.providers.JsonRpcBatchProvider(r);return ult.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var q8=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},vre=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},rL=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},wre=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},xre=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},_re=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},Tre=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},Ere=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},Cre=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},Ire=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},kre=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},nL=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},Are=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},Sre=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},Pre=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},Rre=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},Mre=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},Nre=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},w_=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},B0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},sre=new WeakMap,ore=new WeakMap,F8=class extends Error{constructor(e){let t=` +`);n.push(u.totalRewards),t.push({assetContract:u.contractAddress,tokenType:2,totalAmount:Lh.BigNumber.from(u.quantityPerReward).mul(Lh.BigNumber.from(u.totalRewards)),tokenId:u.tokenId})}return{contents:t,numOfRewardUnits:n}}async prepare(e,t,n){return Mt.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Ii=Ei(),hi=ds(),AMr=Tx(),SMr=J8(),r2=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Ax=class extends AMr.StandardErc721{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new hi.ContractWrapper(e,t,i,a);super(o,n,s),Ii._defineProperty(this,"abi",void 0),Ii._defineProperty(this,"erc721",void 0),Ii._defineProperty(this,"owner",void 0),Ii._defineProperty(this,"encoder",void 0),Ii._defineProperty(this,"estimator",void 0),Ii._defineProperty(this,"metadata",void 0),Ii._defineProperty(this,"app",void 0),Ii._defineProperty(this,"sales",void 0),Ii._defineProperty(this,"platformFees",void 0),Ii._defineProperty(this,"events",void 0),Ii._defineProperty(this,"roles",void 0),Ii._defineProperty(this,"interceptor",void 0),Ii._defineProperty(this,"royalties",void 0),Ii._defineProperty(this,"claimConditions",void 0),Ii._defineProperty(this,"revealer",void 0),Ii._defineProperty(this,"signature",void 0),Ii._defineProperty(this,"checkout",void 0),Ii._defineProperty(this,"createBatch",hi.buildTransactionFunction(async(c,u)=>this.erc721.lazyMint.prepare(c,u))),Ii._defineProperty(this,"claimTo",hi.buildTransactionFunction(async(c,u,l)=>this.erc721.claimTo.prepare(c,u,l))),Ii._defineProperty(this,"claim",hi.buildTransactionFunction(async(c,u)=>this.erc721.claim.prepare(c,u))),Ii._defineProperty(this,"burn",hi.buildTransactionFunction(async c=>this.erc721.burn.prepare(c))),this.abi=i,this.metadata=new hi.ContractMetadata(this.contractWrapper,hi.DropErc721ContractSchema,this.storage),this.app=new hi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new hi.ContractRoles(this.contractWrapper,Ax.contractRoles),this.royalties=new hi.ContractRoyalty(this.contractWrapper,this.metadata),this.sales=new hi.ContractPrimarySale(this.contractWrapper),this.encoder=new hi.ContractEncoder(this.contractWrapper),this.estimator=new hi.GasCostEstimator(this.contractWrapper),this.events=new hi.ContractEvents(this.contractWrapper),this.platformFees=new hi.ContractPlatformFee(this.contractWrapper),this.interceptor=new hi.ContractInterceptor(this.contractWrapper),this.erc721=new hi.Erc721(this.contractWrapper,this.storage,s),this.claimConditions=new hi.DropClaimConditions(this.contractWrapper,this.metadata,this.storage),this.signature=new hi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.revealer=new hi.DelayedReveal(this.contractWrapper,this.storage,hi.FEATURE_NFT_REVEALABLE.name,()=>this.erc721.nextTokenIdToMint()),this.signature=new hi.Erc721WithQuantitySignatureMintable(this.contractWrapper,this.storage),this.owner=new hi.ContractOwner(this.contractWrapper),this.checkout=new SMr.PaperCheckout(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async totalSupply(){let e=await this.totalClaimedSupply(),t=await this.totalUnclaimedSupply();return e.add(t)}async getAllClaimed(e){let t=r2.BigNumber.from(e?.start||0).toNumber(),n=r2.BigNumber.from(e?.count||Ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalClaimedSupply()).toNumber(),t+n);return await Promise.all(Array.from(Array(a).keys()).map(i=>this.get(i.toString())))}async getAllUnclaimed(e){let t=r2.BigNumber.from(e?.start||0).toNumber(),n=r2.BigNumber.from(e?.count||Ii.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=r2.BigNumber.from(Math.max((await this.totalClaimedSupply()).toNumber(),t)),i=r2.BigNumber.from(Math.min((await this.contractWrapper.readContract.nextTokenIdToMint()).toNumber(),a.toNumber()+n));return await Promise.all(Array.from(Array(i.sub(a).toNumber()).keys()).map(s=>this.erc721.getTokenMetadata(a.add(s).toString())))}async totalClaimedSupply(){return this.erc721.totalClaimedSupply()}async totalUnclaimedSupply(){return this.erc721.totalUnclaimedSupply()}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(hi.getRoleHash("transfer"),r2.constants.AddressZero)}async getClaimTransaction(e,t,n){return this.erc721.getClaimTransaction(e,t,n)}async prepare(e,t,n){return hi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var bu=Ei(),Da=ds(),PMr=An(),Tre=je();Ir();kr();xn();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function RMr(r){return r&&r.__esModule?r:{default:r}}var MMr=RMr(PMr),Sx=class{get chainId(){return this._chainId}constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Da.ContractWrapper(e,t,i,a);bu._defineProperty(this,"contractWrapper",void 0),bu._defineProperty(this,"storage",void 0),bu._defineProperty(this,"abi",void 0),bu._defineProperty(this,"metadata",void 0),bu._defineProperty(this,"app",void 0),bu._defineProperty(this,"encoder",void 0),bu._defineProperty(this,"estimator",void 0),bu._defineProperty(this,"events",void 0),bu._defineProperty(this,"roles",void 0),bu._defineProperty(this,"interceptor",void 0),bu._defineProperty(this,"_chainId",void 0),bu._defineProperty(this,"withdraw",Da.buildTransactionFunction(async c=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address)",args:[await Da.resolveAddress(c)]}))),bu._defineProperty(this,"withdrawToken",Da.buildTransactionFunction(async(c,u)=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"release(address,address)",args:[await Da.resolveAddress(u),await Da.resolveAddress(c)]}))),bu._defineProperty(this,"distribute",Da.buildTransactionFunction(async()=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute()",args:[]}))),bu._defineProperty(this,"distributeToken",Da.buildTransactionFunction(async c=>Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"distribute(address)",args:[await Da.resolveAddress(c)]}))),this._chainId=s,this.abi=i,this.contractWrapper=o,this.storage=n,this.metadata=new Da.ContractMetadata(this.contractWrapper,Da.SplitsContractSchema,this.storage),this.app=new Da.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Da.ContractRoles(this.contractWrapper,Sx.contractRoles),this.encoder=new Da.ContractEncoder(this.contractWrapper),this.estimator=new Da.GasCostEstimator(this.contractWrapper),this.events=new Da.ContractEvents(this.contractWrapper),this.interceptor=new Da.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async getAllRecipients(){let e=[],t=Tre.BigNumber.from(0),n=await this.contractWrapper.readContract.payeeCount();for(;t.lt(n);)try{let a=await this.contractWrapper.readContract.payee(t);e.push(await this.getRecipientSplitPercentage(a)),t=t.add(1)}catch(a){if("method"in a&&a.method.toLowerCase().includes("payee(uint256)"))break;throw a}return e}async balanceOfAllRecipients(){let e=await this.getAllRecipients(),t={};for(let n of e)t[n.address]=await this.balanceOf(n.address);return t}async balanceOfTokenAllRecipients(e){let t=await Da.resolveAddress(e),n=await this.getAllRecipients(),a={};for(let i of n)a[i.address]=await this.balanceOfToken(i.address,t);return a}async balanceOf(e){let t=await Da.resolveAddress(e),n=await this.contractWrapper.readContract.provider.getBalance(this.getAddress()),a=await this.contractWrapper.readContract["totalReleased()"](),i=n.add(a);return this._pendingPayment(t,i,await this.contractWrapper.readContract["released(address)"](t))}async balanceOfToken(e,t){let n=await Da.resolveAddress(t),a=await Da.resolveAddress(e),s=await new Tre.Contract(n,MMr.default,this.contractWrapper.getProvider()).balanceOf(this.getAddress()),o=await this.contractWrapper.readContract["totalReleased(address)"](n),c=s.add(o),u=await this._pendingPayment(a,c,await this.contractWrapper.readContract["released(address,address)"](n,a));return await Da.fetchCurrencyValue(this.contractWrapper.getProvider(),n,u)}async getRecipientSplitPercentage(e){let t=await Da.resolveAddress(e),[n,a]=await Promise.all([this.contractWrapper.readContract.totalShares(),this.contractWrapper.readContract.shares(e)]);return{address:t,splitPercentage:a.mul(Tre.BigNumber.from(1e7)).div(n).toNumber()/1e5}}async _pendingPayment(e,t,n){return t.mul(await this.contractWrapper.readContract.shares(await Da.resolveAddress(e))).div(await this.contractWrapper.readContract.totalShares()).sub(n)}async prepare(e,t,n){return Da.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var Px=Ei(),Ere=ds(),Cre=class{get chainId(){return this._chainId}constructor(e,t,n){Px._defineProperty(this,"contractWrapper",void 0),Px._defineProperty(this,"storage",void 0),Px._defineProperty(this,"erc20",void 0),Px._defineProperty(this,"_chainId",void 0),Px._defineProperty(this,"transfer",Ere.buildTransactionFunction(async(a,i)=>this.erc20.transfer.prepare(a,i))),Px._defineProperty(this,"transferFrom",Ere.buildTransactionFunction(async(a,i,s)=>this.erc20.transferFrom.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.erc20=new Ere.Erc20(this.contractWrapper,this.storage,n),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return this.erc20.get()}async balance(){return await this.erc20.balance()}async balanceOf(e){return this.erc20.balanceOf(e)}async totalSupply(){return await this.erc20.totalSupply()}async allowance(e){return await this.erc20.allowance(e)}async allowanceOf(e,t){return await this.erc20.allowanceOf(e,t)}async setAllowance(e,t){return this.erc20.setAllowance(e,t)}async transferBatch(e){return this.erc20.transferBatch(e)}};Klt.StandardErc20=Cre});var Vlt=x(Glt=>{"use strict";d();p();var Tc=Ei(),$i=ds(),NMr=hL(),BMr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Rx=class extends NMr.StandardErc20{constructor(e,t,n){var a;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new $i.ContractWrapper(e,t,s,i);super(c,n,o),a=this,Tc._defineProperty(this,"abi",void 0),Tc._defineProperty(this,"metadata",void 0),Tc._defineProperty(this,"app",void 0),Tc._defineProperty(this,"roles",void 0),Tc._defineProperty(this,"encoder",void 0),Tc._defineProperty(this,"estimator",void 0),Tc._defineProperty(this,"sales",void 0),Tc._defineProperty(this,"platformFees",void 0),Tc._defineProperty(this,"events",void 0),Tc._defineProperty(this,"claimConditions",void 0),Tc._defineProperty(this,"interceptor",void 0),Tc._defineProperty(this,"claim",$i.buildTransactionFunction(async function(u){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return a.claimTo.prepare(await a.contractWrapper.getSignerAddress(),u,l)})),Tc._defineProperty(this,"claimTo",$i.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return a.erc20.claimTo.prepare(u,l,{checkERC20Allowance:h})})),Tc._defineProperty(this,"delegateTo",$i.buildTransactionFunction(async u=>$i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await $i.resolveAddress(u)]}))),Tc._defineProperty(this,"burnTokens",$i.buildTransactionFunction(async u=>this.erc20.burn.prepare(u))),Tc._defineProperty(this,"burnFrom",$i.buildTransactionFunction(async(u,l)=>this.erc20.burnFrom.prepare(u,l))),this.abi=s,this.metadata=new $i.ContractMetadata(this.contractWrapper,$i.DropErc20ContractSchema,this.storage),this.app=new $i.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new $i.ContractRoles(this.contractWrapper,Rx.contractRoles),this.encoder=new $i.ContractEncoder(this.contractWrapper),this.estimator=new $i.GasCostEstimator(this.contractWrapper),this.events=new $i.ContractEvents(this.contractWrapper),this.sales=new $i.ContractPrimarySale(this.contractWrapper),this.platformFees=new $i.ContractPlatformFee(this.contractWrapper),this.interceptor=new $i.ContractInterceptor(this.contractWrapper),this.claimConditions=new $i.DropClaimConditions(this.contractWrapper,this.metadata,this.storage)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(await $i.resolveAddress(e)))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await $i.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole($i.getRoleHash("transfer"),BMr.constants.AddressZero)}async prepare(e,t,n){return $i.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var $lt=Ei(),DMr=ds(),fL=je(),Ire=class{constructor(e,t){$lt._defineProperty(this,"events",void 0),$lt._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e,this.events=t}async getAllHolderBalances(){let t=(await this.events.getEvents("Transfer")).map(a=>a.data),n={};return t.forEach(a=>{let i=a?.from,s=a?.to,o=a?.value;i!==fL.constants.AddressZero&&(i in n||(n[i]=fL.BigNumber.from(0)),n[i]=n[i].sub(o)),s!==fL.constants.AddressZero&&(s in n||(n[s]=fL.BigNumber.from(0)),n[s]=n[s].add(o))}),Promise.all(Object.keys(n).map(async a=>({holder:a,balance:await DMr.fetchCurrencyValue(this.contractWrapper.getProvider(),this.contractWrapper.readContract.address,n[a])})))}};Ylt.TokenERC20History=Ire});var Qlt=x(Jlt=>{"use strict";d();p();var go=Ei(),Yi=ds(),OMr=kre(),LMr=hL(),qMr=je();Ir();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();var Mx=class extends LMr.StandardErc20{constructor(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Yi.ContractWrapper(e,t,i,a);super(o,n,s),go._defineProperty(this,"abi",void 0),go._defineProperty(this,"metadata",void 0),go._defineProperty(this,"app",void 0),go._defineProperty(this,"roles",void 0),go._defineProperty(this,"encoder",void 0),go._defineProperty(this,"estimator",void 0),go._defineProperty(this,"history",void 0),go._defineProperty(this,"events",void 0),go._defineProperty(this,"platformFees",void 0),go._defineProperty(this,"sales",void 0),go._defineProperty(this,"signature",void 0),go._defineProperty(this,"interceptor",void 0),go._defineProperty(this,"mint",Yi.buildTransactionFunction(async c=>this.erc20.mint.prepare(c))),go._defineProperty(this,"mintTo",Yi.buildTransactionFunction(async(c,u)=>this.erc20.mintTo.prepare(c,u))),go._defineProperty(this,"mintBatchTo",Yi.buildTransactionFunction(async c=>this.erc20.mintBatchTo.prepare(c))),go._defineProperty(this,"delegateTo",Yi.buildTransactionFunction(async c=>Yi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"delegate",args:[await Yi.resolveAddress(c)]}))),go._defineProperty(this,"burn",Yi.buildTransactionFunction(c=>this.erc20.burn.prepare(c))),go._defineProperty(this,"burnFrom",Yi.buildTransactionFunction(async(c,u)=>this.erc20.burnFrom.prepare(c,u))),this.abi=i,this.metadata=new Yi.ContractMetadata(this.contractWrapper,Yi.TokenErc20ContractSchema,this.storage),this.app=new Yi.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.roles=new Yi.ContractRoles(this.contractWrapper,Mx.contractRoles),this.sales=new Yi.ContractPrimarySale(this.contractWrapper),this.events=new Yi.ContractEvents(this.contractWrapper),this.history=new OMr.TokenERC20History(this.contractWrapper,this.events),this.encoder=new Yi.ContractEncoder(this.contractWrapper),this.estimator=new Yi.GasCostEstimator(this.contractWrapper),this.platformFees=new Yi.ContractPlatformFee(this.contractWrapper),this.interceptor=new Yi.ContractInterceptor(this.contractWrapper),this.signature=new Yi.Erc20SignatureMintable(this.contractWrapper,this.roles)}async getVoteBalance(){return await this.getVoteBalanceOf(await this.contractWrapper.getSignerAddress())}async getVoteBalanceOf(e){return await this.erc20.getValue(await this.contractWrapper.readContract.getVotes(e))}async getDelegation(){return await this.getDelegationOf(await this.contractWrapper.getSignerAddress())}async getDelegationOf(e){return await this.contractWrapper.readContract.delegates(await Yi.resolveAddress(e))}async isTransferRestricted(){return!await this.contractWrapper.readContract.hasRole(Yi.getRoleHash("transfer"),qMr.constants.AddressZero)}async getMintTransaction(e,t){return this.erc20.getMintTransaction(e,t)}async prepare(e,t,n){return Yi.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var FMr=function(r){return r[r.Against=0]="Against",r[r.For=1]="For",r[r.Abstain=2]="Abstain",r}({});Zlt.VoteType=FMr});var edt=x(Xlt=>{"use strict";d();p();var dd=Ei(),bo=ds(),WMr=An(),Q8=je(),Sre=Are();Ir();kr();xn();Tn();En();Cn();In();kn();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();function UMr(r){return r&&r.__esModule?r:{default:r}}var HMr=UMr(WMr),Pre=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new bo.ContractWrapper(e,t,s,i);dd._defineProperty(this,"contractWrapper",void 0),dd._defineProperty(this,"storage",void 0),dd._defineProperty(this,"abi",void 0),dd._defineProperty(this,"metadata",void 0),dd._defineProperty(this,"app",void 0),dd._defineProperty(this,"encoder",void 0),dd._defineProperty(this,"estimator",void 0),dd._defineProperty(this,"events",void 0),dd._defineProperty(this,"interceptor",void 0),dd._defineProperty(this,"_chainId",void 0),dd._defineProperty(this,"propose",bo.buildTransactionFunction(async(u,l)=>{l||(l=[{toAddress:this.contractWrapper.readContract.address,nativeTokenValue:0,transactionData:"0x"}]);let h=l.map(y=>y.toAddress),f=l.map(y=>y.nativeTokenValue),m=l.map(y=>y.transactionData);return bo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"propose",args:[h,f,m,u],parse:y=>({id:this.contractWrapper.parseLogs("ProposalCreated",y?.logs)[0].args.proposalId,receipt:y})})})),dd._defineProperty(this,"vote",bo.buildTransactionFunction(async function(u,l){let h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"";return await a.ensureExists(u),bo.Transaction.fromContractWrapper({contractWrapper:a.contractWrapper,method:"castVoteWithReason",args:[u,l,h]})})),dd._defineProperty(this,"execute",bo.buildTransactionFunction(async u=>{await this.ensureExists(u);let l=await this.get(u),h=l.executions.map(E=>E.toAddress),f=l.executions.map(E=>E.nativeTokenValue),m=l.executions.map(E=>E.transactionData),y=Q8.ethers.utils.id(l.description);return bo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:"execute",args:[h,f,m,y]})})),this._chainId=o,this.abi=s,this.contractWrapper=c,this.storage=n,this.metadata=new bo.ContractMetadata(this.contractWrapper,bo.VoteContractSchema,this.storage),this.app=new bo.ContractAppURI(this.contractWrapper,this.metadata,this.storage),this.encoder=new bo.ContractEncoder(this.contractWrapper),this.estimator=new bo.GasCostEstimator(this.contractWrapper),this.events=new bo.ContractEvents(this.contractWrapper),this.interceptor=new bo.ContractInterceptor(this.contractWrapper)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let n=(await this.getAll()).filter(a=>a.proposalId.eq(Q8.BigNumber.from(e)));if(n.length===0)throw new Error("proposal not found");return n[0]}async getAll(){return Promise.all((await this.contractWrapper.readContract.getAllProposals()).map(async e=>({proposalId:e.proposalId,proposer:e.proposer,description:e.description,startBlock:e.startBlock,endBlock:e.endBlock,state:await this.contractWrapper.readContract.state(e.proposalId),votes:await this.getProposalVotes(e.proposalId),executions:e[3].map((t,n)=>({toAddress:e.targets[n],nativeTokenValue:t,transactionData:e.calldatas[n]}))})))}async getProposalVotes(e){let t=await this.contractWrapper.readContract.proposalVotes(e);return[{type:Sre.VoteType.Against,label:"Against",count:t.againstVotes},{type:Sre.VoteType.For,label:"For",count:t.forVotes},{type:Sre.VoteType.Abstain,label:"Abstain",count:t.abstainVotes}]}async hasVoted(e,t){return t||(t=await this.contractWrapper.getSignerAddress()),this.contractWrapper.readContract.hasVoted(e,await bo.resolveAddress(t))}async canExecute(e){await this.ensureExists(e);let t=await this.get(e),n=t.executions.map(o=>o.toAddress),a=t.executions.map(o=>o.nativeTokenValue),i=t.executions.map(o=>o.transactionData),s=Q8.ethers.utils.id(t.description);try{return await this.contractWrapper.callStatic().execute(n,a,i,s),!0}catch{return!1}}async balance(){let e=await this.contractWrapper.readContract.provider.getBalance(this.contractWrapper.readContract.address);return{name:"",symbol:"",decimals:18,value:e,displayValue:Q8.ethers.utils.formatUnits(e,18)}}async balanceOfToken(e){let t=new Q8.Contract(await bo.resolveAddress(e),HMr.default,this.contractWrapper.getProvider());return await bo.fetchCurrencyValue(this.contractWrapper.getProvider(),e,await t.balanceOf(this.contractWrapper.readContract.address))}async ensureExists(e){try{await this.contractWrapper.readContract.state(e)}catch{throw Error(`Proposal ${e} not found`)}}async settings(){let[e,t,n,a,i]=await Promise.all([this.contractWrapper.readContract.votingDelay(),this.contractWrapper.readContract.votingPeriod(),this.contractWrapper.readContract.token(),this.contractWrapper.readContract["quorumNumerator()"](),this.contractWrapper.readContract.proposalThreshold()]),s=await bo.fetchCurrencyMetadata(this.contractWrapper.getProvider(),n);return{votingDelay:e.toString(),votingPeriod:t.toString(),votingTokenAddress:n,votingTokenMetadata:s,votingQuorumFraction:a.toString(),proposalTokenThreshold:i.toString()}}async prepare(e,t,n){return bo.Transaction.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{"use strict";d();p();var jMr=xn(),Z=je(),zMr=Tn(),KMr=En(),GMr=Cn(),VMr=In(),$Mr=kn(),YMr=An(),JMr=Sn(),QMr=Pn(),ZMr=Rn(),XMr=Mn(),eNr=Nn(),tNr=Bn(),rNr=Dn(),nNr=On(),aNr=ln(),iNr=Ln(),sNr=qn(),oNr=Fn(),cNr=Wn(),uNr=Un(),lNr=Hn(),dNr=jn(),pNr=zn(),hNr=Kn(),fNr=Gn(),mNr=Vn(),yNr=$n(),gNr=Yn(),bNr=dn(),vNr=Jn(),wNr=Qn(),_Nr=Zn(),xNr=Xn(),TNr=ea(),ENr=ta(),CNr=ra(),INr=na(),kNr=aa(),ANr=ia(),SNr=sa(),PNr=oa(),RNr=ca(),MNr=ua(),NNr=la(),BNr=da(),Y=Ei(),pe=kr(),II=vt(),DNr=pa(),ONr=tn(),Ndt=Qe(),LNr=ha(),l2=gn(),qNr=Gr(),FNr=Xr(),WNr=fa(),Rre=ma(),UNr=ya(),HNr=Fr(),jNr=hn(),zNr=ga(),KNr=ba(),GNr=va(),VNr=wa(),$Nr=_a(),YNr=xa(),tdt=Ta(),JNr=Ea(),QNr=Ca();function rt(r){return r&&r.__esModule?r:{default:r}}function Qo(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Ane=rt(jMr),ZNr=rt(zMr),Bdt=rt(KMr),XNr=rt(GMr),Ddt=rt(VMr),Odt=rt($Mr),vu=rt(YMr),eBr=rt(JMr),Ldt=rt(QMr),Sne=rt(ZMr),tBr=rt(XMr),rBr=rt(eNr),nBr=rt(tNr),qdt=rt(rNr),aBr=rt(nNr),Cc=rt(aNr),iBr=rt(iNr),sBr=rt(sNr),kp=rt(oNr),Fdt=rt(cNr),oBr=rt(uNr),cBr=rt(lNr),uBr=rt(dNr),lBr=rt(pNr),dBr=rt(hNr),pBr=rt(fNr),Wdt=rt(mNr),hBr=rt(yNr),fBr=rt(gNr),$u=rt(bNr),mBr=rt(vNr),Udt=rt(wNr),yBr=rt(_Nr),gBr=rt(xNr),bBr=rt(TNr),vBr=rt(ENr),wBr=rt(CNr),_Br=rt(INr),xBr=rt(kNr),TBr=rt(ANr),EBr=rt(SNr),CBr=rt(PNr),IBr=rt(RNr),kBr=rt(MNr),ABr=rt(NNr),SBr=rt(BNr),PBr=rt(DNr),nI=rt(ONr),qre=rt(Ndt),Hdt=rt(LNr),Tt=rt(qNr),RBr=rt(WNr),jdt=rt(UNr),Wq=rt(jNr),MBr=rt(zNr),NBr=rt(KNr),BBr=rt(GNr),DBr=rt(VNr),OBr=rt($Nr),LBr=rt(YNr),qBr=rt(JNr),FBr=rt(QNr);function WBr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fre(r,e,t){WBr(r,e),e.set(r,t)}function UBr(r,e){return e.get?e.get.call(r):e.value}function zdt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function vL(r,e){var t=zdt(r,e,"get");return UBr(r,t)}function HBr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function Wre(r,e,t){var n=zdt(r,e,"set");return HBr(r,n,t),t}var Be=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Localhost=1337]="Localhost",r[r.Hardhat=31337]="Hardhat",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({}),Kdt=[Be.Mainnet,Be.Goerli,Be.Polygon,Be.Mumbai,Be.Fantom,Be.FantomTestnet,Be.Avalanche,Be.AvalancheFujiTestnet,Be.Optimism,Be.OptimismGoerli,Be.Arbitrum,Be.ArbitrumGoerli,Be.BinanceSmartChainMainnet,Be.BinanceSmartChainTestnet,Be.Hardhat,Be.Localhost],Ure=II.defaultChains;function Gdt(r){r&&r.length>0?Ure=r:Ure=II.defaultChains}function Vdt(){return Ure}var $dt="0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",W1="0xc82BbE41f2cF04e3a8efA18F7032BDD7f6d98a81",q1="0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",n2="0x5DBC7B840baa9daBcBe9D2492E45D7244B54A2A0",jBr="0x664244560eBa21Bf82d7150C791bE1AbcD5B4cd7",zBr="0xcdAD8FA86e18538aC207872E8ff3536501431B73",U1={[Be.Mainnet]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0x76ce2CB1Ae48Fa067f4fb8c5f803111AE0B24BEA",biconomyForwarder:"0x84a0856b038eaAd1cC7E297cF34A7e72685A8693",twFactory:n2,twRegistry:q1,twBYOCRegistry:Z.constants.AddressZero},[Be.Goerli]:{openzeppelinForwarder:"0x5001A14CA6163143316a7C614e30e6041033Ac20",openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0xE041608922d06a4F26C0d4c27d8bCD01daf1f792",twFactory:n2,twRegistry:q1,twBYOCRegistry:"0xB1Bd9d7942A250BA2Dce27DD601F2ED4211A60C4"},[Be.Polygon]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twFactory:n2,twRegistry:q1,twBYOCRegistry:"0x308473Be900F4185A56587dE54bDFF5E8f7a6AE7"},[Be.Mumbai]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x9399BB24DBB5C4b782C70c2969F58716Ebbd6a3b",twFactory:n2,twRegistry:q1,twBYOCRegistry:"0x3F17972CB27506eb4a6a3D59659e0B57a43fd16C"},[Be.Avalanche]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:n2,twRegistry:q1,twBYOCRegistry:Z.constants.AddressZero},[Be.AvalancheFujiTestnet]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0xe73c50cB9c5B378627ff625BB6e6725A4A5D65d2",biconomyForwarder:"0x6271Ca63D30507f2Dcbf99B52787032506D75BBF",twFactory:n2,twRegistry:q1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Fantom]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0xb1A2883fc4d287d9cB8Dbb96cFF60C76BEf2D250",biconomyForwarder:"0x64CD353384109423a966dCd3Aa30D884C9b2E057",twFactory:"0x97EA0Fcc552D5A8Fb5e9101316AAd0D62Ea0876B",twRegistry:q1,twBYOCRegistry:Z.constants.AddressZero},[Be.FantomTestnet]:{openzeppelinForwarder:W1,openzeppelinForwarderEOA:"0x42D3048b595B6e1c28a588d70366CcC2AA4dB47b",biconomyForwarder:"0x69FB8Dca8067A5D38703b9e8b39cf2D51473E4b4",twFactory:n2,twRegistry:q1,twBYOCRegistry:"0x3E6eE864f850F5e5A98bc950B68E181Cf4010F23"},[Be.Arbitrum]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x4f247c69184ad61036EC2Bb3213b69F10FbEDe1F",biconomyForwarder:"0xfe0fa3C06d03bDC7fb49c892BbB39113B534fB57",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.ArbitrumGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.Optimism]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0xefba8a2a82ec1fb1273806174f5e28fbb917cf95",twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.OptimismGoerli]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x119704314Ef304EaAAE4b3c7C9ABd59272A28310",biconomyForwarder:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd",twBYOCRegistry:Z.constants.AddressZero},[Be.BinanceSmartChainMainnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0xE8dd2Ff0212F86d3197b4AfDC6dAC6ac47eb10aC",biconomyForwarder:"0x86C80a8aa58e0A4fa09A69624c31Ab2a6CAD56b8",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.BinanceSmartChainTestnet]:{openzeppelinForwarder:"0x8cbc8B5d71702032904750A66AEfE8B603eBC538",openzeppelinForwarderEOA:"0x7e80648EB2071E26937F9D42A513ccf4815fc702",biconomyForwarder:"0x61456BF1715C1415730076BB79ae118E806E74d2",twBYOCRegistry:Z.constants.AddressZero,twFactory:"0xd24b3de085CFd8c54b94feAD08a7962D343E6DE0",twRegistry:"0x7c487845f98938Bb955B1D5AD069d9a30e4131fd"},[Be.Hardhat]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero},[Be.Localhost]:{openzeppelinForwarder:Z.constants.AddressZero,openzeppelinForwarderEOA:Z.constants.AddressZero,biconomyForwarder:Z.constants.AddressZero,twFactory:Z.constants.AddressZero,twRegistry:Z.constants.AddressZero,twBYOCRegistry:Z.constants.AddressZero}},Hre={[Be.Mainnet]:{"nft-drop":"0x60fF9952e0084A6DEac44203838cDC91ABeC8736","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","signature-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A"},[Be.Polygon]:{"nft-drop":"0xB96508050Ba0925256184103560EBADA912Fcc69","edition-drop":"0x74af262d0671F378F97a1EDC3d0970Dbe8A1C550","token-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","signature-drop":"0xBE2fDc35410E268e41Bec62DBb01AEb43245c7d5"},[Be.Fantom]:{"nft-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","edition-drop":"0x06395FCF9AC6ED827f9dD6e776809cEF1Be0d21B","token-drop":"0x0148b28a38efaaC31b6aa0a6D9FEb70FE7C91FFa","signature-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10"},[Be.Avalanche]:{"nft-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","edition-drop":"0x135fC9D26E5eC51260ece1DF4ED424E2f55c7766","token-drop":"0xca0B071899E575BA86495D46c5066971b6f3A901","signature-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3"},[Be.Optimism]:{"nft-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","edition-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","token-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","signature-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD"},[Be.Arbitrum]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.BinanceSmartChainMainnet]:{"nft-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","edition-drop":"0x2A396b2D90BAcEF19cDa973586B2633d22710fC2","token-drop":"0xe135Ef65C2B2213C3fD56d0Bd6500A2cA147aC10","signature-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1"},[Be.Goerli]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf","token-drop":"0x5680933221B752EB443654a014f88B101F868d50","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.Mumbai]:{"nft-drop":"0xC4903c1Ff5367b9ac2c349B63DC2409421AaEE2a","edition-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","token-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9","signature-drop":"0x2dF9851af45dd41C8584ac55D983C604da985Bc7"},[Be.FantomTestnet]:{"nft-drop":"0x8a4cd3549e548bbEEb38C16E041FFf040a5acabD","edition-drop":"0x902Dd246e66d8C3CE652375a723F2a52b43b9AAE","token-drop":"0xFBd7D24d80ee005671E731a7287DEB6073264dD1","signature-drop":"0x5A8eA4Adad8289746D073947BA06D69A62499aaf"},[Be.AvalancheFujiTestnet]:{"nft-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","edition-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728","token-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","signature-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F"},[Be.OptimismGoerli]:{"nft-drop":"0xCcddcec1831646Beff2753249f1B9C580327E89F","edition-drop":"0x6fD690EB509BdE4C50028C5D9C0dE3750C2Fad6A","token-drop":"0xD11c97DD5F5546B5bBd630D7D1d7327481B0b92C","signature-drop":"0x1b5947e1a2d5a29D0df20931DeAB0B87818209B9"},[Be.ArbitrumGoerli]:{"nft-drop":"0x9CfE807a5b124b962064Fa8F7FD823Cc701255b6","edition-drop":"0x9cF91118C8ee2913F0588e0F10e36B3d63F68bF6","token-drop":"0x1d47526C3292B0130ef0afD5F02c1DA052A017B3","signature-drop":"0xE1eE43D23f247b6A9aF81fcE2766E76709482728"},[Be.BinanceSmartChainTestnet]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Hardhat]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""},[Be.Localhost]:{"nft-drop":"","edition-drop":"","token-drop":"","signature-drop":""}};function Ydt(r,e){if(r in Hre){let t=Hre[r];if(e in t)return t[e]}return null}function aI(r,e){return r===Be.Hardhat||r===Be.Localhost?e==="twFactory"?g.env.factoryAddress:e==="twRegistry"?g.env.registryAddress:Z.constants.AddressZero:U1[r]?.[e]}function Jdt(){return g.env.contractPublisherAddress?g.env.contractPublisherAddress:jBr}function jre(){return g.env.multiChainRegistryAddress?g.env.multiChainRegistryAddress:zBr}function Pne(r){let e=Kdt.find(a=>a===r),t=e?U1[e].biconomyForwarder:Z.constants.AddressZero,n=e?U1[e].openzeppelinForwarder:Z.constants.AddressZero;return t!==Z.constants.AddressZero?[n,t]:[n]}var kI=Z.utils.arrayify("0x80ac58cd"),AI=Z.utils.arrayify("0xd9b67a26"),Gu="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",iI={[Be.Mainnet]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",name:"Wrapped Ether",symbol:"WETH"}},[Be.Goerli]:{name:"G\xF6rli Ether",symbol:"GOR",decimals:18,wrapped:{address:"0xb4fbf271143f4fbf7b91a5ded31805e42b2208d6",name:"Wrapped Ether",symbol:"WETH"}},[Be.Polygon]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Mumbai]:{name:"Matic",symbol:"MATIC",decimals:18,wrapped:{address:"0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889",name:"Wrapped Matic",symbol:"WMATIC"}},[Be.Avalanche]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.AvalancheFujiTestnet]:{name:"Avalanche",symbol:"AVAX",decimals:18,wrapped:{address:"0xd00ae08403B9bbb9124bB305C09058E32C39A48c",name:"Wrapped AVAX",symbol:"WAVAX"}},[Be.Fantom]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.FantomTestnet]:{name:"Fantom",symbol:"FTM",decimals:18,wrapped:{address:"0xf1277d1Ed8AD466beddF92ef448A132661956621",name:"Wrapped Fantom",symbol:"WFTM"}},[Be.Arbitrum]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x82af49447d8a07e3bd95bd0d56f35241523fbab1",name:"Wrapped Ether",symbol:"WETH"}},[Be.ArbitrumGoerli]:{name:"Arbitrum Goerli Ether",symbol:"AGOR",decimals:18,wrapped:{address:"0xe39Ab88f8A4777030A534146A9Ca3B52bd5D43A3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Optimism]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.OptimismGoerli]:{name:"Goerli Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x4200000000000000000000000000000000000006",name:"Wrapped Ether",symbol:"WETH"}},[Be.BinanceSmartChainMainnet]:{name:"Binance Chain Native Token",symbol:"BNB",decimals:18,wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",name:"Wrapped Binance Chain Token",symbol:"WBNB"}},[Be.BinanceSmartChainTestnet]:{name:"Binance Chain Native Token",symbol:"TBNB",decimals:18,wrapped:{address:"0xae13d989daC2f0dEbFf460aC112a837C89BAa7cd",name:"Wrapped Binance Chain Testnet Token",symbol:"WBNB"}},[Be.Hardhat]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}},[Be.Localhost]:{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:"0x5FbDB2315678afecb367f032d93F642f64180aa3",name:"Wrapped Ether",symbol:"WETH"}}};function wL(r){let e=Vdt().find(t=>t.chainId===r);return e&&e.nativeCurrency?{name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol,decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:`Wrapped ${e.nativeCurrency.name}`,symbol:`W${e.nativeCurrency.symbol}`}}:iI[r]||{name:"Ether",symbol:"ETH",decimals:18,wrapped:{address:Z.ethers.constants.AddressZero,name:"Wrapped Ether",symbol:"WETH"}}}var KBr={[Be.Mainnet]:"0x514910771AF9Ca656af840dff83E8264EcF986CA",[Be.Goerli]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.BinanceSmartChainMainnet]:"0x404460C6A5EdE2D891e8297795264fDe62ADBB75",[Be.Polygon]:"0xb0897686c545045aFc77CF20eC7A532E3120E0F1",[Be.Mumbai]:"0x326C977E6efc84E512bB9C30f76E30c160eD06FB",[Be.Avalanche]:"0x5947BB275c521040051D82396192181b413227A3",[Be.AvalancheFujiTestnet]:"0x0b9d5D9136855f6FEc3c0993feE6E9CE8a297846",[Be.Fantom]:"0x6F43FF82CCA38001B6699a8AC47A2d0E66939407",[Be.FantomTestnet]:"0xfaFedb041c0DD4fA2Dc0d87a6B0979Ee6FA7af5F"},kl=function(r){return r.Transaction="transaction",r.Signature="signature",r}({});function Uq(r){return!!(r&&r._isSigner)}function Rne(r){return!!(r&&r._isProvider)}function fi(r,e){let t,n;if(Uq(r)?(t=r,r.provider&&(n=r.provider)):Rne(r)?n=r:n=sI(r,e),e?.readonlySettings&&(n=xL(e.readonlySettings.rpcUrl,e.readonlySettings.chainId)),!n)throw t?new Error("No provider passed to the SDK! Please make sure that your signer is connected to a provider!"):new Error("No provider found! Make sure to specify which network to connect to, or pass a signer or provider to the SDK!");return[t,n]}var Qdt=50,Zdt=250,GBr={timeLimitMs:Qdt,sizeLimit:Zdt},zre=class extends Z.providers.StaticJsonRpcProvider{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:GBr;super(e,t),Y._defineProperty(this,"_timeLimitMs",void 0),Y._defineProperty(this,"_sizeLimit",void 0),Y._defineProperty(this,"_pendingBatchAggregator",void 0),Y._defineProperty(this,"_pendingBatch",void 0),this._timeLimitMs=n.timeLimitMs||Zdt,this._sizeLimit=n.sizeLimit||Qdt,this._pendingBatchAggregator=null,this._pendingBatch=null}sendCurrentBatch(e){this._pendingBatchAggregator&&clearTimeout(this._pendingBatchAggregator);let t=this._pendingBatch||[];this._pendingBatch=null,this._pendingBatchAggregator=null;let n=t.map(a=>a.request);return this.emit("debug",{action:"requestBatch",request:Z.utils.deepCopy(e),provider:this}),Z.utils.fetchJson(this.connection,JSON.stringify(n)).then(a=>{this.emit("debug",{action:"response",request:n,response:a,provider:this}),t.forEach((i,s)=>{let o=a[s];if(o)if(o.error){let c=new Error(o.error.message);c.code=o.error.code,c.data=o.error.data,i.reject(c)}else i.resolve(o.result);else i.reject(new Error("No response for request"))})},a=>{this.emit("debug",{action:"response",error:a,request:n,provider:this}),t.forEach(i=>{i.reject(a)})})}send(e,t){let n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this._pendingBatch===null&&(this._pendingBatch=[]);let a={request:n,resolve:null,reject:null},i=new Promise((s,o)=>{a.resolve=s,a.reject=o});return this._pendingBatch.length===this._sizeLimit&&this.sendCurrentBatch(n),this._pendingBatch.push(a),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(()=>{this.sendCurrentBatch(n)},this._timeLimitMs)),i}},Mre,Nre=new Map;async function Xdt(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mre||(Mre=fi("ethereum")[1]);let t;Nre.has(r)?t=Nre.get(r):t=Mre.resolveName(r).then(a=>a?{address:a,expirationTime:new Date(Date.now()+1e3*60*5)}:{address:null,expirationTime:new Date(Date.now()+1e3*30)});let n=await t;return n.expirationTimetypeof r=="string"&&(r.endsWith(".eth")||r.endsWith(".cb.id"))).transform(async r=>Xdt(r)).refine(r=>!!r&&Z.utils.isAddress(r),{message:"Provided value was not a valid ENS name"}),Ms=pe.z.union([pe.z.string(),pe.z.number(),pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r)),Js=Ms.transform(r=>r.toString()),ept=pe.z.union([pe.z.bigint(),pe.z.custom(r=>Z.BigNumber.isBigNumber(r))]).transform(r=>Z.BigNumber.from(r).toString()),Mne=pe.z.custom(r=>typeof r=="string"&&Z.utils.isAddress(r),r=>({message:`${r} is not a valid address`})),ki=pe.z.union([Mne,VBr],{invalid_type_error:"Provided value was not a valid address or ENS name"}),SI=pe.z.date().transform(r=>Z.BigNumber.from(Math.floor(r.getTime()/1e3))),Nne=SI.default(new Date(0)),PI=SI.default(new Date(Date.now()+1e3*60*60*24*365*10)),tpt=pe.z.object({gasLimit:Js.optional(),gasPrice:Js.optional(),maxFeePerGas:Js.optional(),maxPriorityFeePerGas:Js.optional(),nonce:Js.optional(),value:Js.optional(),blockTag:pe.z.union([pe.z.string(),pe.z.number()]).optional(),from:ki.optional(),type:pe.z.number().optional()}).strict(),rpt=pe.z.object({rpc:pe.z.array(pe.z.string().url()),chainId:pe.z.number(),nativeCurrency:pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),slug:pe.z.string()}),Kre=pe.z.object({supportedChains:pe.z.array(rpt).default(II.defaultChains),thirdwebApiKey:pe.z.string().optional().default(Y.DEFAULT_API_KEY),alchemyApiKey:pe.z.string().optional().optional(),infuraApiKey:pe.z.string().optional().optional(),readonlySettings:pe.z.object({rpcUrl:pe.z.string().url(),chainId:pe.z.number().optional()}).optional(),gasSettings:pe.z.object({maxPriceInGwei:pe.z.number().min(1,"gas price cannot be less than 1").default(300),speed:pe.z.enum(["standard","fast","fastest"]).default("fastest")}).default({maxPriceInGwei:300,speed:"fastest"}),gasless:pe.z.union([pe.z.object({openzeppelin:pe.z.object({relayerUrl:pe.z.string().url(),relayerForwarderAddress:pe.z.string().optional(),useEOAForwarder:pe.z.boolean().default(!1)}),experimentalChainlessSupport:pe.z.boolean().default(!1)}),pe.z.object({biconomy:pe.z.object({apiId:pe.z.string(),apiKey:pe.z.string(),deadlineSeconds:pe.z.number().min(1,"deadlineSeconds cannot be les than 1").default(3600)})})]).optional(),gatewayUrls:pe.z.array(pe.z.string()).optional()}).default({gasSettings:{maxPriceInGwei:300,speed:"fastest"}}),npt=pe.z.object({name:pe.z.string(),symbol:pe.z.string(),decimals:pe.z.number()}),apt=npt.extend({value:Ms,displayValue:pe.z.string()}),G0=pe.z.object({merkle:pe.z.record(pe.z.string()).default({})}),_L=pe.z.object({address:ki,maxClaimable:Y.QuantitySchema.default(0),price:Y.QuantitySchema.optional(),currencyAddress:ki.default(Z.ethers.constants.AddressZero).optional()}),RI=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>_L.parseAsync({address:e})))),pe.z.array(_L)]),Bne=_L.extend({proof:pe.z.array(pe.z.string())}),Dne=pe.z.object({merkleRoot:pe.z.string(),claims:pe.z.array(Bne)}),$Br=pe.z.object({merkleRoot:pe.z.string(),snapshotUri:pe.z.string()}),ipt=pe.z.object({name:pe.z.string().optional()}).catchall(pe.z.unknown()),MI=pe.z.object({startTime:Nne,currencyAddress:pe.z.string().default(Gu),price:Y.AmountSchema.default(0),maxClaimableSupply:Y.QuantitySchema,maxClaimablePerWallet:Y.QuantitySchema,waitInSeconds:Js.default(0),merkleRootHash:Y.BytesLikeSchema.default(Z.utils.hexZeroPad([0],32)),snapshot:pe.z.optional(RI).nullable(),metadata:ipt.optional()}),spt=pe.z.array(MI),YBr=MI.partial(),One=MI.extend({availableSupply:Y.QuantitySchema,currentMintSupply:Y.QuantitySchema,currencyMetadata:apt.default({value:Z.BigNumber.from("0"),displayValue:"0",symbol:"",decimals:18,name:""}),price:Ms,waitInSeconds:Ms,startTime:Ms.transform(r=>new Date(r.toNumber()*1e3)),snapshot:RI.optional().nullable()});function JBr(r){if(r===void 0){let e=b.Buffer.alloc(16);return HNr.v4({},e),Z.utils.hexlify(Z.utils.toUtf8Bytes(e.toString("hex")))}else return Z.utils.hexlify(r)}var Hq=pe.z.object({to:ki.refine(r=>r.toLowerCase()!==Z.constants.AddressZero,{message:"Cannot create payload to mint to zero address"}),price:Y.AmountSchema.default(0),currencyAddress:Mne.default(Gu),mintStartTime:Nne,mintEndTime:PI,uid:pe.z.string().optional().transform(r=>JBr(r)),primarySaleRecipient:ki.default(Z.constants.AddressZero)}),Lne=Hq.extend({quantity:Y.AmountSchema}),opt=Lne.extend({mintStartTime:Ms,mintEndTime:Ms}),jq=Hq.extend({metadata:Y.NFTInputOrUriSchema,royaltyRecipient:pe.z.string().default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0)}),qne=jq.extend({uri:pe.z.string(),royaltyBps:Ms,mintStartTime:Ms,mintEndTime:Ms}),cpt=jq.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Js}),upt=cpt.extend({tokenId:Js}),lpt=qne.extend({tokenId:Ms,quantity:Ms}),dpt=jq.extend({metadata:Y.NFTInputOrUriSchema.default(""),quantity:Ms.default(1)}),ppt=qne.extend({quantity:Ms.default(1)}),hpt=[{name:"to",type:"address"},{name:"primarySaleRecipient",type:"address"},{name:"quantity",type:"uint256"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],fpt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"price",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],mpt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"tokenId",type:"uint256"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],ypt=[{name:"to",type:"address"},{name:"royaltyRecipient",type:"address"},{name:"royaltyBps",type:"uint256"},{name:"primarySaleRecipient",type:"address"},{name:"uri",type:"string"},{name:"quantity",type:"uint256"},{name:"pricePerToken",type:"uint256"},{name:"currency",type:"address"},{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"}],gpt=[{name:"validityStartTimestamp",type:"uint128"},{name:"validityEndTimestamp",type:"uint128"},{name:"uid",type:"bytes32"},{name:"data",type:"bytes"}],Pl=pe.z.object({name:pe.z.string(),description:pe.z.string().optional(),image:Y.FileOrBufferOrStringSchema.optional(),external_link:pe.z.string().optional(),app_uri:pe.z.string().optional()}),pd=Pl.extend({image:pe.z.string().optional()}).catchall(pe.z.unknown()),Jo=pe.z.object({seller_fee_basis_points:Y.BasisPointsSchema.default(0),fee_recipient:ki.default(Z.constants.AddressZero)}),H1=pe.z.object({primary_sale_recipient:ki}),Ip=pe.z.object({platform_fee_basis_points:Y.BasisPointsSchema.default(0),platform_fee_recipient:ki.default(Z.constants.AddressZero)}),hd=pe.z.object({trusted_forwarders:pe.z.array(ki).default([])}),_o=pe.z.object({symbol:pe.z.string().optional().default("")}),bpt=Pl.merge(Jo).merge(G0).merge(_o),QBr=pd.merge(Jo).merge(G0).merge(_o),ZBr=bpt.merge(Ip).merge(H1).merge(hd),Fne={deploy:ZBr,output:QBr,input:bpt},vpt=Pl.merge(Jo).merge(G0).merge(_o),XBr=pd.merge(Jo).merge(G0).merge(_o),eDr=vpt.merge(Ip).merge(H1).merge(hd),wpt={deploy:eDr,output:XBr,input:vpt},_pt=Pl,tDr=pd,rDr=_pt.merge(Ip).merge(hd),Wne={deploy:rDr,output:tDr,input:_pt},xpt=Pl.merge(Jo).merge(_o),nDr=pd.merge(Jo).merge(_o),aDr=xpt.merge(Ip).merge(hd),Tpt={deploy:aDr,output:nDr,input:xpt},Ept=pe.z.object({address:ki,sharesBps:Y.BasisPointsSchema.gt(0,"Shares must be greater than 0")}),iDr=Ept.extend({address:ki,sharesBps:Y.BasisPointsSchema}),Gre=Pl.extend({recipients:pe.z.array(Ept).default([]).superRefine((r,e)=>{let t={},n=0;for(let a=0;a1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:"Total shares cannot go over 100%.",path:[a,"sharesBps"]})}n!==1e4&&e.addIssue({code:pe.z.ZodIssueCode.custom,message:`Total shares need to add up to 100%. Total shares are currently ${n/100}%`,path:[]})})}),sDr=pd.extend({recipients:pe.z.array(iDr)}),oDr=Gre.merge(Gre).merge(hd),Cpt={deploy:oDr,output:sDr,input:Gre},Ipt=Pl.merge(_o),cDr=pd.merge(_o),uDr=Ipt.merge(Ip).merge(H1).merge(hd),kpt={deploy:uDr,output:cDr,input:Ipt},Apt=Pl.merge(Jo).merge(_o),lDr=pd.merge(Jo).merge(_o),dDr=Apt.merge(Ip).merge(H1).merge(hd),Spt={deploy:dDr,output:lDr,input:Apt},Ppt=Pl.merge(Jo).merge(_o),pDr=pd.merge(Jo).merge(_o),hDr=Ppt.merge(Ip).merge(H1).merge(hd),Rpt={deploy:hDr,output:pDr,input:Ppt},Mpt=pe.z.object({voting_delay_in_blocks:pe.z.number().min(0).default(0),voting_period_in_blocks:pe.z.number().min(1).default(1),voting_token_address:ki,voting_quorum_fraction:Y.PercentSchema.default(0),proposal_token_threshold:Js.default(1)}),fDr=Mpt.extend({proposal_token_threshold:Ms}),Npt=Pl.merge(Mpt),mDr=pd.merge(fDr),yDr=Npt.merge(hd),Bpt={deploy:yDr,output:mDr,input:Npt};pe.z.object({proposalId:Ms,proposer:pe.z.string(),targets:pe.z.array(pe.z.string()),values:pe.z.array(Ms),signatures:pe.z.array(pe.z.string()),calldatas:pe.z.array(pe.z.string()),startBlock:Ms,endBlock:Ms,description:pe.z.string()});function gDr(r){return r.supportedChains.reduce((e,t)=>(e[t.chainId]=t,e),{})}function sI(r,e){if(typeof r=="string"&&bDr(r))return xL(r);let t=Kre.parse(e);zq(r)&&(t.supportedChains=[r,...t.supportedChains]);let n=gDr(t),a="",i;try{i=Dpt(r,t),a=II.getChainRPC(n[i],{thirdwebApiKey:t.thirdwebApiKey||Y.DEFAULT_API_KEY,infuraApiKey:t.infuraApiKey,alchemyApiKey:t.alchemyApiKey})}catch{}if(a||(a=`https://${i||r}.rpc.thirdweb.com/${t.thirdwebApiKey||Y.DEFAULT_API_KEY}`),!a)throw new Error(`No rpc url found for chain ${r}. Please provide a valid rpc url via the 'supportedChains' property of the sdk options.`);return xL(a,i)}function Dpt(r,e){if(zq(r))return r.chainId;if(typeof r=="number")return r;{let t=e.supportedChains.reduce((n,a)=>(n[a.slug]=a.chainId,n),{});if(r in t)return t[r]}throw new Error(`Cannot resolve chainId from: ${r} - please pass the chainId instead and specify it in the 'supportedChains' property of the SDK options.`)}function zq(r){return typeof r!="string"&&typeof r!="number"&&!Uq(r)&&!Rne(r)}function bDr(r){let e=r.match(/^(ws|http)s?:/i);if(e)switch(e[1].toLowerCase()){case"http":case"https":case"ws":case"wss":return!0}return!1}var rdt=new Map;function xL(r,e){try{let t=r.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":let n=`${r}-${e||-1}`,a=rdt.get(n);if(a)return a;let i=e?new zre(r,e):new Z.providers.JsonRpcBatchProvider(r);return rdt.set(n,i),i;case"ws":case"wss":return new Z.providers.WebSocketProvider(r,e)}}catch{}return Z.providers.getDefaultProvider(r)}var oI=class extends Error{constructor(e){super(e?`Object with id ${e} NOT FOUND`:"NOT_FOUND")}},Vre=class extends Error{constructor(e){super(e?`'${e}' is an invalid address`:"Invalid address passed")}},TL=class extends Error{constructor(e,t){super(`MISSING ROLE: ${e} does not have the '${t}' role`)}},$re=class extends Error{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"The asset you're trying to use could not be found.";super(`message: ${e}`)}},Yre=class extends Error{constructor(e){super(`UPLOAD_FAILED: ${e}`)}},Jre=class extends Error{constructor(){super("File name is required when object is not a `File` type object.")}},Qre=class extends Error{constructor(e){super(`DUPLICATE_FILE_NAME_ERROR: File name ${e} was passed for more than one file.`)}},Zre=class extends Error{constructor(e,t,n){super(`BALANCE ERROR: you do not have enough balance on contract ${e} to use ${t} tokens. You have ${n} tokens available.`)}},Xre=class extends Error{constructor(){super("LIST ERROR: you should be the owner of the token to list it.")}},ene=class extends Error{constructor(e){super(`BUY ERROR: You cannot buy more than ${e} tokens`)}},tne=class extends Error{constructor(e,t){super(`FETCH_FAILED: ${e}`),Y._defineProperty(this,"innerError",void 0),this.innerError=t}},EL=class extends Error{constructor(e){super(`DUPLICATE_LEAFS${e?` : ${e}`:""}`)}},rne=class extends Error{constructor(e){super(`Auction already started with existing bid${e?`, id: ${e}`:""}`)}},nne=class extends Error{constructor(e){super(`FUNCTION DEPRECATED. ${e?`Use ${e} instead`:""}`)}},ane=class extends Error{constructor(e,t){super(`Could not find listing.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}`)}},ine=class extends Error{constructor(e,t,n,a){super(`Incorrect listing type. Are you sure you're using the right method?.${e?` marketplace address: ${e}`:""}${t?` listing id: ${t}`:""}${a?` expected type: ${a}`:""}${n?` actual type: ${n}`:""}`)}},sne=class extends Error{constructor(e){super(`Failed to transfer asset, transfer is restricted.${e?` Address : ${e}`:""}`)}},one=class extends Error{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"Failed to execute transaction";super(`${n}, admin role is missing${e?` on address: ${e}`:""}${t?` on contract: ${t}`:""}`)}},Lx=class extends Error{constructor(e,t){super(`Auction has not ended yet${e?`, id: ${e}`:""}${t?`, end time: ${t.toString()}`:""}`)}},W0=class extends Error{constructor(e){super(`This functionality is not available because the contract does not implement the '${e.docLinks.contracts}' Extension. Learn how to unlock this functionality at https://portal.thirdweb.com/extensions `)}},Bre=new WeakMap,Dre=new WeakMap,cI=class extends Error{constructor(e){let t=` \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 @@ -191,7 +191,7 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres \u2554\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2557 \u2551 TRANSACTION INFORMATION \u2551 \u255A\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u255D -`,t+=P1("from",e.from),t+=P1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=P1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=P1("rpc",n.hostname)}catch{}if(e.hash&&(t+=P1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=P1("value",`${Z.ethers.utils.formatEther(e.value)} ${O8[e.network.chainId]?.symbol||""}`)),t+=P1("data",`${e.data}`),e.method&&(t+=P1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` +`,t+=F1("from",e.from),t+=F1("to",e.contractName?`${e.to} (${e.contractName})`:e.to),t+=F1("chain",`${e.network.name} (${e.network.chainId})`),e.rpcUrl)try{let n=new URL(e.rpcUrl);t+=F1("rpc",n.hostname)}catch{}if(e.hash&&(t+=F1("tx hash",e.hash)),e.value&&e.value.gt(0)&&(t+=F1("value",`${Z.ethers.utils.formatEther(e.value)} ${iI[e.network.chainId]?.symbol||""}`)),t+=F1("data",`${e.data}`),e.method&&(t+=F1("method",e.method)),e.sources){let n=e.sources.find(a=>a.source.includes(e.reason));if(n){let a=n.source.split(` `).map((o,c)=>`${c+1} ${o}`),i=a.findIndex(o=>o.includes(e.reason));a[i]+=" <-- REVERT";let s=a.slice(i-8,i+4);t+=` @@ -211,67 +211,67 @@ await sdk.getEdition("${u.contractAddress}").setApprovalForAll("${this.getAddres `,t+="Need helping debugging? Join our Discord: https://discord.gg/thirdweb",t+=` -`,super(t),dre(this,sre,{writable:!0,value:void 0}),dre(this,ore,{writable:!0,value:void 0}),pre(this,sre,e.reason),pre(this,ore,e)}get reason(){return ZO(this,sre)}get info(){return ZO(this,ore)}};function hne(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),llt(/.*?"message":"([^"\\]*).*?/,e)||llt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function P1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` +`,super(t),Fre(this,Bre,{writable:!0,value:void 0}),Fre(this,Dre,{writable:!0,value:void 0}),Wre(this,Bre,e.reason),Wre(this,Dre,e)}get reason(){return vL(this,Bre)}get info(){return vL(this,Dre)}};function Une(r){if(r.reason)return r.reason;let e=r;return typeof r=="object"?e=JSON.stringify(r):typeof r!="string"&&(e=r.toString()),ndt(/.*?"message":"([^"\\]*).*?/,e)||ndt(/.*?"reason":"([^"\\]*).*?/,e)||r.message||""}function F1(r,e){if(e==="")return e;let t=Array(10-r.length).fill(" ").join("");return e.includes(` `)?e=` `+e.split(` `).join(` `):e=`${t}${e}`,` -${r}:${e}`}function llt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function W8(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var jdt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],zdt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],Kdt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],y_={},dlt={};async function aL(r,e,t){let n=t.join("|"),a=dlt[n],i=Date.now()-a>=2e3;if(!(n in y_)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?y_[n]=Z.BigNumber.from(o[0]):y_[n]=Z.BigNumber.from(o),dlt[n]=Date.now()}let s=y_[n];return y_[n]=Z.BigNumber.from(y_[n]).add(1),s}function hBr(r){switch(r){case Be.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Be.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var fBr=Z.ethers.utils.parseUnits("31","gwei"),mBr=Z.ethers.utils.parseUnits("1","gwei");function yBr(r){switch(r){case Be.Polygon:return fBr;case Be.Mumbai:return mBr}}async function Vdt(r){let e=hBr(r);try{let n=(await(await B8.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return yBr(r)}async function U8(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var gBr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],bBr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],vBr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function wBr(r,e){let t=new Z.Contract(e,vBr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function xBr(r,e){let t=new Z.Contract(e,bBr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function _Br(r,e){return new Z.Contract(e,gBr,r).name()}async function TBr(r,e){let t=await xBr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function Gdt(r,e,t,n,a,i,s){let o=await TBr(r,{name:await _Br(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await wBr(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await U8(r,o,u,c);return{message:c,signature:l}}var fne=()=>typeof window<"u",$dt=()=>!fne();function EBr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),pre(this,$O,new t2.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(fne())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Vdt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(Tl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await cdt.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=I_(Ku.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. +${r}:${e}`}function ndt(r,e){let t=e.match(r)||[],n="";return t?.length>0&&(n+=t[1]),n}function uI(r,e){return r?r&&r.toString().includes(e)||r&&r.message&&r.message.toString().includes(e)||r&&r.error&&r.error.toString().includes(e):!1}var Opt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],Lpt=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}],qpt=[{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"batchId",type:"uint256"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],Nx={},adt={};async function CL(r,e,t){let n=t.join("|"),a=adt[n],i=Date.now()-a>=2e3;if(!(n in Nx)||i){let o=await r.functions[e](...t);Array.isArray(o)&&o.length>0?Nx[n]=Z.BigNumber.from(o[0]):Nx[n]=Z.BigNumber.from(o),adt[n]=Date.now()}let s=Nx[n];return Nx[n]=Z.BigNumber.from(Nx[n]).add(1),s}function vDr(r){switch(r){case Be.Polygon:return"https://gasstation-mainnet.matic.network/v2";case Be.Mumbai:return"https://gasstation-mumbai.matic.today/v2"}}var wDr=Z.ethers.utils.parseUnits("31","gwei"),_Dr=Z.ethers.utils.parseUnits("1","gwei");function xDr(r){switch(r){case Be.Polygon:return wDr;case Be.Mumbai:return _Dr}}async function Fpt(r){let e=vDr(r);try{let n=(await(await nI.default(e)).json()).fast.maxPriorityFee;if(n>0){let a=parseFloat(n).toFixed(9);return Z.ethers.utils.parseUnits(a,"gwei")}}catch(t){console.error("failed to fetch gas",t)}return xDr(r)}async function lI(r,e,t,n){let a=r?.provider;if(!a)throw new Error("missing provider");let i=Z.utils._TypedDataEncoder.getPayload(e,t,n),s="",o=(await r.getAddress()).toLowerCase();if(a?.provider?.isWalletConnect)s=await a.send("eth_signTypedData",[(await r.getAddress()).toLowerCase(),JSON.stringify(i)]);else try{s=await r._signTypedData(e,t,n)}catch(c){if(c?.message?.includes("Method eth_signTypedData_v4 not supported"))s=await a.send("eth_signTypedData",[o,JSON.stringify(i)]);else try{await a.send("eth_signTypedData_v4",[o,JSON.stringify(i)])}catch(u){throw u}}return{payload:i,signature:Z.utils.joinSignature(Z.utils.splitSignature(s))}}var TDr=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],EDr=[{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeperator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],CDr=[{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"}];async function IDr(r,e){let t=new Z.Contract(e,CDr,r);try{return await t.nonces(await r.getAddress())}catch{return await t.getNonce(await r.getAddress())}}async function kDr(r,e){let t=new Z.Contract(e,EDr,r);try{return await t.DOMAIN_SEPARATOR()}catch{try{return await t.getDomainSeperator()}catch(a){console.error("Error getting domain separator",a)}}}async function ADr(r,e){return new Z.Contract(e,TDr,r).name()}async function SDr(r,e){let t=await kDr(r,e.verifyingContract),n={name:e.name,version:e.version,verifyingContract:e.verifyingContract,salt:Z.ethers.utils.hexZeroPad(Z.BigNumber.from(e.chainId).toHexString(),32)};return Z.ethers.utils._TypedDataEncoder.hashDomain(n)===t?n:e}async function Wpt(r,e,t,n,a,i,s){let o=await SDr(r,{name:await ADr(r,e),version:"1",chainId:await r.getChainId(),verifyingContract:e});s=s||(await IDr(r,e)).toString(),i=i||Z.ethers.constants.MaxUint256;let c={owner:t,spender:n,value:a,nonce:s,deadline:i},u={Permit:[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}]},{signature:l}=await lI(r,o,u,c);return{message:c,signature:l}}var Hne=()=>typeof window<"u",Upt=()=>!Hne();function PDr(r,e){if(r.length===0||r.length===1||!e)return r;for(let t=0;t({})),Y._defineProperty(this,"writeContract",void 0),Y._defineProperty(this,"readContract",void 0),Y._defineProperty(this,"abi",void 0),this.abi=n,this.writeContract=new Z.Contract(t,n,this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider()),Wre(this,mL,new l2.ThirdwebStorage)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.writeContract=this.writeContract.connect(this.getSignerOrProvider()),this.readContract=this.writeContract.connect(this.getProvider())}async getChainID(){let e=this.getProvider(),{chainId:t}=await e.getNetwork();return t}async getSignerAddress(){let e=this.getSigner();if(!e)throw new Error("This action requires a connected wallet to sign the transaction. Please pass a valid signer to the SDK.");return await e.getAddress()}callStatic(){return this.writeContract.callStatic}async getCallOverrides(){if(Hne())return{};let e=await this.getProvider().getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=await this.getChainID(),a=await this.getProvider().getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.ethers.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Fpt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getPreferredGasPrice()}}getPreferredPriorityFee(e){let t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a;switch(t){case"standard":a=Z.BigNumber.from(0);break;case"fast":a=e.div(100).mul(5);break;case"fastest":a=e.div(100).mul(10);break}let i=e.add(a),s=Z.ethers.utils.parseUnits(n.toString(),"gwei"),o=Z.ethers.utils.parseUnits("2.5","gwei");return i.gt(s)&&(i=s),i.lt(o)&&(i=o),i}async getPreferredGasPrice(){let e=await this.getProvider().getGasPrice(),t=this.options.gasSettings.speed,n=this.options.gasSettings.maxPriceInGwei,a=e,i;switch(t){case"standard":i=Z.BigNumber.from(1);break;case"fast":i=e.div(100).mul(5);break;case"fastest":i=e.div(100).mul(10);break}a=a.add(i);let s=Z.ethers.utils.parseUnits(n.toString(),"gwei");return a.gt(s)&&(a=s),a}emitTransactionEvent(e,t){this.emit(kl.Transaction,{status:e,transactionHash:t})}async multiCall(e){return this.sendTransaction("multicall",[e])}async estimateGas(e,t){return this.writeContract.estimateGas[e](...t)}withTransactionOverride(e){this.customOverrides=e}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a0&&typeof n[n.length-1]=="object"){let l=n[n.length-1];i=await tpt.parseAsync(l),n=n.slice(0,n.length-1)}}catch{}let s=jx(Vu.parse(this.abi)).filter(l=>l.name===e);if(!s.length)throw new Error(`Function "${e}" not found in contract. Check your dashboard for the list of functions available`);let o=s.find(l=>l.name===e&&l.inputs.length===n.length);if(!o)throw new Error(`Function "${e}" requires ${s[0].inputs.length} arguments, but ${n.length} were provided. Expected function signature: ${s[0].signature}`);let c=`${e}(${o.inputs.map(l=>l.type).join()})`,u=c in this.readContract.functions?c:e;return o.stateMutability==="view"||o.stateMutability==="pure"?this.readContract[u](...n):{receipt:await this.sendTransaction(u,n,i)}}async sendTransaction(e,t,n){if(n||(n=await this.getCallOverrides()),n={...n,...this.customOverrides()},this.customOverrides=()=>({}),this.options?.gasless&&("openzeppelin"in this.options.gasless||"biconomy"in this.options.gasless)){if(e==="multicall"&&Array.isArray(t[0])&&t[0].length>0){let o=await this.getSignerAddress();t[0]=t[0].map(c=>Z.ethers.utils.solidityPack(["bytes","address"],[c,o]))}let a=this.getProvider(),i=await this.sendGaslessTransaction(e,t,n);this.emitTransactionEvent("submitted",i);let s=await a.waitForTransaction(i);return this.emitTransactionEvent("completed",i),s}else{if(!this.isValidContract){let s=await this.getProvider().getCode(this.readContract.address);if(this.isValidContract=s!=="0x",!this.isValidContract)throw new Error("The address you're trying to send a transaction to is not a smart contract. Make sure you are on the correct network and the contract address is correct")}let a=await this.sendTransactionByFunction(e,t,n);this.emitTransactionEvent("submitted",a.hash);let i;try{i=await a.wait()}catch(s){try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(o){throw await this.formatError(o,e,t,n)}throw await this.formatError(s,e,t,n)}return this.emitTransactionEvent("completed",a.hash),i}}async sendTransactionByFunction(e,t,n){let a=this.writeContract.functions[e];if(!a)throw new Error(`invalid function: "${e.toString()}"`);if(!n.gasLimit)try{n.gasLimit=await this.writeContract.estimateGas[e](...t,n)}catch{try{await this.writeContract.callStatic[e](...t,...n.value?[{value:n.value}]:[])}catch(s){throw await this.formatError(s,e,t,n)}}try{return await a(...t,n)}catch(i){let s=await(n.from||this.getSignerAddress()),o=await(n.value?n.value:0),c=await this.getProvider().getBalance(s);throw c.eq(0)||o&&c.lt(o)?await this.formatError(new Error("You have insufficient funds in your account to execute this transaction."),e,t,n):await this.formatError(i,e,t,n)}}async formatError(e,t,n,a){let i=this.getProvider(),s=await i.getNetwork(),o=await(a.from||this.getSignerAddress()),c=this.readContract.address,u=this.readContract.interface.encodeFunctionData(t,n),l=Z.BigNumber.from(a.value||0),h=i.connection?.url,f=this.readContract.interface.getFunction(t),m=n.map(W=>JSON.stringify(W).length<=80?JSON.stringify(W):JSON.stringify(W,void 0,2)),y=m.join(", ").length<=80?m.join(", "):` `+m.map(W=>" "+W.split(` `).join(` `)).join(`, `)+` -`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=hne(e),L,F;try{let W=await F0(this.readContract.address,this.getProvider(),ZO(this,$O));W.name&&(F=W.name),W.metadata.sources&&(L=await kq(W,ZO(this,$O)))}catch{}return new F8({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();_t.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(Tl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await U8(e,t,n,a);return this.emit(Tl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){_t.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();_t.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(D8(e.chainId,"biconomyForwarder"),Kdt,n),i=0,s=await aL(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(Tl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(Tl.Signature,{status:"completed",message:c,signature:u});let l=await B8.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){_t.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();_t.default(t,"provider is not set"),_t.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?M1[e.chainId].openzeppelinForwarderEOA:M1[e.chainId].openzeppelinForwarder),i=new Z.Contract(a,Ylt.default,n),s=await aL(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:zdt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:jdt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(Tl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await Gdt(t,this.writeContract.address,e.from,y,E),{r:L,s:F,v:W}=Z.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Z.BigNumber.from(I.value).toString(),nonce:Z.BigNumber.from(I.nonce).toString(),deadline:Z.BigNumber.from(I.deadline).toString(),r:L,s:F,v:W},l=S}else{let{signature:y}=await U8(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(Tl.Signature,{status:"completed",message:u,signature:l});let m=await B8.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function jh(r){return r.toLowerCase()===zu||r.toLowerCase()===Z.constants.AddressZero}function iL(r){return jh(r)?zu:r}async function wc(r,e,t){let n=await M_(r,t);return Z.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function M_(r,e){if(jh(e)){let t=await r.getNetwork(),n=XO(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,CNr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function xp(r,e,t){let n=await M_(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function D0(r,e,t,n){if(jh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Rs(a||i,t,mu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function mne(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Rs(i||s,e,mu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function CBr(r,e,t){let n=r.getProvider(),a=new Rs(n,e,mu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function IBr(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits(Y.AmountSchema.parse(e),t)}function kBr(r){return Z.utils.formatEther(r)}function ABr(r){return Z.utils.parseEther(Y.AmountSchema.parse(r))}function SBr(r,e){return Z.utils.parseUnits(Y.AmountSchema.parse(r),e)}function PBr(r,e){return Z.utils.formatUnits(r,e)}async function Ydt(r,e,t,n,a,i,s,o,c){let u=lm(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let I=await Eq(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Z.ethers.constants.MaxUint256:await wc(i.getProvider(),I.price,I.currencyAddress||Z.ethers.constants.AddressZero),f=I.currencyAddress||Z.ethers.constants.AddressZero;else if(c===n2.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Z.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Z.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(jh(E)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await mne(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function RBr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await _l.fromUri(n,t))?.getAllEntries()||null;{let i=await one.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Eq(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await _l.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await one.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function Jdt(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await uI.parseAsync({...t[r],price:i,...e}),o=await cne.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function MBr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await Xdt(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function NBr(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function Qdt(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await MBr(r,e,t,n,a),o=await hdt.parseAsync(i),c=(await Promise.all(o.map(u=>BBr(u,e,t,n)))).sort((u,l)=>NBr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function BBr(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?zu:r.currencyAddress,i=lm(r.maxClaimableSupply,e),s=lm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await wc(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function sL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function oL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function cL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function uL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function lL(r,e,t,n,a,i){let s=await xp(t,r.currency,r.pricePerToken),o=S8(r.maxClaimableSupply,e),c=S8(r.maxClaimablePerWallet,e),u=S8(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=S8(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),cne.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await RBr(r.merkleRoot,n,a):void 0,metadata:h})}function S8(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function lm(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function Zdt(r,e,t,n,a){let i={},s=n||zu,c=(await wc(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===zu?i={value:c}:s!==zu&&a&&await mne(r,s,c,t,0)),i}var DBr=2,n2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),_l=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return _l.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new _l(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case n2.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,lm(e.maxClaimable,t)]);case n2.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,lm(e.maxClaimable,t),lm(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await M_(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:DBr,o=await cI.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,G]=F;return[W,new nre.MerkleTree(await Promise.all(G.map(async K=>{let H=await _l.fetchAndCacheDecimals(u,n,K.currencyAddress);return _l.hashEntry(K,t,H,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new nre.MerkleTree(Object.values(h),Z.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let G={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(G),name:`${F}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await _l.fetchAndCacheDecimals(s,t,f.currencyAddress);return _l.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new nre.MerkleTree(h,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await _l.fetchAndCacheDecimals(s,t,o.currencyAddress),u=_l.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return sne.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function Xdt(r,e,t,n,a){let i=await cI.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(opt(),this?this.decode(e,t):E_.prototype.decode.call(Plt,e,t)));Xv=t>-1?t:e.length,Ie=0,Q8=0,BL=null,bo=null,Ze=e;try{ju=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Ze=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof E_){if(Yr=this,El=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return fs=this.structures,Rlt();(!fs||fs.length>0)&&(fs=[])}else Yr=Plt,(!fs||fs.length>0)&&(fs=[]),El=null;return Rlt()}};function Rlt(){try{let r=vn();if(bo){if(Ie>=bo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ie=bo.postBundlePosition,bo=null}if(Ie==Xv)fs=null,Ze=null,Oh&&(Oh=null);else if(Ie>Xv){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!qre)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw opt(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function vn(){let r=Ze[Ie++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Ze[Ie++];break;case 25:if(e==7)return VBr();r=ju.getUint16(Ie),Ie+=2;break;case 26:if(e==7){let t=ju.getFloat32(Ie);if(Yr.useFloat32>2){let n=cpt[(Ze[Ie]&127)<<1|Ze[Ie+1]>>7];return Ie+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ie+=4,t}r=ju.getUint32(Ie),Ie+=4;break;case 27:if(e==7){let t=ju.getFloat64(Ie);return Ie+=8,t}if(e>1){if(ju.getUint32(Ie)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=ju.getUint32(Ie+4)}else Yr.int64AsNumber?(r=ju.getUint32(Ie)*4294967296,r+=ju.getUint32(Ie+4)):r=ju.getBigUint64(Ie);Ie+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=vn())!=g_;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if(Yr.mapsAsObjects){let s={};if(Yr.keyMap)for(;(i=vn())!=g_;)s[dm(Yr.decodeKey(i))]=vn();else for(;(i=vn())!=g_;)s[dm(i)]=vn();return s}else{P8&&(Yr.mapsAsObjects=!0,P8=!1);let s=new Map;if(Yr.keyMap)for(;(i=vn())!=g_;)s.set(Yr.decodeKey(i),vn());else for(;(i=vn())!=g_;)s.set(i,vn());return s}case 7:return g_;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return KBr(r);case 3:if(Q8>=Ie)return BL.slice(Ie-DL,(Ie+=r)-DL);if(Q8==0&&Xv<140&&r<32){let a=r<16?npt(r):zBr(r);if(a!=null)return a}return jBr(r);case 4:let t=new Array(r);for(let a=0;a=Alt){let a=fs[r&8191];if(a)return a.read||(a.read=Fre(a)),a.read();if(r<65536){if(r==HBr)return Ure(vn());if(r==UBr){let i=R8(),s=vn();for(let o=2;o23)switch(t){case 24:t=Ze[Ie++];break;case 25:t=ju.getUint16(Ie),Ie+=2;break;case 26:t=ju.getUint32(Ie),Ie+=4;break;default:throw new Error("Expected array header, but got "+Ze[Ie-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(vn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=Yr.keyMap?new Function("r","return {"+i.map(s=>Yr.decodeKey(s)).map(s=>Mlt.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>Mlt.test(s)?dm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(vn)}let a={};if(Yr.keyMap)for(let i=0;i64&&Ore)return Ore.decode(Ze.subarray(Ie,Ie+=r));let t=Ie+r,n=[];for(e="";Ie65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=Vo.apply(String,n),n.length=0)}return n.length>0&&(e+=Vo.apply(String,n)),e}var Vo=String.fromCharCode;function zBr(r){let e=Ie,t=new Array(r);for(let n=0;n0){Ie=e;return}t[n]=a}return Vo.apply(String,t)}function npt(r){if(r<4)if(r<2){if(r===0)return"";{let e=Ze[Ie++];if((e&128)>1){Ie-=1;return}return Vo(e)}}else{let e=Ze[Ie++],t=Ze[Ie++];if((e&128)>0||(t&128)>0){Ie-=2;return}if(r<3)return Vo(e,t);let n=Ze[Ie++];if((n&128)>0){Ie-=3;return}return Vo(e,t,n)}else{let e=Ze[Ie++],t=Ze[Ie++],n=Ze[Ie++],a=Ze[Ie++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ie-=4;return}if(r<6){if(r===4)return Vo(e,t,n,a);{let i=Ze[Ie++];if((i&128)>0){Ie-=5;return}return Vo(e,t,n,a,i)}}else if(r<8){let i=Ze[Ie++],s=Ze[Ie++];if((i&128)>0||(s&128)>0){Ie-=6;return}if(r<7)return Vo(e,t,n,a,i,s);let o=Ze[Ie++];if((o&128)>0){Ie-=7;return}return Vo(e,t,n,a,i,s,o)}else{let i=Ze[Ie++],s=Ze[Ie++],o=Ze[Ie++],c=Ze[Ie++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ie-=8;return}if(r<10){if(r===8)return Vo(e,t,n,a,i,s,o,c);{let u=Ze[Ie++];if((u&128)>0){Ie-=9;return}return Vo(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Ze[Ie++],l=Ze[Ie++];if((u&128)>0||(l&128)>0){Ie-=10;return}if(r<11)return Vo(e,t,n,a,i,s,o,c,u,l);let h=Ze[Ie++];if((h&128)>0){Ie-=11;return}return Vo(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Ze[Ie++],l=Ze[Ie++],h=Ze[Ie++],f=Ze[Ie++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ie-=12;return}if(r<14){if(r===12)return Vo(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Ze[Ie++];if((m&128)>0){Ie-=13;return}return Vo(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Ze[Ie++],y=Ze[Ie++];if((m&128)>0||(y&128)>0){Ie-=14;return}if(r<15)return Vo(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Ze[Ie++];if((E&128)>0){Ie-=15;return}return Vo(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function KBr(r){return Yr.copyBuffers?Uint8Array.prototype.slice.call(Ze,Ie,Ie+=r):Ze.subarray(Ie,Ie+=r)}var apt=new Float32Array(1),YO=new Uint8Array(apt.buffer,0,4);function VBr(){let r=Ze[Ie++],e=Ze[Ie++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return YO[3]=r&128|(t>>1)+56,YO[2]=(r&7)<<5|e>>3,YO[1]=e<<5,YO[0]=0,apt[0]}var C_=class{constructor(e,t){this.value=e,this.tag=t}};Ji[0]=r=>new Date(r);Ji[1]=r=>new Date(Math.round(r*1e3));Ji[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Ji[2](r);Ji[4]=r=>Number(r[1]+"e"+r[0]);Ji[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var Ure=r=>{let e=r[0]-57344,t=r[1],n=fs[e];n&&n.isShared&&((fs.restoreStructures||(fs.restoreStructures=[]))[e]=n),fs[e]=t,t.read=Fre(t);let a={};if(Yr.keyMap)for(let i=2,s=r.length;ibo?bo[0].slice(bo.position0,bo.position0+=r):new C_(r,14);Ji[15]=r=>bo?bo[1].slice(bo.position1,bo.position1+=r):new C_(r,15);var GBr={Error,RegExp};Ji[27]=r=>(GBr[r[0]]||Error)(r[1],r[2]);var ipt=r=>{if(Ze[Ie++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return El=El?e.concat(El.slice(e.length)):e,El.prefixes=r(),El.suffixes=r(),r()};ipt.handlesRead=!0;Ji[51]=ipt;Ji[Slt]=r=>{if(!El)if(Yr.getShared)gne();else return new C_(r,Slt);if(typeof r=="number")return El[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Ji[25]=r=>stringRefs[r];Ji[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Ji[256].handlesRead=!0;Ji[28]=r=>{Oh||(Oh=new Map,Oh.id=0);let e=Oh.id++,t=Ze[Ie],n;t>>5==4?n=[]:n={};let a={target:n};Oh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Ji[28].handlesRead=!0;Ji[29]=r=>{let e=Oh.get(r);return e.used=!0,e.target};Ji[258]=r=>new Set(r);(Ji[259]=r=>(Yr.mapsAsObjects&&(Yr.mapsAsObjects=!1,P8=!0),r())).handlesRead=!0;function b_(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function Yv(){if(!El)if(Yr.getShared)gne();else throw new Error("No packed values available");return El}var $Br=1399353956;Lre.push((r,e)=>{if(r>=225&&r<=255)return b_(Yv().prefixes[r-224],e);if(r>=28704&&r<=32767)return b_(Yv().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return b_(Yv().prefixes[r-1879048192],e);if(r>=216&&r<=223)return b_(e,Yv().suffixes[r-216]);if(r>=27647&&r<=28671)return b_(e,Yv().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return b_(e,Yv().suffixes[r-1811939328]);if(r==$Br)return{packedValues:El,structures:fs.slice(0),version:e};if(r==55799)return e});var YBr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Nlt=[Uint8Array],JBr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Ze[Ie++];break;case 25:r=ju.getUint16(Ie),Ie+=2;break;case 26:r=ju.getUint32(Ie),Ie+=4;break}return r}function gne(){if(Yr.getShared){let r=spt(()=>(Ze=null,Yr.getShared()))||{},e=r.structures||[];Yr.sharedVersion=r.version,El=Yr.sharedValues=r.packedValues,fs===!0?Yr.structures=fs=e:fs.splice.apply(fs,[0,e.length].concat(e))}}function spt(r){let e=Xv,t=Ie,n=DL,a=Q8,i=BL,s=Oh,o=bo,c=new Uint8Array(Ze.slice(0,Xv)),u=fs,l=Yr,h=qre,f=r();return Xv=e,Ie=t,DL=n,Q8=a,BL=i,Oh=s,bo=o,Ze=c,qre=h,fs=u,Yr=l,ju=new DataView(Ze.buffer,Ze.byteOffset,Ze.byteLength),f}function opt(){Ze=null,Oh=null,fs=null}var cpt=new Array(147);for(let r=0;r<256;r++)cpt[r]=Number("1e"+Math.floor(45.15-r*.30103));var XBr=new E_({useRecords:!1}),eDr=XBr.decode;function tDr(r,e){return bne(r,e.abis)}function rDr(r,e){return bne(r.abi,[e])}function bne(r,e){let t=I_(r),n=e.flatMap(i=>I_(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function upt(r,e){let t=await k_(r,e);return vne(t.abi)}async function lpt(r,e){let t=await k_(r,e);return I_(t.abi,t.metadata)}function dpt(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function vne(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function ppt(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function I_(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=dpt(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${Hre(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>Hre(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function hpt(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=dpt(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function Hre(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>Hre(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function fpt(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function Z8(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=fpt(t);if(n)return await Z8(n,e)}catch{}try{let n=await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Z.ethers.utils.hexStripZeros(n);if(a!=="0x")return await Z8(a,e)}catch{}return await mpt(t)}function mpt(r){let e=nDr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=eDr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${ENr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function nDr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!aDr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:FBr,t={};for(let n in e){let a=e[n],i=tDr(r,a),s=lI(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function _ne(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),_ne(n.features,e)}}function iDr(r){let e=[];return _ne(lI(r),e),e}function jre(r){let e=[];return _ne(lI(r),e),e.map(t=>t.name)}function A_(r,e){let t=lI(r);return ypt(t,e)}function er(r,e){if(!r)throw new B0(e);return r}function Ye(r,e){return A_(Ku.parse(r.abi),e)}function ypt(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=ypt(s.features,e),a)break}return a}return r[e].enabled}function go(r,e){return r in e.readContract.functions}async function OL(r,e,t,n,a){let i=[];try{let s=A_(Ku.parse(e),"PluginRouter");if(A_(Ku.parse(e),"ExtensionRouter")){let l=(await new Rs(t,r,rpt,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await Blt(l,t,a)}else if(s){let l=(await new Rs(t,r,tpt,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await Blt(h,t,a)}}catch{}return i.length>0?oDr([e,...i]):e}function sDr(r){let e=A_(Ku.parse(r),"PluginRouter");return A_(Ku.parse(r),"ExtensionRouter")||e}async function Blt(r,e,t){return(await Promise.all(r.map(n=>F0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function oDr(r){let e=r.map(a=>Ku.parse(a)).flat(),n=EBr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Ku.parse(n)}var Oe=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Oe(n)}static async fromContractInfo(e){let t=e.storage||new t2.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await F0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Oe(i)}constructor(e){Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new t2.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(NMr.FormatTypes.json));sDr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){_t.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,f]))}_t.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await OBr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(fne())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Vdt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` +`,E=`${f.name}(${y})`,I=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,S=Une(e),L,F;try{let W=await K0(this.readContract.address,this.getProvider(),vL(this,mL));W.name&&(F=W.name),W.metadata.sources&&(L=await $q(W,vL(this,mL)))}catch{}return new cI({reason:S,from:o,to:c,method:E,data:u,network:s,rpcUrl:h,value:l,hash:I,contractName:F,sources:L})}async sendGaslessTransaction(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,a=this.getSigner();Tt.default(a,"Cannot execute gasless transaction without valid signer");let i=await this.getChainID(),s=await this.getSignerAddress(),o=this.writeContract.address,c=n?.value||0;if(Z.BigNumber.from(c).gt(0))throw new Error("Cannot send native token value with gasless transaction");let u=this.writeContract.interface.encodeFunctionData(e,t),l=Z.BigNumber.from(0);try{l=(await this.readContract.estimateGas[e](...t)).mul(2)}catch{}l.lt(1e5)&&(l=Z.BigNumber.from(5e5)),n.gasLimit&&Z.BigNumber.from(n.gasLimit).gt(l)&&(l=Z.BigNumber.from(n.gasLimit));let h={from:s,to:o,data:u,chainId:i,gasLimit:l,functionName:e.toString(),functionArgs:t,callOverrides:n};return await this.defaultGaslessSendFunction(h)}async signTypedData(e,t,n,a){this.emit(kl.Signature,{status:"submitted",message:a,signature:""});let{signature:i}=await lI(e,t,n,a);return this.emit(kl.Signature,{status:"completed",message:a,signature:i}),i}parseLogs(e,t){if(!t||t.length===0)return[];let n=this.writeContract.interface.getEventTopic(e);return t.filter(i=>i.topics.indexOf(n)>=0).map(i=>this.writeContract.interface.parseLog(i))}async defaultGaslessSendFunction(e){return this.options.gasless&&"biconomy"in this.options.gasless?this.biconomySendFunction(e):this.defenderSendFunction(e)}async biconomySendFunction(e){Tt.default(this.options.gasless&&"biconomy"in this.options.gasless,"calling biconomySendFunction without biconomy");let t=this.getSigner(),n=this.getProvider();Tt.default(t&&n,"signer and provider must be set");let a=new Z.ethers.Contract(aI(e.chainId,"biconomyForwarder"),qpt,n),i=0,s=await CL(a,"getNonce",[e.from,i]),o={from:e.from,to:e.to,token:Z.ethers.constants.AddressZero,txGas:e.gasLimit.toNumber(),tokenGasPrice:"0",batchId:i,batchNonce:s.toNumber(),deadline:Math.floor(Date.now()/1e3+(this.options?.gasless&&"biconomy"in this.options.gasless&&this.options.gasless.biconomy?.deadlineSeconds||3600)),data:e.data},c=Z.ethers.utils.arrayify(Z.ethers.utils.solidityKeccak256(["address","address","address","uint256","uint256","uint256","uint256","uint256","bytes32"],[o.from,o.to,o.token,o.txGas,o.tokenGasPrice,o.batchId,o.batchNonce,o.deadline,Z.ethers.utils.keccak256(o.data)]));this.emit(kl.Signature,{status:"submitted",message:c,signature:""});let u=await t.signMessage(c);this.emit(kl.Signature,{status:"completed",message:c,signature:u});let l=await nI.default("https://api.biconomy.io/api/v2/meta-tx/native",{method:"POST",body:JSON.stringify({from:e.from,apiId:this.options.gasless.biconomy.apiId,params:[o,u],to:e.to,gasLimit:e.gasLimit.toHexString()}),headers:{"x-api-key":this.options.gasless.biconomy.apiKey,"Content-Type":"application/json;charset=utf-8"}});if(l.ok){let h=await l.json();if(!h.txHash)throw new Error(`relay transaction failed: ${h.log}`);return h.txHash}throw new Error(`relay transaction failed with status: ${l.status} (${l.statusText})`)}async defenderSendFunction(e){Tt.default(this.options.gasless&&"openzeppelin"in this.options.gasless,"calling openzeppelin gasless transaction without openzeppelin config in the SDK options");let t=this.getSigner(),n=this.getProvider();Tt.default(t,"provider is not set"),Tt.default(n,"provider is not set");let a=this.options.gasless.openzeppelin.relayerForwarderAddress||(this.options.gasless.openzeppelin.useEOAForwarder?U1[e.chainId].openzeppelinForwarderEOA:U1[e.chainId].openzeppelinForwarder),i=new Z.Contract(a,Hdt.default,n),s=await CL(i,"getNonce",[e.from]),o,c,u;this.options.gasless.experimentalChainlessSupport?(o={name:"GSNv2 Forwarder",version:"0.0.1",verifyingContract:a},c={ForwardRequest:Lpt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data,chainid:Z.BigNumber.from(e.chainId).toString()}):(o={name:"GSNv2 Forwarder",version:"0.0.1",chainId:e.chainId,verifyingContract:a},c={ForwardRequest:Opt},u={from:e.from,to:e.to,value:Z.BigNumber.from(0).toString(),gas:Z.BigNumber.from(e.gasLimit).toString(),nonce:Z.BigNumber.from(s).toString(),data:e.data});let l;if(this.emit(kl.Signature,{status:"submitted",message:u,signature:""}),e.functionName==="approve"&&e.functionArgs.length===2){let y=e.functionArgs[0],E=e.functionArgs[1],{message:I,signature:S}=await Wpt(t,this.writeContract.address,e.from,y,E),{r:L,s:F,v:W}=Z.ethers.utils.splitSignature(S);u={to:this.readContract.address,owner:I.owner,spender:I.spender,value:Z.BigNumber.from(I.value).toString(),nonce:Z.BigNumber.from(I.nonce).toString(),deadline:Z.BigNumber.from(I.deadline).toString(),r:L,s:F,v:W},l=S}else{let{signature:y}=await lI(t,o,c,u);l=y}let h="forward";u?.owner&&(h="permit");let f=JSON.stringify({request:u,signature:l,forwarderAddress:a,type:h});this.emit(kl.Signature,{status:"completed",message:u,signature:l});let m=await nI.default(this.options.gasless.openzeppelin.relayerUrl,{method:"POST",body:f});if(m.ok){let y=await m.json();if(!y.result)throw new Error(`Relay transaction failed: ${y.message}`);return JSON.parse(y.result).txHash}throw new Error(`relay transaction failed with status: ${m.status} (${m.statusText})`)}};function Kh(r){return r.toLowerCase()===Gu||r.toLowerCase()===Z.constants.AddressZero}function IL(r){return Kh(r)?Gu:r}async function Ec(r,e,t){let n=await Yx(r,t);return Z.utils.parseUnits(Y.AmountSchema.parse(e),n.decimals)}async function Yx(r,e){if(Kh(e)){let t=await r.getNetwork(),n=wL(t.chainId);return{name:n.name,symbol:n.symbol,decimals:n.decimals}}else{let t=new Z.Contract(e,RBr.default,r),[n,a,i]=await Promise.all([t.name(),t.symbol(),t.decimals()]);return{name:n,symbol:a,decimals:i}}}async function Tp(r,e,t){let n=await Yx(r,e);return{...n,value:Z.BigNumber.from(t),displayValue:Z.utils.formatUnits(t,n.decimals)}}async function U0(r,e,t,n){if(Kh(t))n.value=e;else{let a=r.getSigner(),i=r.getProvider(),s=new Ns(a||i,t,vu.default,r.options),o=await r.getSignerAddress(),c=r.readContract.address;return(await s.readContract.allowance(o,c)).lt(e)&&await s.sendTransaction("approve",[c,e]),n}}async function jne(r,e,t,n,a){let i=r.getSigner(),s=r.getProvider(),o=new Ns(i||s,e,vu.default,r.options),c=await r.getSignerAddress(),u=r.readContract.address,l=await o.readContract.allowance(c,u),h=Z.BigNumber.from(t).mul(Z.BigNumber.from(n)).div(Z.ethers.utils.parseUnits("1",a));l.lt(h)&&await o.sendTransaction("approve",[u,l.add(h)])}async function RDr(r,e,t){let n=r.getProvider(),a=new Ns(n,e,vu.default,{}),i=await r.getSignerAddress(),s=r.readContract.address;return(await a.readContract.allowance(i,s)).gte(t)}async function MDr(r,e){let t=await r.readContract.decimals();return Z.utils.parseUnits(Y.AmountSchema.parse(e),t)}function NDr(r){return Z.utils.formatEther(r)}function BDr(r){return Z.utils.parseEther(Y.AmountSchema.parse(r))}function DDr(r,e){return Z.utils.parseUnits(Y.AmountSchema.parse(r),e)}function ODr(r,e){return Z.utils.formatUnits(r,e)}async function Hpt(r,e,t,n,a,i,s,o,c){let u=pm(t.maxClaimablePerWallet,a),l=[Z.utils.hexZeroPad([0],32)],h=t.price,f=t.currencyAddress;try{if(!t.merkleRootHash.toString().startsWith(Z.constants.AddressZero)){let I=await Kq(r,t.merkleRootHash.toString(),await n(),i.getProvider(),s,c);if(I)l=I.proof,u=I.maxClaimable==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(I.maxClaimable,a),h=I.price===void 0||I.price==="unlimited"?Z.ethers.constants.MaxUint256:await Ec(i.getProvider(),I.price,I.currencyAddress||Z.ethers.constants.AddressZero),f=I.currencyAddress||Z.ethers.constants.AddressZero;else if(c===p2.V1)throw new Error("No claim found for this address")}}catch(I){if(I?.message==="No claim found for this address")throw I;console.warn("failed to check claim condition merkle root hash, continuing anyways",I)}let m=await i.getCallOverrides()||{},y=h.toString()!==Z.ethers.constants.MaxUint256.toString()?h:t.price,E=f!==Z.ethers.constants.AddressZero?f:t.currencyAddress;return y.gt(0)&&(Kh(E)?m.value=Z.BigNumber.from(y).mul(e).div(Z.ethers.utils.parseUnits("1",a)):o&&await jne(i,E,y,e,a)),{overrides:m,proofs:l,maxClaimable:u,price:y,currencyAddress:E,priceInProof:h,currencyAddressInProof:f}}async function LDr(r,e,t){if(!e)return null;let n=e[r];if(n){let a=await t.downloadJSON(n);if(a.isShardedMerkleTree&&a.merkleRoot===r)return(await Il.fromUri(n,t))?.getAllEntries()||null;{let i=await Dne.parseAsync(a);if(r===i.merkleRoot)return i.claims.map(s=>({address:s.address,maxClaimable:s.maxClaimable,price:s.price,currencyAddress:s.currencyAddress}))}}return null}async function Kq(r,e,t,n,a,i){if(!t)return null;let s=t[e];if(s){let o=await a.downloadJSON(s);if(o.isShardedMerkleTree&&o.merkleRoot===e)return await(await Il.fromShardedMerkleTreeInfo(o,a)).getProof(r,n,i);let c=await Dne.parseAsync(o);if(e===c.merkleRoot)return c.claims.find(u=>u.address.toLowerCase()===r.toLowerCase())||null}return null}async function jpt(r,e,t){if(r>=t.length)throw Error(`Index out of bounds - got index: ${r} with ${t.length} conditions`);let n=t[r].currencyMetadata.decimals,a=t[r].price,i=Z.ethers.utils.formatUnits(a,n),s=await MI.parseAsync({...t[r],price:i,...e}),o=await One.parseAsync({...s,price:a});return t.map((c,u)=>{let l;u===r?l=o:l=c;let h=Z.ethers.utils.formatUnits(l.price,n);return{...l,price:h}})}async function qDr(r,e,t,n,a){let i=[];return{inputsWithSnapshots:await Promise.all(r.map(async o=>{if(o.snapshot&&o.snapshot.length>0){let c=await Gpt(o.snapshot,e,t,n,a);i.push(c),o.merkleRootHash=c.merkleRoot}else o.merkleRootHash=Z.utils.hexZeroPad([0],32);return o})),snapshotInfos:i}}function FDr(r,e){let t=Z.BigNumber.from(r),n=Z.BigNumber.from(e);return t.eq(n)?0:t.gt(n)?1:-1}async function zpt(r,e,t,n,a){let{inputsWithSnapshots:i,snapshotInfos:s}=await qDr(r,e,t,n,a),o=await spt.parseAsync(i),c=(await Promise.all(o.map(u=>WDr(u,e,t,n)))).sort((u,l)=>FDr(u.startTimestamp,l.startTimestamp));return{snapshotInfos:s,sortedConditions:c}}async function WDr(r,e,t,n){let a=r.currencyAddress===Z.constants.AddressZero?Gu:r.currencyAddress,i=pm(r.maxClaimableSupply,e),s=pm(r.maxClaimablePerWallet,e),o;return r.metadata&&(typeof r.metadata=="string"?o=r.metadata:o=await n.upload(r.metadata)),{startTimestamp:r.startTime,maxClaimableSupply:i,supplyClaimed:0,maxClaimablePerWallet:s,pricePerToken:await Ec(t,r.price,a),currency:a,merkleRoot:r.merkleRootHash.toString(),waitTimeInSecondsBetweenClaims:r.waitInSeconds||0,metadata:o}}function kL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerTransaction:r.maxClaimablePerWallet,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims||0}}function AL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot,pricePerToken:r.pricePerToken,currency:r.currency,quantityLimitPerWallet:r.maxClaimablePerWallet,metadata:r.metadata||""}}function SL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerTransaction,waitTimeInSecondsBetweenClaims:r.waitTimeInSecondsBetweenClaims}}function PL(r){return{startTimestamp:r.startTimestamp,maxClaimableSupply:r.maxClaimableSupply,supplyClaimed:r.supplyClaimed,merkleRoot:r.merkleRoot.toString(),pricePerToken:r.pricePerToken,currency:r.currency,maxClaimablePerWallet:r.quantityLimitPerWallet,waitTimeInSecondsBetweenClaims:0,metadata:r.metadata}}async function RL(r,e,t,n,a,i){let s=await Tp(t,r.currency,r.pricePerToken),o=Z8(r.maxClaimableSupply,e),c=Z8(r.maxClaimablePerWallet,e),u=Z8(Z.BigNumber.from(r.maxClaimableSupply).sub(r.supplyClaimed),e),l=Z8(r.supplyClaimed,e),h;return r.metadata&&(h=await a.downloadJSON(r.metadata)),One.parseAsync({startTime:r.startTimestamp,maxClaimableSupply:o,maxClaimablePerWallet:c,currentMintSupply:l,availableSupply:u,waitInSeconds:r.waitTimeInSecondsBetweenClaims?.toString(),price:Z.BigNumber.from(r.pricePerToken),currency:r.currency,currencyAddress:r.currency,currencyMetadata:s,merkleRootHash:r.merkleRoot,snapshot:i?await LDr(r.merkleRoot,n,a):void 0,metadata:h})}function Z8(r,e){return r.toString()===Z.ethers.constants.MaxUint256.toString()?"unlimited":Z.ethers.utils.formatUnits(r,e)}function pm(r,e){return r==="unlimited"?Z.ethers.constants.MaxUint256:Z.ethers.utils.parseUnits(r,e)}async function Kpt(r,e,t,n,a){let i={},s=n||Gu,c=(await Ec(r.getProvider(),e,s)).mul(t);return c.gt(0)&&(s===Gu?i={value:c}:s!==Gu&&a&&await jne(r,s,c,t,0)),i}var UDr=2,p2=function(r){return r[r.V1=1]="V1",r[r.V2=2]="V2",r}({}),Il=class{constructor(e,t,n,a,i){Y._defineProperty(this,"shardNybbles",void 0),Y._defineProperty(this,"shards",void 0),Y._defineProperty(this,"trees",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"baseUri",void 0),Y._defineProperty(this,"originalEntriesUri",void 0),Y._defineProperty(this,"tokenDecimals",void 0),this.storage=e,this.shardNybbles=a,this.baseUri=t,this.originalEntriesUri=n,this.tokenDecimals=i,this.shards={},this.trees={}}static async fromUri(e,t){try{let n=await t.downloadJSON(e);if(n.isShardedMerkleTree)return Il.fromShardedMerkleTreeInfo(n,t)}catch{return}}static async fromShardedMerkleTreeInfo(e,t){return new Il(t,e.baseUri,e.originalEntriesUri,e.shardNybbles,e.tokenDecimals)}static hashEntry(e,t,n,a){switch(a){case p2.V1:return Z.utils.solidityKeccak256(["address","uint256"],[e.address,pm(e.maxClaimable,t)]);case p2.V2:return Z.utils.solidityKeccak256(["address","uint256","uint256","address"],[e.address,pm(e.maxClaimable,t),pm(e.price||"unlimited",n),e.currencyAddress||Z.ethers.constants.AddressZero])}}static async fetchAndCacheDecimals(e,t,n){if(!n)return 18;let a=e[n];return a===void 0&&(a=(await Yx(t,n)).decimals,e[n]=a),a}static async buildAndUpload(e,t,n,a,i){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:UDr,o=await RI.parseAsync(e),c={};for(let F of o){let W=F.address.slice(2,2+s).toLowerCase();c[W]===void 0&&(c[W]=[]),c[W].push(F)}let u={},l=await Promise.all(Object.entries(c).map(async F=>{let[W,V]=F;return[W,new Rre.MerkleTree(await Promise.all(V.map(async K=>{let H=await Il.fetchAndCacheDecimals(u,n,K.currencyAddress);return Il.hashEntry(K,t,H,i)})),Z.utils.keccak256,{sort:!0}).getHexRoot()]})),h=Object.fromEntries(l),f=new Rre.MerkleTree(Object.values(h),Z.utils.keccak256,{sort:!0}),m=[];for(let[F,W]of Object.entries(c)){let V={proofs:f.getProof(h[F]).map(K=>"0x"+K.data.toString("hex")),entries:W};m.push({data:JSON.stringify(V),name:`${F}.json`})}let y=await a.uploadBatch(m),E=y[0].slice(0,y[0].lastIndexOf("/")),I=await a.upload(o),S={merkleRoot:f.getHexRoot(),baseUri:E,originalEntriesUri:I,shardNybbles:s,tokenDecimals:t,isShardedMerkleTree:!0},L=await a.upload(S);return{shardedMerkleInfo:S,uri:L}}async getProof(e,t,n){let a=e.slice(2,2+this.shardNybbles).toLowerCase(),i=this.shards[a],s={};if(i===void 0)try{i=this.shards[a]=await this.storage.downloadJSON(`${this.baseUri}/${a}.json`);let h=await Promise.all(i.entries.map(async f=>{let m=await Il.fetchAndCacheDecimals(s,t,f.currencyAddress);return Il.hashEntry(f,this.tokenDecimals,m,n)}));this.trees[a]=new Rre.MerkleTree(h,Z.utils.keccak256,{sort:!0})}catch{return null}let o=i.entries.find(h=>h.address.toLowerCase()===e.toLowerCase());if(!o)return null;let c=await Il.fetchAndCacheDecimals(s,t,o.currencyAddress),u=Il.hashEntry(o,this.tokenDecimals,c,n),l=this.trees[a].getProof(u).map(h=>"0x"+h.data.toString("hex"));return Bne.parseAsync({...o,proof:l.concat(i.proofs)})}async getAllEntries(){try{return await this.storage.downloadJSON(this.originalEntriesUri)}catch(e){return console.warn("Could not fetch original snapshot entries",e),[]}}};async function Gpt(r,e,t,n,a){let i=await RI.parseAsync(r),s=i.map(u=>u.address);if(new Set(s).size(eht(),this?this.decode(e,t):Ux.prototype.decode.call(Tdt,e,t)));c2=t>-1?t:e.length,Ie=0,wI=0,tq=null,wo=null,Xe=e;try{Ku=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw Xe=null,e instanceof Uint8Array?n:new Error("Source must be a Uint8Array or Buffer but was a "+(e&&typeof e=="object"?e.constructor.name:typeof e))}if(this instanceof Ux){if($r=this,Al=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return fs=this.structures,Edt();(!fs||fs.length>0)&&(fs=[])}else $r=Tdt,(!fs||fs.length>0)&&(fs=[]),Al=null;return Edt()}};function Edt(){try{let r=vn();if(wo){if(Ie>=wo.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}Ie=wo.postBundlePosition,wo=null}if(Ie==c2)fs=null,Xe=null,qh&&(qh=null);else if(Ie>c2){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else if(!pne)throw new Error("Data read, but end of buffer not reached");return r}catch(r){throw eht(),(r instanceof RangeError||r.message.startsWith("Unexpected end of buffer"))&&(r.incomplete=!0),r}}function vn(){let r=Xe[Ie++],e=r>>5;if(r=r&31,r>23)switch(r){case 24:r=Xe[Ie++];break;case 25:if(e==7)return ZDr();r=Ku.getUint16(Ie),Ie+=2;break;case 26:if(e==7){let t=Ku.getFloat32(Ie);if($r.useFloat32>2){let n=tht[(Xe[Ie]&127)<<1|Xe[Ie+1]>>7];return Ie+=4,(n*t+(t>0?.5:-.5)>>0)/n}return Ie+=4,t}r=Ku.getUint32(Ie),Ie+=4;break;case 27:if(e==7){let t=Ku.getFloat64(Ie);return Ie+=8,t}if(e>1){if(Ku.getUint32(Ie)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");r=Ku.getUint32(Ie+4)}else $r.int64AsNumber?(r=Ku.getUint32(Ie)*4294967296,r+=Ku.getUint32(Ie+4)):r=Ku.getBigUint64(Ie);Ie+=8;break;case 31:switch(e){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let t=[],n,a=0;for(;(n=vn())!=Bx;)t[a++]=n;return e==4?t:e==3?t.join(""):b.Buffer.concat(t);case 5:let i;if($r.mapsAsObjects){let s={};if($r.keyMap)for(;(i=vn())!=Bx;)s[hm($r.decodeKey(i))]=vn();else for(;(i=vn())!=Bx;)s[hm(i)]=vn();return s}else{X8&&($r.mapsAsObjects=!0,X8=!1);let s=new Map;if($r.keyMap)for(;(i=vn())!=Bx;)s.set($r.decodeKey(i),vn());else for(;(i=vn())!=Bx;)s.set(i,vn());return s}case 7:return Bx;default:throw new Error("Invalid major type for indefinite length "+e)}default:throw new Error("Unknown token "+r)}switch(e){case 0:return r;case 1:return~r;case 2:return QDr(r);case 3:if(wI>=Ie)return tq.slice(Ie-rq,(Ie+=r)-rq);if(wI==0&&c2<140&&r<32){let a=r<16?Jpt(r):JDr(r);if(a!=null)return a}return YDr(r);case 4:let t=new Array(r);for(let a=0;a=_dt){let a=fs[r&8191];if(a)return a.read||(a.read=hne(a)),a.read();if(r<65536){if(r==$Dr)return mne(vn());if(r==VDr){let i=eI(),s=vn();for(let o=2;o23)switch(t){case 24:t=Xe[Ie++];break;case 25:t=Ku.getUint16(Ie),Ie+=2;break;case 26:t=Ku.getUint32(Ie),Ie+=4;break;default:throw new Error("Expected array header, but got "+Xe[Ie-1])}let n=this.compiledReader;for(;n;){if(n.propertyCount===t)return n(vn);n=n.next}if(this.slowReads++>=3){let i=this.length==t?this:this.slice(0,t);return n=$r.keyMap?new Function("r","return {"+i.map(s=>$r.decodeKey(s)).map(s=>Cdt.test(s)?hm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"):new Function("r","return {"+i.map(s=>Cdt.test(s)?hm(s)+":r()":"["+JSON.stringify(s)+"]:r()").join(",")+"}"),this.compiledReader&&(n.next=this.compiledReader),n.propertyCount=t,this.compiledReader=n,n(vn)}let a={};if($r.keyMap)for(let i=0;i64&&lne)return lne.decode(Xe.subarray(Ie,Ie+=r));let t=Ie+r,n=[];for(e="";Ie65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c)}else n.push(a);n.length>=4096&&(e+=$o.apply(String,n),n.length=0)}return n.length>0&&(e+=$o.apply(String,n)),e}var $o=String.fromCharCode;function JDr(r){let e=Ie,t=new Array(r);for(let n=0;n0){Ie=e;return}t[n]=a}return $o.apply(String,t)}function Jpt(r){if(r<4)if(r<2){if(r===0)return"";{let e=Xe[Ie++];if((e&128)>1){Ie-=1;return}return $o(e)}}else{let e=Xe[Ie++],t=Xe[Ie++];if((e&128)>0||(t&128)>0){Ie-=2;return}if(r<3)return $o(e,t);let n=Xe[Ie++];if((n&128)>0){Ie-=3;return}return $o(e,t,n)}else{let e=Xe[Ie++],t=Xe[Ie++],n=Xe[Ie++],a=Xe[Ie++];if((e&128)>0||(t&128)>0||(n&128)>0||(a&128)>0){Ie-=4;return}if(r<6){if(r===4)return $o(e,t,n,a);{let i=Xe[Ie++];if((i&128)>0){Ie-=5;return}return $o(e,t,n,a,i)}}else if(r<8){let i=Xe[Ie++],s=Xe[Ie++];if((i&128)>0||(s&128)>0){Ie-=6;return}if(r<7)return $o(e,t,n,a,i,s);let o=Xe[Ie++];if((o&128)>0){Ie-=7;return}return $o(e,t,n,a,i,s,o)}else{let i=Xe[Ie++],s=Xe[Ie++],o=Xe[Ie++],c=Xe[Ie++];if((i&128)>0||(s&128)>0||(o&128)>0||(c&128)>0){Ie-=8;return}if(r<10){if(r===8)return $o(e,t,n,a,i,s,o,c);{let u=Xe[Ie++];if((u&128)>0){Ie-=9;return}return $o(e,t,n,a,i,s,o,c,u)}}else if(r<12){let u=Xe[Ie++],l=Xe[Ie++];if((u&128)>0||(l&128)>0){Ie-=10;return}if(r<11)return $o(e,t,n,a,i,s,o,c,u,l);let h=Xe[Ie++];if((h&128)>0){Ie-=11;return}return $o(e,t,n,a,i,s,o,c,u,l,h)}else{let u=Xe[Ie++],l=Xe[Ie++],h=Xe[Ie++],f=Xe[Ie++];if((u&128)>0||(l&128)>0||(h&128)>0||(f&128)>0){Ie-=12;return}if(r<14){if(r===12)return $o(e,t,n,a,i,s,o,c,u,l,h,f);{let m=Xe[Ie++];if((m&128)>0){Ie-=13;return}return $o(e,t,n,a,i,s,o,c,u,l,h,f,m)}}else{let m=Xe[Ie++],y=Xe[Ie++];if((m&128)>0||(y&128)>0){Ie-=14;return}if(r<15)return $o(e,t,n,a,i,s,o,c,u,l,h,f,m,y);let E=Xe[Ie++];if((E&128)>0){Ie-=15;return}return $o(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E)}}}}}function QDr(r){return $r.copyBuffers?Uint8Array.prototype.slice.call(Xe,Ie,Ie+=r):Xe.subarray(Ie,Ie+=r)}var Qpt=new Float32Array(1),yL=new Uint8Array(Qpt.buffer,0,4);function ZDr(){let r=Xe[Ie++],e=Xe[Ie++],t=(r&127)>>2;if(t===31)return e||r&3?NaN:r&128?-1/0:1/0;if(t===0){let n=((r&3)<<8|e)/16777216;return r&128?-n:n}return yL[3]=r&128|(t>>1)+56,yL[2]=(r&7)<<5|e>>3,yL[1]=e<<5,yL[0]=0,Qpt[0]}var Hx=class{constructor(e,t){this.value=e,this.tag=t}};Ji[0]=r=>new Date(r);Ji[1]=r=>new Date(Math.round(r*1e3));Ji[2]=r=>{let e=BigInt(0);for(let t=0,n=r.byteLength;tBigInt(-1)-Ji[2](r);Ji[4]=r=>Number(r[1]+"e"+r[0]);Ji[5]=r=>r[1]*Math.exp(r[0]*Math.log(2));var mne=r=>{let e=r[0]-57344,t=r[1],n=fs[e];n&&n.isShared&&((fs.restoreStructures||(fs.restoreStructures=[]))[e]=n),fs[e]=t,t.read=hne(t);let a={};if($r.keyMap)for(let i=2,s=r.length;iwo?wo[0].slice(wo.position0,wo.position0+=r):new Hx(r,14);Ji[15]=r=>wo?wo[1].slice(wo.position1,wo.position1+=r):new Hx(r,15);var XDr={Error,RegExp};Ji[27]=r=>(XDr[r[0]]||Error)(r[1],r[2]);var Zpt=r=>{if(Xe[Ie++]!=132)throw new Error("Packed values structure must be followed by a 4 element array");let e=r();return Al=Al?e.concat(Al.slice(e.length)):e,Al.prefixes=r(),Al.suffixes=r(),r()};Zpt.handlesRead=!0;Ji[51]=Zpt;Ji[xdt]=r=>{if(!Al)if($r.getShared)Kne();else return new Hx(r,xdt);if(typeof r=="number")return Al[16+(r>=0?2*r:-2*r-1)];throw new Error("No support for non-integer packed references yet")};Ji[25]=r=>stringRefs[r];Ji[256]=r=>{stringRefs=[];try{return r()}finally{stringRefs=null}};Ji[256].handlesRead=!0;Ji[28]=r=>{qh||(qh=new Map,qh.id=0);let e=qh.id++,t=Xe[Ie],n;t>>5==4?n=[]:n={};let a={target:n};qh.set(e,a);let i=r();return a.used?Object.assign(n,i):(a.target=i,i)};Ji[28].handlesRead=!0;Ji[29]=r=>{let e=qh.get(r);return e.used=!0,e.target};Ji[258]=r=>new Set(r);(Ji[259]=r=>($r.mapsAsObjects&&($r.mapsAsObjects=!1,X8=!0),r())).handlesRead=!0;function Dx(r,e){return typeof r=="string"?r+e:r instanceof Array?r.concat(e):Object.assign({},r,e)}function a2(){if(!Al)if($r.getShared)Kne();else throw new Error("No packed values available");return Al}var eOr=1399353956;dne.push((r,e)=>{if(r>=225&&r<=255)return Dx(a2().prefixes[r-224],e);if(r>=28704&&r<=32767)return Dx(a2().prefixes[r-28672],e);if(r>=1879052288&&r<=2147483647)return Dx(a2().prefixes[r-1879048192],e);if(r>=216&&r<=223)return Dx(e,a2().suffixes[r-216]);if(r>=27647&&r<=28671)return Dx(e,a2().suffixes[r-27639]);if(r>=1811940352&&r<=1879048191)return Dx(e,a2().suffixes[r-1811939328]);if(r==eOr)return{packedValues:Al,structures:fs.slice(0),version:e};if(r==55799)return e});var tOr=new Uint8Array(new Uint16Array([1]).buffer)[0]==1,Idt=[Uint8Array],rOr=[64];for(let r=0;r{if(!r)throw new Error("Could not find typed array for code "+e);return new r(Uint8Array.prototype.slice.call(s,0).buffer)}:s=>{if(!r)throw new Error("Could not find typed array for code "+e);let o=new DataView(s.buffer,s.byteOffset,s.byteLength),c=s.length>>i,u=new r(c),l=o[t];for(let h=0;h23)switch(r){case 24:r=Xe[Ie++];break;case 25:r=Ku.getUint16(Ie),Ie+=2;break;case 26:r=Ku.getUint32(Ie),Ie+=4;break}return r}function Kne(){if($r.getShared){let r=Xpt(()=>(Xe=null,$r.getShared()))||{},e=r.structures||[];$r.sharedVersion=r.version,Al=$r.sharedValues=r.packedValues,fs===!0?$r.structures=fs=e:fs.splice.apply(fs,[0,e.length].concat(e))}}function Xpt(r){let e=c2,t=Ie,n=rq,a=wI,i=tq,s=qh,o=wo,c=new Uint8Array(Xe.slice(0,c2)),u=fs,l=$r,h=pne,f=r();return c2=e,Ie=t,rq=n,wI=a,tq=i,qh=s,wo=o,Xe=c,pne=h,fs=u,$r=l,Ku=new DataView(Xe.buffer,Xe.byteOffset,Xe.byteLength),f}function eht(){Xe=null,qh=null,fs=null}var tht=new Array(147);for(let r=0;r<256;r++)tht[r]=Number("1e"+Math.floor(45.15-r*.30103));var iOr=new Ux({useRecords:!1}),sOr=iOr.decode;function oOr(r,e){return Gne(r,e.abis)}function cOr(r,e){return Gne(r.abi,[e])}function Gne(r,e){let t=jx(r),n=e.flatMap(i=>jx(i));return t.filter(i=>n.find(o=>o.name===i.name&&o.inputs.length===i.inputs.length&&o.inputs.every((c,u)=>c.type==="tuple"||c.type==="tuple[]"?c.type===i.inputs[u].type&&c.components?.every((l,h)=>l.type===i.inputs[u].components?.[h]?.type):c.type===i.inputs[u].type))!==void 0).length===n.length}async function rht(r,e){let t=await zx(r,e);return Vne(t.abi)}async function nht(r,e){let t=await zx(r,e);return jx(t.abi,t.metadata)}function aht(r,e,t){return e?.output?.userdoc?.[t]?.[Object.keys(e?.output?.userdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.notice||e?.output?.devdoc?.[t]?.[Object.keys(e?.output?.devdoc[t]||{}).find(n=>n.includes(r||"unknown"))||""]?.details}function Vne(r){for(let e of r)if(e.type==="constructor")return e.inputs||[];return[]}function iht(r,e){for(let t of r)if(t.type==="function"&&t.name===e)return t.inputs||[];return[]}function jx(r,e){let t=(r||[]).filter(a=>a.type==="function"),n=[];for(let a of t){let i=aht(a.name,e,"methods"),s=a.inputs?.map(h=>`${h.name||"key"}: ${yne(h)}`)?.join(", ")||"",o=s?`, ${s}`:"",c=a.outputs?.map(h=>yne(h,!0))?.join(", "),u=c?`: Promise<${c}>`:": Promise",l=`contract.call("${a.name}"${o})${u}`;n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",signature:l,stateMutability:a.stateMutability||"",comment:i})}return n}function sht(r,e){let t=(r||[]).filter(a=>a.type==="event"),n=[];for(let a of t){let i=aht(a.name,e,"events");n.push({inputs:a.inputs||[],outputs:a.outputs||[],name:a.name||"unknown",comment:i})}return n}function yne(r){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=r.type,a=!1;return n.endsWith("[]")&&(a=!0,n=n.slice(0,-2)),n.startsWith("bytes")&&(n="BytesLike"),(n.startsWith("uint")||n.startsWith("int"))&&(n=e?"BigNumber":"BigNumberish"),n.startsWith("bool")&&(n="boolean"),n==="address"&&(n="string"),n==="tuple"&&r.components&&(n=`{ ${r.components.map(i=>yne(i,!1,!0)).join(", ")} }`),a&&(n+="[]"),t&&(n=`${r.name}: ${n}`),n}function oht(r){if(r.startsWith("0x363d3d373d3d3d363d73"))return`0x${r.slice(22,62)}`;if(r.startsWith("0x36603057343d5230"))return`0x${r.slice(122,162)}`;if(r.startsWith("0x3d3d3d3d363d3d37363d73"))return`0x${r.slice(24,64)}`;if(r.startsWith("0x366000600037611000600036600073"))return`0x${r.slice(32,72)}`}async function _I(r,e){let t=await e.getCode(r);if(t==="0x"){let n=await e.getNetwork();throw new Error(`Contract at ${r} does not exist on chain '${n.name}' (chainId: ${n.chainId})`)}try{let n=oht(t);if(n)return await _I(n,e)}catch{}try{let n=await e.getStorageAt(r,Z.BigNumber.from("0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc")),a=Z.ethers.utils.hexStripZeros(n);if(a!=="0x")return await _I(a,e)}catch{}return await cht(t)}function cht(r){let e=uOr(r),t=e[e.length-2]*256+e[e.length-1],n=Uint8Array.from(e.slice(e.length-2-t,-2)),a=sOr(n);if("ipfs"in a&&a.ipfs)try{return`ipfs://${PBr.default.encode(a.ipfs)}`}catch(i){console.warn("feature-detection ipfs cbor failed",i)}}function uOr(r){if(r=r.toString(16),r.startsWith("0x")||(r=`0x${r}`),!lOr(r))throw new Error(`Given value "${r}" is not a valid hex string.`);r=r.replace(/^0x/i,"");let e=[];for(let t=0;t1&&arguments[1]!==void 0?arguments[1]:KDr,t={};for(let n in e){let a=e[n],i=oOr(r,a),s=NI(r,a.features);t[n]={...a,features:s,enabled:i}}return t}function Jne(r,e){if(!!r)for(let t in r){let n=r[t];n.enabled&&e.push(n),Jne(n.features,e)}}function dOr(r){let e=[];return Jne(NI(r),e),e}function gne(r){let e=[];return Jne(NI(r),e),e.map(t=>t.name)}function Kx(r,e){let t=NI(r);return uht(t,e)}function er(r,e){if(!r)throw new W0(e);return r}function Ye(r,e){return Kx(Vu.parse(r.abi),e)}function uht(r,e){let t=Object.keys(r);if(!t.includes(e)){let a=!1;for(let i of t){let s=r[i];if(a=uht(s.features,e),a)break}return a}return r[e].enabled}function vo(r,e){return r in e.readContract.functions}async function nq(r,e,t,n,a){let i=[];try{let s=Kx(Vu.parse(e),"PluginRouter");if(Kx(Vu.parse(e),"ExtensionRouter")){let l=(await new Ns(t,r,Ypt,n).call("getAllExtensions")).map(h=>h.metadata.implementation);i=await kdt(l,t,a)}else if(s){let l=(await new Ns(t,r,$pt,n).call("getAllPlugins")).map(f=>f.pluginAddress),h=Array.from(new Set(l));i=await kdt(h,t,a)}}catch{}return i.length>0?hOr([e,...i]):e}function pOr(r){let e=Kx(Vu.parse(r),"PluginRouter");return Kx(Vu.parse(r),"ExtensionRouter")||e}async function kdt(r,e,t){return(await Promise.all(r.map(n=>K0(n,e,t).catch(a=>(console.error(`Failed to fetch plug-in for ${n}`,a),{abi:[]}))))).map(n=>n.abi)}function hOr(r){let e=r.map(a=>Vu.parse(a)).flat(),n=PDr(e,(a,i)=>a.name===i.name&&a.type===i.type&&a.inputs.length===i.inputs.length).filter(a=>a.type!=="constructor");return Vu.parse(n)}var Oe=class{static fromContractWrapper(e){let t=e.contractWrapper.getSigner();if(!t)throw new Error("Cannot create a transaction without a signer. Please ensure that you have a connected signer.");let n={...e,contract:e.contractWrapper.writeContract,provider:e.contractWrapper.getProvider(),signer:t,gasless:e.contractWrapper.options.gasless};return new Oe(n)}static async fromContractInfo(e){let t=e.storage||new l2.ThirdwebStorage,n=e.contractAbi;if(!n)try{n=(await K0(e.contractAddress,e.provider,t)).abi}catch{throw new Error(`Could resolve contract metadata for address ${e.contractAddress}. Please pass the contract ABI manually with the 'contractAbi' option.`)}let a=new Z.Contract(e.contractAddress,n,e.provider),i={...e,storage:t,contract:a};return new Oe(i)}constructor(e){Y._defineProperty(this,"contract",void 0),Y._defineProperty(this,"method",void 0),Y._defineProperty(this,"args",void 0),Y._defineProperty(this,"overrides",void 0),Y._defineProperty(this,"provider",void 0),Y._defineProperty(this,"signer",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"gaslessOptions",void 0),Y._defineProperty(this,"parse",void 0),Y._defineProperty(this,"gasMultiple",void 0),this.method=e.method,this.args=e.args,this.overrides=e.overrides||{},this.provider=e.provider,this.signer=e.signer,this.gaslessOptions=e.gasless,this.parse=e.parse,this.signer.provider||(this.signer=this.signer.connect(this.provider)),this.contract=e.contract.connect(this.signer),this.storage=e.storage||new l2.ThirdwebStorage}getMethod(){return this.method}getArgs(){return this.args}getOverrides(){return this.overrides}getValue(){return this.overrides.value||0}getGaslessOptions(){return this.gaslessOptions}setArgs(e){return this.args=e,this}setOverrides(e){return this.overrides=e,this}updateOverrides(e){return this.overrides={...this.overrides,...e},this}setValue(e){return this.updateOverrides({value:e}),this}setGasLimit(e){return this.updateOverrides({gasLimit:e}),this}setGasPrice(e){return this.updateOverrides({gasPrice:e}),this}setNonce(e){return this.updateOverrides({nonce:e}),this}setMaxFeePerGas(e){return this.updateOverrides({maxFeePerGas:e}),this}setMaxPriorityFeePerGas(e){return this.updateOverrides({maxPriorityFeePerGas:e}),this}setType(e){return this.updateOverrides({type:e}),this}setAccessList(e){return this.updateOverrides({accessList:e}),this}setCustomData(e){return this.updateOverrides({customData:e}),this}setCcipReadEnabled(e){return this.updateOverrides({ccipReadEnabled:e}),this}setGaslessOptions(e){return this.gaslessOptions=e,this}setParse(e){return this.parse=e,this}setGasLimitMultiple(e){Z.BigNumber.isBigNumber(this.overrides.gasLimit)?this.overrides.gasLimit=Z.BigNumber.from(Math.floor(Z.BigNumber.from(this.overrides.gasLimit).toNumber()*e)):this.gasMultiple=e}encode(){return this.contract.interface.encodeFunctionData(this.method,this.args)}async sign(){let t={...await this.getGasOverrides(),...this.overrides};t.gasLimit||(t.gasLimit=await this.estimateGasLimit());let n=await this.contract.populateTransaction[this.method](...this.args,t),a=await this.contract.signer.populateTransaction(n);return await this.contract.signer.signTransaction(a)}async simulate(){if(!this.contract.callStatic[this.method])throw this.functionError();try{return await this.contract.callStatic[this.method](...this.args,...this.overrides.value?[{value:this.overrides.value}]:[])}catch(e){throw await this.transactionError(e)}}async estimateGasLimit(){if(!this.contract.estimateGas[this.method])throw this.functionError();try{let e=await this.contract.estimateGas[this.method](...this.args,this.overrides);return this.gasMultiple?Z.BigNumber.from(Math.floor(Z.BigNumber.from(e).toNumber()*this.gasMultiple)):e}catch(e){throw await this.simulate(),this.transactionError(e)}}async estimateGasCost(){let e=await this.estimateGasLimit(),t=await this.getGasPrice(),n=e.mul(t);return{ether:Z.utils.formatEther(n),wei:n}}async send(){if(!this.contract.functions[this.method])throw this.functionError();if(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions))return this.sendGasless();let t={...await this.getGasOverrides(),...this.overrides};if(!t.gasLimit){t.gasLimit=await this.estimateGasLimit();try{let n=JSON.parse(this.contract.interface.format(FNr.FormatTypes.json));pOr(n)&&(t.gasLimit=t.gasLimit.mul(110).div(100))}catch(n){console.warn("Error raising gas limit",n)}}try{return await this.contract.functions[this.method](...this.args,t)}catch(n){let a=await(t.from||this.getSignerAddress()),i=await(t.value?t.value:0),s=await this.provider.getBalance(a);throw s.eq(0)||i&&s.lt(i)?await this.transactionError(new Error("You have insufficient funds in your account to execute this transaction.")):await this.transactionError(n)}}async execute(){let e=await this.send(),t;try{t=await e.wait()}catch(n){throw await this.simulate(),await this.transactionError(n)}return this.parse?this.parse(t):{receipt:t}}async getSignerAddress(){return this.signer.getAddress()}async sendGasless(){Tt.default(this.gaslessOptions&&("openzeppelin"in this.gaslessOptions||"biconomy"in this.gaslessOptions),"No gasless options set on this transaction!");let e=[...this.args];if(this.method==="multicall"&&Array.isArray(this.args[0])&&e[0].length>0){let f=await this.getSignerAddress();e[0]=e[0].map(m=>Z.utils.solidityPack(["bytes","address"],[m,f]))}Tt.default(this.signer,"Cannot execute gasless transaction without valid signer");let t=(await this.provider.getNetwork()).chainId,n=await(this.overrides.from||this.getSignerAddress()),a=this.contract.address,i=this.overrides?.value||0;if(Z.BigNumber.from(i).gt(0))throw new Error("Cannot send native token value with gasless transaction");let s=this.contract.interface.encodeFunctionData(this.method,e),o=Z.BigNumber.from(0);try{o=(await this.contract.estimateGas[this.method](...e)).mul(2)}catch{}o.lt(1e5)&&(o=Z.BigNumber.from(5e5)),this.overrides.gasLimit&&Z.BigNumber.from(this.overrides.gasLimit).gt(o)&&(o=Z.BigNumber.from(this.overrides.gasLimit));let c={from:n,to:a,data:s,chainId:t,gasLimit:o,functionName:this.method,functionArgs:e,callOverrides:this.overrides},u=await HDr(c,this.signer,this.provider,this.gaslessOptions),l,h=1;for(;!l;)if(l=await this.provider.getTransaction(u),l||(await new Promise(f=>setTimeout(f,Math.min(h*1e3,1e4))),h++),h>20)throw new Error(`Unable to retrieve transaction with hash ${u}`);return l}async getGasOverrides(){if(Hne())return{};let e=await this.provider.getFeeData();if(e.maxFeePerGas&&e.maxPriorityFeePerGas){let n=(await this.provider.getNetwork()).chainId,a=await this.provider.getBlock("latest"),i=a&&a.baseFeePerGas?a.baseFeePerGas:Z.utils.parseUnits("1","gwei"),s;n===Be.Mumbai||n===Be.Polygon?s=await Fpt(n):s=Z.BigNumber.from(e.maxPriorityFeePerGas);let o=this.getPreferredPriorityFee(s);return{maxFeePerGas:i.mul(2).add(o),maxPriorityFeePerGas:o}}else return{gasPrice:await this.getGasPrice()}}getPreferredPriorityFee(e){let t=e.div(100).mul(10),n=e.add(t),a=Z.utils.parseUnits("300","gwei"),i=Z.utils.parseUnits("2.5","gwei");return n.gt(a)?a:n.lt(i)?i:n}async getGasPrice(){let e=await this.provider.getGasPrice(),t=Z.utils.parseUnits("300","gwei"),n=e.div(100).mul(10),a=e.add(n);return a.gt(t)?t:a}functionError(){return new Error(`Contract "${this.contract.address}" does not have function "${this.method}"`)}async transactionError(e){let t=this.provider,n=await t.getNetwork(),a=await(this.overrides.from||this.getSignerAddress()),i=this.contract.address,s=this.encode(),o=Z.BigNumber.from(this.overrides.value||0),c=t.connection?.url,u=this.contract.interface.getFunction(this.method),l=this.args.map(S=>JSON.stringify(S).length<=80?JSON.stringify(S):JSON.stringify(S,void 0,2)),h=l.join(", ").length<=80?l.join(", "):` `+l.map(S=>" "+S.split(` `).join(` `)).join(`, `)+` -`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=hne(e),E,I;try{let S=await F0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await kq(S,this.storage))}catch{}return new F8({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},N0=class{constructor(e,t,n){Y._defineProperty(this,"featureName",mL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new B0(mL)})),Y._defineProperty(this,"update",Ee(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{go("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{go("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await F0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return Ye(e,"ContractMetadata")}},LL=class{constructor(e,t){Y._defineProperty(this,"featureName",fL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Ee(async n=>{let a=Object.keys(n);_t.default(a.length,"you must provide at least one role to set"),_t.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Re(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Re(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[v_(u),y]))}),m.length)for(let y=0;y{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[v_(n),i]})})),Y._defineProperty(this,"revoke",Ee(async(n,a)=>{_t.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a),s=await this.getRevokeRoleFunctionName(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[v_(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){_t.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){_t.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(go("getRoleMemberCount",t)&&go("getRoleMember",t)){let n=v_(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Re(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new rL(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Re(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},qL=class{constructor(e,t){Y._defineProperty(this,"featureName",dL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Ee(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(go("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Ee(async(n,a)=>{let i=$o.parse(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return $o.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return $o.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},FL=class{constructor(e){Y._defineProperty(this,"featureName",pL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Cq={name:"Failed to load NFT metadata"};async function Tne(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Cq}}return Y.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function dI(r,e,t,n){let a,i=new Z.Contract(r,vq.default,e),s=await i.supportsInterface(aI),o=await i.supportsInterface(iI);if(s)a=await new Z.Contract(r,INr.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,kNr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?Tne(t,a,n):Y.CommonNFTOutput.parse({...Cq,id:Z.BigNumber.from(t).toString(),uri:""})}async function Ene(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function c2(r,e,t,n){if(cDr(r))return r;if(uDr(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function __(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function uDr(r){return r.find(e=>typeof e!="object")===void 0}var X8=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Ee(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=__(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>Y.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=__(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let F=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),E,F]);S=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),G=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let V=G;V.lte(K);V=V.add(1))H.push({id:V,receipt:F});return H}})})),Y._defineProperty(this,"reveal",Ee(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(go("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(go("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return dI(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(go("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,ANr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Go=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),ka=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),eI=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +`,f=`${u.name}(${h})`,m=e.transactionHash||e.transaction?.hash||e.receipt?.transactionHash,y=Une(e),E,I;try{let S=await K0(this.contract.address,this.provider,this.storage);S.name&&(I=S.name),S.metadata.sources&&(E=await $q(S,this.storage))}catch{}return new cI({reason:y,from:a,to:i,method:f,data:s,network:n,rpcUrl:c,value:o,hash:m,contractName:I,sources:E})}},F0=class{constructor(e,t,n){Y._defineProperty(this,"featureName",OL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"schema",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>{let i=await this._parseAndUploadMetadata(a),s=this.contractWrapper;if(this.supportsContractMetadata(s))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setContractURI",args:[i],parse:o=>({receipt:o,data:this.get})});throw new W0(OL)})),Y._defineProperty(this,"update",Ee(async a=>await this.set.prepare({...await this.get(),...a}))),this.contractWrapper=e,this.schema=t,this.storage=n}parseOutputMetadata(e){return this.schema.output.parseAsync(e)}parseInputMetadata(e){return this.schema.input.parseAsync(e)}async get(){let e;if(this.supportsContractMetadata(this.contractWrapper)){let t=await this.contractWrapper.readContract.contractURI();t&&t.includes("://")&&(e=await this.storage.downloadJSON(t))}if(!e)try{let t;try{vo("name",this.contractWrapper)&&(t=await this.contractWrapper.readContract.name())}catch{}let n;try{vo("symbol",this.contractWrapper)&&(n=await this.contractWrapper.readContract.symbol())}catch{}let a;try{a=await K0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage)}catch{}e={name:t||a?.name,symbol:n,description:a?.info.title}}catch{throw new Error("Could not fetch contract metadata")}return this.parseOutputMetadata(e)}async _parseAndUploadMetadata(e){let t=await this.parseInputMetadata(e);return this.storage.upload(t)}supportsContractMetadata(e){return Ye(e,"ContractMetadata")}},aq=class{constructor(e,t){Y._defineProperty(this,"featureName",DL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"setAll",Ee(async n=>{let a=Object.keys(n);Tt.default(a.length,"you must provide at least one role to set"),Tt.default(a.every(c=>this.roles.includes(c)),"this contract does not support the given role");let i=await this.getAll(),s=[],o=a.sort(c=>c==="admin"?1:-1);for(let c=0;cawait Re(y))||[]),h=await Promise.all(i[u]?.map(async y=>await Re(y))||[]),f=l.filter(y=>!h.includes(y)),m=h.filter(y=>!l.includes(y));if(f.length&&f.forEach(y=>{s.push(this.contractWrapper.readContract.interface.encodeFunctionData("grantRole",[Ox(u),y]))}),m.length)for(let y=0;y{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"grantRole",args:[Ox(n),i]})})),Y._defineProperty(this,"revoke",Ee(async(n,a)=>{Tt.default(this.roles.includes(n),`this contract does not support the "${n}" role`);let i=await Re(a),s=await this.getRevokeRoleFunctionName(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:s,args:[Ox(n),i]})})),this.contractWrapper=e,this.roles=t}async getAll(){Tt.default(this.roles.length,"this contract has no support for roles");let e={};for(let t of this.roles)e[t]=await this.get(t);return e}async get(e){Tt.default(this.roles.includes(e),`this contract does not support the "${e}" role`);let t=this.contractWrapper;if(vo("getRoleMemberCount",t)&&vo("getRoleMember",t)){let n=Ox(e),a=(await t.readContract.getRoleMemberCount(n)).toNumber();return await Promise.all(Array.from(Array(a).keys()).map(i=>t.readContract.getRoleMember(n,i)))}throw new Error("Contract does not support enumerating roles. Please implement IPermissionsEnumerable to unlock this functionality.")}async verify(e,t){await Promise.all(e.map(async n=>{let a=await this.get(n),i=await Re(t);if(!a.map(s=>s.toLowerCase()).includes(i.toLowerCase()))throw new TL(i,n)}))}async getRevokeRoleFunctionName(e){let t=await Re(e);return(await this.contractWrapper.getSignerAddress()).toLowerCase()===t.toLowerCase()?"renounceRole":"revokeRole"}},iq=class{constructor(e,t){Y._defineProperty(this,"featureName",ML.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"setDefaultRoyaltyInfo",Ee(async n=>{let a=await this.metadata.get(),i=await this.metadata.parseInputMetadata({...a,...n}),s=await this.metadata._parseAndUploadMetadata(i);if(vo("setContractURI",this.contractWrapper)){let o=[this.contractWrapper.readContract.interface.encodeFunctionData("setDefaultRoyaltyInfo",[i.fee_recipient,i.seller_fee_basis_points]),this.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[s])];return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[o],parse:c=>({receipt:c,data:()=>this.getDefaultRoyaltyInfo()})})}else throw new Error("Updating royalties requires implementing ContractMetadata in your contract to support marketplaces like OpenSea.")})),Y._defineProperty(this,"setTokenRoyaltyInfo",Ee(async(n,a)=>{let i=Jo.parse(a);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setRoyaltyInfoForToken",args:[n,i.fee_recipient,i.seller_fee_basis_points],parse:s=>({receipt:s,data:()=>this.getDefaultRoyaltyInfo()})})})),this.contractWrapper=e,this.metadata=t}async getDefaultRoyaltyInfo(){let[e,t]=await this.contractWrapper.readContract.getDefaultRoyaltyInfo();return Jo.parseAsync({fee_recipient:e,seller_fee_basis_points:t})}async getTokenRoyaltyInfo(e){let[t,n]=await this.contractWrapper.readContract.getRoyaltyInfoForToken(e);return Jo.parseAsync({fee_recipient:t,seller_fee_basis_points:n})}},sq=class{constructor(e){Y._defineProperty(this,"featureName",NL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"setRecipient",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPrimarySaleRecipient",args:[t]}))),this.contractWrapper=e}async getRecipient(){return await this.contractWrapper.readContract.primarySaleRecipient()}},Gq={name:"Failed to load NFT metadata"};async function Qne(r,e,t){let n=e.replace("{id}",Z.ethers.utils.hexZeroPad(Z.BigNumber.from(r).toHexString(),32).slice(2)),a;try{a=await t.downloadJSON(n)}catch{let s=e.replace("{id}",Z.BigNumber.from(r).toString());try{a=await t.downloadJSON(s)}catch{console.warn(`failed to get token metadata: ${JSON.stringify({tokenId:r.toString(),tokenUri:e})} -- falling back to default metadata`),a=Gq}}return Y.CommonNFTOutput.parse({...a,id:Z.BigNumber.from(r).toString(),uri:e})}async function BI(r,e,t,n){let a,i=new Z.Contract(r,Wq.default,e),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s)a=await new Z.Contract(r,MBr.default,e).tokenURI(t);else if(o)a=await new Z.Contract(r,NBr.default,e).uri(t);else throw Error("Contract must implement ERC 1155 or ERC 721.");return a?Qne(t,a,n):Y.CommonNFTOutput.parse({...Gq,id:Z.BigNumber.from(t).toString(),uri:""})}async function Zne(r,e){return typeof r=="string"?r:await e.upload(Y.CommonNFTInput.parse(r))}async function g2(r,e,t,n){if(fOr(r))return r;if(mOr(r))return await e.uploadBatch(r.map(i=>Y.CommonNFTInput.parse(i)),{rewriteFileNames:{fileStartNumber:t||0},onProgress:n?.onProgress});throw new Error("NFT metadatas must all be of the same type (all URI or all NFTMetadataInput)")}function Fx(r){let e=r[0].substring(0,r[0].lastIndexOf("/"));for(let t=0;ttypeof e!="string")===void 0}function mOr(r){return r.find(e=>typeof e!="object")===void 0}var xI=class{constructor(e,t,n,a){Y._defineProperty(this,"featureName",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"nextTokenIdToMintFn",void 0),Y._defineProperty(this,"createDelayedRevealBatch",Ee(async(i,s,o,c)=>{if(!o)throw new Error("Password is required");let u=await this.storage.uploadBatch([Y.CommonNFTInput.parse(i)],{rewriteFileNames:{fileStartNumber:0}}),l=Fx(u),h=await this.nextTokenIdToMintFn(),f=await this.storage.uploadBatch(s.map(F=>Y.CommonNFTInput.parse(F)),{onProgress:c?.onProgress,rewriteFileNames:{fileStartNumber:h.toNumber()}}),m=Fx(f),y=await this.contractWrapper.readContract.getBaseURICount(),E=await this.hashDelayRevealPassword(y,o),I=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(m),E),S;if(await this.isLegacyContract())S=I;else{let F=await this.contractWrapper.getChainID(),W=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(m),E,F]);S=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[I,W])}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[f.length,l.endsWith("/")?l:`${l}/`,S],parse:F=>{let W=this.contractWrapper.parseLogs("TokensLazyMinted",F?.logs),V=W[0].args.startTokenId,K=W[0].args.endTokenId,H=[];for(let G=V;G.lte(K);G=G.add(1))H.push({id:G,receipt:F});return H}})})),Y._defineProperty(this,"reveal",Ee(async(i,s)=>{if(!s)throw new Error("Password is required");let o=await this.hashDelayRevealPassword(i,s);try{let c=await this.contractWrapper.callStatic().reveal(i,o);if(!c.includes("://")||!c.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"reveal",args:[i,o]})})),this.featureName=n,this.nextTokenIdToMintFn=a,this.contractWrapper=e,this.storage=t}async getBatchesToReveal(){let e=await this.contractWrapper.readContract.getBaseURICount();if(e.isZero())return[];let t=Array.from(Array(e.toNumber()).keys()),n=await Promise.all(t.map(u=>{if(vo("getBatchIdAtIndex",this.contractWrapper))return this.contractWrapper.readContract.getBatchIdAtIndex(u);if(vo("baseURIIndices",this.contractWrapper))return this.contractWrapper.readContract.baseURIIndices(u);throw new Error("Contract does not have getBatchIdAtIndex or baseURIIndices.")})),a=n.slice(0,n.length-1),i=await Promise.all(Array.from([0,...a]).map(u=>this.getNftMetadata(u.toString()))),s=await this.isLegacyContract(),c=(await Promise.all(Array.from([...n]).map(u=>s?this.getLegacyEncryptedData(u):this.contractWrapper.readContract.encryptedData(u)))).map(u=>Z.ethers.utils.hexDataLength(u)>0?s?u:Z.ethers.utils.defaultAbiCoder.decode(["bytes","bytes32"],u)[0]:u);return i.map((u,l)=>({batchId:Z.BigNumber.from(l),batchUri:u.uri,placeholderMetadata:u})).filter((u,l)=>Z.ethers.utils.hexDataLength(c[l])>0)}async hashDelayRevealPassword(e,t){let n=await this.contractWrapper.getChainID(),a=this.contractWrapper.readContract.address;return Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,a])}async getNftMetadata(e){return BI(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),e,this.storage)}async isLegacyContract(){if(vo("contractVersion",this.contractWrapper))try{return await this.contractWrapper.readContract.contractVersion()<=2}catch{return!1}return!1}async getLegacyEncryptedData(e){let n=await new Z.ethers.Contract(this.contractWrapper.readContract.address,BBr.default,this.contractWrapper.getProvider()).functions.encryptedBaseURI(e);return n.length>0?n[0]:"0x"}},Yo=function(r){return r[r.UNSET=0]="UNSET",r[r.Created=1]="Created",r[r.Completed=2]="Completed",r[r.Cancelled=3]="Cancelled",r[r.Active=4]="Active",r[r.Expired=5]="Expired",r}({}),ka=function(r){return r.NotEnoughSupply="There is not enough supply to claim.",r.AddressNotAllowed="This address is not on the allowlist.",r.WaitBeforeNextClaimTransaction="Not enough time since last claim transaction. Please wait.",r.AlreadyClaimed="You have already claimed the token.",r.NotEnoughTokens="There are not enough tokens in the wallet to pay for the claim.",r.NoActiveClaimPhase="There is no active claim phase at the moment. Please check back in later.",r.NoClaimConditionSet="There is no claim condition set.",r.NoWallet="No wallet connected.",r.Unknown="No claim conditions found.",r}({}),TI=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=i;if(a.isLegacySinglePhaseDrop(a.contractWrapper)||a.isNewSinglePhaseDrop(a.contractWrapper)){if(s=!0,i.length===0)o=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(i.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&o.forEach(y=>{if(y.snapshot&&y.snapshot.length>0&&(y.maxClaimablePerWallet===void 0||y.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Example: Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. -contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await Qdt(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!Jlt.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(go("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[sL(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(sL),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[oL(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(oL),s]));else throw new Error("Contract does not support claim conditions");return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"update",Ee(async(i,s)=>{let o=await this.getAll(),c=await Jdt(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await lL(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return cL(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return cL(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return uL(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return uL(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;clL(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Re(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[ka.NoWallet];let c=await Re(t);try{i=await this.getActive()}catch(f){return W8(f,"!CONDITION")||W8(f,"no active mint condition")?(n.push(ka.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(ka.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(ka.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(ka.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0))return n.push(ka.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),lm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0)))return n.push(ka.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(ka.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=lm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=lm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(ka.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(ka.AlreadyClaimed):n.push(ka.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&$dt()){let f=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();jh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(ka.NotEnoughTokens):(await new Rs(m,i.currencyAddress,mu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(ka.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Re(e);return await Eq(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return Ye(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return Ydt(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Re(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV2")||Ye(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC721ClaimPhasesV2")||Ye(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV1")||Ye(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC721ClaimPhasesV1")||Ye(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?n2.V1:n2.V2}},WL=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. +contract.claimConditions.set([{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(y.snapshot&&y.snapshot.length>0&&y.maxClaimablePerWallet?.toString()==="0"&&y.snapshot.map(E=>typeof E=="string"?0:Number(E.maxClaimable?.toString()||0)).reduce((E,I)=>E+I,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:c,sortedConditions:u}=await zpt(o,await a.getTokenDecimals(),a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion()),l={};c.forEach(y=>{l[y.merkleRoot]=y.snapshotUri});let h=await a.metadata.get(),f=[];if(!jdt.default(h.merkle,l)){let y=await a.metadata.parseInputMetadata({...h,merkle:l}),E=await a.metadata._parseAndUploadMetadata(y);if(vo("setContractURI",a.contractWrapper))f.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[E]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}let m=a.contractWrapper;if(a.isLegacySinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[kL(u[0]),s]));else if(a.isLegacyMultiPhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(kL),s]));else if(a.isNewSinglePhaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[AL(u[0]),s]));else if(a.isNewMultiphaseDrop(m))f.push(m.readContract.interface.encodeFunctionData("setClaimConditions",[u.map(AL),s]));else throw new Error("Contract does not support claim conditions");return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"update",Ee(async(i,s)=>{let o=await this.getAll(),c=await jpt(i,s,o);return await this.set.prepare(c)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e){let t=await this.get(),n=await this.metadata.get();return await RL(t,await this.getTokenDecimals(),this.contractWrapper.getProvider(),n.merkle||{},this.storage,e?.withAllowList||!1)}async get(e){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return SL(t)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return SL(n)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition();return PL(t)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let t=e!==void 0?e:await this.contractWrapper.readContract.getActiveClaimConditionId(),n=await this.contractWrapper.readContract.getClaimConditionById(t);return PL(n)}else throw new Error("Contract does not support claim conditions")}async getAll(e){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let t=await this.contractWrapper.readContract.claimCondition(),n=t.currentStartId.toNumber(),a=t.count.toNumber(),i=[];for(let c=n;cRL(c,o,this.contractWrapper.getProvider(),s.merkle,this.storage,e?.withAllowList||!1)))}else return[await this.getActive(e)]}async canClaim(e,t){return t&&(t=await Re(t)),(await this.getClaimIneligibilityReasons(e,t)).length===0}async getClaimIneligibilityReasons(e,t){let n=[],a,i,s=await this.getTokenDecimals(),o=Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),s);if(t===void 0)try{t=await this.contractWrapper.getSignerAddress()}catch(f){console.warn("failed to get signer address",f)}if(!t)return[ka.NoWallet];let c=await Re(t);try{i=await this.getActive()}catch(f){return uI(f,"!CONDITION")||uI(f,"no active mint condition")?(n.push(ka.NoClaimConditionSet),n):(console.warn("failed to get active claim condition",f),n.push(ka.Unknown),n)}i.availableSupply!=="unlimited"&&Z.ethers.utils.parseUnits(i.availableSupply,s).lt(o)&&n.push(ka.NotEnoughSupply);let l=Z.ethers.utils.stripZeros(i.merkleRootHash).length>0,h=null;if(l){if(h=await this.getClaimerProofs(c),!h&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return n.push(ka.AddressNotAllowed),n;if(h)try{let f=await this.prepareClaim(e,!1,s,c),m;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(a,c,e,f.proofs,f.maxClaimable),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([m]=await this.contractWrapper.readContract.verifyClaimMerkleProof(c,e,{proof:f.proofs,maxQuantityInAllowlist:f.maxClaimable}),!m)return n.push(ka.AddressNotAllowed),n}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),pm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0))return n.push(ka.AddressNotAllowed),n}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),await this.contractWrapper.readContract.verifyClaim(a,c,e,f.currencyAddress,f.price,{proof:f.proofs,quantityLimitPerWallet:f.maxClaimable,currency:f.currencyAddressInProof,pricePerToken:f.priceInProof}),pm(i.maxClaimablePerWallet,s).eq(0)&&f.maxClaimable===Z.ethers.constants.MaxUint256||f.maxClaimable===Z.BigNumber.from(0)))return n.push(ka.AddressNotAllowed),n}catch(f){return console.warn("Merkle proof verification failed:","reason"in f?f.reason:f),n.push(ka.AddressNotAllowed),n}}if(this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let f=await this.getClaimerProofs(c),m=Z.BigNumber.from(0),y=pm(i.maxClaimablePerWallet,s);if(this.isNewSinglePhaseDrop(this.contractWrapper)&&(m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(c)),this.isNewMultiphaseDrop(this.contractWrapper)){let E=await this.contractWrapper.readContract.getActiveClaimConditionId();m=await this.contractWrapper.readContract.getSupplyClaimedByWallet(E,c)}if(f&&(y=pm(f.maxClaimable,s)),(!l||l&&!h)&&(y.lte(m)||y.eq(0)))return n.push(ka.AddressNotAllowed),n}if(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)){let[f,m]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(a=await this.contractWrapper.readContract.getActiveClaimConditionId(),[f,m]=await this.contractWrapper.readContract.getClaimTimestamp(a,c)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([f,m]=await this.contractWrapper.readContract.getClaimTimestamp(c));let y=Z.BigNumber.from(Date.now()).div(1e3);f.gt(0)&&y.lt(m)&&(m.eq(Z.constants.MaxUint256)?n.push(ka.AlreadyClaimed):n.push(ka.WaitBeforeNextClaimTransaction))}if(i.price.gt(0)&&Upt()){let f=i.price.mul(Z.BigNumber.from(e)),m=this.contractWrapper.getProvider();Kh(i.currencyAddress)?(await m.getBalance(c)).lt(f)&&n.push(ka.NotEnoughTokens):(await new Ns(m,i.currencyAddress,vu.default,{}).readContract.balanceOf(c)).lt(f)&&n.push(ka.NotEnoughTokens)}return n}async getClaimerProofs(e,t){let a=(await this.get(t)).merkleRoot;if(Z.ethers.utils.stripZeros(a).length>0){let s=await this.metadata.get(),o=await Re(e);return await Kq(o,a.toString(),s.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async getTokenDecimals(){return Ye(this.contractWrapper,"ERC20")?this.contractWrapper.readContract.decimals():Promise.resolve(0)}async prepareClaim(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3?arguments[3]:void 0,i=a||await this.contractWrapper.getSignerAddress();return Hpt(i,e,await this.getActive(),async()=>(await this.metadata.get()).merkle,n,this.contractWrapper,this.storage,t,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n){let a=await Re(e);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,n.proofs,n.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[a,t,n.currencyAddress,n.price,{proof:n.proofs,maxQuantityInAllowlist:n.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[a,t,n.currencyAddress,n.price,{proof:n.proofs,quantityLimitPerWallet:n.maxClaimable,pricePerToken:n.priceInProof,currency:n.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n){if(n?.pricePerToken)throw new Error("Price per token is be set via claim conditions by calling `contract.erc721.claimConditions.set()`");let a=await this.prepareClaim(t,n?.checkERC20Allowance===void 0?!0:n.checkERC20Allowance,await this.getTokenDecimals());return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(e,t,a),overrides:a.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV2")||Ye(e,"ERC20ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC721ClaimPhasesV2")||Ye(e,"ERC20ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC721ClaimConditionsV1")||Ye(e,"ERC20ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC721ClaimPhasesV1")||Ye(e,"ERC20ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?p2.V1:p2.V2}},oq=class{constructor(e,t,n){var a=this;Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return a.setBatch.prepare([{tokenId:i,claimConditions:s}],o)})),Y._defineProperty(this,"setBatch",Ee(async function(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o={},c=await Promise.all(i.map(async h=>{let{tokenId:f,claimConditions:m}=h,y=m;if(a.isLegacySinglePhaseDrop(a.contractWrapper)){if(s=!0,m.length===0)y=[{startTime:new Date(0),currencyAddress:Z.ethers.constants.AddressZero,price:0,maxClaimableSupply:0,maxClaimablePerWallet:0,waitInSeconds:0,merkleRootHash:Z.utils.hexZeroPad([0],32),snapshot:[]}];else if(m.length>1)throw new Error("Single phase drop contract cannot have multiple claim conditions, only one is allowed")}(a.isNewSinglePhaseDrop(a.contractWrapper)||a.isNewMultiphaseDrop(a.contractWrapper))&&y.forEach(S=>{if(S.snapshot&&S.snapshot.length>0&&(S.maxClaimablePerWallet===void 0||S.maxClaimablePerWallet==="unlimited"))throw new Error(`maxClaimablePerWallet must be set to a specific value when an allowlist is set. Set it to 0 to only allow addresses in the allowlist to claim the amount specified in the allowlist. ex: -contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await Qdt(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!Jlt.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(go("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,sL(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(sL),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,oL(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(oL),s]));else throw new Error("Contract does not support claim conditions")}),Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Ee(async(i,s,o)=>{let c=await this.getAll(i),u=await Jdt(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await lL(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return cL(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return cL(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return uL(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return uL(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;clL(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Re(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[ka.NoWallet];let o=await Re(n);try{s=await this.getActive(e)}catch(y){return W8(y,"!CONDITION")||W8(y,"no active mint condition")?(a.push(ka.NoClaimConditionSet),a):(a.push(ka.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(ka.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(ka.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(ka.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(ka.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(ka.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(ka.AddressNotAllowed),a;let[h,f]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Z.constants.MaxUint256)?a.push(ka.AlreadyClaimed):a.push(ka.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&$dt()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();jh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(ka.NotEnoughTokens):(await new Rs(E,s.currencyAddress,mu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(ka.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Re(t);return await Eq(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Re(a||await this.contractWrapper.getSignerAddress());return Ydt(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Re(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?n2.V1:n2.V2}},UL=class{constructor(e,t){Y._defineProperty(this,"featureName",V8.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Ee(async(n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Re(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},zre=class{constructor(e,t,n){Y._defineProperty(this,"featureName",K8.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new N0(this.contractWrapper,e2,this.storage);this.conditions=new eI(this.contractWrapper,a,this.storage)}},Kre=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new zre(this.erc20,this.contractWrapper,this.storage)}},HL=class{constructor(e,t){Y._defineProperty(this,"featureName",vL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Ee(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Re(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},jL=class{constructor(e,t){Y._defineProperty(this,"featureName",G8.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ye(this.contractWrapper,"ERC20BatchMintable"))return new HL(this.erc20,this.contractWrapper)}},zL=class{constructor(e,t){Y._defineProperty(this,"featureName",bL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await D0(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>une.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();_t.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await fdt.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:wdt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await wc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},KL=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",wL.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Ee(async(a,i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Re(a),await Re(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Ee(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Re(s.toAddress),o])}));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,G8).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Ee(async a=>er(this.mintable?.batch,vL).to.prepare(a))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,V8).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Ee(async(a,i)=>er(this.burnable,V8).from.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>er(this.droppable?.claim,K8).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await M_(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Re(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Re(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Re(e),await Re(t)))}async getMintTransaction(e,t){return er(this.mintable,G8).getMintTransaction(e,t)}get claimConditions(){return er(this.droppable?.claim,K8).conditions}get signature(){return er(this.signatureMintable,bL)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await xp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if(Ye(this.contractWrapper,"ERC20"))return new jL(this,this.contractWrapper)}detectErc20Burnable(){if(Ye(this.contractWrapper,"ERC20Burnable"))return new UL(this,this.contractWrapper)}detectErc20Droppable(){if(Ye(this.contractWrapper,"ERC20ClaimConditionsV1")||Ye(this.contractWrapper,"ERC20ClaimConditionsV2")||Ye(this.contractWrapper,"ERC20ClaimPhasesV1")||Ye(this.contractWrapper,"ERC20ClaimPhasesV2"))return new Kre(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ye(this.contractWrapper,"ERC20SignatureMintable"))return new zL(this.contractWrapper)}},VL=class{constructor(e){Y._defineProperty(this,"featureName",xL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},Vre=class{constructor(e,t){Y._defineProperty(this,"featureName",Y8.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Zdt(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},GL=class{constructor(e,t,n){Y._defineProperty(this,"featureName",TL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new N0(this.contractWrapper,e2,this.storage);this.conditions=new eI(this.contractWrapper,a,this.storage)}},$L=class{constructor(e,t,n){Y._defineProperty(this,"featureName",EL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await c2(a,this.storage,s.toNumber(),i),c=__(o);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if(Ye(this.contractWrapper,"ERC721Revealable"))return new X8(this.contractWrapper,this.storage,$8.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC721ClaimConditionsV1")||Ye(this.contractWrapper,"ERC721ClaimConditionsV2")||Ye(this.contractWrapper,"ERC721ClaimPhasesV1")||Ye(this.contractWrapper,"ERC721ClaimPhasesV2"))return new GL(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ye(this.contractWrapper,"ERC721ClaimCustom"))return new Vre(this.erc721,this.contractWrapper)}},YL=class{constructor(e,t,n){Y._defineProperty(this,"featureName",CL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await c2(i,this.storage),o=await Re(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},JL=class{constructor(e,t,n){Y._defineProperty(this,"featureName",IL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await Ene(i,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Re(e),t)}detectErc721BatchMintable(){if(Ye(this.contractWrapper,"ERC721BatchMintable"))return new YL(this.erc721,this.contractWrapper,this.storage)}},QL=class{constructor(e,t){Y._defineProperty(this,"featureName",Dre.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},ZL=class{constructor(e,t){Y._defineProperty(this,"featureName",x_.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ye(this.contractWrapper,"ERC721Enumerable"))return new QL(this.erc721,this.contractWrapper)}},lDr=xq.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:ki.default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Ps.default(1)}),Gre=class{constructor(e,t,n){Y._defineProperty(this,"featureName",_L.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([Y.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=__(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>Y.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=__(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(l),m),E,I=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(l),m,f]);E=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),F=L[0].args[1],W=L[0].args[2],G=[];for(let K=F;K.lte(W);K=K.add(1))G.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return G}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>lDr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return _t.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:Edt},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await wc(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await D0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await wc(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},XL=class{constructor(e,t){Y._defineProperty(this,"featureName",kL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await D0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await D0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(go("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>bdt.parseAsync(c))),a=n.map(c=>c.metadata),i=await c2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return _t.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await vdt.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:xdt},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:Tdt},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await wc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await wc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ye(this.contractWrapper,"ERC721SignatureMintV1")}},eq=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",AL.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Re(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Re(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),i]}))),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,IL).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Ee(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Ee(async(a,i)=>er(this.mintable?.batch,CL).to.prepare(a,i))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,xL).token.prepare(a))),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>er(this.lazyMintable,EL).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new B0(Y8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cq}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Re(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async getAll(e){return er(this.query,x_).all(e)}async getAllOwners(){return er(this.query,x_).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return er(this.query,x_).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new B0(Y8)}async totalClaimedSupply(){let e=this.contractWrapper;if(go("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(go("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,TL).conditions}get tieredDrop(){return er(this.tieredDropable,_L)}get signature(){return er(this.signatureMintable,kL)}get revealer(){return er(this.lazyMintable?.revealer,$8)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new q8;return Tne(e,t,this.storage)}async nextTokenIdToMint(){if(go("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(go("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ye(this.contractWrapper,"ERC721Supply")||go("nextTokenIdToMint",this.contractWrapper))return new ZL(this,this.contractWrapper)}detectErc721Mintable(){if(Ye(this.contractWrapper,"ERC721Mintable"))return new JL(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ye(this.contractWrapper,"ERC721Burnable"))return new VL(this.contractWrapper)}detectErc721LazyMintable(){if(Ye(this.contractWrapper,"ERC721LazyMintable"))return new $L(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ye(this.contractWrapper,"ERC721TieredDrop"))return new Gre(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ye(this.contractWrapper,"ERC721SignatureMintV1")||Ye(this.contractWrapper,"ERC721SignatureMintV2"))return new XL(this.contractWrapper,this.storage)}},Dlt=pe.z.object({address:ki,quantity:Y.AmountSchema.default(1)}),dDr=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Dlt.parseAsync({address:e})))),pe.z.array(Dlt)]),tq=class{constructor(e){Y._defineProperty(this,"featureName",Jv.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Re(t),n,a]}))),Y._defineProperty(this,"batch",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Re(t),n,a]}))),this.contractWrapper=e}},rq=class{constructor(e,t){Y._defineProperty(this,"featureName",Zv.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function Cne(r,e){try{let t=new Z.ethers.Contract(r,ene.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var $re=class{constructor(e){Y._defineProperty(this,"featureName",J8.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Zdt(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Re(e),t,n],overrides:i})}},Yre=class{constructor(e,t){Y._defineProperty(this,"featureName",SL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new N0(this.contractWrapper,e2,this.storage);this.conditions=new WL(e,n,this.storage)}},nq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",PL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await c2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await Cne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if(Ye(this.contractWrapper,"ERC1155ClaimCustom"))return new $re(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ye(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new Yre(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ye(this.contractWrapper,"ERC1155Revealable"))return new X8(this.contractWrapper,this.storage,T_.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},aq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",ML.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await c2(s,this.storage),u=await Re(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,h,o[f]])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},iq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",Qv.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Ee(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Ene(t.metadata,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(Ye(this.contractWrapper,"ERC1155BatchMintable"))return new aq(this.erc1155,this.contractWrapper,this.storage)}},sq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",RL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await D0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Ee(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(go("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>ydt.parseAsync(u))),n=t.map(u=>u.metadata),a=await c2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();_t.default(s,"No signer available");let c=(await Cne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await gdt.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:_dt},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await wc(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},oq=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",NL.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Re(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await dDr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"mint",Ee(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Ee(async(i,s)=>er(this.mintable,Qv).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Ee(async(i,s)=>er(this.mintable,Qv).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Ee(async(i,s,o)=>er(this.mintable,Qv).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Ee(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Ee(async(i,s)=>er(this.mintable?.batch,ML).to.prepare(i,s))),Y._defineProperty(this,"burn",Ee(async(i,s)=>er(this.burnable,Jv).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Ee(async(i,s,o)=>er(this.burnable,Jv).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Ee(async(i,s)=>er(this.burnable,Jv).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Ee(async(i,s,o)=>er(this.burnable,Jv).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Ee(async(i,s)=>er(this.lazyMintable,PL).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Ee(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Ee(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new B0(J8)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Cq}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Re(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async nextTokenIdToMint(){if(go("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return er(this.query,Zv).all(e)}async totalCount(){return er(this.query,Zv).totalCount()}async totalCirculatingSupply(e){return er(this.query,Zv).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Re(e)),er(this.query,Zv).owned(e)}async getMintTransaction(e,t){return er(this.mintable,Qv).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new B0(J8)}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,SL).conditions}get signature(){return er(this.signatureMintable,RL)}get revealer(){return er(this.lazyMintable?.revealer,T_)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new q8;return Tne(e,t,this.storage)}detectErc1155Enumerable(){if(Ye(this.contractWrapper,"ERC1155Enumerable"))return new rq(this,this.contractWrapper)}detectErc1155Mintable(){if(Ye(this.contractWrapper,"ERC1155Mintable"))return new iq(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ye(this.contractWrapper,"ERC1155Burnable"))return new tq(this.contractWrapper)}detectErc1155LazyMintable(){if(Ye(this.contractWrapper,"ERC1155LazyMintableV1")||Ye(this.contractWrapper,"ERC1155LazyMintableV2"))return new nq(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ye(this.contractWrapper,"ERC1155SignatureMintable"))return new sq(this.contractWrapper,this.storage)}};async function gpt(r,e,t,n,a){try{let i=new Z.Contract(t,vq.default,r),s=await i.supportsInterface(aI),o=await i.supportsInterface(iI);if(s){let c=new Z.Contract(t,xc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,Vu.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function tI(r,e,t,n,a){let i=new Rs(r.getSignerOrProvider(),t,vq.default,r.options),s=await i.readContract.supportsInterface(aI),o=await i.readContract.supportsInterface(iI);if(s){let c=new Rs(r.getSignerOrProvider(),t,xc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Rs(r.getSignerOrProvider(),t,Vu.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function pDr(r){switch(_t.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),_t.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),_t.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),_t.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),_t.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),_t.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":_t.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function hDr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await xp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function fDr(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function S_(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Olt=pe.z.object({assetContractAddress:ki,tokenId:$s,quantity:$s.default(1),currencyContractAddress:ki.default(zu),pricePerToken:Y.AmountSchema,startTimestamp:sI.default(new Date),endTimestamp:oI,isReservedListing:pe.z.boolean().default(!1)}),i2=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(Tl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(Tl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Olt.parseAsync(n);await tI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await wc(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:iL(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"updateListing",Ee(async(n,a)=>{let i=await Olt.parseAsync(a);await tI(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await wc(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:iL(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Ee(async(n,a,i)=>{i&&(i=await Re(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),h=Z.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await D0(this.contractWrapper,h,s.currencyContractAddress,f),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Y._defineProperty(this,"approveBuyerForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Ee(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await Re(a);o===s.currencyContractAddress&&_t.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return _t.default(i===c,"Currency already approved with this price."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Ee(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await Re(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return _t.default(!o.isZero(),"Currency not approved."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new i2(this.contractWrapper),this.encoder=new a2(this.contractWrapper),this.interceptor=new s2(this.contractWrapper),this.estimator=new o2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Re(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Re(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await Re(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Go.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await xp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await dI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await gpt(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,vq.default,a),s=await i.supportsInterface(aI),o=await i.supportsInterface(iI);if(s){let u=(await new Z.Contract(e.assetContractAddress,xc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,Vu.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=mDr.parse(n);await tI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await wc(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await wc(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:iL(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"buyoutAuction",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await M_(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Ee(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await wc(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);_t.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);_t.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await D0(this.contractWrapper,s,i.currencyContractAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Ee(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Ee(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new w_(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new w_(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);_t.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new w_(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new i2(this.contractWrapper),this.encoder=new a2(this.contractWrapper),this.interceptor=new s2(this.contractWrapper),this.estimator=new o2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return xp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Go.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await xp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await xp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await dI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Re(t),s=await Re(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await xp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await yDr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=jh(a.currencyContractAddress)?O8[i].wrapped.address:a.currencyContractAddress,o=await wc(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await D0(this.contractWrapper,o,s,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Ee(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await tI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new i2(this.contractWrapper),this.encoder=new a2(this.contractWrapper),this.interceptor=new s2(this.contractWrapper),this.estimator=new o2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await S_(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Go.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?Go.Expired:Go.Active;break;case 2:t=Go.Completed;break;case 3:t=Go.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await xp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await dI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=jh(e.currencyContractAddress)?O8[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Rs(i,a,mu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Re(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await kl(r,e,t);if(n)return n;let a=await Iq(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Yo(vX())})).default:(await Promise.resolve().then(function(){return Yo(wX())})).default}},O0={name:"TokenERC1155",contractType:"edition",schema:qdt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(xX())})).default}},_p={name:"Marketplace",contractType:"marketplace",schema:pne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(CX())})).default}},hm={name:"MarketplaceV3",contractType:"marketplace-v3",schema:pne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);if(n)return await OL(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Yo(IX())})).default;return await OL(r,a,e,{},t)}},Tp={name:"Multiwrap",contractType:"multiwrap",schema:xpt,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(AX())})).default}},L0={name:"TokenERC721",contractType:"nft-collection",schema:Odt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(SX())})).default}},qh={name:"DropERC721",contractType:"nft-drop",schema:dne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);if(n)return n;let a=await Iq(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Yo(PX())})).default:(await Promise.resolve().then(function(){return Yo(RX())})).default}},Cl={name:"Pack",contractType:"pack",schema:Pdt,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(DX())})).default}},Fh={name:"SignatureDrop",contractType:"signature-drop",schema:dne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);if(n)return n;let a=await Iq(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Yo(OX())})).default:(await Promise.resolve().then(function(){return Yo(LX())})).default}},Wh={name:"Split",contractType:"split",schema:Mdt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(FX())})).default}},q0={name:"DropERC20",contractType:"token-drop",schema:vpt,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);if(n)return n;let a=await Iq(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Yo(HX())})).default:(await Promise.resolve().then(function(){return Yo(jX())})).default}},Uh={name:"TokenERC20",contractType:"token",schema:Bdt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(VX())})).default}},Hh={name:"VoteERC20",contractType:"vote",schema:Udt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await kl(r,e,t);return n||(await Promise.resolve().then(function(){return Yo(JX())})).default}};async function Iq(r,e){try{return await Cne(r,e)}catch{return}}var fm={[Lh.contractType]:Lh,[O0.contractType]:O0,[_p.contractType]:_p,[hm.contractType]:hm,[Tp.contractType]:Tp,[L0.contractType]:L0,[qh.contractType]:qh,[Cl.contractType]:Cl,[Fh.contractType]:Fh,[Wh.contractType]:Wh,[q0.contractType]:q0,[Uh.contractType]:Uh,[Hh.contractType]:Hh},_pt={[Lh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[O0.contractType]:"",[_p.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[hm.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Tp.contractType]:"",[L0.contractType]:"",[qh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Cl.contractType]:"",[Fh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Wh.contractType]:"",[q0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[Uh.contractType]:"",[Hh.contractType]:""},Llt={name:"SmartContract",contractType:"custom",schema:{},roles:yne},Ine={...fm,[Llt.contractType]:Llt};function kne(r){return Object.values(Ine).find(e=>e.name===r)?.contractType||"custom"}function Ane(r){return Object.values(Ine).find(e=>e.contractType===r)?.name}async function Tpt(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Cl.contractType?[]:rne(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case qh.contractType:case L0.contractType:let o=await qh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Fh.contractType:let c=await Fh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case Tp.contractType:let u=await Tp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Lh.contractType:case O0.contractType:let l=await Lh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case q0.contractType:case Uh.contractType:let h=await Uh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case Hh.contractType:let f=await Hh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Z.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Wh.contractType:let m=await Wh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Z.BigNumber.from(I.sharesBps))];case _p.contractType:case hm.contractType:let y=await _p.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Cl.contractType:let E=await Cl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function xDr(r,e){return r||(e?.gatewayUrls?new t2.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new t2.ThirdwebStorage)}var rI=class{constructor(e,t,n){Y._defineProperty(this,"featureName",yL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>Ye(this.contractWrapper,"AppURI")?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return Ye(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():t2.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},dq=class{constructor(e){Y._defineProperty(this,"featureName",hL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Ep.parseAsync(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Ep.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},pq=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await F0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return I_(Ku.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return hpt(Ku.parse(this.contractWrapper.abi),e?.metadata)}},hq=class{get royalties(){return er(this.detectRoyalties(),dL)}get roles(){return er(this.detectRoles(),fL)}get sales(){return er(this.detectPrimarySales(),pL)}get platformFees(){return er(this.detectPlatformFees(),hL)}get owner(){return er(this.detectOwnable(),gL)}get erc20(){return er(this.detectErc20(),wL)}get erc721(){return er(this.detectErc721(),AL)}get erc1155(){return er(this.detectErc1155(),NL)}get app(){return er(this.detectApp(),yL)}get directListings(){return er(this.detectDirectListings(),H8)}get englishAuctions(){return er(this.detectEnglishAuctions(),j8)}get offers(){return er(this.detectOffers(),z8)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Rs(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=n,this.events=new i2(this.contractWrapper),this.encoder=new a2(this.contractWrapper),this.interceptor=new s2(this.contractWrapper),this.estimator=new o2(this.contractWrapper),this.publishedMetadata=new pq(this.contractWrapper,this.storage),this.metadata=new N0(this.contractWrapper,e2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();_t.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Ee(async(a,i)=>{let s=this.getSigner();_t.default(s,"A signer is required");let o=await s.getAddress(),c=await wne(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!Ipt(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Z.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=Npt.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Z.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),Y._defineProperty(this,"unpublish",Ee(async(a,i)=>{let s=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Rs(e,ndt(),SNr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return upt(e,this.storage)}async extractFunctions(e){return lpt(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return k_(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await k_(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Re(e);return F0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return xne(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Re(e),n=await Z8(t,this.getProvider());return _t.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Re(e),n=await this.fetchCompilerMetadataFromAddress(t);return await kq(n,this.storage)}async getPublisherProfile(e){let t=await Re(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Opt.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Re(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Re(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return _t.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Lpt.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},Jre=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Re(o.address),o.chainId])));return Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Rs(e,mre(),PNr.default,n),this.registryRouter=new Rs(e,mre(),RNr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Re(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},P_=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new lre.default),this.connection=new r2(e,t),this.options=t,this.events=new lre.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zu,a=await Re(e),i=await Re(n),s=this.requireWallet(),o=await wc(this.connection.getProvider(),t,n);if(jh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zu;this.requireWallet();let t=await Re(e),n=this.connection.getProvider(),a;return jh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await xp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await U8(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Be.Localhost||t===Be.Hardhat)return new P_(new Z.ethers.Wallet(tdt,L8(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return _t.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Rs(this.connection.getSignerOrProvider(),e,mu.default,this.options)}},pm=class extends r2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return pm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=L8(t,n);i=e.connect(o)}let s=new pm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=L8(t,n),s=new Z.Wallet(e,i);return new pm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;Tq(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),Xlt(t?.supportedChains);let a=xDr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new P_(e,t),this.deployer=new yq(e,t,a),this.multiChainRegistry=new Jre(e,this.storageHandler,this.options),this._publisher=new fq(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. +contract.claimConditions.set(tokenId, [{ snapshot: [{ address: '0x...', maxClaimable: 1 }], maxClaimablePerWallet: 0 }])`);if(S.snapshot&&S.snapshot.length>0&&S.maxClaimablePerWallet?.toString()==="0"&&S.snapshot.map(L=>typeof L=="string"?0:Number(L.maxClaimable?.toString()||0)).reduce((L,F)=>L+F,0)===0)throw new Error("maxClaimablePerWallet is set to 0, and all addresses in the allowlist have max claimable 0. This means that no one can claim.")});let{snapshotInfos:E,sortedConditions:I}=await zpt(y,0,a.contractWrapper.getProvider(),a.storage,a.getSnapshotFormatVersion());return E.forEach(S=>{o[S.merkleRoot]=S.snapshotUri}),{tokenId:f,sortedConditions:I}})),u=await a.metadata.get(),l=[];for(let h of Object.keys(u.merkle||{}))o[h]=u.merkle[h];if(!jdt.default(u.merkle,o)){let h=await a.metadata.parseInputMetadata({...u,merkle:o}),f=await a.metadata._parseAndUploadMetadata(h);if(vo("setContractURI",a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setContractURI",[f]));else throw new Error("Setting a merkle root requires implementing ContractMetadata in your contract to support storing a merkle root.")}return c.forEach(h=>{let{tokenId:f,sortedConditions:m}=h;if(a.isLegacySinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,kL(m[0]),s]));else if(a.isLegacyMultiPhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(kL),s]));else if(a.isNewSinglePhaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,AL(m[0]),s]));else if(a.isNewMultiphaseDrop(a.contractWrapper))l.push(a.contractWrapper.readContract.interface.encodeFunctionData("setClaimConditions",[f,m.map(AL),s]));else throw new Error("Contract does not support claim conditions")}),Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[l]})})),Y._defineProperty(this,"update",Ee(async(i,s,o)=>{let c=await this.getAll(i),u=await jpt(s,o,c);return await this.set.prepare(i,u)})),this.storage=n,this.contractWrapper=e,this.metadata=t}async getActive(e,t){let n=await this.get(e),a=await this.metadata.get();return await RL(n,0,this.contractWrapper.getProvider(),a.merkle,this.storage,t?.withAllowList||!1)}async get(e,t){if(this.isLegacySinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return SL(n)}else if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return SL(a)}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e);return PL(n)}else if(this.isNewMultiphaseDrop(this.contractWrapper)){let n=t!==void 0?t:await this.contractWrapper.readContract.getActiveClaimConditionId(e),a=await this.contractWrapper.readContract.getClaimConditionById(e,n);return PL(a)}else throw new Error("Contract does not support claim conditions")}async getAll(e,t){if(this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper)){let n=await this.contractWrapper.readContract.claimCondition(e),a=n.currentStartId.toNumber(),i=n.count.toNumber(),s=[];for(let c=a;cRL(c,0,this.contractWrapper.getProvider(),o.merkle,this.storage,t?.withAllowList||!1)))}else return[await this.getActive(e,t)]}async canClaim(e,t,n){return n&&(n=await Re(n)),(await this.getClaimIneligibilityReasons(e,t,n)).length===0}async getClaimIneligibilityReasons(e,t,n){let a=[],i,s;if(n===void 0)try{n=await this.contractWrapper.getSignerAddress()}catch(y){console.warn("failed to get signer address",y)}if(!n)return[ka.NoWallet];let o=await Re(n);try{s=await this.getActive(e)}catch(y){return uI(y,"!CONDITION")||uI(y,"no active mint condition")?(a.push(ka.NoClaimConditionSet),a):(a.push(ka.Unknown),a)}s.availableSupply!=="unlimited"&&Z.BigNumber.from(s.availableSupply).lt(t)&&a.push(ka.NotEnoughSupply);let u=Z.ethers.utils.stripZeros(s.merkleRootHash).length>0,l=null;if(u){if(l=await this.getClaimerProofs(e,o),!l&&(this.isLegacySinglePhaseDrop(this.contractWrapper)||this.isLegacyMultiPhaseDrop(this.contractWrapper)))return a.push(ka.AddressNotAllowed),a;if(l)try{let y=await this.prepareClaim(e,t,!1,o),E;if(this.isLegacyMultiPhaseDrop(this.contractWrapper)){if(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(i,o,e,t,y.proofs,y.maxClaimable),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isLegacySinglePhaseDrop(this.contractWrapper)){if([E]=await this.contractWrapper.readContract.verifyClaimMerkleProof(e,o,t,{proof:y.proofs,maxQuantityInAllowlist:y.maxClaimable}),!E)return a.push(ka.AddressNotAllowed),a}else if(this.isNewSinglePhaseDrop(this.contractWrapper)){if(await this.contractWrapper.readContract.verifyClaim(e,o,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0))return a.push(ka.AddressNotAllowed),a}else if(this.isNewMultiphaseDrop(this.contractWrapper)&&(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),await this.contractWrapper.readContract.verifyClaim(i,o,e,t,y.currencyAddress,y.price,{proof:y.proofs,quantityLimitPerWallet:y.maxClaimable,currency:y.currencyAddressInProof,pricePerToken:y.priceInProof}),s.maxClaimablePerWallet==="0"&&y.maxClaimable===Z.ethers.constants.MaxUint256||y.maxClaimable===Z.BigNumber.from(0)))return a.push(ka.AddressNotAllowed),a}catch(y){return console.warn("Merkle proof verification failed:","reason"in y?y.reason:y),a.push(ka.AddressNotAllowed),a}}if((this.isNewSinglePhaseDrop(this.contractWrapper)||this.isNewMultiphaseDrop(this.contractWrapper))&&(!u||u&&!l)&&s.maxClaimablePerWallet==="0")return a.push(ka.AddressNotAllowed),a;let[h,f]=[Z.BigNumber.from(0),Z.BigNumber.from(0)];this.isLegacyMultiPhaseDrop(this.contractWrapper)?(i=await this.contractWrapper.readContract.getActiveClaimConditionId(e),[h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,i,o)):this.isLegacySinglePhaseDrop(this.contractWrapper)&&([h,f]=await this.contractWrapper.readContract.getClaimTimestamp(e,o));let m=Z.BigNumber.from(Date.now()).div(1e3);if(h.gt(0)&&m.lt(f)&&(f.eq(Z.constants.MaxUint256)?a.push(ka.AlreadyClaimed):a.push(ka.WaitBeforeNextClaimTransaction)),s.price.gt(0)&&Upt()){let y=s.price.mul(t),E=this.contractWrapper.getProvider();Kh(s.currencyAddress)?(await E.getBalance(o)).lt(y)&&a.push(ka.NotEnoughTokens):(await new Ns(E,s.currencyAddress,vu.default,{}).readContract.balanceOf(o)).lt(y)&&a.push(ka.NotEnoughTokens)}return a}async getClaimerProofs(e,t,n){let i=(await this.get(e,n)).merkleRoot;if(Z.ethers.utils.stripZeros(i).length>0){let o=await this.metadata.get(),c=await Re(t);return await Kq(c,i.toString(),o.merkle,this.contractWrapper.getProvider(),this.storage,this.getSnapshotFormatVersion())}else return null}async prepareClaim(e,t,n,a){let i=await Re(a||await this.contractWrapper.getSignerAddress());return Hpt(i,t,await this.getActive(e),async()=>(await this.metadata.get()).merkle,0,this.contractWrapper,this.storage,n,this.getSnapshotFormatVersion())}async getClaimArguments(e,t,n,a){let i=await Re(t);return this.isLegacyMultiPhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,a.proofs,a.maxClaimable]:this.isLegacySinglePhaseDrop(this.contractWrapper)?[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,maxQuantityInAllowlist:a.maxClaimable},Z.ethers.utils.toUtf8Bytes("")]:[i,e,n,a.currencyAddress,a.price,{proof:a.proofs,quantityLimitPerWallet:a.maxClaimable,pricePerToken:a.priceInProof,currency:a.currencyAddressInProof},Z.ethers.utils.toUtf8Bytes("")]}async getClaimTransaction(e,t,n,a){if(a?.pricePerToken)throw new Error("Price per token should be set via claim conditions by calling `contract.erc1155.claimConditions.set()`");let i=await this.prepareClaim(t,n,a?.checkERC20Allowance||!0);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:await this.getClaimArguments(t,e,n,i),overrides:i.overrides})}isNewSinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV2")}isNewMultiphaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV2")}isLegacySinglePhaseDrop(e){return Ye(e,"ERC1155ClaimConditionsV1")}isLegacyMultiPhaseDrop(e){return Ye(e,"ERC1155ClaimPhasesV1")}getSnapshotFormatVersion(){return this.isLegacyMultiPhaseDrop(this.contractWrapper)||this.isLegacySinglePhaseDrop(this.contractWrapper)?p2.V1:p2.V2}},cq=class{constructor(e,t){Y._defineProperty(this,"featureName",mI.name),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await this.erc20.normalizeAmount(n)]}))),Y._defineProperty(this,"from",Ee(async(n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnFrom",args:[await Re(n),await this.erc20.normalizeAmount(a)]}))),this.erc20=e,this.contractWrapper=t}},bne=class{constructor(e,t,n){Y._defineProperty(this,"featureName",fI.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.erc20.normalizeAmount(s);return await this.conditions.getClaimTransaction(i,c,o)})),this.erc20=e,this.contractWrapper=t,this.storage=n;let a=new F0(this.contractWrapper,u2,this.storage);this.conditions=new TI(this.contractWrapper,a,this.storage)}},vne=class{constructor(e,t,n){Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"storage",void 0),this.erc20=e,this.contractWrapper=t,this.storage=n,this.claim=new bne(this.erc20,this.contractWrapper,this.storage)}},uq=class{constructor(e,t){Y._defineProperty(this,"featureName",WL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"to",Ee(async n=>{let a=[];for(let i of n)a.push(this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[await Re(i.toAddress),await this.erc20.normalizeAmount(i.amount)]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[a]})})),this.erc20=e,this.contractWrapper=t}},lq=class{constructor(e,t){Y._defineProperty(this,"featureName",yI.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc20",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(n,a)=>await this.getMintTransaction(n,a))),this.erc20=e,this.contractWrapper=t,this.batch=this.detectErc20BatchMintable()}async getMintTransaction(e,t){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),await this.erc20.normalizeAmount(t)]})}detectErc20BatchMintable(){if(Ye(this.contractWrapper,"ERC20BatchMintable"))return new uq(this.erc20,this.contractWrapper)}},dq=class{constructor(e,t){Y._defineProperty(this,"featureName",FL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.mapPayloadToContractStruct(a),o=await this.contractWrapper.getCallOverrides();return await U0(this.contractWrapper,Z.BigNumber.from(s.price),a.currencyAddress,o),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[s,i],overrides:o})})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let i=(await Promise.all(n.map(async s=>{let o=await this.mapPayloadToContractStruct(s.payload),c=s.signature,u=s.payload.price;if(Z.BigNumber.from(u).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:o,signature:c}}))).map(s=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[s.message,s.signature]));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),this.contractWrapper=e,this.roles=t}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(s=>Lne.parseAsync(s))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();Tt.default(a,"No signer available");let i=await this.contractWrapper.readContract.name();return await Promise.all(t.map(async s=>{let o=await opt.parseAsync(s),c=await this.contractWrapper.signTypedData(a,{name:i,version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:hpt},await this.mapPayloadToContractStruct(o));return{payload:o,signature:c.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ec(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.parseUnits(e.quantity,await this.contractWrapper.readContract.decimals());return{to:e.to,primarySaleRecipient:e.primarySaleRecipient,quantity:n,price:t,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid}}},pq=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",UL.name),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"droppable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transfer",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferFrom",Ee(async(a,i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom",args:[await Re(a),await Re(i),await this.normalizeAmount(s)]}))),Y._defineProperty(this,"setAllowance",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),await this.normalizeAmount(i)]}))),Y._defineProperty(this,"transferBatch",Ee(async a=>{let i=await Promise.all(a.map(async s=>{let o=await this.normalizeAmount(s.amount);return this.contractWrapper.readContract.interface.encodeFunctionData("transfer",[await Re(s.toAddress),o])}));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[i]})})),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,yI).to.prepare(a,i))),Y._defineProperty(this,"mintBatchTo",Ee(async a=>er(this.mintable?.batch,WL).to.prepare(a))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,mI).tokens.prepare(a))),Y._defineProperty(this,"burnFrom",Ee(async(a,i)=>er(this.burnable,mI).from.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>er(this.droppable?.claim,fI).to.prepare(a,i,s))),this.contractWrapper=e,this.storage=t,this.mintable=this.detectErc20Mintable(),this.burnable=this.detectErc20Burnable(),this.droppable=this.detectErc20Droppable(),this.signatureMintable=this.detectErc20SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(){return await Yx(this.contractWrapper.getProvider(),this.getAddress())}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async balanceOf(e){return this.getValue(await this.contractWrapper.readContract.balanceOf(await Re(e)))}async totalSupply(){return await this.getValue(await this.contractWrapper.readContract.totalSupply())}async allowance(e){return await this.allowanceOf(await this.contractWrapper.getSignerAddress(),await Re(e))}async allowanceOf(e,t){return await this.getValue(await this.contractWrapper.readContract.allowance(await Re(e),await Re(t)))}async getMintTransaction(e,t){return er(this.mintable,yI).getMintTransaction(e,t)}get claimConditions(){return er(this.droppable?.claim,fI).conditions}get signature(){return er(this.signatureMintable,FL)}async normalizeAmount(e){let t=await this.contractWrapper.readContract.decimals();return Z.ethers.utils.parseUnits(Y.AmountSchema.parse(e),t)}async getValue(e){return await Tp(this.contractWrapper.getProvider(),this.getAddress(),Z.BigNumber.from(e))}detectErc20Mintable(){if(Ye(this.contractWrapper,"ERC20"))return new lq(this,this.contractWrapper)}detectErc20Burnable(){if(Ye(this.contractWrapper,"ERC20Burnable"))return new cq(this,this.contractWrapper)}detectErc20Droppable(){if(Ye(this.contractWrapper,"ERC20ClaimConditionsV1")||Ye(this.contractWrapper,"ERC20ClaimConditionsV2")||Ye(this.contractWrapper,"ERC20ClaimPhasesV1")||Ye(this.contractWrapper,"ERC20ClaimPhasesV2"))return new vne(this,this.contractWrapper,this.storage)}detectErc20SignatureMintable(){if(Ye(this.contractWrapper,"ERC20SignatureMintable"))return new dq(this.contractWrapper)}},hq=class{constructor(e){Y._defineProperty(this,"featureName",HL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"token",Ee(async t=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[t]}))),this.contractWrapper=e}},wne=class{constructor(e,t){Y._defineProperty(this,"featureName",bI.name),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(n,a,i)=>{let s=await this.getClaimTransaction(n,a,i);return s.setParse(o=>{let u=this.contractWrapper.parseLogs("TokensClaimed",o?.logs)[0].args.startTokenId,l=u.add(a),h=[];for(let f=u;f.lt(l);f=f.add(1))h.push({id:f,receipt:o,data:()=>this.erc721.get(f)});return h}),s})),this.erc721=e,this.contractWrapper=t}async getClaimTransaction(e,t,n){let a={};return n&&n.pricePerToken&&(a=await Kpt(this.contractWrapper,n.pricePerToken,t,n.currencyAddress,n.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[e,t],overrides:a})}},fq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",zL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(i,s,o)=>{let c=await this.conditions.getClaimTransaction(i,s,o);return c.setParse(u=>{let h=this.contractWrapper.parseLogs("TokensClaimed",u?.logs)[0].args.startTokenId,f=h.add(s),m=[];for(let y=h;y.lt(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.get(y)});return m}),c})),this.erc721=e,this.contractWrapper=t,this.storage=n;let a=new F0(this.contractWrapper,u2,this.storage);this.conditions=new TI(this.contractWrapper,a,this.storage)}},mq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",KL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc721.nextTokenIdToMint(),o=await g2(a,this.storage,s.toNumber(),i),c=Fx(o);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,c.endsWith("/")?c:`${c}/`,Z.ethers.utils.toUtf8Bytes("")],parse:u=>{let l=this.contractWrapper.parseLogs("TokensLazyMinted",u?.logs),h=l[0].args.startTokenId,f=l[0].args.endTokenId,m=[];for(let y=h;y.lte(f);y=y.add(1))m.push({id:y,receipt:u,data:()=>this.erc721.getTokenMetadata(y)});return m}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.revealer=this.detectErc721Revealable(),this.claimWithConditions=this.detectErc721ClaimableWithConditions(),this.claim=this.detectErc721Claimable()}detectErc721Revealable(){if(Ye(this.contractWrapper,"ERC721Revealable"))return new xI(this.contractWrapper,this.storage,gI.name,()=>this.erc721.nextTokenIdToMint())}detectErc721ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC721ClaimConditionsV1")||Ye(this.contractWrapper,"ERC721ClaimConditionsV2")||Ye(this.contractWrapper,"ERC721ClaimPhasesV1")||Ye(this.contractWrapper,"ERC721ClaimPhasesV2"))return new fq(this.erc721,this.contractWrapper,this.storage)}detectErc721Claimable(){if(Ye(this.contractWrapper,"ERC721ClaimCustom"))return new wne(this.erc721,this.contractWrapper)}},yq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",GL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await g2(i,this.storage),o=await Re(a),c=await Promise.all(s.map(async u=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[o,u])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[c],parse:u=>{let l=this.contractWrapper.parseLogs("TokensMinted",u.logs);if(l.length===0||l.length{let f=h.args.tokenIdMinted;return{id:f,receipt:u,data:()=>this.erc721.get(f)}})}})})),this.erc721=e,this.contractWrapper=t,this.storage=n}},gq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",VL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await Zne(i,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),s],parse:o=>{let c=this.contractWrapper.parseLogs("Transfer",o?.logs);if(c.length===0)throw new Error("TransferEvent event not found");let u=c[0].args.tokenId;return{id:u,receipt:o,data:()=>this.erc721.get(u)}}})})),this.erc721=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc721BatchMintable()}async getMintTransaction(e,t){return this.to.prepare(await Re(e),t)}detectErc721BatchMintable(){if(Ye(this.contractWrapper,"ERC721BatchMintable"))return new yq(this.erc721,this.contractWrapper,this.storage)}},bq=class{constructor(e,t){Y._defineProperty(this,"featureName",une.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),this.erc721=e,this.contractWrapper=t}async all(e){let t=await this.tokenIds(e);return await Promise.all(t.map(n=>this.erc721.get(n.toString())))}async tokenIds(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.balanceOf(t),a=Array.from(Array(n.toNumber()).keys());return await Promise.all(a.map(i=>this.contractWrapper.readContract.tokenOfOwnerByIndex(t,i)))}},vq=class{constructor(e,t){Y._defineProperty(this,"featureName",qx.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"owned",void 0),this.erc721=e,this.contractWrapper=t,this.owned=this.detectErc721Owned()}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=await this.erc721.nextTokenIdToMint(),i=Math.min(a.toNumber(),t+n);return await Promise.all([...Array(i-t).keys()].map(s=>this.erc721.get((t+s).toString())))}async allOwners(){return Promise.all([...new Array((await this.totalCount()).toNumber()).keys()].map(async e=>({tokenId:e,owner:await this.erc721.ownerOf(e).catch(()=>Z.constants.AddressZero)})))}async totalCount(){return await this.erc721.nextTokenIdToMint()}async totalCirculatingSupply(){return await this.contractWrapper.readContract.totalSupply()}detectErc721Owned(){if(Ye(this.contractWrapper,"ERC721Enumerable"))return new bq(this.erc721,this.contractWrapper)}},yOr=Hq.extend({tierPriority:pe.z.array(pe.z.string()),royaltyRecipient:ki.default(Z.constants.AddressZero),royaltyBps:Y.BasisPointsSchema.default(0),quantity:Ms.default(1)}),_ne=class{constructor(e,t,n){Y._defineProperty(this,"featureName",jL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc721",void 0),Y._defineProperty(this,"storage",void 0),this.erc721=e,this.contractWrapper=t,this.storage=n}async getMetadataInTier(e){let n=(await this.contractWrapper.readContract.getMetadataForAllTiers()).find(i=>i.tier===e);if(!n)throw new Error("Tier not found in contract.");return await Promise.all(n.ranges.map((i,s)=>{let o=[],c=n.baseURIs[s];for(let u=i.startIdInclusive.toNumber();u{let s=[];for(let o=i.startIdInclusive.toNumber();othis.erc721.getTokenMetadata(f)});return h}async createDelayedRevealBatchWithTier(e,t,n,a,i){if(!n)throw new Error("Password is required");let s=await this.storage.uploadBatch([Y.CommonNFTInput.parse(e)],{rewriteFileNames:{fileStartNumber:0}}),o=Fx(s),c=await this.erc721.nextTokenIdToMint(),u=await this.storage.uploadBatch(t.map(K=>Y.CommonNFTInput.parse(K)),{onProgress:i?.onProgress,rewriteFileNames:{fileStartNumber:c.toNumber()}}),l=Fx(u),h=await this.contractWrapper.readContract.getBaseURICount(),f=await this.contractWrapper.getChainID(),m=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[n,f,h,this.contractWrapper.readContract.address]),y=await this.contractWrapper.readContract.encryptDecrypt(Z.ethers.utils.toUtf8Bytes(l),m),E,I=Z.ethers.utils.solidityKeccak256(["bytes","bytes","uint256"],[Z.ethers.utils.toUtf8Bytes(l),m,f]);E=Z.ethers.utils.defaultAbiCoder.encode(["bytes","bytes32"],[y,I]);let S=await this.contractWrapper.sendTransaction("lazyMint",[u.length,o.endsWith("/")?o:`${o}/`,a,E]),L=this.contractWrapper.parseLogs("TokensLazyMinted",S?.logs),F=L[0].args[1],W=L[0].args[2],V=[];for(let K=F;K.lte(W);K=K.add(1))V.push({id:K,receipt:S,data:()=>this.erc721.getTokenMetadata(K)});return V}async reveal(e,t){if(!t)throw new Error("Password is required");let n=await this.contractWrapper.getChainID(),a=Z.ethers.utils.solidityKeccak256(["string","uint256","uint256","address"],[t,n,e,this.contractWrapper.readContract.address]);try{let i=await this.contractWrapper.callStatic().reveal(e,a);if(!i.includes("://")||!i.endsWith("/"))throw new Error("invalid password")}catch{throw new Error("invalid password")}return{receipt:await this.contractWrapper.sendTransaction("reveal",[e,a])}}async generate(e){let[t]=await this.generateBatch([e]);return t}async generateBatch(e){let t=await Promise.all(e.map(i=>yOr.parseAsync(i))),n=await this.contractWrapper.getChainID(),a=this.contractWrapper.getSigner();return Tt.default(a,"No signer available"),await Promise.all(t.map(async i=>{let s=await this.contractWrapper.signTypedData(a,{name:"SignatureAction",version:"1",chainId:n,verifyingContract:this.contractWrapper.readContract.address},{GenericRequest:gpt},await this.mapPayloadToContractStruct(i));return{payload:i,signature:s.toString()}}))}async verify(e){let t=await this.mapPayloadToContractStruct(e.payload);return(await this.contractWrapper.readContract.verify(t,e.signature))[0]}async claimWithSignature(e){let t=await this.mapPayloadToContractStruct(e.payload),n=await Ec(this.contractWrapper.getProvider(),e.payload.price,e.payload.currencyAddress),a=await this.contractWrapper.getCallOverrides();await U0(this.contractWrapper,n,e.payload.currencyAddress,a);let i=await this.contractWrapper.sendTransaction("claimWithSignature",[t,e.signature],a),s=this.contractWrapper.parseLogs("TokensClaimed",i?.logs),o=s[0].args.startTokenId,c=o.add(s[0].args.quantityClaimed),u=[];for(let l=o;l.lt(c);l=l.add(1))u.push({id:l,receipt:i,data:()=>this.erc721.get(l)});return u}async mapPayloadToContractStruct(e){let t=await Ec(this.contractWrapper.getProvider(),e.price,e.currencyAddress),n=Z.ethers.utils.defaultAbiCoder.encode(["string[]","address","address","uint256","address","uint256","uint256","address"],[e.tierPriority,e.to,e.royaltyRecipient,e.royaltyBps,e.primarySaleRecipient,e.quantity,t,e.currencyAddress]);return{uid:e.uid,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,data:n}}},wq=class{constructor(e,t){Y._defineProperty(this,"featureName",$L.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"mint",Ee(async n=>{let a=n.payload,i=n.signature,s=await this.contractWrapper.getCallOverrides(),o=c=>{let u=this.contractWrapper.parseLogs("TokensMintedWithSignature",c.logs);if(u.length===0)throw new Error("No MintWithSignature event found");return{id:u[0].args.tokenIdMinted,receipt:c}};if(await this.isLegacyNFTContract()){let c=await this.mapLegacyPayloadToContractStruct(a),u=c.price;return await U0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}else{let c=await this.mapPayloadToContractStruct(a),u=c.pricePerToken.mul(c.quantity);return await U0(this.contractWrapper,u,a.currencyAddress,s),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[c,i],overrides:s,parse:o})}})),Y._defineProperty(this,"mintBatch",Ee(async n=>{let a=await this.isLegacyNFTContract(),s=(await Promise.all(n.map(async o=>{let c;a?c=await this.mapLegacyPayloadToContractStruct(o.payload):c=await this.mapPayloadToContractStruct(o.payload);let u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>a?this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]):this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not available on this contract!")})),this.contractWrapper=e,this.storage=t}async verify(e){let t=await this.isLegacyNFTContract(),n=e.payload,a=e.signature,i,s;if(t){let o=this.contractWrapper.readContract;i=await this.mapLegacyPayloadToContractStruct(n),s=await o.verify(i,a)}else{let o=this.contractWrapper.readContract;i=await this.mapPayloadToContractStruct(n),s=await o.verify(i,a)}return s[0]}async generate(e){return(await this.generateBatch([e]))[0]}async generateBatch(e){let t=await this.isLegacyNFTContract(),n=await Promise.all(e.map(c=>dpt.parseAsync(c))),a=n.map(c=>c.metadata),i=await g2(a,this.storage),s=await this.contractWrapper.getChainID(),o=this.contractWrapper.getSigner();return Tt.default(o,"No signer available"),await Promise.all(n.map(async(c,u)=>{let l=i[u],h=await ppt.parseAsync({...c,uri:l}),f;return t?f=await this.contractWrapper.signTypedData(o,{name:"TokenERC721",version:"1",chainId:s,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:fpt},await this.mapLegacyPayloadToContractStruct(h)):f=await this.contractWrapper.signTypedData(o,{name:"SignatureMintERC721",version:"1",chainId:s,verifyingContract:await this.contractWrapper.readContract.address},{MintRequest:ypt},await this.mapPayloadToContractStruct(h)),{payload:h,signature:f.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ec(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid}}async mapLegacyPayloadToContractStruct(e){let t=await Ec(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,price:t,uri:e.uri,currency:e.currencyAddress,validityEndTimestamp:e.mintEndTime,validityStartTimestamp:e.mintStartTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}async isLegacyNFTContract(){return Ye(this.contractWrapper,"ERC721SignatureMintV1")}},_q=class{get chainId(){return this._chainId}constructor(e,t,n){Y._defineProperty(this,"featureName",YL.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"tieredDropable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async(a,i)=>{let s=await this.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"transferFrom(address,address,uint256)",args:[s,await Re(a),i]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[await Re(a),i]}))),Y._defineProperty(this,"setApprovalForToken",Ee(async(a,i)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approve",args:[await Re(a),i]}))),Y._defineProperty(this,"mint",Ee(async a=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintTo",Ee(async(a,i)=>er(this.mintable,VL).to.prepare(a,i))),Y._defineProperty(this,"mintBatch",Ee(async a=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),a))),Y._defineProperty(this,"mintBatchTo",Ee(async(a,i)=>er(this.mintable?.batch,GL).to.prepare(a,i))),Y._defineProperty(this,"burn",Ee(async a=>er(this.burnable,HL).token.prepare(a))),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>er(this.lazyMintable,KL).lazyMint.prepare(a,i))),Y._defineProperty(this,"claim",Ee(async(a,i)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),a,i))),Y._defineProperty(this,"claimTo",Ee(async(a,i,s)=>{let o=this.lazyMintable?.claimWithConditions,c=this.lazyMintable?.claim;if(o)return o.to.prepare(a,i,s);if(c)return c.to.prepare(a,i,s);throw new W0(bI)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc721Enumerable(),this.mintable=this.detectErc721Mintable(),this.burnable=this.detectErc721Burnable(),this.lazyMintable=this.detectErc721LazyMintable(),this.tieredDropable=this.detectErc721TieredDrop(),this.signatureMintable=this.detectErc721SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.ownerOf(e).catch(()=>Z.constants.AddressZero),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Gq}))]);return{owner:t,metadata:n,type:"ERC721",supply:"1"}}async ownerOf(e){return await this.contractWrapper.readContract.ownerOf(e)}async balanceOf(e){return await this.contractWrapper.readContract.balanceOf(await Re(e))}async balance(){return await this.balanceOf(await this.contractWrapper.getSignerAddress())}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async getAll(e){return er(this.query,qx).all(e)}async getAllOwners(){return er(this.query,qx).allOwners()}async totalCount(){return this.nextTokenIdToMint()}async totalCirculatingSupply(){return er(this.query,qx).totalCirculatingSupply()}async getOwned(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.all(e);{let t=e||await this.contractWrapper.getSignerAddress(),n=await this.getAllOwners();return Promise.all((n||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(async a=>await this.get(a.tokenId)))}}async getOwnedTokenIds(e){if(e&&(e=await Re(e)),this.query?.owned)return this.query.owned.tokenIds(e);{let t=e||await this.contractWrapper.getSignerAddress();return(await this.getAllOwners()||[]).filter(a=>t?.toLowerCase()===a.owner?.toLowerCase()).map(a=>Z.BigNumber.from(a.tokenId))}}async getMintTransaction(e,t){return this.mintTo.prepare(e,t)}async getClaimTransaction(e,t,n){let a=this.lazyMintable?.claimWithConditions,i=this.lazyMintable?.claim;if(a)return a.conditions.getClaimTransaction(e,t,n);if(i)return i.getClaimTransaction(e,t,n);throw new W0(bI)}async totalClaimedSupply(){let e=this.contractWrapper;if(vo("nextTokenIdToClaim",e))return e.readContract.nextTokenIdToClaim();if(vo("totalMinted",e))return e.readContract.totalMinted();throw new Error("No function found on contract to get total claimed supply")}async totalUnclaimedSupply(){return(await this.nextTokenIdToMint()).sub(await this.totalClaimedSupply())}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,zL).conditions}get tieredDrop(){return er(this.tieredDropable,jL)}get signature(){return er(this.signatureMintable,$L)}get revealer(){return er(this.lazyMintable?.revealer,gI)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.tokenURI(e);if(!t)throw new oI;return Qne(e,t,this.storage)}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();if(vo("totalSupply",this.contractWrapper))return await this.contractWrapper.readContract.totalSupply();throw new Error("Contract requires either `nextTokenIdToMint` or `totalSupply` function available to determine the next token ID to mint")}detectErc721Enumerable(){if(Ye(this.contractWrapper,"ERC721Supply")||vo("nextTokenIdToMint",this.contractWrapper))return new vq(this,this.contractWrapper)}detectErc721Mintable(){if(Ye(this.contractWrapper,"ERC721Mintable"))return new gq(this,this.contractWrapper,this.storage)}detectErc721Burnable(){if(Ye(this.contractWrapper,"ERC721Burnable"))return new hq(this.contractWrapper)}detectErc721LazyMintable(){if(Ye(this.contractWrapper,"ERC721LazyMintable"))return new mq(this,this.contractWrapper,this.storage)}detectErc721TieredDrop(){if(Ye(this.contractWrapper,"ERC721TieredDrop"))return new _ne(this,this.contractWrapper,this.storage)}detectErc721SignatureMintable(){if(Ye(this.contractWrapper,"ERC721SignatureMintV1")||Ye(this.contractWrapper,"ERC721SignatureMintV2"))return new wq(this.contractWrapper,this.storage)}},Adt=pe.z.object({address:ki,quantity:Y.AmountSchema.default(1)}),gOr=pe.z.union([pe.z.array(pe.z.string()).transform(async r=>await Promise.all(r.map(e=>Adt.parseAsync({address:e})))),pe.z.array(Adt)]),xq=class{constructor(e){Y._defineProperty(this,"featureName",i2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"tokens",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.from.prepare(a,t,n)})),Y._defineProperty(this,"from",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burn",args:[await Re(t),n,a]}))),Y._defineProperty(this,"batch",Ee(async(t,n)=>{let a=await this.contractWrapper.getSignerAddress();return this.batchFrom.prepare(a,t,n)})),Y._defineProperty(this,"batchFrom",Ee(async(t,n,a)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"burnBatch",args:[await Re(t),n,a]}))),this.contractWrapper=e}},Tq=class{constructor(e,t){Y._defineProperty(this,"featureName",o2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),this.erc1155=e,this.contractWrapper=t}async all(e){let t=Z.BigNumber.from(e?.start||0).toNumber(),n=Z.BigNumber.from(e?.count||Y.DEFAULT_QUERY_ALL_COUNT).toNumber(),a=Math.min((await this.totalCount()).toNumber(),t+n);return await Promise.all([...Array(a-t).keys()].map(i=>this.erc1155.get((t+i).toString())))}async totalCount(){return await this.contractWrapper.readContract.nextTokenIdToMint()}async totalCirculatingSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async owned(e){let t=await Re(e||await this.contractWrapper.getSignerAddress()),n=await this.contractWrapper.readContract.nextTokenIdToMint(),i=(await this.contractWrapper.readContract.balanceOfBatch(Array(n.toNumber()).fill(t),Array.from(Array(n.toNumber()).keys()))).map((s,o)=>({tokenId:o,balance:s})).filter(s=>s.balance.gt(0));return await Promise.all(i.map(async s=>({...await this.erc1155.get(s.tokenId.toString()),owner:t,quantityOwned:s.balance.toString()})))}};async function Xne(r,e){try{let t=new Z.ethers.Contract(r,Ane.default,e),[n,a]=await Promise.all([Z.ethers.utils.toUtf8String(await t.contractType()).replace(/\x00/g,""),await t.contractVersion()]);return{type:n,version:a}}catch{return}}var xne=class{constructor(e){Y._defineProperty(this,"featureName",vI.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"to",Ee(async(t,n,a,i)=>await this.getClaimTransaction(t,n,a,i))),this.contractWrapper=e}async getClaimTransaction(e,t,n,a){let i={};return a&&a.pricePerToken&&(i=await Kpt(this.contractWrapper,a.pricePerToken,n,a.currencyAddress,a.checkERC20Allowance)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"claim",args:[await Re(e),t,n],overrides:i})}},Tne=class{constructor(e,t){Y._defineProperty(this,"featureName",JL.name),Y._defineProperty(this,"conditions",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i,s,o)=>await this.conditions.getClaimTransaction(a,i,s,o))),this.contractWrapper=e,this.storage=t;let n=new F0(this.contractWrapper,u2,this.storage);this.conditions=new oq(e,n,this.storage)}},Eq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",QL.name),Y._defineProperty(this,"revealer",void 0),Y._defineProperty(this,"claimWithConditions",void 0),Y._defineProperty(this,"claim",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"lazyMint",Ee(async(a,i)=>{let s=await this.erc1155.nextTokenIdToMint(),o=await g2(a,this.storage,s.toNumber(),i),c=o[0].substring(0,o[0].lastIndexOf("/"));for(let h=0;h{let f=this.contractWrapper.parseLogs("TokensLazyMinted",h?.logs),m=f[0].args.startTokenId,y=f[0].args.endTokenId,E=[];for(let I=m;I.lte(y);I=I.add(1))E.push({id:I,receipt:h,data:()=>this.erc1155.getTokenMetadata(I)});return E},l=await Xne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider());return this.isLegacyEditionDropContract(this.contractWrapper,l)?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`],parse:u}):Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"lazyMint",args:[o.length,`${c.endsWith("/")?c:`${c}/`}`,Z.ethers.utils.toUtf8Bytes("")],parse:u})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.claim=this.detectErc1155Claimable(),this.claimWithConditions=this.detectErc1155ClaimableWithConditions(),this.revealer=this.detectErc1155Revealable()}detectErc1155Claimable(){if(Ye(this.contractWrapper,"ERC1155ClaimCustom"))return new xne(this.contractWrapper)}detectErc1155ClaimableWithConditions(){if(Ye(this.contractWrapper,"ERC1155ClaimConditionsV1")||Ye(this.contractWrapper,"ERC1155ClaimConditionsV2")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV1")||Ye(this.contractWrapper,"ERC1155ClaimPhasesV2"))return new Tne(this.contractWrapper,this.storage)}detectErc1155Revealable(){if(Ye(this.contractWrapper,"ERC1155Revealable"))return new xI(this.contractWrapper,this.storage,Wx.name,()=>this.erc1155.nextTokenIdToMint())}isLegacyEditionDropContract(e,t){return t&&t.type==="DropERC1155"&&t.version<3||!1}},Cq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",XL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=i.map(h=>h.metadata),o=i.map(h=>h.supply),c=await g2(s,this.storage),u=await Re(a),l=await Promise.all(c.map(async(h,f)=>this.contractWrapper.readContract.interface.encodeFunctionData("mintTo",[u,Z.ethers.constants.MaxUint256,h,o[f]])));return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[l],parse:h=>{let f=this.contractWrapper.parseLogs("TokensMinted",h.logs);if(f.length===0||f.length{let y=m.args.tokenIdMinted;return{id:y,receipt:h,data:()=>this.erc1155.get(y)}})}})})),this.erc1155=e,this.contractWrapper=t,this.storage=n}},Iq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",s2.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"erc1155",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"batch",void 0),Y._defineProperty(this,"to",Ee(async(a,i)=>{let s=await this.getMintTransaction(a,i);return s.setParse(o=>{let c=this.contractWrapper.parseLogs("TransferSingle",o?.logs);if(c.length===0)throw new Error("TransferSingleEvent event not found");let u=c[0].args.id;return{id:u,receipt:o,data:()=>this.erc1155.get(u.toString())}}),s})),Y._defineProperty(this,"additionalSupplyTo",Ee(async(a,i,s)=>{let o=await this.erc1155.getTokenMetadata(i);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(a),i,o.uri,s],parse:c=>({id:Z.BigNumber.from(i),receipt:c,data:()=>this.erc1155.get(i)})})})),this.erc1155=e,this.contractWrapper=t,this.storage=n,this.batch=this.detectErc1155BatchMintable()}async getMintTransaction(e,t){let n=await Zne(t.metadata,this.storage);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintTo",args:[await Re(e),Z.ethers.constants.MaxUint256,n,t.supply]})}detectErc1155BatchMintable(){if(Ye(this.contractWrapper,"ERC1155BatchMintable"))return new Cq(this.erc1155,this.contractWrapper,this.storage)}},kq=class{constructor(e,t,n){Y._defineProperty(this,"featureName",ZL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"roles",void 0),Y._defineProperty(this,"mint",Ee(async a=>{let i=a.payload,s=a.signature,o=await this.mapPayloadToContractStruct(i),c=await this.contractWrapper.getCallOverrides();return await U0(this.contractWrapper,o.pricePerToken.mul(o.quantity),i.currencyAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"mintWithSignature",args:[o,s],overrides:c,parse:u=>{let l=this.contractWrapper.parseLogs("TokensMintedWithSignature",u.logs);if(l.length===0)throw new Error("No MintWithSignature event found");return{id:l[0].args.tokenIdMinted,receipt:u}}})})),Y._defineProperty(this,"mintBatch",Ee(async a=>{let s=(await Promise.all(a.map(async o=>{let c=await this.mapPayloadToContractStruct(o.payload),u=o.signature,l=o.payload.price;if(Z.BigNumber.from(l).gt(0))throw new Error("Can only batch free mints. For mints with a price, use regular mint()");return{message:c,signature:u}}))).map(o=>this.contractWrapper.readContract.interface.encodeFunctionData("mintWithSignature",[o.message,o.signature]));if(vo("multicall",this.contractWrapper))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[s],parse:o=>{let c=this.contractWrapper.parseLogs("TokensMintedWithSignature",o.logs);if(c.length===0)throw new Error("No MintWithSignature event found");return c.map(u=>({id:u.args.tokenIdMinted,receipt:o}))}});throw new Error("Multicall not supported on this contract!")})),this.contractWrapper=e,this.storage=t,this.roles=n}async verify(e){let t=e.payload,n=e.signature,a=await this.mapPayloadToContractStruct(t);return(await this.contractWrapper.readContract.verify(a,n))[0]}async generate(e){let t={...e,tokenId:Z.ethers.constants.MaxUint256};return this.generateFromTokenId(t)}async generateFromTokenId(e){return(await this.generateBatchFromTokenIds([e]))[0]}async generateBatch(e){let t=e.map(n=>({...n,tokenId:Z.ethers.constants.MaxUint256}));return this.generateBatchFromTokenIds(t)}async generateBatchFromTokenIds(e){await this.roles?.verify(["minter"],await this.contractWrapper.getSignerAddress());let t=await Promise.all(e.map(u=>upt.parseAsync(u))),n=t.map(u=>u.metadata),a=await g2(n,this.storage),i=await this.contractWrapper.getChainID(),s=this.contractWrapper.getSigner();Tt.default(s,"No signer available");let c=(await Xne(this.contractWrapper.readContract.address,this.contractWrapper.getProvider()))?.type==="TokenERC1155";return await Promise.all(t.map(async(u,l)=>{let h=a[l],f=await lpt.parseAsync({...u,uri:h}),m=await this.contractWrapper.signTypedData(s,{name:c?"TokenERC1155":"SignatureMintERC1155",version:"1",chainId:i,verifyingContract:this.contractWrapper.readContract.address},{MintRequest:mpt},await this.mapPayloadToContractStruct(f));return{payload:f,signature:m.toString()}}))}async mapPayloadToContractStruct(e){let t=await Ec(this.contractWrapper.getProvider(),e.price,e.currencyAddress);return{to:e.to,tokenId:e.tokenId,uri:e.uri,quantity:e.quantity,pricePerToken:t,currency:e.currencyAddress,validityStartTimestamp:e.mintStartTime,validityEndTimestamp:e.mintEndTime,uid:e.uid,royaltyRecipient:e.royaltyRecipient,royaltyBps:e.royaltyBps,primarySaleRecipient:e.primarySaleRecipient}}},Aq=class{get chainId(){return this._chainId}constructor(e,t,n){var a=this;Y._defineProperty(this,"featureName",eq.name),Y._defineProperty(this,"query",void 0),Y._defineProperty(this,"mintable",void 0),Y._defineProperty(this,"burnable",void 0),Y._defineProperty(this,"lazyMintable",void 0),Y._defineProperty(this,"signatureMintable",void 0),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_chainId",void 0),Y._defineProperty(this,"transfer",Ee(async function(i,s,o){let c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[0],u=await a.contractWrapper.getSignerAddress();return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"safeTransferFrom",args:[u,await Re(i),s,o,c]})})),Y._defineProperty(this,"setApprovalForAll",Ee(async(i,s)=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setApprovalForAll",args:[i,s]}))),Y._defineProperty(this,"airdrop",Ee(async function(i,s){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[0],c=await a.contractWrapper.getSignerAddress(),u=await a.balanceOf(c,i),l=await gOr.parseAsync(s),h=l.reduce((m,y)=>m+Number(y?.quantity||1),0);if(u.toNumber(){let{address:y,quantity:E}=m;return a.contractWrapper.readContract.interface.encodeFunctionData("safeTransferFrom",[c,y,i,E,o])});return Oe.fromContractWrapper({contractWrapper:a.contractWrapper,method:"multicall",args:[f]})})),Y._defineProperty(this,"mint",Ee(async i=>this.mintTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintTo",Ee(async(i,s)=>er(this.mintable,s2).to.prepare(i,s))),Y._defineProperty(this,"mintAdditionalSupply",Ee(async(i,s)=>er(this.mintable,s2).additionalSupplyTo.prepare(await this.contractWrapper.getSignerAddress(),i,s))),Y._defineProperty(this,"mintAdditionalSupplyTo",Ee(async(i,s,o)=>er(this.mintable,s2).additionalSupplyTo.prepare(i,s,o))),Y._defineProperty(this,"mintBatch",Ee(async i=>this.mintBatchTo.prepare(await this.contractWrapper.getSignerAddress(),i))),Y._defineProperty(this,"mintBatchTo",Ee(async(i,s)=>er(this.mintable?.batch,XL).to.prepare(i,s))),Y._defineProperty(this,"burn",Ee(async(i,s)=>er(this.burnable,i2).tokens.prepare(i,s))),Y._defineProperty(this,"burnFrom",Ee(async(i,s,o)=>er(this.burnable,i2).from.prepare(i,s,o))),Y._defineProperty(this,"burnBatch",Ee(async(i,s)=>er(this.burnable,i2).batch.prepare(i,s))),Y._defineProperty(this,"burnBatchFrom",Ee(async(i,s,o)=>er(this.burnable,i2).batchFrom.prepare(i,s,o))),Y._defineProperty(this,"lazyMint",Ee(async(i,s)=>er(this.lazyMintable,QL).lazyMint.prepare(i,s))),Y._defineProperty(this,"claim",Ee(async(i,s,o)=>this.claimTo.prepare(await this.contractWrapper.getSignerAddress(),i,s,o))),Y._defineProperty(this,"claimTo",Ee(async(i,s,o,c)=>{let u=this.lazyMintable?.claimWithConditions,l=this.lazyMintable?.claim;if(u)return u.to.prepare(i,s,o,c);if(l)return l.to.prepare(i,s,o,c);throw new W0(vI)})),this.contractWrapper=e,this.storage=t,this.query=this.detectErc1155Enumerable(),this.mintable=this.detectErc1155Mintable(),this.burnable=this.detectErc1155Burnable(),this.lazyMintable=this.detectErc1155LazyMintable(),this.signatureMintable=this.detectErc1155SignatureMintable(),this._chainId=n}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}async get(e){let[t,n]=await Promise.all([this.contractWrapper.readContract.totalSupply(e).catch(()=>Z.BigNumber.from(0)),this.getTokenMetadata(e).catch(()=>({id:e.toString(),uri:"",...Gq}))]);return{owner:Z.ethers.constants.AddressZero,metadata:n,type:"ERC1155",supply:t.toString()}}async totalSupply(e){return await this.contractWrapper.readContract.totalSupply(e)}async balanceOf(e,t){return await this.contractWrapper.readContract.balanceOf(await Re(e),t)}async balance(e){return await this.balanceOf(await this.contractWrapper.getSignerAddress(),e)}async isApproved(e,t){return await this.contractWrapper.readContract.isApprovedForAll(await Re(e),await Re(t))}async nextTokenIdToMint(){if(vo("nextTokenIdToMint",this.contractWrapper))return await this.contractWrapper.readContract.nextTokenIdToMint();throw new Error("Contract requires the `nextTokenIdToMint` function available to determine the next token ID to mint")}async getAll(e){return er(this.query,o2).all(e)}async totalCount(){return er(this.query,o2).totalCount()}async totalCirculatingSupply(e){return er(this.query,o2).totalCirculatingSupply(e)}async getOwned(e){return e&&(e=await Re(e)),er(this.query,o2).owned(e)}async getMintTransaction(e,t){return er(this.mintable,s2).getMintTransaction(e,t)}async getClaimTransaction(e,t,n,a){let i=this.lazyMintable?.claimWithConditions,s=this.lazyMintable?.claim;if(i)return i.conditions.getClaimTransaction(e,t,n,a);if(s)return s.getClaimTransaction(e,t,n,a);throw new W0(vI)}get claimConditions(){return er(this.lazyMintable?.claimWithConditions,JL).conditions}get signature(){return er(this.signatureMintable,ZL)}get revealer(){return er(this.lazyMintable?.revealer,Wx)}async getTokenMetadata(e){let t=await this.contractWrapper.readContract.uri(e);if(!t)throw new oI;return Qne(e,t,this.storage)}detectErc1155Enumerable(){if(Ye(this.contractWrapper,"ERC1155Enumerable"))return new Tq(this,this.contractWrapper)}detectErc1155Mintable(){if(Ye(this.contractWrapper,"ERC1155Mintable"))return new Iq(this,this.contractWrapper,this.storage)}detectErc1155Burnable(){if(Ye(this.contractWrapper,"ERC1155Burnable"))return new xq(this.contractWrapper)}detectErc1155LazyMintable(){if(Ye(this.contractWrapper,"ERC1155LazyMintableV1")||Ye(this.contractWrapper,"ERC1155LazyMintableV2"))return new Eq(this,this.contractWrapper,this.storage)}detectErc1155SignatureMintable(){if(Ye(this.contractWrapper,"ERC1155SignatureMintable"))return new kq(this.contractWrapper,this.storage)}};async function lht(r,e,t,n,a){try{let i=new Z.Contract(t,Wq.default,r),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s){let c=new Z.Contract(t,Cc.default,r);return await c.isApprovedForAll(a,e)?!0:(await c.getApproved(n)).toLowerCase()===e.toLowerCase()}else return o?await new Z.Contract(t,$u.default,r).isApprovedForAll(a,e):(console.error("Contract does not implement ERC 1155 or ERC 721."),!1)}catch(i){return console.error("Failed to check if token is approved",i),!1}}async function EI(r,e,t,n,a){let i=new Ns(r.getSignerOrProvider(),t,Wq.default,r.options),s=await i.readContract.supportsInterface(kI),o=await i.readContract.supportsInterface(AI);if(s){let c=new Ns(r.getSignerOrProvider(),t,Cc.default,r.options);await c.readContract.isApprovedForAll(a,e)||(await c.readContract.getApproved(n)).toLowerCase()===e.toLowerCase()||await c.sendTransaction("setApprovalForAll",[e,!0])}else if(o){let c=new Ns(r.getSignerOrProvider(),t,$u.default,r.options);await c.readContract.isApprovedForAll(a,e)||await c.sendTransaction("setApprovalForAll",[e,!0])}else throw Error("Contract must implement ERC 1155 or ERC 721.")}function bOr(r){switch(Tt.default(r.assetContractAddress!==void 0&&r.assetContractAddress!==null,"Asset contract address is required"),Tt.default(r.buyoutPricePerToken!==void 0&&r.buyoutPricePerToken!==null,"Buyout price is required"),Tt.default(r.listingDurationInSeconds!==void 0&&r.listingDurationInSeconds!==null,"Listing duration is required"),Tt.default(r.startTimestamp!==void 0&&r.startTimestamp!==null,"Start time is required"),Tt.default(r.tokenId!==void 0&&r.tokenId!==null,"Token ID is required"),Tt.default(r.quantity!==void 0&&r.quantity!==null,"Quantity is required"),r.type){case"NewAuctionListing":Tt.default(r.reservePricePerToken!==void 0&&r.reservePricePerToken!==null,"Reserve price is required")}}async function vOr(r,e,t){return{quantity:t.quantityDesired,pricePerToken:t.pricePerToken,currencyContractAddress:t.currency,buyerAddress:t.offeror,quantityDesired:t.quantityWanted,currencyValue:await Tp(r,t.currency,t.quantityWanted.mul(t.pricePerToken)),listingId:e}}function wOr(r,e,t){return t=Z.BigNumber.from(t),r=Z.BigNumber.from(r),e=Z.BigNumber.from(e),r.eq(Z.BigNumber.from(0))?!1:e.sub(r).mul(Y.MAX_BPS).div(r).gte(t)}async function Gx(r,e,t){let n=[];for(;e-r>Y.DEFAULT_QUERY_ALL_COUNT;)n.push(t(r,r+Y.DEFAULT_QUERY_ALL_COUNT-1)),r+=Y.DEFAULT_QUERY_ALL_COUNT;return n.push(t(r,e-1)),await Promise.all(n)}var Sdt=pe.z.object({assetContractAddress:ki,tokenId:Js,quantity:Js.default(1),currencyContractAddress:ki.default(Gu),pricePerToken:Y.AmountSchema,startTimestamp:SI.default(new Date),endTimestamp:PI,isReservedListing:pe.z.boolean().default(!1)}),f2=class{constructor(e){Y._defineProperty(this,"contractWrapper",void 0),this.contractWrapper=e}addTransactionListener(e){this.contractWrapper.addListener(kl.Transaction,e)}removeTransactionListener(e){this.contractWrapper.off(kl.Transaction,e)}addEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e),i={address:this.contractWrapper.readContract.address,topics:[this.contractWrapper.readContract.interface.getEventTopic(n)]},s=o=>{let c=this.contractWrapper.readContract.interface.parseLog(o);t(this.toContractEvent(c.eventFragment,c.args,o))};return this.contractWrapper.getProvider().on(i,s),()=>{this.contractWrapper.getProvider().off(i,s)}}listenToAllEvents(e){let n={address:this.contractWrapper.readContract.address},a=i=>{try{let s=this.contractWrapper.readContract.interface.parseLog(i);e(this.toContractEvent(s.eventFragment,s.args,i))}catch(s){console.error("Could not parse event:",i,s)}};return this.contractWrapper.getProvider().on(n,a),()=>{this.contractWrapper.getProvider().off(n,a)}}removeEventListener(e,t){let n=this.contractWrapper.readContract.interface.getEvent(e);this.contractWrapper.readContract.off(n.name,t)}removeAllListeners(){this.contractWrapper.readContract.removeAllListeners();let t={address:this.contractWrapper.readContract.address};this.contractWrapper.getProvider().removeAllListeners(t)}async getAllEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{fromBlock:0,toBlock:"latest",order:"desc"},n=(await this.contractWrapper.readContract.queryFilter({},e.fromBlock,e.toBlock)).sort((a,i)=>e.order==="desc"?i.blockNumber-a.blockNumber:a.blockNumber-i.blockNumber);return this.parseEvents(n)}async getEvents(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{fromBlock:0,toBlock:"latest",order:"desc"},n=this.contractWrapper.readContract.interface.getEvent(e),a=this.contractWrapper.readContract.interface.getEvent(e),i=t.filters?a.inputs.map(u=>t.filters[u.name]):[],s=this.contractWrapper.readContract.filters[n.name](...i),c=(await this.contractWrapper.readContract.queryFilter(s,t.fromBlock,t.toBlock)).sort((u,l)=>t.order==="desc"?l.blockNumber-u.blockNumber:u.blockNumber-l.blockNumber);return this.parseEvents(c)}parseEvents(e){return e.map(t=>{let n=Object.fromEntries(Object.entries(t).filter(a=>typeof a[1]!="function"&&a[0]!=="args"));if(t.args){let a=Object.entries(t.args),i=a.slice(a.length/2,a.length),s={};for(let[o,c]of i)s[o]=c;return{eventName:t.event||"",data:s,transaction:n}}return{eventName:t.event||"",data:{},transaction:n}})}toContractEvent(e,t,n){let a=Object.fromEntries(Object.entries(n).filter(s=>typeof s[1]!="function"&&s[0]!=="args")),i={};return e.inputs.forEach((s,o)=>{if(Array.isArray(t[o])){let c=s.components;if(c){let u=t[o];if(s.type==="tuple[]"){let l=[];for(let h=0;h{let a=await Sdt.parseAsync(n);await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Ec(this.contractWrapper.getProvider(),a.pricePerToken,a.currencyContractAddress),o=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(o)&&(a.startTimestamp=Z.BigNumber.from(o)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createListing",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:IL(a.currencyContractAddress),pricePerToken:i,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp,reserved:a.isReservedListing}],parse:c=>({id:this.contractWrapper.parseLogs("NewListing",c?.logs)[0].args.listingId,receipt:c})})})),Y._defineProperty(this,"updateListing",Ee(async(n,a)=>{let i=await Sdt.parseAsync(a);await EI(this.contractWrapper,this.getAddress(),i.assetContractAddress,i.tokenId,await this.contractWrapper.getSignerAddress());let s=await Ec(this.contractWrapper.getProvider(),i.pricePerToken,i.currencyContractAddress);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"updateListing",args:[n,{assetContract:i.assetContractAddress,tokenId:i.tokenId,quantity:i.quantity,currency:IL(i.currencyContractAddress),pricePerToken:s,startTimestamp:i.startTimestamp,endTimestamp:i.endTimestamp,reserved:i.isReservedListing}],parse:o=>({id:this.contractWrapper.parseLogs("UpdatedListing",o?.logs)[0].args.listingId,receipt:o})})})),Y._defineProperty(this,"cancelListing",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelListing",args:[n]}))),Y._defineProperty(this,"buyFromListing",Ee(async(n,a,i)=>{i&&(i=await Re(i));let s=await this.validateListing(Z.BigNumber.from(n)),{valid:o,error:c}=await this.isStillValidListing(s,a);if(!o)throw new Error(`Listing ${n} is no longer valid. ${c}`);let u=i||await this.contractWrapper.getSignerAddress(),l=Z.BigNumber.from(a),h=Z.BigNumber.from(s.pricePerToken).mul(l),f=await this.contractWrapper.getCallOverrides()||{};return await U0(this.contractWrapper,h,s.currencyContractAddress,f),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"buyFromListing",args:[n,u,l,s.currencyContractAddress,h],overrides:f})})),Y._defineProperty(this,"approveBuyerForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))throw new Error(`Buyer ${a} already approved for listing ${n}.`);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!0]})})),Y._defineProperty(this,"revokeBuyerApprovalForReservedListing",Ee(async(n,a)=>{if(await this.isBuyerApprovedForListing(n,a))return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveBuyerForListing",args:[n,a,!1]});throw new Error(`Buyer ${a} not approved for listing ${n}.`)})),Y._defineProperty(this,"approveCurrencyForListing",Ee(async(n,a,i)=>{let s=await this.validateListing(Z.BigNumber.from(n)),o=await Re(a);o===s.currencyContractAddress&&Tt.default(i===s.pricePerToken,"Approving listing currency with a different price.");let c=await this.contractWrapper.readContract.currencyPriceForListing(n,o);return Tt.default(i===c,"Currency already approved with this price."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,o,i]})})),Y._defineProperty(this,"revokeCurrencyApprovalForListing",Ee(async(n,a)=>{let i=await this.validateListing(Z.BigNumber.from(n)),s=await Re(a);if(s===i.currencyContractAddress)throw new Error("Can't revoke approval for main listing currency.");let o=await this.contractWrapper.readContract.currencyPriceForListing(n,s);return Tt.default(!o.isZero(),"Currency not approved."),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"approveCurrencyForListing",args:[n,s,Z.BigNumber.from(0)]})})),this.contractWrapper=e,this.storage=t,this.events=new f2(this.contractWrapper),this.encoder=new h2(this.contractWrapper),this.interceptor=new m2(this.contractWrapper),this.estimator=new y2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalListings()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No listings exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidListings)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapListing(c)))}async getListing(e){let t=await this.contractWrapper.readContract.getListing(e);return await this.mapListing(t)}async isBuyerApprovedForListing(e,t){if(!(await this.validateListing(Z.BigNumber.from(e))).isReservedListing)throw new Error(`Listing ${e} is not a reserved listing.`);return await this.contractWrapper.readContract.isBuyerApprovedForListing(e,await Re(t))}async isCurrencyApprovedForListing(e,t){return await this.validateListing(Z.BigNumber.from(e)),await this.contractWrapper.readContract.isCurrencyApprovedForListing(e,await Re(t))}async currencyPriceForListing(e,t){let n=await this.validateListing(Z.BigNumber.from(e)),a=await Re(t);if(a===n.currencyContractAddress)return n.pricePerToken;if(!await this.isCurrencyApprovedForListing(e,a))throw new Error(`Currency ${a} is not approved for Listing ${e}.`);return await this.contractWrapper.readContract.currencyPriceForListing(e,a)}async validateListing(e){try{return await this.getListing(e)}catch(t){throw console.error(`Error getting the listing with id ${e}`),t}}async mapListing(e){let t=Yo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Yo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Yo.Expired:Yo.Active;break;case 2:t=Yo.Completed;break;case 3:t=Yo.Cancelled;break}return{assetContractAddress:e.assetContract,currencyContractAddress:e.currency,pricePerToken:e.pricePerToken.toString(),currencyValuePerToken:await Tp(this.contractWrapper.getProvider(),e.currency,e.pricePerToken),id:e.listingId.toString(),tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),creatorAddress:e.listingCreator,isReservedListing:e.reserved,status:t}}async isStillValidListing(e,t){if(!await lht(this.contractWrapper.getProvider(),this.getAddress(),e.assetContractAddress,e.tokenId,e.creatorAddress))return{valid:!1,error:`Token '${e.tokenId}' from contract '${e.assetContractAddress}' is not approved for transfer`};let a=this.contractWrapper.getProvider(),i=new Z.Contract(e.assetContractAddress,Wq.default,a),s=await i.supportsInterface(kI),o=await i.supportsInterface(AI);if(s){let u=(await new Z.Contract(e.assetContractAddress,Cc.default,a).ownerOf(e.tokenId)).toLowerCase()===e.creatorAddress.toLowerCase();return{valid:u,error:u?void 0:`Seller is not the owner of Token '${e.tokenId}' from contract '${e.assetContractAddress} anymore'`}}else if(o){let l=(await new Z.Contract(e.assetContractAddress,$u.default,a).balanceOf(e.creatorAddress,e.tokenId)).gte(t||e.quantity);return{valid:l,error:l?void 0:`Seller does not have enough balance of Token '${e.tokenId}' from contract '${e.assetContractAddress} to fulfill the listing`}}else return{valid:!1,error:"Contract does not implement ERC 1155 or ERC 721."}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.listingCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=_Or.parse(n);await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress());let i=await Ec(this.contractWrapper.getProvider(),a.buyoutBidAmount,a.currencyContractAddress),s=await Ec(this.contractWrapper.getProvider(),a.minimumBidAmount,a.currencyContractAddress),c=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;return a.startTimestamp.lt(c)&&(a.startTimestamp=Z.BigNumber.from(c)),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"createAuction",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:IL(a.currencyContractAddress),minimumBidAmount:s,buyoutBidAmount:i,timeBufferInSeconds:a.timeBufferInSeconds,bidBufferBps:a.bidBufferBps,startTimestamp:a.startTimestamp,endTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewAuction",u.logs)[0].args.auctionId,receipt:u})})})),Y._defineProperty(this,"buyoutAuction",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n)),i=await Yx(this.contractWrapper.getProvider(),a.currencyContractAddress);return this.makeBid.prepare(n,Z.ethers.utils.formatUnits(a.buyoutBidAmount,i.decimals))})),Y._defineProperty(this,"makeBid",Ee(async(n,a)=>{let i=await this.validateAuction(Z.BigNumber.from(n)),s=await Ec(this.contractWrapper.getProvider(),a,i.currencyContractAddress);if(s.eq(Z.BigNumber.from(0)))throw new Error("Cannot make a bid with 0 value");if(Z.BigNumber.from(i.buyoutBidAmount).gt(0)&&s.gt(i.buyoutBidAmount))throw new Error("Bid amount must be less than or equal to buyoutBidAmount");if(await this.getWinningBid(n)){let u=await this.isWinningBid(n,s);Tt.default(u,"Bid price is too low based on the current winning bid and the bid buffer")}else{let u=s,l=Z.BigNumber.from(i.minimumBidAmount);Tt.default(u.gte(l),"Bid price is too low based on minimum bid amount")}let c=await this.contractWrapper.getCallOverrides()||{};return await U0(this.contractWrapper,s,i.currencyContractAddress,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"bidInAuction",args:[n,s],overrides:c})})),Y._defineProperty(this,"cancelAuction",Ee(async n=>{if(await this.getWinningBid(n))throw new Error("Bids already made.");return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelAuction",args:[n]})})),Y._defineProperty(this,"closeAuctionForBidder",Ee(async(n,a)=>{a||(a=await this.contractWrapper.getSignerAddress());let i=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionTokens",args:[Z.BigNumber.from(n)]})}catch(s){throw s.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),i.endTimeInSeconds.toString()):s}})),Y._defineProperty(this,"closeAuctionForSeller",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"collectAuctionPayout",args:[Z.BigNumber.from(n)]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),a.endTimeInSeconds.toString()):i}})),Y._defineProperty(this,"executeSale",Ee(async n=>{let a=await this.validateAuction(Z.BigNumber.from(n));try{let i=await this.getWinningBid(n);Tt.default(i,"No winning bid found");let s=this.encoder.encode("collectAuctionPayout",[n]),o=this.encoder.encode("collectAuctionTokens",[n]);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"multicall",args:[[s,o]]})}catch(i){throw i.message.includes("Marketplace: auction still active.")?new Lx(n.toString(),a.endTimeInSeconds.toString()):i}})),this.contractWrapper=e,this.storage=t,this.events=new f2(this.contractWrapper),this.encoder=new h2(this.contractWrapper),this.interceptor=new m2(this.contractWrapper),this.estimator=new y2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalAuctions()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No auctions exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidAuctions)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapAuction(c)))}async getAuction(e){let t=await this.contractWrapper.readContract.getAuction(e);return await this.mapAuction(t)}async getWinningBid(e){await this.validateAuction(Z.BigNumber.from(e));let t=await this.contractWrapper.readContract.getWinningBid(e);if(t._bidder!==Z.constants.AddressZero)return await this.mapBid(e.toString(),t._bidder,t._currency,t._bidAmount.toString())}async isWinningBid(e,t){return await this.contractWrapper.readContract.isNewWinningBid(e,t)}async getWinner(e){let t=await this.validateAuction(Z.BigNumber.from(e)),n=await this.contractWrapper.readContract.getWinningBid(e),a=Z.BigNumber.from(Math.floor(Date.now()/1e3)),i=Z.BigNumber.from(t.endTimeInSeconds);if(a.gt(i)&&n._bidder!==Z.constants.AddressZero)return n._bidder;let o=(await this.contractWrapper.readContract.queryFilter(this.contractWrapper.readContract.filters.AuctionClosed())).find(c=>c.args.auctionId.eq(Z.BigNumber.from(e)));if(!o)throw new Error(`Could not find auction with ID ${e} in closed auctions`);return o.args.winningBidder}async getBidBufferBps(e){return(await this.getAuction(e)).bidBufferBps}async getMinimumNextBid(e){let[t,n,a]=await Promise.all([this.getBidBufferBps(e),this.getWinningBid(e),await this.validateAuction(Z.BigNumber.from(e))]),i=n?Z.BigNumber.from(n.bidAmount):Z.BigNumber.from(a.minimumBidAmount),s=i.add(i.mul(t).div(1e4));return Tp(this.contractWrapper.getProvider(),a.currencyContractAddress,s)}async validateAuction(e){try{return await this.getAuction(e)}catch(t){throw console.error(`Error getting the auction with id ${e}`),t}}async mapAuction(e){let t=Yo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.startTimestamp).gt(a)?Yo.Created:Z.BigNumber.from(e.endTimestamp).lt(a)?Yo.Expired:Yo.Active;break;case 2:t=Yo.Completed;break;case 3:t=Yo.Cancelled;break}return{id:e.auctionId.toString(),creatorAddress:e.auctionCreator,assetContractAddress:e.assetContract,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),currencyContractAddress:e.currency,minimumBidAmount:e.minimumBidAmount.toString(),minimumBidCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.minimumBidAmount),buyoutBidAmount:e.buyoutBidAmount.toString(),buyoutCurrencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.buyoutBidAmount),timeBufferInSeconds:Z.BigNumber.from(e.timeBufferInSeconds).toNumber(),bidBufferBps:Z.BigNumber.from(e.bidBufferBps).toNumber(),startTimeInSeconds:Z.BigNumber.from(e.startTimestamp).toNumber(),endTimeInSeconds:Z.BigNumber.from(e.endTimestamp).toNumber(),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),status:t}}async mapBid(e,t,n,a){let i=await Re(t),s=await Re(n);return{auctionId:e,bidderAddress:i,currencyContractAddress:s,bidAmount:a,bidAmountCurrencyValue:await Tp(this.contractWrapper.getProvider(),s,a)}}async applyFilter(e,t){let n=[...e];if(t){if(t.seller){let a=await Re(t.seller);n=n.filter(i=>i.auctionCreator.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let a=await xOr.parseAsync(n),i=await this.contractWrapper.getChainID(),s=Kh(a.currencyContractAddress)?iI[i].wrapped.address:a.currencyContractAddress,o=await Ec(this.contractWrapper.getProvider(),a.totalPrice,s),c=await this.contractWrapper.getCallOverrides();return await U0(this.contractWrapper,o,s,c),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"makeOffer",args:[{assetContract:a.assetContractAddress,tokenId:a.tokenId,quantity:a.quantity,currency:s,totalPrice:o,expirationTimestamp:a.endTimestamp}],parse:u=>({id:this.contractWrapper.parseLogs("NewOffer",u?.logs)[0].args.offerId,receipt:u})})})),Y._defineProperty(this,"cancelOffer",Ee(async n=>Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"cancelOffer",args:[n]}))),Y._defineProperty(this,"acceptOffer",Ee(async n=>{let a=await this.validateOffer(Z.BigNumber.from(n)),{valid:i,error:s}=await this.isStillValidOffer(a);if(!i)throw new Error(`Offer ${n} is no longer valid. ${s}`);let o=await this.contractWrapper.getCallOverrides()||{};return await EI(this.contractWrapper,this.getAddress(),a.assetContractAddress,a.tokenId,await this.contractWrapper.getSignerAddress()),Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"acceptOffer",args:[n],overrides:o})})),this.contractWrapper=e,this.storage=t,this.events=new f2(this.contractWrapper),this.encoder=new h2(this.contractWrapper),this.interceptor=new m2(this.contractWrapper),this.estimator=new y2(this.contractWrapper)}getAddress(){return this.contractWrapper.readContract.address}async getTotalCount(){return await this.contractWrapper.readContract.totalOffers()}async getAll(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getAllValid(e){let t=await this.getTotalCount(),n=Z.BigNumber.from(e?.start||0).toNumber(),a=t.toNumber();if(a===0)throw new Error("No offers exist on the contract.");let i=[];i=(await Gx(n,a,this.contractWrapper.readContract.getAllValidOffers)).flat();let o=await this.applyFilter(i,e);return await Promise.all(o.map(c=>this.mapOffer(c)))}async getOffer(e){let t=await this.contractWrapper.readContract.getOffer(e);return await this.mapOffer(t)}async validateOffer(e){try{return await this.getOffer(e)}catch(t){throw console.error(`Error getting the offer with id ${e}`),t}}async mapOffer(e){let t=Yo.UNSET,a=(await this.contractWrapper.getProvider().getBlock("latest")).timestamp;switch(e.status){case 1:t=Z.BigNumber.from(e.expirationTimestamp).lt(a)?Yo.Expired:Yo.Active;break;case 2:t=Yo.Completed;break;case 3:t=Yo.Cancelled;break}return{id:e.offerId.toString(),offerorAddress:e.offeror,assetContractAddress:e.assetContract,currencyContractAddress:e.currency,tokenId:e.tokenId.toString(),quantity:e.quantity.toString(),totalPrice:e.totalPrice.toString(),currencyValue:await Tp(this.contractWrapper.getProvider(),e.currency,e.totalPrice),asset:await BI(e.assetContract,this.contractWrapper.getProvider(),e.tokenId,this.storage),endTimeInSeconds:Z.BigNumber.from(e.expirationTimestamp).toNumber(),status:t}}async isStillValidOffer(e){if(Z.BigNumber.from(Math.floor(Date.now()/1e3)).gt(e.endTimeInSeconds))return{valid:!1,error:`Offer with ID ${e.id} has expired`};let n=await this.contractWrapper.getChainID(),a=Kh(e.currencyContractAddress)?iI[n].wrapped.address:e.currencyContractAddress,i=this.contractWrapper.getProvider(),s=new Ns(i,a,vu.default,{});return(await s.readContract.balanceOf(e.offerorAddress)).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} doesn't have enough balance of token ${a}`}:(await s.readContract.allowance(e.offerorAddress,this.getAddress())).lt(e.totalPrice)?{valid:!1,error:`Offeror ${e.offerorAddress} hasn't approved enough amount of token ${a}`}:{valid:!0,error:""}}async applyFilter(e,t){let n=[...e];if(t){if(t.offeror){let a=await Re(t.offeror);n=n.filter(i=>i.offeror.toString().toLowerCase()===a?.toString().toLowerCase())}if(t.tokenContract){let a=await Re(t.tokenContract);n=n.filter(i=>i.assetContract.toString().toLowerCase()===a?.toString().toLowerCase())}t.tokenId!==void 0&&(n=n.filter(a=>a.tokenId.toString()===t?.tokenId?.toString()))}return t?.count&&t.count{let n=await Rl(r,e,t);if(n)return n;let a=await Vq(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Qo(VX())})).default:(await Promise.resolve().then(function(){return Qo($X())})).default}},H0={name:"TokenERC1155",contractType:"edition",schema:Rpt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(YX())})).default}},Ep={name:"Marketplace",contractType:"marketplace",schema:Wne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(XX())})).default}},mm={name:"MarketplaceV3",contractType:"marketplace-v3",schema:Wne,roles:["admin","lister","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return await nq(r,n,e,{},t);let a=(await Promise.resolve().then(function(){return Qo(eee())})).default;return await nq(r,a,e,{},t)}},Cp={name:"Multiwrap",contractType:"multiwrap",schema:fht,roles:["admin","transfer","minter","unwrap","asset"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(ree())})).default}},j0={name:"TokenERC721",contractType:"nft-collection",schema:Spt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(nee())})).default}},Wh={name:"DropERC721",contractType:"nft-drop",schema:Fne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await Vq(r,e);return!a||a.version>3?(await Promise.resolve().then(function(){return Qo(aee())})).default:(await Promise.resolve().then(function(){return Qo(iee())})).default}},Sl={name:"Pack",contractType:"pack",schema:Tpt,roles:["admin","minter","asset","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(uee())})).default}},Uh={name:"SignatureDrop",contractType:"signature-drop",schema:Fne,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await Vq(r,e);return!a||a.version>4?(await Promise.resolve().then(function(){return Qo(lee())})).default:(await Promise.resolve().then(function(){return Qo(dee())})).default}},Hh={name:"Split",contractType:"split",schema:Cpt,roles:["admin"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(hee())})).default}},z0={name:"DropERC20",contractType:"token-drop",schema:pht,roles:["admin","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);if(n)return n;let a=await Vq(r,e);return!a||a.version>2?(await Promise.resolve().then(function(){return Qo(yee())})).default:(await Promise.resolve().then(function(){return Qo(gee())})).default}},jh={name:"TokenERC20",contractType:"token",schema:kpt,roles:["admin","minter","transfer"],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(wee())})).default}},zh={name:"VoteERC20",contractType:"vote",schema:Bpt,roles:[],initialize:async function(){for(var r=arguments.length,e=new Array(r),t=0;t{let n=await Rl(r,e,t);return n||(await Promise.resolve().then(function(){return Qo(Eee())})).default}};async function Vq(r,e){try{return await Xne(r,e)}catch{return}}var ym={[Fh.contractType]:Fh,[H0.contractType]:H0,[Ep.contractType]:Ep,[mm.contractType]:mm,[Cp.contractType]:Cp,[j0.contractType]:j0,[Wh.contractType]:Wh,[Sl.contractType]:Sl,[Uh.contractType]:Uh,[Hh.contractType]:Hh,[z0.contractType]:z0,[jh.contractType]:jh,[zh.contractType]:zh},mht={[Fh.contractType]:"ipfs://QmNm3wRzpKYWo1SRtJfgfxtvudp5p2nXD6EttcsQJHwTmk",[H0.contractType]:"",[Ep.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace.html",[mm.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/marketplace-v3.html",[Cp.contractType]:"",[j0.contractType]:"",[Wh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Sl.contractType]:"",[Uh.contractType]:"ipfs://QmZptmVipc6SGFbKAyXcxGgohzTwYRXZ9LauRX5ite1xDK",[Hh.contractType]:"",[z0.contractType]:"ipfs://QmbAgC8YwY36n8H2kuvSWsRisxDZ15QZw3xGZyk9aDvcv7/erc20.html",[jh.contractType]:"",[zh.contractType]:""},Pdt={name:"SmartContract",contractType:"custom",schema:{},roles:zne},eae={...ym,[Pdt.contractType]:Pdt};function tae(r){return Object.values(eae).find(e=>e.name===r)?.contractType||"custom"}function rae(r){return Object.values(eae).find(e=>e.contractType===r)?.name}async function yht(r,e,t,n){let a=await n.getChainId(),i=await n.getAddress(),s=r===Sl.contractType?[]:Pne(a);switch(e.trusted_forwarders&&e.trusted_forwarders.length>0&&(s=e.trusted_forwarders),r){case Wh.contractType:case j0.contractType:let o=await Wh.schema.deploy.parseAsync(e);return[i,o.name,o.symbol,t,s,o.primary_sale_recipient,o.fee_recipient,o.seller_fee_basis_points,o.platform_fee_basis_points,o.platform_fee_recipient];case Uh.contractType:let c=await Uh.schema.deploy.parseAsync(e);return[i,c.name,c.symbol,t,s,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case Cp.contractType:let u=await Cp.schema.deploy.parseAsync(e);return[i,u.name,u.symbol,t,s,u.fee_recipient,u.seller_fee_basis_points];case Fh.contractType:case H0.contractType:let l=await Fh.schema.deploy.parseAsync(e);return[i,l.name,l.symbol,t,s,l.primary_sale_recipient,l.fee_recipient,l.seller_fee_basis_points,l.platform_fee_basis_points,l.platform_fee_recipient];case z0.contractType:case jh.contractType:let h=await jh.schema.deploy.parseAsync(e);return[i,h.name,h.symbol,t,s,h.primary_sale_recipient,h.platform_fee_recipient,h.platform_fee_basis_points];case zh.contractType:let f=await zh.schema.deploy.parseAsync(e);return[f.name,t,s,f.voting_token_address,f.voting_delay_in_blocks,f.voting_period_in_blocks,Z.BigNumber.from(f.proposal_token_threshold),f.voting_quorum_fraction];case Hh.contractType:let m=await Hh.schema.deploy.parseAsync(e);return[i,t,s,m.recipients.map(I=>I.address),m.recipients.map(I=>Z.BigNumber.from(I.sharesBps))];case Ep.contractType:case mm.contractType:let y=await Ep.schema.deploy.parseAsync(e);return[i,t,s,y.platform_fee_recipient,y.platform_fee_basis_points];case Sl.contractType:let E=await Sl.schema.deploy.parseAsync(e);return[i,E.name,E.symbol,t,s,E.fee_recipient,E.seller_fee_basis_points];default:return[]}}function kOr(r,e){return r||(e?.gatewayUrls?new l2.ThirdwebStorage({gatewayUrls:e.gatewayUrls}):new l2.ThirdwebStorage)}var CI=class{constructor(e,t,n){Y._defineProperty(this,"featureName",LL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"set",Ee(async a=>Ye(this.contractWrapper,"AppURI")?Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setAppURI",args:[a]}):await this.metadata.update.prepare({app_uri:a}))),this.contractWrapper=e,this.metadata=t,this.storage=n}async get(){return Ye(this.contractWrapper,"AppURI")?await this.contractWrapper.readContract.appURI():l2.replaceGatewayUrlWithScheme((await this.metadata.get()).app_uri||"",this.storage.gatewayUrls)}},Mq=class{constructor(e){Y._defineProperty(this,"featureName",BL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Ip.parseAsync(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setPlatformFeeInfo",args:[n.platform_fee_recipient,n.platform_fee_basis_points]})})),this.contractWrapper=e}async get(){let[e,t]=await this.contractWrapper.readContract.getPlatformFeeInfo();return Ip.parseAsync({platform_fee_recipient:e,platform_fee_basis_points:t})}},Nq=class{constructor(e,t){Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"_cachedMetadata",void 0),this.contractWrapper=e,this.storage=t}async get(){return this._cachedMetadata?this._cachedMetadata:(this._cachedMetadata=await K0(this.contractWrapper.readContract.address,this.contractWrapper.getProvider(),this.storage),this._cachedMetadata)}async extractFunctions(){let e;try{e=await this.get()}catch{}return jx(Vu.parse(this.contractWrapper.abi),e?.metadata)}async extractEvents(){let e;try{e=await this.get()}catch{}return sht(Vu.parse(this.contractWrapper.abi),e?.metadata)}},Bq=class{get royalties(){return er(this.detectRoyalties(),ML)}get roles(){return er(this.detectRoles(),DL)}get sales(){return er(this.detectPrimarySales(),NL)}get platformFees(){return er(this.detectPlatformFees(),BL)}get owner(){return er(this.detectOwnable(),qL)}get erc20(){return er(this.detectErc20(),UL)}get erc721(){return er(this.detectErc721(),YL)}get erc1155(){return er(this.detectErc1155(),eq)}get app(){return er(this.detectApp(),LL)}get directListings(){return er(this.detectDirectListings(),dI)}get englishAuctions(){return er(this.detectEnglishAuctions(),pI)}get offers(){return er(this.detectOffers(),hI)}get chainId(){return this._chainId}constructor(e,t,n,a){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=arguments.length>5?arguments[5]:void 0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Ns(e,t,n,i);Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"interceptor",void 0),Y._defineProperty(this,"encoder",void 0),Y._defineProperty(this,"estimator",void 0),Y._defineProperty(this,"publishedMetadata",void 0),Y._defineProperty(this,"abi",void 0),Y._defineProperty(this,"metadata",void 0),Y._defineProperty(this,"_chainId",void 0),this._chainId=s,this.storage=a,this.contractWrapper=o,this.abi=n,this.events=new f2(this.contractWrapper),this.encoder=new h2(this.contractWrapper),this.interceptor=new m2(this.contractWrapper),this.estimator=new y2(this.contractWrapper),this.publishedMetadata=new Nq(this.contractWrapper,this.storage),this.metadata=new F0(this.contractWrapper,u2,this.storage)}onNetworkUpdated(e){this.contractWrapper.updateSignerOrProvider(e)}getAddress(){return this.contractWrapper.readContract.address}prepare(e,t,n){return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:e,args:t,overrides:n})}async call(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a{let i=this.getSigner();Tt.default(i,"A signer is required");let s=await i.getAddress(),o=await this.storage.upload(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"setPublisherProfileUri",args:[s,o]})})),Y._defineProperty(this,"publish",Ee(async(a,i)=>{let s=this.getSigner();Tt.default(s,"A signer is required");let o=await s.getAddress(),c=await $ne(a,this.storage),u=await this.getLatest(o,c.name);if(u&&u.metadataUri){let S=(await this.fetchPublishedContractInfo(u)).publishedMetadata.version;if(!vht(S,i.version))throw Error(`Version ${i.version} is not greater than ${S}`)}let l=await(await this.storage.download(c.bytecodeUri)).text(),h=l.startsWith("0x")?l:`0x${l}`,f=Z.utils.solidityKeccak256(["bytes"],[h]),m=c.name,y=Iht.parse({...i,metadataUri:c.metadataUri,bytecodeUri:c.bytecodeUri,name:c.name,analytics:c.analytics,publisher:o}),E=await this.storage.upload(y);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"publishContract",args:[o,m,E,c.metadataUri,f,Z.constants.AddressZero],parse:I=>{let S=this.publisher.parseLogs("ContractPublished",I.logs);if(S.length<1)throw new Error("No ContractPublished event found");let L=S[0].args.publishedContract;return{receipt:I,data:async()=>this.toPublishedContract(L)}}})})),Y._defineProperty(this,"unpublish",Ee(async(a,i)=>{let s=await Re(a);return Oe.fromContractWrapper({contractWrapper:this.publisher,method:"unpublishContract",args:[s,i]})})),this.storage=n,this.publisher=new Ns(e,Jdt(),DBr.default,t)}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.publisher.updateSignerOrProvider(e)}async extractConstructorParams(e){return rht(e,this.storage)}async extractFunctions(e){return nht(e,this.storage)}async fetchCompilerMetadataFromPredeployURI(e){return zx(e,this.storage)}async fetchPrePublishMetadata(e,t){let n=await zx(e,this.storage),a=t?await this.getLatest(t,n.name):void 0,i=a?await this.fetchPublishedContractInfo(a):void 0;return{preDeployMetadata:n,latestPublishedContractMetadata:i}}async fetchCompilerMetadataFromAddress(e){let t=await Re(e);return K0(t,this.getProvider(),this.storage)}async fetchPublishedContractInfo(e){return{name:e.id,publishedTimestamp:e.timestamp,publishedMetadata:await this.fetchFullPublishMetadata(e.metadataUri)}}async fetchFullPublishMetadata(e){return Yne(e,this.storage)}async resolvePublishMetadataFromCompilerMetadata(e){let t=await this.publisher.readContract.getPublishedUriFromCompilerUri(e);if(t.length===0)throw Error(`Could not resolve published metadata URI from ${e}`);return await Promise.all(t.filter(n=>n.length>0).map(n=>this.fetchFullPublishMetadata(n)))}async resolveContractUriFromAddress(e){let t=await Re(e),n=await _I(t,this.getProvider());return Tt.default(n,"Could not resolve contract URI from address"),n}async fetchContractSourcesFromAddress(e){let t=await Re(e),n=await this.fetchCompilerMetadataFromAddress(t);return await $q(n,this.storage)}async getPublisherProfile(e){let t=await Re(e),n=await this.publisher.readContract.getPublisherProfileUri(t);return!n||n.length===0?{}:Sht.parse(await this.storage.downloadJSON(n))}async getAll(e){let t=await Re(e),a=(await this.publisher.readContract.getAllPublishedContracts(t)).reduce((i,s)=>(i[s.contractId]=s,i),{});return Object.entries(a).map(i=>{let[,s]=i;return this.toPublishedContract(s)})}async getAllVersions(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContractVersions(n,t);if(a.length===0)throw Error("Not found");return a.map(i=>this.toPublishedContract(i))}async getVersion(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=await Re(e);if(n==="latest")return this.getLatest(a,t);let i=await this.getAllVersions(a,t),o=(await Promise.all(i.map(c=>this.fetchPublishedContractInfo(c)))).find(c=>c.publishedMetadata.version===n);return Tt.default(o,"Contract version not found"),i.find(c=>c.timestamp===o.publishedTimestamp)}async getLatest(e,t){let n=await Re(e),a=await this.publisher.readContract.getPublishedContract(n,t);if(a&&a.publishMetadataUri)return this.toPublishedContract(a)}toPublishedContract(e){return Pht.parse({id:e.contractId,timestamp:e.publishTimestamp,metadataUri:e.publishMetadataUri})}},Ene=class{constructor(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Y._defineProperty(this,"registryLogic",void 0),Y._defineProperty(this,"registryRouter",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=[];return a.forEach(o=>{s.push(this.registryLogic.readContract.interface.encodeFunctionData("add",[i,o.address,o.chainId,o.metadataURI||""]))}),Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.registryRouter.getSignerAddress(),s=await Promise.all(a.map(async o=>this.registryLogic.readContract.interface.encodeFunctionData("remove",[i,await Re(o.address),o.chainId])));return Oe.fromContractWrapper({contractWrapper:this.registryRouter,method:"multicall",args:[s]})})),this.storage=t,this.registryLogic=new Ns(e,jre(),OBr.default,n),this.registryRouter=new Ns(e,jre(),LBr.default,n)}async updateSigner(e){this.registryLogic.updateSignerOrProvider(e),this.registryRouter.updateSignerOrProvider(e)}async getContractMetadataURI(e,t){return await this.registryLogic.readContract.getMetadataUri(e,await Re(t))}async getContractMetadata(e,t){let n=await this.getContractMetadataURI(e,t);if(!n)throw new Error(`No metadata URI found for contract ${t} on chain ${e}`);return await this.storage.downloadJSON(n)}async getContractAddresses(e){return(await this.registryLogic.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t.deploymentAddress)&&t.deploymentAddress.toLowerCase()!==Z.constants.AddressZero).map(t=>({address:t.deploymentAddress,chainId:t.chainId.toNumber()}))}},Vx=class{constructor(e,t){Y._defineProperty(this,"connection",void 0),Y._defineProperty(this,"options",void 0),Y._defineProperty(this,"events",new qre.default),this.connection=new d2(e,t),this.options=t,this.events=new qre.default}connect(e){this.connection.updateSignerOrProvider(e),this.events.emit("signerChanged",this.connection.getSigner())}async transfer(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gu,a=await Re(e),i=await Re(n),s=this.requireWallet(),o=await Ec(this.connection.getProvider(),t,n);if(Kh(i)){let c=await s.getAddress();return{receipt:await(await s.sendTransaction({from:c,to:a,value:o})).wait()}}else return{receipt:await this.createErc20(i).sendTransaction("transfer",[a,o])}}async balance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gu;this.requireWallet();let t=await Re(e),n=this.connection.getProvider(),a;return Kh(t)?a=await n.getBalance(await this.getAddress()):a=await this.createErc20(t).readContract.balanceOf(await this.getAddress()),await Tp(n,t,a)}async getAddress(){return await this.requireWallet().getAddress()}async getChainId(){return await this.requireWallet().getChainId()}isConnected(){try{return this.requireWallet(),!0}catch{return!1}}async sign(e){return await this.requireWallet().signMessage(e)}async signTypedData(e,t,n){return await lI(this.requireWallet(),e,t,n)}recoverAddress(e,t){let n=Z.ethers.utils.hashMessage(e),a=Z.ethers.utils.arrayify(n);return Z.ethers.utils.recoverAddress(a,t)}async sendRawTransaction(e){return{receipt:await(await this.requireWallet().sendTransaction(e)).wait()}}async requestFunds(e){let t=await this.getChainId();if(t===Be.Localhost||t===Be.Hardhat)return new Vx(new Z.ethers.Wallet($dt,sI(t,this.options)),this.options).transfer(await this.getAddress(),e);throw new Error(`Requesting funds is not supported on chain: '${t}'.`)}requireWallet(){let e=this.connection.getSigner();return Tt.default(e,"This action requires a connected wallet. Please pass a valid signer to the SDK."),e}createErc20(e){return new Ns(this.connection.getSignerOrProvider(),e,vu.default,this.options)}},fm=class extends d2{static async fromWallet(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=await e.getSigner();return fm.fromSigner(i,t,n,a)}static fromSigner(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=e;if(t&&!e.provider){let o=sI(t,n);i=e.connect(o)}let s=new fm(t||i,n,a);return s.updateSignerOrProvider(i),s}static fromPrivateKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0,i=sI(t,n),s=new Z.Wallet(e,i);return new fm(s,n,a)}constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;zq(e)&&(t={...t,supportedChains:[e,...t.supportedChains||[]]}),super(e,t),Y._defineProperty(this,"contractCache",new Map),Y._defineProperty(this,"_publisher",void 0),Y._defineProperty(this,"storageHandler",void 0),Y._defineProperty(this,"deployer",void 0),Y._defineProperty(this,"multiChainRegistry",void 0),Y._defineProperty(this,"wallet",void 0),Y._defineProperty(this,"storage",void 0),Gdt(t?.supportedChains);let a=kOr(n,t);this.storage=a,this.storageHandler=a,this.wallet=new Vx(e,t),this.deployer=new Lq(e,t,a),this.multiChainRegistry=new Ene(e,this.storageHandler,this.options),this._publisher=new Dq(e,this.options,this.storageHandler)}get auth(){throw new Error(`The sdk.auth namespace has been moved to the @thirdweb-dev/auth package and is no longer available after @thirdweb-dev/sdk >= 3.7.0. Please visit https://portal.thirdweb.com/auth for instructions on how to switch to using the new auth package (@thirdweb-dev/auth@3.0.0). - If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in clt.GENERATED_ABI)return await this.getContractFromAbi(n,clt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await fm[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in fm?a=await fm[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await Re(e),ene.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return kne(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Re(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>jre((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:nI.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new pm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>jre((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=fi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new hq(this.getSignerOrProvider(),n,await OL(n,Ku.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return xp(this.getProvider(),zu,await this.getProvider().getBalance(await Re(e)))}getPublisher(){return this._publisher}},mq=class extends Rs{constructor(e,t,n,a){super(t,e,MNr.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[qh.contractType]:3,[L0.contractType]:1,[Fh.contractType]:4,[Tp.contractType]:1,[Lh.contractType]:2,[O0.contractType]:1,[q0.contractType]:2,[Uh.contractType]:1,[Hh.contractType]:1,[Wh.contractType]:1,[_p.contractType]:2,[hm.contractType]:1,[Cl.contractType]:2}),Y._defineProperty(this,"deploy",Ee(async(i,s,o,c)=>{let u=fm[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();_t.default(y,"A signer is required to deploy contracts");let E=await Tpt(i,l,h,y),I=Z.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Z.ethers.utils.formatBytes32String(S.toString());return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:F=>{let W=this.parseLogs("ProxyDeployed",F.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let G=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:G,transactionHash:F.transactionHash}),G}})})),Y._defineProperty(this,"deployProxyByImplementation",Ee(async(i,s,o,c,u)=>{let l=Z.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Z.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Cl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case qh.contractType:case L0.contractType:let i=await qh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Fh.contractType:let s=await Fh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Tp.contractType:let o=await Tp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Lh.contractType:case O0.contractType:let c=await Lh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case q0.contractType:case Uh.contractType:let u=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case Hh.contractType:let l=await Hh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Wh.contractType:let h=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Z.BigNumber.from(E.sharesBps))];case _p.contractType:let f=await _p.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case hm.contractType:let m=await hm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Cl.contractType:let y=await Cl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return rne(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=rdt(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=Ane(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},Qre=class extends Rs{constructor(e,t,n){super(t,e,NNr.default,n),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},_Dr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",yq=class extends r2{constructor(e,t,n){super(e,t),Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"deployMetadataCache",{}),Y._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new Wlt.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(L0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(qh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Fh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(Tp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(O0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Lh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(Uh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(q0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(_p.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(hm.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(Cl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Wh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(Hh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();_t.default(a,"A signer is required to deploy contracts");let i={app_uri:_pt[e],...await fm[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(Tl.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(Tl.Transaction,this.transactionListener),E}let s=Ane(e);_t.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await Tpt(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(_Dr,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Re(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Re(e),o=await Re(t),c=this.getSigner();_t.default(c,"signer is required");let u=new mq(s,this.getSignerOrProvider(),this.storage,this.options);u.on(Tl.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(Tl.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Re(e),s=Z.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return Yo(XX())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=D8(t,"twRegistry");if(!!n)return new Qre(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=D8(t,"twFactory");return n?new mq(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();_t.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;_t.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Re(f);_t.default(m,`implementationAddress not found for chainId '${h}'`),_t.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=ppt(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){_t.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];_t.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Re(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Z.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. - -${c}`);let u=vne(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();_t.default(a,"Signer is required to deploy contracts");let i=await new Z.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await k_(e,this.storage),n;try{n=await xne(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Re(e),i=await new pm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case _p.contractType:case Tp.contractType:return[XO(t)?.wrapped?.address||Z.ethers.constants.AddressZero];case Cl.contractType:return[XO(t).wrapped.address||Z.ethers.constants.AddressZero,Z.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(_t.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(_t.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},gq=class{constructor(e){Y._defineProperty(this,"featureName",gL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Re(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},Ept={},TDr=new pm("polygon");function Cpt(r,e){return`${r}-${e}`}function EDr(r,e,t){Ept[Cpt(r,e)]=t}function CDr(r,e){return Ept[Cpt(r,e)]}async function F0(r,e,t){let n=(await e.getNetwork()).chainId,a=CDr(r,n);if(a)return a;let i;try{let s=await Z8(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bq(s,t)}catch{try{let o=await TDr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await bq(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return EDr(r,n,i),i}async function kl(r,e,t){try{let n=await F0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function bq(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Ku.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=Rne.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function kq(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var qlt=256,cre="0|[1-9]\\d*",IDr=`(${cre})\\.(${cre})\\.(${cre})`,kDr=new RegExp(IDr);function R_(r){if(r.length>qlt)throw new Error(`version is longer than ${qlt} characters`);let e=r.trim().match(kDr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function Ipt(r,e){let t=R_(r),n=R_(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function ADr(r,e){let t=R_(r),n=R_(e);if(n.major{try{return R_(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:Rpt.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),Mpt=Pne.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),Npt=pI.merge(Pne).extend({publisher:ki.optional()}),Bpt=pI.merge(Mpt).extend({publisher:ki.optional()}),Dpt=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),Opt=Dpt.extend({avatar:pe.z.string().nullable().optional()}),Lpt=pe.z.object({id:pe.z.string(),timestamp:$s,metadataUri:pe.z.string()}),Rne=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),qpt=pe.z.object({name:pe.z.string(),abi:Ku,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:Rne,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Fpt=pI.merge(qpt).extend({bytecode:pe.z.string()}),SDr=new t2.ThirdwebStorage,Mne=new Map;function Nne(r,e){return`${r}-${e}`}function Bne(r,e){let t=Nne(r,e);return Mne.has(t)}function Wpt(r,e){if(!Bne(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=Nne(r,e);return Mne.get(t)}function Upt(r,e,t){let n=Nne(e,t);Mne.set(n,r)}function N8(r){return r||SDr}async function QO(r){let e=await Re(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(Bne(e,a))return Wpt(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new hq(t||n,e,await OL(e,Ku.parse(i),n,r.sdkOptions,N8(r.storage)),N8(r.storage),r.sdkOptions,a);return Upt(s,e,a),s}async function PDr(r){try{let e=new Z.Contract(r.address,ene.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return kne(t)}catch{return"custom"}}async function RDr(r){let e=await Re(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(Bne(e,a))return Wpt(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await PDr({address:e,provider:n});if(i==="custom"){let s=new fq(r.network,r.sdkOptions,N8(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return QO({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await fm[i].getAbi(e,n,N8(r.storage));return QO({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in fm){let i=await fm[r.contractTypeOrAbi].initialize(t||n,e,N8(r.storage),r.sdkOptions);return Upt(i,e,a),i}else return QO({...r,address:e,abi:r.contractTypeOrAbi})}var JO=new WeakMap;async function Dne(r){let[,e]=fi(r.network,r.sdkOptions),t;return JO.has(e)?t=JO.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw JO.delete(e),n}),JO.set(e,t)),await t}async function MDr(r){let[,e]=fi(r.network,r.sdkOptions);return e.getBlockNumber()}var M8=new Map;async function Hpt(r){let e=await Dne(r),t=r.block,n=`${e}_${t}`,a;if(M8.has(n))a=M8.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw M8.delete(n),s}),M8.set(n,a)}return await a}var ure=new Map;async function jpt(r){let e=await Dne(r),t=r.block,n=`${e}_${t}`,a;if(M8.has(n))a=ure.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw ure.delete(n),s}),ure.set(n,a)}return await a}function One(r){let[,e]=fi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function NDr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Hpt({block:a,...t}))}catch{}}return One({...t,onBlockNumber:n})}function zpt(r){let{onBlock:e,...t}=r;async function n(a){try{e(await jpt({block:a,...t}))}catch{}}return One({...t,onBlockNumber:n})}function BDr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return zpt({...n,onBlock:i})}re.ALL_ROLES=yne;re.APPROVED_IMPLEMENTATIONS=fre;re.AbiObjectSchema=Ppt;re.AbiSchema=Ku;re.AbiTypeSchema=Zre;re.AddressOrEnsSchema=ki;re.AddressSchema=ane;re.AdminRoleMissingError=Nre;re.AssetNotFoundError=wre;re.AuctionAlreadyStartedError=Are;re.AuctionHasNotEndedError=w_;re.BYOCContractMetadataSchema=kpt;re.BaseSignaturePayloadInput=xq;re.BigNumberSchema=Ps;re.BigNumberTransformSchema=odt;re.BigNumberishSchema=$s;re.CONTRACTS_MAP=Ine;re.CONTRACT_ADDRESSES=M1;re.CallOverrideSchema=cdt;re.ChainId=Be;re.ChainIdToAddressSchema=Xre;re.ChainInfoInputSchema=udt;re.ClaimConditionInputArray=hdt;re.ClaimConditionInputSchema=uI;re.ClaimConditionMetadataSchema=pdt;re.ClaimConditionOutputSchema=cne;re.ClaimEligibility=ka;re.CommonContractOutputSchema=ld;re.CommonContractSchema=Il;re.CommonPlatformFeeSchema=Ep;re.CommonPrimarySaleSchema=N1;re.CommonRoyaltySchema=$o;re.CommonSymbolSchema=vo;re.CommonTrustedForwarderSchema=dd;re.CompilerMetadataFetchedSchema=qpt;re.ContractAppURI=rI;re.ContractDeployer=yq;re.ContractEncoder=a2;re.ContractEvents=i2;re.ContractInfoSchema=Rne;re.ContractInterceptor=s2;re.ContractMetadata=N0;re.ContractOwner=gq;re.ContractPlatformFee=dq;re.ContractPrimarySale=FL;re.ContractPublishedMetadata=pq;re.ContractRoles=LL;re.ContractRoyalty=qL;re.ContractWrapper=Rs;re.CurrencySchema=ldt;re.CurrencyValueSchema=ddt;re.CustomContractDeploy=Spt;re.CustomContractInput=Sne;re.CustomContractOutput=Apt;re.CustomContractSchema=e2;re.DelayedReveal=X8;re.DropClaimConditions=eI;re.DropErc1155ClaimConditions=WL;re.DropErc1155ContractSchema=kdt;re.DropErc20ContractSchema=vpt;re.DropErc721ContractSchema=dne;re.DuplicateFileNameError=Tre;re.DuplicateLeafsError=nL;re.EditionDropInitializer=Lh;re.EditionInitializer=O0;re.EndDateSchema=oI;re.Erc1155=oq;re.Erc1155BatchMintable=aq;re.Erc1155Burnable=tq;re.Erc1155Enumerable=rq;re.Erc1155LazyMintable=nq;re.Erc1155Mintable=iq;re.Erc1155SignatureMintable=sq;re.Erc20=KL;re.Erc20BatchMintable=HL;re.Erc20Burnable=UL;re.Erc20Mintable=jL;re.Erc20SignatureMintable=zL;re.Erc721=eq;re.Erc721BatchMintable=YL;re.Erc721Burnable=VL;re.Erc721ClaimableWithConditions=GL;re.Erc721Enumerable=QL;re.Erc721LazyMintable=$L;re.Erc721Mintable=JL;re.Erc721Supply=ZL;re.Erc721WithQuantitySignatureMintable=XL;re.EventType=Tl;re.ExtensionNotImplementedError=B0;re.ExtraPublishMetadataSchemaInput=Pne;re.ExtraPublishMetadataSchemaOutput=Mpt;re.FEATURE_DIRECT_LISTINGS=H8;re.FEATURE_ENGLISH_AUCTIONS=j8;re.FEATURE_NFT_REVEALABLE=$8;re.FEATURE_OFFERS=z8;re.FEATURE_PACK_VRF=Bre;re.FactoryDeploymentSchema=Rpt;re.FetchError=kre;re.FileNameMissingError=_re;re.FullPublishMetadataSchemaInput=Npt;re.FullPublishMetadataSchemaOutput=Bpt;re.FunctionDeprecatedError=Sre;re.GasCostEstimator=o2;re.GenericRequest=Edt;re.InterfaceId_IERC1155=iI;re.InterfaceId_IERC721=aI;re.InvalidAddressError=vre;re.LINK_TOKEN_ADDRESS=FNr;re.LOCAL_NODE_PKEY=tdt;re.ListingNotFoundError=Pre;re.MarketplaceContractSchema=pne;re.MarketplaceInitializer=_p;re.MarketplaceV3DirectListings=cq;re.MarketplaceV3EnglishAuctions=uq;re.MarketplaceV3Initializer=hm;re.MarketplaceV3Offers=lq;re.MerkleSchema=W0;re.MintRequest1155=_dt;re.MintRequest20=wdt;re.MintRequest721=xdt;re.MintRequest721withQuantity=Tdt;re.MissingOwnerRoleError=Cre;re.MissingRoleError=rL;re.MultiwrapContractSchema=xpt;re.MultiwrapInitializer=Tp;re.NATIVE_TOKENS=O8;re.NATIVE_TOKEN_ADDRESS=zu;re.NFTCollectionInitializer=L0;re.NFTDropInitializer=qh;re.NotEnoughTokensError=Ere;re.NotFoundError=q8;re.OZ_DEFENDER_FORWARDER_ADDRESS=R1;re.PREBUILT_CONTRACTS_APPURI_MAP=_pt;re.PREBUILT_CONTRACTS_MAP=fm;re.PackContractSchema=Pdt;re.PackInitializer=Cl;re.PartialClaimConditionInputSchema=jNr;re.PreDeployMetadata=pI;re.PreDeployMetadataFetchedSchema=Fpt;re.ProfileSchemaInput=Dpt;re.ProfileSchemaOutput=Opt;re.PublishedContractSchema=Lpt;re.QuantityAboveLimitError=Ire;re.RawDateSchema=sI;re.RestrictedTransferError=Mre;re.SUPPORTED_CHAIN_IDS=Zlt;re.Signature1155PayloadInput=mdt;re.Signature1155PayloadInputWithTokenId=ydt;re.Signature1155PayloadOutput=gdt;re.Signature20PayloadInput=une;re.Signature20PayloadOutput=fdt;re.Signature721PayloadInput=_q;re.Signature721PayloadOutput=lne;re.Signature721WithQuantityInput=bdt;re.Signature721WithQuantityOutput=vdt;re.SignatureDropInitializer=Fh;re.SnapshotEntryInput=eL;re.SnapshotEntryWithProofSchema=sne;re.SnapshotInfoSchema=HNr;re.SnapshotInputSchema=cI;re.SnapshotSchema=one;re.SplitInitializer=Wh;re.SplitsContractSchema=Mdt;re.StartDateSchema=ine;re.Status=Go;re.ThirdwebSDK=pm;re.TokenDropInitializer=q0;re.TokenErc1155ContractSchema=qdt;re.TokenErc20ContractSchema=Bdt;re.TokenErc721ContractSchema=Odt;re.TokenInitializer=Uh;re.Transaction=Oe;re.TransactionError=F8;re.UploadError=xre;re.UserWallet=P_;re.VoteContractSchema=Udt;re.VoteInitializer=Hh;re.WrongListingTypeError=Rre;re.approveErc20Allowance=mne;re.assertEnabled=er;re.buildTransactionFunction=Ee;re.cleanCurrencyAddress=iL;re.convertToReadableQuantity=S8;re.createSnapshot=Xdt;re.detectContractFeature=Ye;re.detectFeatures=lI;re.extractConstructorParams=upt;re.extractConstructorParamsFromAbi=vne;re.extractEventsFromAbi=hpt;re.extractFunctionParamsFromAbi=ppt;re.extractFunctions=lpt;re.extractFunctionsFromAbi=I_;re.extractIPFSHashFromBytecode=mpt;re.extractMinimalProxyImplementationAddress=fpt;re.fetchAbiFromAddress=kl;re.fetchContractMetadata=bq;re.fetchContractMetadataFromAddress=F0;re.fetchCurrencyMetadata=M_;re.fetchCurrencyValue=xp;re.fetchExtendedReleaseMetadata=xne;re.fetchPreDeployMetadata=k_;re.fetchRawPredeployMetadata=wne;re.fetchSnapshotEntryForAddress=Eq;re.fetchSourceFilesFromMetadata=kq;re.fetchTokenMetadataForContract=dI;re.getAllDetectedFeatureNames=jre;re.getAllDetectedFeatures=iDr;re.getApprovedImplementation=rdt;re.getBlock=Hpt;re.getBlockNumber=MDr;re.getBlockWithTransactions=jpt;re.getChainId=Dne;re.getChainIdFromNetwork=Hdt;re.getChainProvider=L8;re.getContract=RDr;re.getContractAddressByChainId=D8;re.getContractFromAbi=QO;re.getContractName=Ane;re.getContractPublisherAddress=ndt;re.getContractTypeForRemoteName=kne;re.getDefaultTrustedForwarders=rne;re.getMultichainRegistryAddress=mre;re.getNativeTokenByChainId=XO;re.getProviderFromRpcUrl=tL;re.getRoleHash=v_;re.getSignerAndProvider=fi;re.getSupportedChains=edt;re.handleTokenApproval=tI;re.hasERC20Allowance=CBr;re.hasFunction=go;re.hasMatchingAbi=bne;re.includesErrorMessage=W8;re.isChainConfig=Tq;re.isDowngradeVersion=ADr;re.isFeatureEnabled=A_;re.isIncrementalVersion=Ipt;re.isNativeToken=jh;re.isProvider=nne;re.isSigner=wq;re.isTokenApprovedForTransfer=gpt;re.isWinningBid=fDr;re.mapOffer=hDr;re.matchesPrebuiltAbi=rDr;re.normalizeAmount=IBr;re.normalizePriceValue=wc;re.parseRevertReason=hne;re.resolveAddress=Re;re.resolveContractUriFromAddress=Z8;re.setErc20Allowance=D0;re.setSupportedChains=Xlt;re.toDisplayValue=PBr;re.toEther=kBr;re.toSemver=R_;re.toUnits=SBr;re.toWei=ABr;re.uploadOrExtractURI=Ene;re.validateNewListingParam=pDr;re.watchBlock=NDr;re.watchBlockNumber=One;re.watchBlockWithTransactions=zpt;re.watchTransactions=BDr});var Gpt=_(B1=>{"use strict";d();p();var N_=ds(),mm=kr(),Aq=Ei(),Kpt=mm.z.object({}).catchall(mm.z.union([N_.BigNumberTransformSchema,mm.z.unknown()])),DDr=mm.z.union([mm.z.array(Kpt),Kpt]).optional(),Vpt=mm.z.object({supply:N_.BigNumberSchema,metadata:Aq.CommonNFTOutput}),ODr=Vpt.extend({owner:mm.z.string(),quantityOwned:N_.BigNumberSchema}),LDr=mm.z.object({supply:N_.BigNumberishSchema,metadata:Aq.CommonNFTInput}),qDr=mm.z.object({supply:N_.BigNumberishSchema,metadata:Aq.NFTInputOrUriSchema}),FDr=mm.z.object({toAddress:N_.AddressOrEnsSchema,amount:Aq.AmountSchema}),WDr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});B1.EditionMetadataInputOrUriSchema=qDr;B1.EditionMetadataInputSchema=LDr;B1.EditionMetadataOutputSchema=Vpt;B1.EditionMetadataWithOwnerOutputSchema=ODr;B1.OptionalPropertiesInput=DDr;B1.ProposalState=WDr;B1.TokenMintInputSchema=FDr});var $pt=_(ae=>{"use strict";d();p();Object.defineProperty(ae,"__esModule",{value:!0});var UDr=Ei(),oe=ds(),u2=Gpt(),HDr=qte(),jDr=Xte(),zDr=VO(),KDr=s_(),VDr=C8(),Lne=Kte(),GDr=ere(),hI=k8();Ir();Ge();kr();_n();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();un();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Vn();Gn();$n();Yn();ln();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();Pt();pa();tn();it();ha();gn();Gr();Hr();fa();ma();ya();Fr();pn();ga();ba();va();wa();xa();_a();Ta();Ea();Ca();globalThis.global=globalThis;ae.getRpcUrl=UDr.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DelayedReveal=oe.DelayedReveal;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=u2.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=u2.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=u2.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=u2.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=u2.OptionalPropertiesInput;ae.ProposalState=u2.ProposalState;ae.TokenMintInputSchema=u2.TokenMintInputSchema;ae.DropErc1155History=HDr.DropErc1155History;ae.TokenERC20History=jDr.TokenERC20History;ae.StandardErc20=zDr.StandardErc20;ae.StandardErc721=KDr.StandardErc721;ae.StandardErc1155=VDr.StandardErc1155;ae.ListingType=Lne.ListingType;ae.MarketplaceAuction=Lne.MarketplaceAuction;ae.MarketplaceDirect=Lne.MarketplaceDirect;ae.VoteType=GDr.VoteType;ae.PAPER_API_URL=hI.PAPER_API_URL;ae.PaperCheckout=hI.PaperCheckout;ae.createCheckoutLinkIntent=hI.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=hI.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=hI.parseChainIdToPaperChain});var Ypt=_((lVn,qne)=>{"use strict";d();p();g.env.NODE_ENV==="production"?qne.exports=lut():qne.exports=$pt()});var yu=_(Jpt=>{"use strict";d();p();function $Dr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function YDr(r){var e=$Dr(r,"string");return typeof e=="symbol"?e:String(e)}function JDr(r,e,t){return e=YDr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}Jpt._defineProperty=JDr});var fI=_(Wne=>{"use strict";d();p();var QDr=yu(),ZDr=it();function XDr(r){return r&&r.__esModule?r:{default:r}}var eOr=XDr(ZDr),Sq=class extends eOr.default{},Fne=class extends Sq{constructor(e){super(),QDr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};Wne.TWConnector=Sq;Wne.WagmiAdapter=Fne});var pd=_(Qpt=>{"use strict";d();p();function tOr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}Qpt._checkPrivateRedeclaration=tOr});var U0=_(Une=>{"use strict";d();p();var rOr=pd();function nOr(r,e){rOr._checkPrivateRedeclaration(r,e),e.add(r)}function aOr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}Une._classPrivateMethodGet=aOr;Une._classPrivateMethodInitSpec=nOr});var l2=_(Pq=>{"use strict";d();p();Object.defineProperty(Pq,"__esModule",{value:!0});var Zpt=yu(),B_=Ge(),iOr=it();function sOr(r){return r&&r.__esModule?r:{default:r}}var oOr=sOr(iOr);function cOr(r){return`https://${r}.rpc.thirdweb.com`}var uOr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],lOr="0x1626ba7e";async function Xpt(r,e,t,n){let a=new B_.providers.JsonRpcProvider(cOr(n)),i=new B_.Contract(t,uOr,a),s=B_.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===lOr}catch{return!1}}var Hne=class extends oOr.default{constructor(){super(...arguments),Zpt._defineProperty(this,"type","evm"),Zpt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=B_.utils.hashMessage(e),s=B_.utils.arrayify(i);if(B_.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await Xpt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Pq.AbstractWallet=Hne;Pq.checkContractWalletSignature=Xpt});var mI=_(jne=>{"use strict";d();p();var eht=U0(),D_=yu(),Al=Pt(),dOr=l2(),ja=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});ja.Mainnet,ja.Goerli,ja.Polygon,ja.Mumbai,ja.Fantom,ja.FantomTestnet,ja.Avalanche,ja.AvalancheFujiTestnet,ja.Optimism,ja.OptimismGoerli,ja.Arbitrum,ja.ArbitrumGoerli,ja.BinanceSmartChainMainnet,ja.BinanceSmartChainTestnet;var pOr={[ja.Mainnet]:Al.Ethereum,[ja.Goerli]:Al.Goerli,[ja.Polygon]:Al.Polygon,[ja.Mumbai]:Al.Mumbai,[ja.Avalanche]:Al.Avalanche,[ja.AvalancheFujiTestnet]:Al.AvalancheFuji,[ja.Fantom]:Al.Fantom,[ja.FantomTestnet]:Al.FantomTestnet,[ja.Arbitrum]:Al.Arbitrum,[ja.ArbitrumGoerli]:Al.ArbitrumGoerli,[ja.Optimism]:Al.Optimism,[ja.OptimismGoerli]:Al.OptimismGoerli,[ja.BinanceSmartChainMainnet]:Al.Binance,[ja.BinanceSmartChainTestnet]:Al.BinanceTestnet},rht=Object.values(pOr),tht=new WeakSet,Rq=class extends dOr.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),eht._classPrivateMethodInitSpec(this,tht),D_._defineProperty(this,"walletId",void 0),D_._defineProperty(this,"coordinatorStorage",void 0),D_._defineProperty(this,"walletStorage",void 0),D_._defineProperty(this,"chains",void 0),D_._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||rht,this.coordinatorStorage=t.coordinatorStorage,this.walletStorage=t.walletStorage}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();eht._classPrivateMethodGet(this,tht,hOr).call(this,t);let n=async()=>{try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function hOr(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}D_._defineProperty(Rq,"meta",void 0);jne.AbstractBrowserWallet=Rq;jne.thirdwebChains=rht});var D1=_(Mq=>{"use strict";d();p();var fOr=pd();function mOr(r,e,t){fOr._checkPrivateRedeclaration(r,e),e.set(r,t)}function yOr(r,e){return e.get?e.get.call(r):e.value}function nht(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function gOr(r,e){var t=nht(r,e,"get");return yOr(r,t)}function bOr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function vOr(r,e,t){var n=nht(r,e,"set");return bOr(r,n,t),t}Mq._classPrivateFieldGet=gOr;Mq._classPrivateFieldInitSpec=mOr;Mq._classPrivateFieldSet=vOr});var O_=_(H0=>{"use strict";d();p();var gu=yu(),aht=Pt(),wOr=it();function xOr(r){return r&&r.__esModule?r:{default:r}}var _Or=xOr(wOr),zne=class extends _Or.default{constructor(e){let{chains:t=[aht.Ethereum,aht.Goerli],options:n}=e;super(),gu._defineProperty(this,"id",void 0),gu._defineProperty(this,"name",void 0),gu._defineProperty(this,"chains",void 0),gu._defineProperty(this,"options",void 0),gu._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},Nq=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),gu._defineProperty(this,"cause",void 0),gu._defineProperty(this,"code",void 0),gu._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},yI=class extends Nq{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},Kne=class extends Error{constructor(){super(...arguments),gu._defineProperty(this,"name","AddChainError"),gu._defineProperty(this,"message","Error adding chain")}},Vne=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),gu._defineProperty(this,"name","ChainNotConfigured")}},Gne=class extends Error{constructor(){super(...arguments),gu._defineProperty(this,"name","ConnectorNotFoundError"),gu._defineProperty(this,"message","Connector not found")}},$ne=class extends Nq{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),gu._defineProperty(this,"name","ResourceUnavailable")}},Yne=class extends yI{constructor(e){super("Error switching chain",{cause:e,code:4902}),gu._defineProperty(this,"name","SwitchChainError")}},Jne=class extends yI{constructor(e){super("User rejected request",{cause:e,code:4001}),gu._defineProperty(this,"name","UserRejectedRequestError")}};H0.AddChainError=Kne;H0.ChainNotConfiguredError=Vne;H0.Connector=zne;H0.ConnectorNotFoundError=Gne;H0.ProviderRpcError=yI;H0.ResourceUnavailableError=$ne;H0.SwitchChainError=Yne;H0.UserRejectedRequestError=Jne});var gI=_(iht=>{"use strict";d();p();function TOr(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}iht.normalizeChainId=TOr});var sht=_(Bq=>{"use strict";d();p();Object.defineProperty(Bq,"__esModule",{value:!0});Bq.walletLogo=void 0;var EOr=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' 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 t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 `}};Bq.walletLogo=EOr});var oht=_(Dq=>{"use strict";d();p();Object.defineProperty(Dq,"__esModule",{value:!0});Dq.ScopedLocalStorage=void 0;var Qne=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};Dq.ScopedLocalStorage=Qne});var bI=_(Xne=>{"use strict";d();p();Object.defineProperty(Xne,"__esModule",{value:!0});var COr=Mu();function cht(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function IOr(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")cht(i,this,t);else{let s=i.length,o=IOr(i);for(let c=0;c{d();p();hht.exports=vI;vI.default=vI;vI.stable=dht;vI.stableStringify=dht;var Oq="[...]",uht="[Circular]",p2=[],d2=[];function lht(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function vI(r,e,t,n){typeof n>"u"&&(n=lht()),eae(r,"",0,[],void 0,0,n);var a;try{d2.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,pht(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;p2.length!==0;){var i=p2.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function L_(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),p2.push([n,t,e,a])):d2.push([e,t,r]):(n[t]=r,p2.push([n,t,e]))}function eae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){L_(Oq,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){L_(Oq,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function dht(r,e,t,n){typeof n>"u"&&(n=lht());var a=tae(r,"",0,[],void 0,0,n)||r,i;try{d2.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,pht(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;p2.length!==0;){var s=p2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function tae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){L_(Oq,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){L_(Oq,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";d();p();Object.defineProperty(q_,"__esModule",{value:!0});q_.EthereumProviderError=q_.EthereumRpcError=void 0;var AOr=rae(),Lq=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return AOr.default(this.serialize(),POr,2)}};q_.EthereumRpcError=Lq;var nae=class extends Lq{constructor(e,t,n){if(!SOr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};q_.EthereumProviderError=nae;function SOr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function POr(r,e){if(e!=="[Circular]")return e}});var Fq=_(F_=>{"use strict";d();p();Object.defineProperty(F_,"__esModule",{value:!0});F_.errorValues=F_.errorCodes=void 0;F_.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}};F_.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."}}});var sae=_(zh=>{"use strict";d();p();Object.defineProperty(zh,"__esModule",{value:!0});zh.serializeError=zh.isValidCode=zh.getMessageFromCode=zh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var Wq=Fq(),ROr=qq(),fht=Wq.errorCodes.rpc.internal,MOr="Unspecified error message. This is a bug, please report it.",NOr={code:fht,message:iae(fht)};zh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function iae(r,e=MOr){if(Number.isInteger(r)){let t=r.toString();if(aae(Wq.errorValues,t))return Wq.errorValues[t].message;if(ght(r))return zh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}zh.getMessageFromCode=iae;function yht(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(Wq.errorValues[e]||ght(r))}zh.isValidCode=yht;function BOr(r,{fallbackError:e=NOr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof ROr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&aae(r,"code")&&yht(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,aae(o,"data")&&(i.data=o.data)):(i.message=iae(i.code),i.data={originalError:mht(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:mht(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}zh.serializeError=BOr;function ght(r){return r>=-32099&&r<=-32e3}function mht(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function aae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var wht=_(Uq=>{"use strict";d();p();Object.defineProperty(Uq,"__esModule",{value:!0});Uq.ethErrors=void 0;var oae=qq(),bht=sae(),bu=Fq();Uq.ethErrors={rpc:{parse:r=>Ip(bu.errorCodes.rpc.parse,r),invalidRequest:r=>Ip(bu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ip(bu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ip(bu.errorCodes.rpc.methodNotFound,r),internal:r=>Ip(bu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ip(e,r)},invalidInput:r=>Ip(bu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ip(bu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ip(bu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ip(bu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ip(bu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ip(bu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>wI(bu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>wI(bu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>wI(bu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>wI(bu.errorCodes.provider.disconnected,r),chainDisconnected:r=>wI(bu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new oae.EthereumProviderError(e,t,n)}}};function Ip(r,e){let[t,n]=vht(e);return new oae.EthereumRpcError(r,t||bht.getMessageFromCode(r),n)}function wI(r,e){let[t,n]=vht(e);return new oae.EthereumProviderError(r,t||bht.getMessageFromCode(r),n)}function vht(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var Hq=_(Sl=>{"use strict";d();p();Object.defineProperty(Sl,"__esModule",{value:!0});Sl.getMessageFromCode=Sl.serializeError=Sl.EthereumProviderError=Sl.EthereumRpcError=Sl.ethErrors=Sl.errorCodes=void 0;var xht=qq();Object.defineProperty(Sl,"EthereumRpcError",{enumerable:!0,get:function(){return xht.EthereumRpcError}});Object.defineProperty(Sl,"EthereumProviderError",{enumerable:!0,get:function(){return xht.EthereumProviderError}});var _ht=sae();Object.defineProperty(Sl,"serializeError",{enumerable:!0,get:function(){return _ht.serializeError}});Object.defineProperty(Sl,"getMessageFromCode",{enumerable:!0,get:function(){return _ht.getMessageFromCode}});var DOr=wht();Object.defineProperty(Sl,"ethErrors",{enumerable:!0,get:function(){return DOr.ethErrors}});var OOr=Fq();Object.defineProperty(Sl,"errorCodes",{enumerable:!0,get:function(){return OOr.errorCodes}})});var zq=_(jq=>{"use strict";d();p();Object.defineProperty(jq,"__esModule",{value:!0});jq.EVENTS=void 0;jq.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var Tht=_(()=>{d();p()});var jht=_((wGn,Hht)=>{d();p();var gae=typeof Map=="function"&&Map.prototype,cae=Object.getOwnPropertyDescriptor&&gae?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Vq=gae&&cae&&typeof cae.get=="function"?cae.get:null,Eht=gae&&Map.prototype.forEach,bae=typeof Set=="function"&&Set.prototype,uae=Object.getOwnPropertyDescriptor&&bae?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Gq=bae&&uae&&typeof uae.get=="function"?uae.get:null,Cht=bae&&Set.prototype.forEach,LOr=typeof WeakMap=="function"&&WeakMap.prototype,_I=LOr?WeakMap.prototype.has:null,qOr=typeof WeakSet=="function"&&WeakSet.prototype,TI=qOr?WeakSet.prototype.has:null,FOr=typeof WeakRef=="function"&&WeakRef.prototype,Iht=FOr?WeakRef.prototype.deref:null,WOr=Boolean.prototype.valueOf,UOr=Object.prototype.toString,HOr=Function.prototype.toString,jOr=String.prototype.match,vae=String.prototype.slice,L1=String.prototype.replace,zOr=String.prototype.toUpperCase,kht=String.prototype.toLowerCase,Oht=RegExp.prototype.test,Aht=Array.prototype.concat,ym=Array.prototype.join,KOr=Array.prototype.slice,Sht=Math.floor,pae=typeof BigInt=="function"?BigInt.prototype.valueOf:null,lae=Object.getOwnPropertySymbols,hae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W_=typeof Symbol=="function"&&typeof Symbol.iterator=="object",vu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W_?"object":"symbol")?Symbol.toStringTag:null,Lht=Object.prototype.propertyIsEnumerable,Pht=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Rht(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Oht.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Sht(-r):Sht(r);if(n!==r){var a=String(n),i=vae.call(e,a.length+1);return L1.call(a,t,"$&_")+"."+L1.call(L1.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L1.call(e,t,"$&_")}var fae=Tht(),Mht=fae.custom,Nht=Fht(Mht)?Mht:null;Hht.exports=function r(e,t,n,a){var i=t||{};if(O1(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(O1(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=O1(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(O1(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(O1(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Uht(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?Rht(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?Rht(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return mae(e)?"[Array]":"[Object]";var h=uLr(i,n);if(typeof a>"u")a=[];else if(Wht(a,e)>=0)return"[Circular]";function f(A,v,k){if(v&&(a=KOr.call(a),a.push(v)),k){var O={depth:i.depth};return O1(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(A,O,n+1,a)}return r(A,i,n+1,a)}if(typeof e=="function"&&!Bht(e)){var m=eLr(e),y=Kq(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+ym.call(y,", ")+" }":"")}if(Fht(e)){var E=W_?L1.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):hae.call(e);return typeof e=="object"&&!W_?xI(E):E}if(sLr(e)){for(var I="<"+kht.call(String(e.nodeName)),S=e.attributes||[],L=0;L",I}if(mae(e)){if(e.length===0)return"[]";var F=Kq(e,f);return h&&!cLr(F)?"["+yae(F,h)+"]":"[ "+ym.call(F,", ")+" ]"}if($Or(e)){var W=Kq(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Lht.call(e,"cause")?"{ ["+String(e)+"] "+ym.call(Aht.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+ym.call(W,", ")+" }"}if(typeof e=="object"&&s){if(Nht&&typeof e[Nht]=="function"&&fae)return fae(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(tLr(e)){var G=[];return Eht&&Eht.call(e,function(A,v){G.push(f(v,e,!0)+" => "+f(A,e))}),Dht("Map",Vq.call(e),G,h)}if(aLr(e)){var K=[];return Cht&&Cht.call(e,function(A){K.push(f(A,e))}),Dht("Set",Gq.call(e),K,h)}if(rLr(e))return dae("WeakMap");if(iLr(e))return dae("WeakSet");if(nLr(e))return dae("WeakRef");if(JOr(e))return xI(f(Number(e)));if(ZOr(e))return xI(f(pae.call(e)));if(QOr(e))return xI(WOr.call(e));if(YOr(e))return xI(f(String(e)));if(!GOr(e)&&!Bht(e)){var H=Kq(e,f),V=Pht?Pht(e)===Object.prototype:e instanceof Object||e.constructor===Object,J=e instanceof Object?"":"null prototype",q=!V&&vu&&Object(e)===e&&vu in e?vae.call(q1(e),8,-1):J?"Object":"",T=V||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=T+(q||J?"["+ym.call(Aht.call([],q||[],J||[]),": ")+"] ":"");return H.length===0?P+"{}":h?P+"{"+yae(H,h)+"}":P+"{ "+ym.call(H,", ")+" }"}return String(e)};function qht(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function VOr(r){return L1.call(String(r),/"/g,""")}function mae(r){return q1(r)==="[object Array]"&&(!vu||!(typeof r=="object"&&vu in r))}function GOr(r){return q1(r)==="[object Date]"&&(!vu||!(typeof r=="object"&&vu in r))}function Bht(r){return q1(r)==="[object RegExp]"&&(!vu||!(typeof r=="object"&&vu in r))}function $Or(r){return q1(r)==="[object Error]"&&(!vu||!(typeof r=="object"&&vu in r))}function YOr(r){return q1(r)==="[object String]"&&(!vu||!(typeof r=="object"&&vu in r))}function JOr(r){return q1(r)==="[object Number]"&&(!vu||!(typeof r=="object"&&vu in r))}function QOr(r){return q1(r)==="[object Boolean]"&&(!vu||!(typeof r=="object"&&vu in r))}function Fht(r){if(W_)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!hae)return!1;try{return hae.call(r),!0}catch{}return!1}function ZOr(r){if(!r||typeof r!="object"||!pae)return!1;try{return pae.call(r),!0}catch{}return!1}var XOr=Object.prototype.hasOwnProperty||function(r){return r in this};function O1(r,e){return XOr.call(r,e)}function q1(r){return UOr.call(r)}function eLr(r){if(r.name)return r.name;var e=jOr.call(HOr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Wht(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Uht(vae.call(r,0,e.maxStringLength),e)+n}var a=L1.call(L1.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,oLr);return qht(a,"single",e)}function oLr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+zOr.call(e.toString(16))}function xI(r){return"Object("+r+")"}function dae(r){return r+" { ? }"}function Dht(r,e,t,n){var a=n?yae(t,n):ym.call(t,", ");return r+" ("+e+") {"+a+"}"}function cLr(r){for(var e=0;e=0)return!1;return!0}function uLr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=ym.call(Array(r.indent+1)," ");else return null;return{base:t,prev:ym.call(Array(e+1),t)}}function yae(r,e){if(r.length===0)return"";var t=` -`+e.prev+e.base;return t+ym.call(r,","+t)+` -`+e.prev}function Kq(r,e){var t=mae(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";d();p();var wae=vE(),U_=wE(),lLr=jht(),dLr=wae("%TypeError%"),$q=wae("%WeakMap%",!0),Yq=wae("%Map%",!0),pLr=U_("WeakMap.prototype.get",!0),hLr=U_("WeakMap.prototype.set",!0),fLr=U_("WeakMap.prototype.has",!0),mLr=U_("Map.prototype.get",!0),yLr=U_("Map.prototype.set",!0),gLr=U_("Map.prototype.has",!0),xae=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},bLr=function(r,e){var t=xae(r,e);return t&&t.value},vLr=function(r,e,t){var n=xae(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},wLr=function(r,e){return!!xae(r,e)};zht.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new dLr("Side channel does not contain "+lLr(i))},get:function(i){if($q&&i&&(typeof i=="object"||typeof i=="function")){if(e)return pLr(e,i)}else if(Yq){if(t)return mLr(t,i)}else if(n)return bLr(n,i)},has:function(i){if($q&&i&&(typeof i=="object"||typeof i=="function")){if(e)return fLr(e,i)}else if(Yq){if(t)return gLr(t,i)}else if(n)return wLr(n,i);return!1},set:function(i,s){$q&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new $q),hLr(e,i,s)):Yq?(t||(t=new Yq),yLr(t,i,s)):(n||(n={key:{},next:null}),vLr(n,i,s))}};return a}});var Jq=_((IGn,Vht)=>{"use strict";d();p();var xLr=String.prototype.replace,_Lr=/%20/g,_ae={RFC1738:"RFC1738",RFC3986:"RFC3986"};Vht.exports={default:_ae.RFC3986,formatters:{RFC1738:function(r){return xLr.call(r,_Lr,"+")},RFC3986:function(r){return String(r)}},RFC1738:_ae.RFC1738,RFC3986:_ae.RFC3986}});var Eae=_((SGn,$ht)=>{"use strict";d();p();var TLr=Jq(),Tae=Object.prototype.hasOwnProperty,h2=Array.isArray,gm=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),ELr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(h2(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===TLr.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+gm[u];continue}if(u<2048){o=o+(gm[192|u>>6]+gm[128|u&63]);continue}if(u<55296||u>=57344){o=o+(gm[224|u>>12]+gm[128|u>>6&63]+gm[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=gm[240|u>>18]+gm[128|u>>12&63]+gm[128|u>>6&63]+gm[128|u&63]}return o},SLr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";d();p();var Qht=Kht(),Qq=Eae(),EI=Jq(),BLr=Object.prototype.hasOwnProperty,Yht={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},j0=Array.isArray,DLr=Array.prototype.push,Zht=function(r,e){DLr.apply(r,j0(e)?e:[e])},OLr=Date.prototype.toISOString,Jht=EI.default,wu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Qq.encode,encodeValuesOnly:!1,format:Jht,formatter:EI.formatters[Jht],indices:!1,serializeDate:function(e){return OLr.call(e)},skipNulls:!1,strictNullHandling:!1},LLr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Cae={},qLr=function r(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I){for(var S=e,L=I,F=0,W=!1;(L=L.get(Cae))!==void 0&&!W;){var G=L.get(e);if(F+=1,typeof G<"u"){if(G===F)throw new RangeError("Cyclic object value");W=!0}typeof L.get(Cae)>"u"&&(F=0)}if(typeof c=="function"?S=c(t,S):S instanceof Date?S=h(S):n==="comma"&&j0(S)&&(S=Qq.maybeMap(S,function(O){return O instanceof Date?h(O):O})),S===null){if(i)return o&&!y?o(t,wu.encoder,E,"key",f):t;S=""}if(LLr(S)||Qq.isBuffer(S)){if(o){var K=y?t:o(t,wu.encoder,E,"key",f);return[m(K)+"="+m(o(S,wu.encoder,E,"value",f))]}return[m(t)+"="+m(String(S))]}var H=[];if(typeof S>"u")return H;var V;if(n==="comma"&&j0(S))y&&o&&(S=Qq.maybeMap(S,o)),V=[{value:S.length>0?S.join(",")||null:void 0}];else if(j0(c))V=c;else{var J=Object.keys(S);V=u?J.sort(u):J}for(var q=a&&j0(S)&&S.length===1?t+"[]":t,T=0;T"u"?wu.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:wu.charsetSentinel,delimiter:typeof e.delimiter>"u"?wu.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:wu.encode,encoder:typeof e.encoder=="function"?e.encoder:wu.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:wu.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:wu.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:wu.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:wu.strictNullHandling}};Xht.exports=function(r,e){var t=r,n=FLr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):j0(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in Yht?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=Yht[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=Qht(),h=0;h0?y+m:""}});var nft=_((DGn,rft)=>{"use strict";d();p();var H_=Eae(),Iae=Object.prototype.hasOwnProperty,WLr=Array.isArray,Jo={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:H_.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},ULr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},tft=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},HLr="utf8=%26%2310003%3B",jLr="utf8=%E2%9C%93",zLr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=WLr(y)?[y]:y),Iae.call(n,m)?n[m]=H_.combine(n[m],y):n[m]=y}return n},KLr=function(r,e,t,n){for(var a=n?e:tft(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},VLr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&Iae.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&(c=o.exec(i))!==null&&h"u"?Jo.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Jo.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Jo.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Jo.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Jo.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Jo.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Jo.comma,decoder:typeof e.decoder=="function"?e.decoder:Jo.decoder,delimiter:typeof e.delimiter=="string"||H_.isRegExp(e.delimiter)?e.delimiter:Jo.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Jo.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Jo.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Jo.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Jo.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Jo.strictNullHandling}};rft.exports=function(r,e){var t=GLr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?zLr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";d();p();var $Lr=eft(),YLr=nft(),JLr=Jq();aft.exports={formats:JLr,parse:YLr,stringify:$Lr}});var II=_(_c=>{"use strict";d();p();Object.defineProperty(_c,"__esModule",{value:!0});_c.ProviderType=_c.RegExpString=_c.IntNumber=_c.BigIntString=_c.AddressString=_c.HexString=_c.OpaqueType=void 0;function CI(){return r=>r}_c.OpaqueType=CI;_c.HexString=CI();_c.AddressString=CI();_c.BigIntString=CI();function QLr(r){return Math.floor(r)}_c.IntNumber=QLr;_c.RegExpString=CI();var ZLr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(ZLr=_c.ProviderType||(_c.ProviderType={}))});var z0=_(Ht=>{"use strict";d();p();var XLr=Ht&&Ht.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isInIFrame=Ht.createQrUrl=Ht.getFavicon=Ht.range=Ht.isBigNumber=Ht.ensureParsedJSONObject=Ht.ensureBN=Ht.ensureRegExpString=Ht.ensureIntNumber=Ht.ensureBuffer=Ht.ensureAddressString=Ht.ensureEvenLengthHexString=Ht.ensureHexString=Ht.isHexString=Ht.prepend0x=Ht.strip0x=Ht.has0xPrefix=Ht.hexStringFromIntNumber=Ht.intNumberFromHexString=Ht.bigIntStringFromBN=Ht.hexStringFromBuffer=Ht.hexStringToUint8Array=Ht.uint8ArrayToHex=Ht.randomBytesHex=void 0;var F1=XLr(Ir()),eqr=ift(),kp=II(),sft=/^[0-9]*$/,oft=/^[a-f0-9]*$/;function tqr(r){return cft(crypto.getRandomValues(new Uint8Array(r)))}Ht.randomBytesHex=tqr;function cft(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}Ht.uint8ArrayToHex=cft;function rqr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Ht.hexStringToUint8Array=rqr;function nqr(r,e=!1){let t=r.toString("hex");return(0,kp.HexString)(e?"0x"+t:t)}Ht.hexStringFromBuffer=nqr;function aqr(r){return(0,kp.BigIntString)(r.toString(10))}Ht.bigIntStringFromBN=aqr;function iqr(r){return(0,kp.IntNumber)(new F1.default(AI(r,!1),16).toNumber())}Ht.intNumberFromHexString=iqr;function sqr(r){return(0,kp.HexString)("0x"+new F1.default(r).toString(16))}Ht.hexStringFromIntNumber=sqr;function kae(r){return r.startsWith("0x")||r.startsWith("0X")}Ht.has0xPrefix=kae;function Zq(r){return kae(r)?r.slice(2):r}Ht.strip0x=Zq;function uft(r){return kae(r)?"0x"+r.slice(2):"0x"+r}Ht.prepend0x=uft;function kI(r){if(typeof r!="string")return!1;let e=Zq(r).toLowerCase();return oft.test(e)}Ht.isHexString=kI;function lft(r,e=!1){if(typeof r=="string"){let t=Zq(r).toLowerCase();if(oft.test(t))return(0,kp.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}Ht.ensureHexString=lft;function AI(r,e=!1){let t=lft(r,!1);return t.length%2===1&&(t=(0,kp.HexString)("0"+t)),e?(0,kp.HexString)("0x"+t):t}Ht.ensureEvenLengthHexString=AI;function oqr(r){if(typeof r=="string"){let e=Zq(r).toLowerCase();if(kI(e)&&e.length===40)return(0,kp.AddressString)(uft(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}Ht.ensureAddressString=oqr;function cqr(r){if(b.Buffer.isBuffer(r))return r;if(typeof r=="string")if(kI(r)){let e=AI(r,!1);return b.Buffer.from(e,"hex")}else return b.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}Ht.ensureBuffer=cqr;function dft(r){if(typeof r=="number"&&Number.isInteger(r))return(0,kp.IntNumber)(r);if(typeof r=="string"){if(sft.test(r))return(0,kp.IntNumber)(Number(r));if(kI(r))return(0,kp.IntNumber)(new F1.default(AI(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureIntNumber=dft;function uqr(r){if(r instanceof RegExp)return(0,kp.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}Ht.ensureRegExpString=uqr;function lqr(r){if(r!==null&&(F1.default.isBN(r)||pft(r)))return new F1.default(r.toString(10),10);if(typeof r=="number")return new F1.default(dft(r));if(typeof r=="string"){if(sft.test(r))return new F1.default(r,10);if(kI(r))return new F1.default(AI(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureBN=lqr;function dqr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}Ht.ensureParsedJSONObject=dqr;function pft(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}Ht.isBigNumber=pft;function pqr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}Ht.range=pqr;function hqr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}Ht.getFavicon=hqr;function fqr(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,eqr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}Ht.createQrUrl=fqr;function mqr(){try{return window.frameElement!==null}catch{return!1}}Ht.isInIFrame=mqr});var eF=_(Xq=>{"use strict";d();p();Object.defineProperty(Xq,"__esModule",{value:!0});Xq.Session=void 0;var hft=zE(),fft=z0(),mft="session:id",yft="session:secret",gft="session:linked",SI=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,fft.randomBytesHex)(16),this._secret=n||(0,fft.randomBytesHex)(32),this._key=new hft.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(mft),n=e.getItem(gft),a=e.getItem(yft);return t&&a?new SI(e,t,a,n==="1"):null}static hash(e){return new hft.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(mft,this._id),this._storage.setItem(yft,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(gft,this._linked?"1":"0")}};Xq.Session=SI});var Sae=_(bm=>{"use strict";d();p();Object.defineProperty(bm,"__esModule",{value:!0});bm.WalletSDKRelayAbstract=bm.APP_VERSION_KEY=bm.LOCAL_STORAGE_ADDRESSES_KEY=bm.WALLET_USER_NAME_KEY=void 0;var bft=Hq();bm.WALLET_USER_NAME_KEY="walletUsername";bm.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";bm.APP_VERSION_KEY="AppVersion";var Aae=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw bft.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,bft.serializeError)(i);return a})}};bm.WalletSDKRelayAbstract=Aae});var xft=_((XGn,wft)=>{d();p();var{Transform:yqr}=NE();wft.exports=r=>class vft extends yqr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){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 t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new vft(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var Eft=_((r$n,Tft)=>{d();p();var{Transform:gqr}=NE();Tft.exports=r=>class _ft extends gqr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new _ft(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var Ift=_((i$n,Cft)=>{d();p();var bqr=xft(),vqr=Eft();Cft.exports=function(r){let e=bqr(r),t=vqr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var Sft=_(Aft=>{d();p();var kft=[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];Aft.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],h=r[9]^r[19]^r[29]^r[39]^r[49],f=l^(a<<1|i>>>31),m=h^(i<<1|a>>>31),y=r[0]^f,E=r[1]^m,I=r[10]^f,S=r[11]^m,L=r[20]^f,F=r[21]^m,W=r[30]^f,G=r[31]^m,K=r[40]^f,H=r[41]^m;f=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let V=r[2]^f,J=r[3]^m,q=r[12]^f,T=r[13]^m,P=r[22]^f,A=r[23]^m,v=r[32]^f,k=r[33]^m,O=r[42]^f,D=r[43]^m;f=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let B=r[4]^f,x=r[5]^m,N=r[14]^f,U=r[15]^m,C=r[24]^f,z=r[25]^m,ee=r[34]^f,j=r[35]^m,X=r[44]^f,ie=r[45]^m;f=s^(l<<1|h>>>31),m=o^(h<<1|l>>>31);let ue=r[6]^f,he=r[7]^m,ke=r[16]^f,ge=r[17]^m,me=r[26]^f,ze=r[27]^m,ve=r[36]^f,Ae=r[37]^m,ao=r[46]^f,Tt=r[47]^m;f=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let bt=r[8]^f,ci=r[9]^m,wt=r[18]^f,st=r[19]^m,ui=r[28]^f,Nt=r[29]^m,dt=r[38]^f,io=r[39]^m,jt=r[48]^f,Bt=r[49]^m,ec=y,ot=E,pt=S<<4|I>>>28,Sc=I<<4|S>>>28,Et=L<<3|F>>>29,Ct=F<<3|L>>>29,Pc=G<<9|W>>>23,Dt=W<<9|G>>>23,It=K<<18|H>>>14,Rc=H<<18|K>>>14,kt=V<<1|J>>>31,Ot=J<<1|V>>>31,tc=T<<12|q>>>20,Lt=q<<12|T>>>20,qt=P<<10|A>>>22,Mc=A<<10|P>>>22,At=k<<13|v>>>19,Ft=v<<13|k>>>19,Nc=O<<2|D>>>30,St=D<<2|O>>>30,Wt=x<<30|B>>>2,rc=B<<30|x>>>2,Je=N<<6|U>>>26,at=U<<6|N>>>26,nc=z<<11|C>>>21,Ut=C<<11|z>>>21,Kt=ee<<15|j>>>17,nl=j<<15|ee>>>17,Vt=ie<<29|X>>>3,Gt=X<<29|ie>>>3,al=ue<<28|he>>>4,$t=he<<28|ue>>>4,Yt=ge<<23|ke>>>9,Pu=ke<<23|ge>>>9,an=me<<25|ze>>>7,sn=ze<<25|me>>>7,Bc=ve<<21|Ae>>>11,Dc=Ae<<21|ve>>>11,Oc=Tt<<24|ao>>>8,Lc=ao<<24|Tt>>>8,qc=bt<<27|ci>>>5,Hp=ci<<27|bt>>>5,jp=wt<<20|st>>>12,zp=st<<20|wt>>>12,Kp=Nt<<7|ui>>>25,Vp=ui<<7|Nt>>>25,Gp=dt<<8|io>>>24,$p=io<<8|dt>>>24,Yp=jt<<14|Bt>>>18,Jp=Bt<<14|jt>>>18;r[0]=ec^~tc&nc,r[1]=ot^~Lt&Ut,r[10]=al^~jp&Et,r[11]=$t^~zp&Ct,r[20]=kt^~Je&an,r[21]=Ot^~at&sn,r[30]=qc^~pt&qt,r[31]=Hp^~Sc&Mc,r[40]=Wt^~Yt&Kp,r[41]=rc^~Pu&Vp,r[2]=tc^~nc&Bc,r[3]=Lt^~Ut&Dc,r[12]=jp^~Et&At,r[13]=zp^~Ct&Ft,r[22]=Je^~an&Gp,r[23]=at^~sn&$p,r[32]=pt^~qt&Kt,r[33]=Sc^~Mc&nl,r[42]=Yt^~Kp&Pc,r[43]=Pu^~Vp&Dt,r[4]=nc^~Bc&Yp,r[5]=Ut^~Dc&Jp,r[14]=Et^~At&Vt,r[15]=Ct^~Ft&Gt,r[24]=an^~Gp&It,r[25]=sn^~$p&Rc,r[34]=qt^~Kt&Oc,r[35]=Mc^~nl&Lc,r[44]=Kp^~Pc&Nc,r[45]=Vp^~Dt&St,r[6]=Bc^~Yp&ec,r[7]=Dc^~Jp&ot,r[16]=At^~Vt&al,r[17]=Ft^~Gt&$t,r[26]=Gp^~It&kt,r[27]=$p^~Rc&Ot,r[36]=Kt^~Oc&qc,r[37]=nl^~Lc&Hp,r[46]=Pc^~Nc&Wt,r[47]=Dt^~St&rc,r[8]=Yp^~ec&tc,r[9]=Jp^~ot&Lt,r[18]=Vt^~al&jp,r[19]=Gt^~$t&zp,r[28]=It^~kt&Je,r[29]=Rc^~Ot&at,r[38]=Oc^~qc&pt,r[39]=Lc^~Hp&Sc,r[48]=Nc^~Wt&Yt,r[49]=St^~rc&Pu,r[0]^=kft[e*2],r[1]^=kft[e*2+1]}}});var Rft=_((d$n,Pft)=>{d();p();var tF=Sft();function j_(){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}j_.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};j_.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(tF.p1600(this.state),this.count=0);return e};j_.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};Pft.exports=j_});var Nft=_((f$n,Mft)=>{d();p();Mft.exports=Ift()(Rft())});var Pae=_((g$n,qft)=>{d();p();var wqr=Nft(),xqr=Ir();function Bft(r){return b.Buffer.allocUnsafe(r).fill(0)}function Dft(r,e,t){let n=Bft(e);return r=rF(r),t?r.length{d();p();var y2=Pae(),m2=Ir();function Wft(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function z_(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function Fft(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function Uft(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function f2(r){var e=typeof r;if(e==="string")return y2.isHexString(r)?new m2(y2.stripHexPrefix(r),16):new m2(r,10);if(e==="number")return new m2(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function vm(r,e){var t,n,a,i;if(r==="address")return vm("uint160",f2(e));if(r==="bool")return vm("uint8",e?1:0);if(r==="string")return vm("bytes",new b.Buffer(e,"utf8"));if(kqr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=Uft(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(vm(r,e[i]));if(t==="dynamic"){var s=vm("uint256",e.length);a.unshift(s)}return b.Buffer.concat(a)}else{if(r==="bytes")return e=new b.Buffer(e),a=b.Buffer.concat([vm("uint256",e.length),e]),e.length%32!==0&&(a=b.Buffer.concat([a,y2.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=z_(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return y2.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=z_(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=f2(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("int")){if(t=z_(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=f2(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=Fft(r),n=f2(e),n<0)throw new Error("Supplied ufixed is negative");return vm("uint256",n.mul(new m2(2).pow(new m2(t[1]))))}else if(r.startsWith("fixed"))return t=Fft(r),vm("int256",f2(e).mul(new m2(2).pow(new m2(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function Iqr(r){return r==="string"||r==="bytes"||Uft(r)==="dynamic"}function kqr(r){return r.lastIndexOf("]")===r.length-1}function Aqr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=Wft(r[i]),o=e[i],c=vm(s,o);Iqr(s)?(t.push(vm("uint256",a)),n.push(c),a+=c.length):t.push(c)}return b.Buffer.concat(t.concat(n))}function Hft(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(y2.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=z_(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=f2(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(b.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=z_(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=f2(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(b.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return b.Buffer.concat(a)}function Sqr(r,e){return y2.keccak(Hft(r,e))}jft.exports={rawEncode:Aqr,solidityPack:Hft,soliditySHA3:Sqr}});var Gft=_((T$n,Vft)=>{d();p();var Kh=Pae(),PI=zft(),Kft={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"]},Rae={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Kh.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",Kh.keccak(u)];if(c==="string")return typeof u=="string"&&(u=b.Buffer.from(u,"utf8")),["bytes32",Kh.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(o,l,f));return["bytes32",Kh.keccak(PI.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=Kh.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=b.Buffer.from(o,"utf8")),o=Kh.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=Kh.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return PI.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Kh.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Kh.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in Kft.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[b.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Kh.keccak(b.Buffer.concat(n))}};Vft.exports={TYPED_MESSAGE_SCHEMA:Kft,TypedDataUtils:Rae,hashForSignTypedDataLegacy:function(r){return Pqr(r.data)},hashForSignTypedData_v3:function(r){return Rae.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return Rae.hash(r.data)}};function Pqr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Kh.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return PI.soliditySHA3(["bytes32","bytes32"],[PI.soliditySHA3(new Array(r.length).fill("string"),a),PI.soliditySHA3(n,t)])}});var Zft=_(V_=>{"use strict";d();p();Object.defineProperty(V_,"__esModule",{value:!0});V_.filterFromParam=V_.FilterPolyfill=void 0;var K_=II(),Gu=z0(),Rqr=5*60*1e3,g2={jsonrpc:"2.0",id:0},Mae=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,K_.IntNumber)(1),this.provider=e}async newFilter(e){let t=Qft(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Gu.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Gu.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Gu.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Gu.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Gu.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(nF())}async getFilterLogs(e){let t=(0,Gu.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},g2),{method:"eth_getLogs",params:[$ft(n)]})):nF()}makeFilterId(){return(0,K_.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return nF();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return aF();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},g2),{method:"eth_getLogs",params:[$ft(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Gu.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,K_.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return nF();let n=await this.getCurrentBlockHeight();if(t>n)return aF();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Gu.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,K_.IntNumber)(s))))).filter(s=>!!s),i=(0,K_.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},g2),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(aF())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},Rqr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},g2),{method:"eth_blockNumber",params:[]}));return(0,Gu.intNumberFromHexString)((0,Gu.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},g2),{method:"eth_getBlockByNumber",params:[(0,Gu.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Gu.ensureHexString)(t.result.hash):null}};V_.FilterPolyfill=Mae;function Qft(r){return{fromBlock:Yft(r.fromBlock),toBlock:Yft(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}V_.filterFromParam=Qft;function $ft(r){let e={fromBlock:Jft(r.fromBlock),toBlock:Jft(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function Yft(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,K_.IntNumber)(0);if((0,Gu.isHexString)(r))return(0,Gu.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function Jft(r){return r==="latest"?r:(0,Gu.hexStringFromIntNumber)(r)}function nF(){return Object.assign(Object.assign({},g2),{error:{code:-32e3,message:"filter not found"}})}function aF(){return Object.assign(Object.assign({},g2),{result:[]})}});var Xft=_(RI=>{"use strict";d();p();Object.defineProperty(RI,"__esModule",{value:!0});RI.JSONRPCMethod=void 0;var Mqr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(Mqr=RI.JSONRPCMethod||(RI.JSONRPCMethod={}))});var Nae=_((M$n,tmt)=>{"use strict";d();p();var emt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):emt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?emt(i,e):i}return n}});var nmt=_((D$n,rmt)=>{d();p();rmt.exports=Bqr;var Nqr=Object.prototype.hasOwnProperty;function Bqr(){for(var r={},e=0;e{d();p();amt.exports=Dqr;function Dqr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var Bae=_((U$n,smt)=>{d();p();var Oqr=nmt(),Lqr=imt()();smt.exports=dr;function dr(r){let e=this;e.currentProvider=r}dr.prototype.getBalance=MI(2,"eth_getBalance");dr.prototype.getCode=MI(2,"eth_getCode");dr.prototype.getTransactionCount=MI(2,"eth_getTransactionCount");dr.prototype.getStorageAt=MI(3,"eth_getStorageAt");dr.prototype.call=MI(2,"eth_call");dr.prototype.protocolVersion=Mr("eth_protocolVersion");dr.prototype.syncing=Mr("eth_syncing");dr.prototype.coinbase=Mr("eth_coinbase");dr.prototype.mining=Mr("eth_mining");dr.prototype.hashrate=Mr("eth_hashrate");dr.prototype.gasPrice=Mr("eth_gasPrice");dr.prototype.accounts=Mr("eth_accounts");dr.prototype.blockNumber=Mr("eth_blockNumber");dr.prototype.getBlockTransactionCountByHash=Mr("eth_getBlockTransactionCountByHash");dr.prototype.getBlockTransactionCountByNumber=Mr("eth_getBlockTransactionCountByNumber");dr.prototype.getUncleCountByBlockHash=Mr("eth_getUncleCountByBlockHash");dr.prototype.getUncleCountByBlockNumber=Mr("eth_getUncleCountByBlockNumber");dr.prototype.sign=Mr("eth_sign");dr.prototype.sendTransaction=Mr("eth_sendTransaction");dr.prototype.sendRawTransaction=Mr("eth_sendRawTransaction");dr.prototype.estimateGas=Mr("eth_estimateGas");dr.prototype.getBlockByHash=Mr("eth_getBlockByHash");dr.prototype.getBlockByNumber=Mr("eth_getBlockByNumber");dr.prototype.getTransactionByHash=Mr("eth_getTransactionByHash");dr.prototype.getTransactionByBlockHashAndIndex=Mr("eth_getTransactionByBlockHashAndIndex");dr.prototype.getTransactionByBlockNumberAndIndex=Mr("eth_getTransactionByBlockNumberAndIndex");dr.prototype.getTransactionReceipt=Mr("eth_getTransactionReceipt");dr.prototype.getUncleByBlockHashAndIndex=Mr("eth_getUncleByBlockHashAndIndex");dr.prototype.getUncleByBlockNumberAndIndex=Mr("eth_getUncleByBlockNumberAndIndex");dr.prototype.getCompilers=Mr("eth_getCompilers");dr.prototype.compileLLL=Mr("eth_compileLLL");dr.prototype.compileSolidity=Mr("eth_compileSolidity");dr.prototype.compileSerpent=Mr("eth_compileSerpent");dr.prototype.newFilter=Mr("eth_newFilter");dr.prototype.newBlockFilter=Mr("eth_newBlockFilter");dr.prototype.newPendingTransactionFilter=Mr("eth_newPendingTransactionFilter");dr.prototype.uninstallFilter=Mr("eth_uninstallFilter");dr.prototype.getFilterChanges=Mr("eth_getFilterChanges");dr.prototype.getFilterLogs=Mr("eth_getFilterLogs");dr.prototype.getLogs=Mr("eth_getLogs");dr.prototype.getWork=Mr("eth_getWork");dr.prototype.submitWork=Mr("eth_submitWork");dr.prototype.submitHashrate=Mr("eth_submitHashrate");dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(qqr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function Mr(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function MI(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{d();p();var Fqr=cR(),cmt=Mu(),Dae=typeof Reflect=="object"?Reflect:null,Wqr=Dae&&typeof Dae.apply=="function"?Dae.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};umt.exports=Oae;function Oae(){cmt.call(this)}Fqr.inherits(Oae,cmt);Oae.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")omt(o,this,e);else for(var c=o.length,u=Uqr(o,c),t=0;t{throw n})}}function Uqr(r,e){for(var t=new Array(e),n=0;n{d();p();var G$n=Bae(),$$n=Nae(),Hqr=lmt(),jqr=1e3,zqr=(r,e)=>r+e,dmt=["sync","latest"],Lae=class extends Hqr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*jqr,this._blockResetTimeout,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()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!dmt.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return dmt.map(e=>this.listenerCount(e)).reduce(zqr)}_newPotentialLatest(e){let t=this._currentBlock;t&&pmt(e)<=pmt(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};hmt.exports=Lae;function pmt(r){return Number.parseInt(r,16)}});var gmt=_((Z$n,ymt)=>{d();p();var Kqr=Nae(),Vqr=fmt(),Gqr=1e3,qae=class extends Vqr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*Gqr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await mmt(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: -${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await mmt(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await Kqr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: -${t.error}`);return t.result}};ymt.exports=qae;function mmt(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var Wae=_(iF=>{"use strict";d();p();Object.defineProperty(iF,"__esModule",{value:!0});iF.getUniqueId=void 0;var bmt=4294967295,Fae=Math.floor(Math.random()*bmt);function $qr(){return Fae=(Fae+1)%bmt,Fae}iF.getUniqueId=$qr});var vmt=_(sF=>{"use strict";d();p();Object.defineProperty(sF,"__esModule",{value:!0});sF.createIdRemapMiddleware=void 0;var Yqr=Wae();function Jqr(){return(r,e,t,n)=>{let a=r.id,i=Yqr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}sF.createIdRemapMiddleware=Jqr});var wmt=_(oF=>{"use strict";d();p();Object.defineProperty(oF,"__esModule",{value:!0});oF.createAsyncMiddleware=void 0;function Qqr(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}oF.createAsyncMiddleware=Qqr});var xmt=_(cF=>{"use strict";d();p();Object.defineProperty(cF,"__esModule",{value:!0});cF.createScaffoldMiddleware=void 0;function Zqr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}cF.createScaffoldMiddleware=Zqr});var lF=_(G_=>{"use strict";d();p();Object.defineProperty(G_,"__esModule",{value:!0});G_.EthereumProviderError=G_.EthereumRpcError=void 0;var Xqr=rae(),uF=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return Xqr.default(this.serialize(),tFr,2)}};G_.EthereumRpcError=uF;var Uae=class extends uF{constructor(e,t,n){if(!eFr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};G_.EthereumProviderError=Uae;function eFr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function tFr(r,e){if(e!=="[Circular]")return e}});var dF=_($_=>{"use strict";d();p();Object.defineProperty($_,"__esModule",{value:!0});$_.errorValues=$_.errorCodes=void 0;$_.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}};$_.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."}}});var zae=_(Vh=>{"use strict";d();p();Object.defineProperty(Vh,"__esModule",{value:!0});Vh.serializeError=Vh.isValidCode=Vh.getMessageFromCode=Vh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var pF=dF(),rFr=lF(),_mt=pF.errorCodes.rpc.internal,nFr="Unspecified error message. This is a bug, please report it.",aFr={code:_mt,message:jae(_mt)};Vh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function jae(r,e=nFr){if(Number.isInteger(r)){let t=r.toString();if(Hae(pF.errorValues,t))return pF.errorValues[t].message;if(Cmt(r))return Vh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Vh.getMessageFromCode=jae;function Emt(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(pF.errorValues[e]||Cmt(r))}Vh.isValidCode=Emt;function iFr(r,{fallbackError:e=aFr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof rFr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&Hae(r,"code")&&Emt(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,Hae(o,"data")&&(i.data=o.data)):(i.message=jae(i.code),i.data={originalError:Tmt(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:Tmt(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Vh.serializeError=iFr;function Cmt(r){return r>=-32099&&r<=-32e3}function Tmt(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function Hae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var Amt=_(hF=>{"use strict";d();p();Object.defineProperty(hF,"__esModule",{value:!0});hF.ethErrors=void 0;var Kae=lF(),Imt=zae(),xu=dF();hF.ethErrors={rpc:{parse:r=>Ap(xu.errorCodes.rpc.parse,r),invalidRequest:r=>Ap(xu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ap(xu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ap(xu.errorCodes.rpc.methodNotFound,r),internal:r=>Ap(xu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ap(e,r)},invalidInput:r=>Ap(xu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ap(xu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ap(xu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ap(xu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ap(xu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ap(xu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>NI(xu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>NI(xu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>NI(xu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>NI(xu.errorCodes.provider.disconnected,r),chainDisconnected:r=>NI(xu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new Kae.EthereumProviderError(e,t,n)}}};function Ap(r,e){let[t,n]=kmt(e);return new Kae.EthereumRpcError(r,t||Imt.getMessageFromCode(r),n)}function NI(r,e){let[t,n]=kmt(e);return new Kae.EthereumProviderError(r,t||Imt.getMessageFromCode(r),n)}function kmt(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var Rmt=_(Pl=>{"use strict";d();p();Object.defineProperty(Pl,"__esModule",{value:!0});Pl.getMessageFromCode=Pl.serializeError=Pl.EthereumProviderError=Pl.EthereumRpcError=Pl.ethErrors=Pl.errorCodes=void 0;var Smt=lF();Object.defineProperty(Pl,"EthereumRpcError",{enumerable:!0,get:function(){return Smt.EthereumRpcError}});Object.defineProperty(Pl,"EthereumProviderError",{enumerable:!0,get:function(){return Smt.EthereumProviderError}});var Pmt=zae();Object.defineProperty(Pl,"serializeError",{enumerable:!0,get:function(){return Pmt.serializeError}});Object.defineProperty(Pl,"getMessageFromCode",{enumerable:!0,get:function(){return Pmt.getMessageFromCode}});var sFr=Amt();Object.defineProperty(Pl,"ethErrors",{enumerable:!0,get:function(){return sFr.ethErrors}});var oFr=dF();Object.defineProperty(Pl,"errorCodes",{enumerable:!0,get:function(){return oFr.errorCodes}})});var Gae=_(Y_=>{"use strict";d();p();var cFr=Y_&&Y_.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Y_,"__esModule",{value:!0});Y_.JsonRpcEngine=void 0;var uFr=cFr(bI()),Sp=Rmt(),Gh=class extends uFr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await Gh._runAllMiddleware(e,t,this._middleware);return s?(await Gh._runReturnHandlers(o),a(i)):n(async c=>{try{await Gh._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Sp.EthereumRpcError(Sp.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Sp.EthereumRpcError(Sp.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Sp.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Gh._runAllMiddleware(e,t,this._middleware);if(Gh._checkForCompletion(e,t,a),await Gh._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await Gh._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Sp.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Sp.EthereumRpcError(Sp.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: -${Vae(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Sp.EthereumRpcError(Sp.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: -${Vae(e)}`,{request:e});if(!n)throw new Sp.EthereumRpcError(Sp.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: -${Vae(e)}`,{request:e})}};Y_.JsonRpcEngine=Gh;function Vae(r){return JSON.stringify(r,null,2)}});var Mmt=_(fF=>{"use strict";d();p();Object.defineProperty(fF,"__esModule",{value:!0});fF.mergeMiddleware=void 0;var lFr=Gae();function dFr(r){let e=new lFr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}fF.mergeMiddleware=dFr});var $ae=_(Pp=>{"use strict";d();p();var pFr=Pp&&Pp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),J_=Pp&&Pp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&pFr(e,r,t)};Object.defineProperty(Pp,"__esModule",{value:!0});J_(vmt(),Pp);J_(wmt(),Pp);J_(xmt(),Pp);J_(Wae(),Pp);J_(Gae(),Pp);J_(Mmt(),Pp)});var bF=_((LYn,gF)=>{d();p();var Nmt,Bmt,Dmt,Omt,Lmt,qmt,Fmt,Wmt,Umt,Hmt,jmt,zmt,Kmt,mF,Yae,Vmt,Gmt,$mt,Q_,Ymt,Jmt,Qmt,Zmt,Xmt,e0t,t0t,r0t,n0t,yF;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof gF=="object"&&typeof gF.exports=="object"?r(t(e,t(gF.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};Nmt=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},Bmt=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},Lmt=function(n,a){return function(i,s){a(i,s,n)}},qmt=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,h=l==="getter"?"get":l==="setter"?"set":"value",f=!a&&n?s.static?n:n.prototype:null,m=a||(f?Object.getOwnPropertyDescriptor(f,s.name):{}),y,E=!1,I=i.length-1;I>=0;I--){var S={};for(var L in s)S[L]=L==="access"?{}:s[L];for(var L in s.access)S.access[L]=s.access[L];S.addInitializer=function(W){if(E)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var F=(0,i[I])(l==="accessor"?{get:m.get,set:m.set}:m[h],S);if(l==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(y=u(F.get))&&(m.get=y),(y=u(F.set))&&(m.set=y),(y=u(F.init))&&o.push(y)}else(y=u(F))&&(l==="field"?o.push(y):m[h]=y)}f&&Object.defineProperty(f,s.name,m),E=!0},Fmt=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Yae=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},Vmt=function(){for(var n=[],a=0;a1||l(E,I)})})}function l(E,I){try{h(s[E](I))}catch(S){y(c[0][3],S)}}function h(E){E.value instanceof Q_?Promise.resolve(E.value.v).then(f,m):y(c[0][2],E)}function f(E){l("next",E)}function m(E){l("throw",E)}function y(E,I){E(I),c.shift(),c.length&&l(c[0][0],c[0][1])}},Jmt=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:Q_(n[o](u)),done:!1}:c?c(u):u}:c}},Qmt=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof mF=="function"?mF(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,h){u=n[c](u),o(l,h,u.done,u.value)})}}function o(c,u,l,h){Promise.resolve(h).then(function(f){c({value:f,done:l})},u)}},Zmt=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};Xmt=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&yF(a,n,i);return t(a,n),a},e0t=function(n){return n&&n.__esModule?n:{default:n}},t0t=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},r0t=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},n0t=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",Nmt),r("__assign",Bmt),r("__rest",Dmt),r("__decorate",Omt),r("__param",Lmt),r("__esDecorate",qmt),r("__runInitializers",Fmt),r("__propKey",Wmt),r("__setFunctionName",Umt),r("__metadata",Hmt),r("__awaiter",jmt),r("__generator",zmt),r("__exportStar",Kmt),r("__createBinding",yF),r("__values",mF),r("__read",Yae),r("__spread",Vmt),r("__spreadArrays",Gmt),r("__spreadArray",$mt),r("__await",Q_),r("__asyncGenerator",Ymt),r("__asyncDelegator",Jmt),r("__asyncValues",Qmt),r("__makeTemplateObject",Zmt),r("__importStar",Xmt),r("__importDefault",e0t),r("__classPrivateFieldGet",t0t),r("__classPrivateFieldSet",r0t),r("__classPrivateFieldIn",n0t)})});var Qae=_(Jae=>{"use strict";d();p();Object.defineProperty(Jae,"__esModule",{value:!0});var a0t=bF(),hFr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return a0t.__awaiter(this,void 0,void 0,function(){var t,n,a;return a0t.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.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 e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();Jae.default=hFr});var s0t=_(Zae=>{"use strict";d();p();Object.defineProperty(Zae,"__esModule",{value:!0});var i0t=bF(),fFr=Qae(),mFr=function(){function r(){this._semaphore=new fFr.default(1)}return r.prototype.acquire=function(){return i0t.__awaiter(this,void 0,void 0,function(){var e,t;return i0t.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();Zae.default=mFr});var o0t=_(wF=>{"use strict";d();p();Object.defineProperty(wF,"__esModule",{value:!0});wF.withTimeout=void 0;var vF=bF();function yFr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return vF.__awaiter(n,void 0,void 0,function(){var s,o,c;return vF.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return vF.__awaiter(this,void 0,void 0,function(){var i,s;return vF.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}wF.withTimeout=yFr});var c0t=_(W1=>{"use strict";d();p();Object.defineProperty(W1,"__esModule",{value:!0});W1.withTimeout=W1.Semaphore=W1.Mutex=void 0;var gFr=s0t();Object.defineProperty(W1,"Mutex",{enumerable:!0,get:function(){return gFr.default}});var bFr=Qae();Object.defineProperty(W1,"Semaphore",{enumerable:!0,get:function(){return bFr.default}});var vFr=o0t();Object.defineProperty(W1,"withTimeout",{enumerable:!0,get:function(){return vFr.withTimeout}})});var p0t=_((ZYn,d0t)=>{"use strict";d();p();var u0t=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},l0t=new WeakMap;d0t.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=l0t.get(s);if(c||(c={},l0t.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),h=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:u0t(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=u0t(c,e,i,s);return a.set(c,l),l}return c}});return i}});var xF=_((tJn,h0t)=>{d();p();var wFr=bI().default,Xae=class extends wFr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};h0t.exports=Xae});var m0t=_((aJn,f0t)=>{d();p();var xFr=xF(),eie=class extends xFr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};f0t.exports=eie});var Z_=_((oJn,b0t)=>{d();p();b0t.exports={minBlockRef:_Fr,maxBlockRef:TFr,sortBlockRefs:tie,bnToHex:EFr,blockRefIsNumber:CFr,hexToInt:_F,incrementHexInt:IFr,intToHex:g0t,unsafeRandomBytes:kFr};function _Fr(...r){return tie(r)[0]}function TFr(...r){let e=tie(r);return e[e.length-1]}function tie(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:_F(e)-_F(t))}function EFr(r){return"0x"+r.toString(16)}function CFr(r){return r&&!["earliest","latest","pending"].includes(r)}function _F(r){return r==null?r:Number.parseInt(r,16)}function IFr(r){if(r==null)return r;let e=_F(r);return g0t(e+1)}function g0t(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function kFr(r){let e="0x";for(let t=0;t{d();p();var AFr=Bae(),SFr=p0t(),PFr=m0t(),{bnToHex:lJn,hexToInt:TF,incrementHexInt:RFr,minBlockRef:MFr,blockRefIsNumber:NFr}=Z_(),rie=class extends PFr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new AFr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=MFr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=RFr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await SFr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(TF(this.params.fromBlock)>=TF(e.blockNumber)||NFr(this.params.toBlock)&&TF(this.params.toBlock)<=TF(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};v0t.exports=rie});var EF=_((fJn,_0t)=>{d();p();_0t.exports=BFr;async function BFr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=x0t(e),i=x0t(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(DFr);return await Promise.all(s.map(c=>LFr(r,"eth_getBlockByNumber",[c,!1])))}function x0t(r){return r==null?r:Number.parseInt(r,16)}function DFr(r){return r==null?r:"0x"+r.toString(16)}function OFr(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function LFr(r,e,t){for(let n=0;n<3;n++)try{return await OFr(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var E0t=_((gJn,T0t)=>{d();p();var qFr=xF(),FFr=EF(),{incrementHexInt:WFr}=Z_(),nie=class extends qFr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=WFr(e),s=(await FFr({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};T0t.exports=nie});var I0t=_((wJn,C0t)=>{d();p();var UFr=xF(),HFr=EF(),{incrementHexInt:jFr}=Z_(),aie=class extends UFr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=jFr(e),a=await HFr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};C0t.exports=aie});var S0t=_((TJn,A0t)=>{d();p();var zFr=c0t().Mutex,{createAsyncMiddleware:KFr,createScaffoldMiddleware:VFr}=$ae(),GFr=w0t(),$Fr=E0t(),YFr=I0t(),{intToHex:k0t,hexToInt:iie}=Z_();A0t.exports=JFr;function JFr({blockTracker:r,provider:e}){let t=0,n={},a=new zFr,i=QFr({mutex:a}),s=VFr({eth_newFilter:i(sie(c)),eth_newBlockFilter:i(sie(u)),eth_newPendingTransactionFilter:i(sie(l)),eth_uninstallFilter:i(CF(m)),eth_getFilterChanges:i(CF(h)),eth_getFilterLogs:i(CF(f))}),o=async({oldBlock:L,newBlock:F})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all(X_(n).map(async G=>{try{await G.update({oldBlock:L,newBlock:F})}catch(K){console.error(K)}}))}catch(G){console.error(G)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{I()},s;async function c(L){let F=new GFr({provider:e,params:L}),W=await y(F);return F}async function u(){let L=new $Fr({provider:e}),F=await y(L);return L}async function l(){let L=new YFr({provider:e}),F=await y(L);return L}async function h(L){let F=iie(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);return W.getChangesAndClear()}async function f(L){let F=iie(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);let G=[];return W.type==="log"&&(G=W.getAllResults()),G}async function m(L){let F=iie(L),W=n[F],G=Boolean(W);return G&&await E(F),G}async function y(L){let F=X_(n).length,W=await r.getLatestBlock();await L.initialize({currentBlock:W}),t++,n[t]=L,L.id=t,L.idHex=k0t(t);let G=X_(n).length;return S({prevFilterCount:F,newFilterCount:G}),t}async function E(L){let F=X_(n).length;delete n[L];let W=X_(n).length;S({prevFilterCount:F,newFilterCount:W})}async function I(){let L=X_(n).length;n={},S({prevFilterCount:L,newFilterCount:0})}function S({prevFilterCount:L,newFilterCount:F}){if(L===0&&F>0){r.on("sync",o);return}if(L>0&&F===0){r.removeListener("sync",o);return}}}function sie(r){return CF(async(...e)=>{let t=await r(...e);return k0t(t.id)})}function CF(r){return KFr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function QFr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function X_(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var M0t=_((IJn,R0t)=>{d();p();var ZFr=bI().default,{createAsyncMiddleware:P0t,createScaffoldMiddleware:XFr}=$ae(),eWr=S0t(),{unsafeRandomBytes:tWr,incrementHexInt:rWr}=Z_(),nWr=EF();R0t.exports=aWr;function aWr({blockTracker:r,provider:e}){let t={},n=eWr({blockTracker:r,provider:e}),a=!1,i=new ZFr,s=XFr({eth_subscribe:P0t(o),eth_unsubscribe:P0t(c)});return s.destroy=l,{events:i,middleware:s};async function o(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=tWr(16),E;switch(m){case"newHeads":E=I({subId:y});break;case"logs":let L=h.params[1],F=await n.newLogFilter(L);E=S({subId:y,filter:F});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=E,f.result=y;return;function I({subId:L}){let F={type:m,destroy:async()=>{r.removeListener("sync",F.update)},update:async({oldBlock:W,newBlock:G})=>{let K=G,H=rWr(W);(await nWr({provider:e,fromBlock:H,toBlock:K})).map(iWr).filter(q=>q!==null).forEach(q=>{u(L,q)})}};return r.on("sync",F.update),F}function S({subId:L,filter:F}){return F.on("update",G=>u(L,G)),{type:m,destroy:async()=>await n.uninstallFilter(F.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=t[m];if(!y){f.result=!1;return}delete t[m],await y.destroy(),f.result=!0}function u(h,f){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function l(){i.removeAllListeners();for(let h in t)t[h].destroy(),delete t[h];a=!0}}function iWr(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var B0t=_(IF=>{"use strict";d();p();Object.defineProperty(IF,"__esModule",{value:!0});IF.SubscriptionManager=void 0;var sWr=gmt(),oWr=M0t(),N0t=()=>{},oie=class{constructor(e){let t=new sWr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=oWr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,N0t,N0t),t}destroy(){this.subscriptionMiddleware.destroy()}};IF.SubscriptionManager=oie});var kF=_(eT=>{"use strict";d();p();var die=eT&&eT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(eT,"__esModule",{value:!0});eT.CoinbaseWalletProvider=void 0;var cWr=die(bI()),uWr=die(Ir()),_u=Hq(),cie=zq(),D0t=eF(),O0t=Sae(),Ar=z0(),uie=die(Gft()),lWr=Zft(),Ra=Xft(),dWr=B0t(),L0t="DefaultChainId",q0t="DefaultJsonRpcUrl",lie=class extends cWr.default{constructor(e){var t,n;super(),this._filterPolyfill=new lWr.FilterPolyfill(this),this._subscriptionManager=new dWr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),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=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,Ar.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(O0t.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,Ar.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Ar.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 e;return(e=this._storage.getItem(q0t))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(q0t,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(L0t,t.toString(10)),((0,Ar.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,Ar.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let h=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=h.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw _u.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(cie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?D0t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Ra.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw _u.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw _u.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw _u.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Ar.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");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(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.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 t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,Ar.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(O0t.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Ra.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Ra.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Ra.JSONRPCMethod.net_version:return this._net_version();case Ra.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Ra.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Ra.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Ra.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Ra.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Ra.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Ra.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Ra.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Ra.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Ra.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Ra.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Ra.JSONRPCMethod.eth_signTypedData_v4:case Ra.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Ra.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Ra.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Ra.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Ra.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Ra.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Ra.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Ra.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Ra.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Ra.JSONRPCMethod.eth_subscribe:case Ra.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,Ar.ensureAddressString)(e);return this._addresses.map(a=>(0,Ar.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(cie.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,Ar.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,Ar.ensureAddressString)(e.to):null,a=e.value!=null?(0,Ar.ensureBN)(e.value):new uWr.default(0),i=e.data?(0,Ar.ensureBuffer)(e.data):b.Buffer.alloc(0),s=e.nonce!=null?(0,Ar.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,Ar.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Ar.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,Ar.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,Ar.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw _u.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw _u.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?_u.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Ar.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(L0t);if(!e)return(0,Ar.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,Ar.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(cie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?D0t.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?_u.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?_u.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,Ar.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?_u.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,Ar.ensureParsedJSONObject)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=uie.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=uie.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=uie.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw _u.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw _u.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.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(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw _u.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw _u.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw _u.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw _u.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}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(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};eT.CoinbaseWalletProvider=lie});var Ml={};cr(Ml,{Component:()=>Rl,Fragment:()=>Rp,cloneElement:()=>mie,createContext:()=>qI,createElement:()=>hd,createRef:()=>LI,h:()=>hd,hydrate:()=>RF,isValidElement:()=>z0t,options:()=>nt,render:()=>v2,toChildArray:()=>$h});function K0(r,e){for(var t in e)r[t]=e[t];return r}function $0t(r){var e=r.parentNode;e&&e.removeChild(r)}function hd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?OI.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return BI(r,s,n,a,null)}function BI(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++j0t};return a==null&&nt.vnode!=null&&nt.vnode(i),i}function LI(){return{current:null}}function Rp(r){return r.children}function Rl(r,e){this.props=r,this.context=e}function DI(r,e){if(e==null)return r.__?DI(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&b2.sort(pie));SF.__r=0}function J0t(r,e,t,n,a,i,s,o,c,u){var l,h,f,m,y,E,I,S=n&&n.__k||G0t,L=S.length;for(t.__k=[],l=0;l0?BI(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(f=S[l])===null||f&&m.key==f.key&&m.type===f.type)S[l]=void 0;else for(h=0;h=0;e--)if((t=r.__k[e])&&(n=X0t(t)))return n}return null}function hWr(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||PF(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||PF(r,i,e[i],t[i],n)}function W0t(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||pWr.test(e)?t:t+"px"}function PF(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||W0t(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||W0t(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?H0t:U0t,i):r.removeEventListener(e,i?H0t:U0t,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function U0t(r){return this.l[r.type+!1](nt.event?nt.event(r):r)}function H0t(r){return this.l[r.type+!0](nt.event?nt.event(r):r)}function fie(r,e,t,n,a,i,s,o,c){var u,l,h,f,m,y,E,I,S,L,F,W,G,K,H,V=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=nt.__b)&&u(e);try{e:if(typeof V=="function"){if(I=e.props,S=(u=V.contextType)&&n[u.__c],L=u?S?S.props.value:u.__:n,t.__c?E=(l=e.__c=t.__c).__=l.__E:("prototype"in V&&V.prototype.render?e.__c=l=new V(I,L):(e.__c=l=new Rl(I,L),l.constructor=V,l.render=mWr),S&&S.sub(l),l.props=I,l.state||(l.state={}),l.context=L,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),V.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=K0({},l.__s)),K0(l.__s,V.getDerivedStateFromProps(I,l.__s))),f=l.props,m=l.state,l.__v=e,h)V.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(V.getDerivedStateFromProps==null&&I!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(I,L),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(I,l.__s,L)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=I,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(J){J&&(J.__=e)}),F=0;F2&&(s.children=arguments.length>3?OI.call(arguments,2):t),BI(r.type,s,n||r.key,a||r.ref,null)}function qI(r,e){var t={__c:e="__cC"+V0t++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,hie(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var OI,nt,j0t,z0t,b2,F0t,K0t,pie,V0t,AF,G0t,pWr,Tc=ce(()=>{d();p();AF={},G0t=[],pWr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;OI=G0t.slice,nt={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},j0t=0,z0t=function(r){return r!=null&&r.constructor===void 0},Rl.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=K0({},this.state),typeof r=="function"&&(r=r(K0({},t),this.props)),r&&K0(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),hie(this))},Rl.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),hie(this))},Rl.prototype.render=Rp,b2=[],K0t=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pie=function(r,e){return r.__v.__b-e.__v.__b},SF.__r=0,V0t=0});var tT=_(yie=>{"use strict";d();p();Object.defineProperty(yie,"__esModule",{value:!0});function yWr(r){return typeof r=="function"}yie.isFunction=yWr});var FI=_(bie=>{"use strict";d();p();Object.defineProperty(bie,"__esModule",{value:!0});var gie=!1;bie.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: -`+e.stack)}else gie&&console.log("RxJS: Back to a better error behavior. Thank you. <3");gie=r},get useDeprecatedSynchronousErrorHandling(){return gie}}});var MF=_(vie=>{"use strict";d();p();Object.defineProperty(vie,"__esModule",{value:!0});function gWr(r){setTimeout(function(){throw r},0)}vie.hostReportError=gWr});var xie=_(wie=>{"use strict";d();p();Object.defineProperty(wie,"__esModule",{value:!0});var bWr=FI(),vWr=MF();wie.empty={closed:!0,next:function(r){},error:function(r){if(bWr.config.useDeprecatedSynchronousErrorHandling)throw r;vWr.hostReportError(r)},complete:function(){}}});var $u=_(_ie=>{"use strict";d();p();Object.defineProperty(_ie,"__esModule",{value:!0});_ie.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var NF=_(Tie=>{"use strict";d();p();Object.defineProperty(Tie,"__esModule",{value:!0});function wWr(r){return r!==null&&typeof r=="object"}Tie.isObject=wWr});var Cie=_(Eie=>{"use strict";d();p();Object.defineProperty(Eie,"__esModule",{value:!0});var xWr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: + If you still want to use the old @thirdweb-dev/auth@2.0.0 package, you can downgrade the SDK to version 3.6.0.`)}async getNFTDrop(e){return await this.getContract(e,"nft-drop")}async getSignatureDrop(e){return await this.getContract(e,"signature-drop")}async getNFTCollection(e){return await this.getContract(e,"nft-collection")}async getEditionDrop(e){return await this.getContract(e,"edition-drop")}async getEdition(e){return await this.getContract(e,"edition")}async getTokenDrop(e){return await this.getContract(e,"token-drop")}async getToken(e){return await this.getContract(e,"token")}async getVote(e){return await this.getContract(e,"vote")}async getSplit(e){return await this.getContract(e,"split")}async getMarketplace(e){return await this.getContract(e,"marketplace")}async getMarketplaceV3(e){return await this.getContract(e,"marketplace-v3")}async getPack(e){return await this.getContract(e,"pack")}async getMultiwrap(e){return await this.getContract(e,"multiwrap")}async getContract(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);if(n in tdt.GENERATED_ABI)return await this.getContractFromAbi(n,tdt.GENERATED_ABI[n]);let a;if(!t||t==="custom")try{let i=await this.getPublisher().fetchCompilerMetadataFromAddress(n);a=await this.getContractFromAbi(n,i.abi)}catch{let s=await this.resolveContractType(e);if(s&&s!=="custom"){let o=await ym[s].getAbi(e,this.getProvider(),this.storage);a=await this.getContractFromAbi(e,o)}else{let o=(await this.getProvider().getNetwork()).chainId;throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${o}/${n}`)}}else typeof t=="string"&&t in ym?a=await ym[t].initialize(this.getSignerOrProvider(),n,this.storage,this.options):a=await this.getContractFromAbi(n,t);return this.contractCache.set(n,a),a}async getBuiltInContract(e,t){return await this.getContract(e,t)}async resolveContractType(e){try{let t=new Z.Contract(await Re(e),Ane.default,this.getProvider()),n=Z.utils.toUtf8String(await t.contractType()).replace(/\x00/g,"");return tae(n)}catch{return"custom"}}async getContractList(e){let t=await(await this.deployer.getRegistry())?.getContractAddresses(await Re(e))||[],n=(await this.getProvider().getNetwork()).chainId;return await Promise.all(t.map(async a=>({address:a,chainId:n,contractType:()=>this.resolveContractType(a),metadata:async()=>(await this.getContract(a)).metadata.get(),extensions:async()=>gne((await this.getContract(a)).abi)})))}async getMultichainContractList(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:II.defaultChains,n=await this.multiChainRegistry.getContractAddresses(e),a=t.reduce((s,o)=>(s[o.chainId]=o,s),{}),i={};return n.map(s=>{let{address:o,chainId:c}=s;if(!a[c])return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]};try{let u=i[c];return u||(u=new fm(c,{...this.options,readonlySettings:void 0,supportedChains:t}),i[c]=u),{address:o,chainId:c,contractType:()=>u.resolveContractType(o),metadata:async()=>(await u.getContract(o)).metadata.get(),extensions:async()=>gne((await u.getContract(o)).abi)}}catch{return{address:o,chainId:c,contractType:async()=>"custom",metadata:async()=>({}),extensions:async()=>[]}}})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this.wallet.connect(this.getSignerOrProvider()),this.deployer.updateSignerOrProvider(this.getSignerOrProvider()),this._publisher.updateSignerOrProvider(this.getSignerOrProvider()),this.multiChainRegistry.updateSigner(this.getSignerOrProvider());for(let[,e]of this.contractCache)e.onNetworkUpdated(this.getSignerOrProvider())}async getContractFromAbi(e,t){let n=await Re(e);if(this.contractCache.has(n))return this.contractCache.get(n);let[,a]=fi(this.getSignerOrProvider(),this.options),i=typeof t=="string"?JSON.parse(t):t,s=new Bq(this.getSignerOrProvider(),n,await nq(n,Vu.parse(i),a,this.options,this.storage),this.storageHandler,this.options,(await a.getNetwork()).chainId);return this.contractCache.set(n,s),s}async getBalance(e){return Tp(this.getProvider(),Gu,await this.getProvider().getBalance(await Re(e)))}getPublisher(){return this._publisher}},Oq=class extends Ns{constructor(e,t,n,a){super(t,e,qBr.default,a),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"DEFAULT_VERSION_MAP",{[Wh.contractType]:3,[j0.contractType]:1,[Uh.contractType]:4,[Cp.contractType]:1,[Fh.contractType]:2,[H0.contractType]:1,[z0.contractType]:2,[jh.contractType]:1,[zh.contractType]:1,[Hh.contractType]:1,[Ep.contractType]:2,[mm.contractType]:1,[Sl.contractType]:2}),Y._defineProperty(this,"deploy",Ee(async(i,s,o,c)=>{let u=ym[i],l=await u.schema.deploy.parseAsync(s),h=await this.storage.upload(l),f=await this.getImplementation(u,c)||void 0;if(!f||f===Z.constants.AddressZero)throw new Error(`No implementation found for ${i}`);let m=await u.getAbi(f,this.getProvider(),this.storage),y=this.getSigner();Tt.default(y,"A signer is required to deploy contracts");let E=await yht(i,l,h,y),I=Z.Contract.getInterface(m).encodeFunctionData("initialize",E),S=await this.getProvider().getBlockNumber(),L=Z.ethers.utils.formatBytes32String(S.toString());return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[f,I,L],parse:F=>{let W=this.parseLogs("ProxyDeployed",F.logs);if(W.length<1)throw new Error("No ProxyDeployed event found");let V=W[0].args.proxy;return o.emit("contractDeployed",{status:"completed",contractAddress:V,transactionHash:F.transactionHash}),V}})})),Y._defineProperty(this,"deployProxyByImplementation",Ee(async(i,s,o,c,u)=>{let l=Z.Contract.getInterface(s).encodeFunctionData(o,c),h=await this.getProvider().getBlockNumber();return Oe.fromContractWrapper({contractWrapper:this,method:"deployProxyByImplementation",args:[i,l,Z.ethers.utils.formatBytes32String(h.toString())],parse:f=>{let m=this.parseLogs("ProxyDeployed",f.logs);if(m.length<1)throw new Error("No ProxyDeployed event found");let y=m[0].args.proxy;return u.emit("contractDeployed",{status:"completed",contractAddress:y,transactionHash:f.transactionHash}),y}})})),this.storage=n}async getDeployArguments(e,t,n){let a=e===Sl.contractType?[]:await this.getDefaultTrustedForwarders();switch(t.trusted_forwarders&&t.trusted_forwarders.length>0&&(a=t.trusted_forwarders),e){case Wh.contractType:case j0.contractType:let i=await Wh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),i.name,i.symbol,n,a,i.primary_sale_recipient,i.fee_recipient,i.seller_fee_basis_points,i.platform_fee_basis_points,i.platform_fee_recipient];case Uh.contractType:let s=await Uh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),s.name,s.symbol,n,a,s.primary_sale_recipient,s.fee_recipient,s.seller_fee_basis_points,s.platform_fee_basis_points,s.platform_fee_recipient];case Cp.contractType:let o=await Cp.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),o.name,o.symbol,n,a,o.fee_recipient,o.seller_fee_basis_points];case Fh.contractType:case H0.contractType:let c=await Fh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),c.name,c.symbol,n,a,c.primary_sale_recipient,c.fee_recipient,c.seller_fee_basis_points,c.platform_fee_basis_points,c.platform_fee_recipient];case z0.contractType:case jh.contractType:let u=await jh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),u.name,u.symbol,n,a,u.primary_sale_recipient,u.platform_fee_recipient,u.platform_fee_basis_points];case zh.contractType:let l=await zh.schema.deploy.parseAsync(t);return[l.name,n,a,l.voting_token_address,l.voting_delay_in_blocks,l.voting_period_in_blocks,Z.BigNumber.from(l.proposal_token_threshold),l.voting_quorum_fraction];case Hh.contractType:let h=await Hh.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,h.recipients.map(E=>E.address),h.recipients.map(E=>Z.BigNumber.from(E.sharesBps))];case Ep.contractType:let f=await Ep.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,f.platform_fee_recipient,f.platform_fee_basis_points];case mm.contractType:let m=await mm.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),n,a,m.platform_fee_recipient,m.platform_fee_basis_points];case Sl.contractType:let y=await Sl.schema.deploy.parseAsync(t);return[await this.getSignerAddress(),y.name,y.symbol,n,a,y.fee_recipient,y.seller_fee_basis_points];default:return[]}}async getDefaultTrustedForwarders(){let e=await this.getChainID();return Pne(e)}async getImplementation(e,t){let n=Z.ethers.utils.formatBytes32String(e.name),a=await this.getChainID(),i=Ydt(a,e.contractType);return i&&i.length>0&&t===void 0?i:this.readContract.getImplementation(n,t!==void 0?t:this.DEFAULT_VERSION_MAP[e.contractType])}async getLatestVersion(e){let t=rae(e);if(!t)throw new Error(`Invalid contract type ${e}`);let n=Z.ethers.utils.formatBytes32String(t);return this.readContract.currentVersion(n)}},Cne=class extends Ns{constructor(e,t,n){super(t,e,FBr.default,n),Y._defineProperty(this,"addContract",Ee(async a=>await this.addContracts.prepare([a]))),Y._defineProperty(this,"addContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("add",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})})),Y._defineProperty(this,"removeContract",Ee(async a=>await this.removeContracts.prepare([a]))),Y._defineProperty(this,"removeContracts",Ee(async a=>{let i=await this.getSignerAddress(),s=await Promise.all(a.map(async o=>this.readContract.interface.encodeFunctionData("remove",[i,await Re(o)])));return Oe.fromContractWrapper({contractWrapper:this,method:"multicall",args:[s]})}))}async getContractAddresses(e){return(await this.readContract.getAll(await Re(e))).filter(t=>Z.utils.isAddress(t)&&t.toLowerCase()!==Z.constants.AddressZero)}},AOr="0xdd99b75f095d0c4d5112aCe938e4e6ed962fb024",Lq=class extends d2{constructor(e,t,n){super(e,t),Y._defineProperty(this,"_factory",void 0),Y._defineProperty(this,"_registry",void 0),Y._defineProperty(this,"storage",void 0),Y._defineProperty(this,"events",void 0),Y._defineProperty(this,"deployMetadataCache",{}),Y._defineProperty(this,"transactionListener",a=>{a.status==="submitted"&&this.events.emit("contractDeployed",{status:"submitted",transactionHash:a.transactionHash})}),this.storage=n,this.events=new Ndt.EventEmitter,this.getFactory(),this.getRegistry()}async deployNFTCollection(e){return await this.deployBuiltInContract(j0.contractType,e)}async deployNFTDrop(e){return await this.deployBuiltInContract(Wh.contractType,e)}async deploySignatureDrop(e){return await this.deployBuiltInContract(Uh.contractType,e)}async deployMultiwrap(e){return await this.deployBuiltInContract(Cp.contractType,e)}async deployEdition(e){return await this.deployBuiltInContract(H0.contractType,e)}async deployEditionDrop(e){return await this.deployBuiltInContract(Fh.contractType,e)}async deployToken(e){return await this.deployBuiltInContract(jh.contractType,e)}async deployTokenDrop(e){return await this.deployBuiltInContract(z0.contractType,e)}async deployMarketplace(e){return await this.deployBuiltInContract(Ep.contractType,e)}async deployMarketplaceV3(e){return await this.deployBuiltInContract(mm.contractType,e)}async deployPack(e){return await this.deployBuiltInContract(Sl.contractType,e)}async deploySplit(e){return await this.deployBuiltInContract(Hh.contractType,e)}async deployVote(e){return await this.deployBuiltInContract(zh.contractType,e)}async deployBuiltInContract(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"latest",a=this.getSigner();Tt.default(a,"A signer is required to deploy contracts");let i={app_uri:mht[e],...await ym[e].schema.deploy.parseAsync(t)};if(this.hasLocalFactory()){let m;try{m=parseInt(n),isNaN(m)&&(m=void 0)}catch{m=void 0}let y=await this.getFactory();if(!y)throw new Error("Factory not found");y.on(kl.Transaction,this.transactionListener);let E=await y.deploy(e,i,this.events,m);return y.off(kl.Transaction,this.transactionListener),E}let s=rae(e);Tt.default(s,"Contract name not found");let o=await this.storage.upload(i),c=await yht(e,i,o,a),u=(await this.getProvider().getNetwork()).chainId,l=await this.fetchPublishedContractFromPolygon(AOr,s,n),h=await this.fetchAndCacheDeployMetadata(l.metadataUri),f=h.extendedMetadata?.factoryDeploymentData?.implementationAddresses?.[u];if(f)return this.deployContractFromUri(l.metadataUri,c);{f=await this.deployContractFromUri(l.metadataUri,this.getConstructorParamsForImplementation(e,u),{forceDirectDeploy:!0});let m=await Re(f);return this.deployProxy(m,h.compilerMetadata.abi,"initialize",c)}}async getLatestBuiltInContractVersion(e){let t=await this.getFactory();if(!t)throw new Error("Factory not found");return await t.getLatestVersion(e)}async deployReleasedContract(e,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"latest",i=arguments.length>4?arguments[4]:void 0,s=await this.fetchPublishedContractFromPolygon(e,t,a);return await this.deployContractFromUri(s.metadataUri,n,i)}async deployViaFactory(e,t,n,a,i){let s=await Re(e),o=await Re(t),c=this.getSigner();Tt.default(c,"signer is required");let u=new Oq(s,this.getSignerOrProvider(),this.storage,this.options);u.on(kl.Transaction,this.transactionListener);let l=await u.deployProxyByImplementation(o,n,a,i,this.events);return u.off(kl.Transaction,this.transactionListener),l}async deployProxy(e,t,n,a){let i=await Re(e),s=Z.Contract.getInterface(t).encodeFunctionData(n,a),{TWProxy__factory:o}=await Promise.resolve().then(function(){return Qo(kee())});return this.deployContractWithAbi(o.abi,o.bytecode,[i,s])}async getRegistry(){return this._registry?this._registry:this._registry=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aI(t,"twRegistry");if(!!n)return new Cne(n,this.getSignerOrProvider(),this.options)})}async getFactory(){return this._factory?this._factory:this._factory=this.getProvider().getNetwork().then(async e=>{let{chainId:t}=e,n=aI(t,"twFactory");return n?new Oq(n,this.getSignerOrProvider(),this.storage,this.options):void 0})}updateSignerOrProvider(e){super.updateSignerOrProvider(e),this.updateContractSignerOrProvider()}updateContractSignerOrProvider(){this._factory?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{}),this._registry?.then(e=>{e?.updateSignerOrProvider(this.getSignerOrProvider())}).catch(()=>{})}async deployContractFromUri(e,t,n){let a=this.getSigner();Tt.default(a,"A signer is required");let{compilerMetadata:i,extendedMetadata:s}=await this.fetchAndCacheDeployMetadata(e),o=n?.forceDirectDeploy||!1;if(s&&s.factoryDeploymentData&&(s.isDeployableViaProxy||s.isDeployableViaFactory)&&!o){let h=(await this.getProvider().getNetwork()).chainId;Tt.default(s.factoryDeploymentData.implementationAddresses,"implementationAddresses is required");let f=s.factoryDeploymentData.implementationAddresses[h],m=await Re(f);Tt.default(m,`implementationAddress not found for chainId '${h}'`),Tt.default(s.factoryDeploymentData.implementationInitializerFunction,"implementationInitializerFunction not set'");let y=iht(i.abi,s.factoryDeploymentData.implementationInitializerFunction).map(I=>I.type),E=this.convertParamValues(y,t);if(s.isDeployableViaFactory){Tt.default(s.factoryDeploymentData.factoryAddresses,"isDeployableViaFactory is true so factoryAddresses is required");let I=s.factoryDeploymentData.factoryAddresses[h];Tt.default(I,`isDeployableViaFactory is true and factoryAddress not found for chainId '${h}'`);let S=await Re(I);return await this.deployViaFactory(S,m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}else if(s.isDeployableViaProxy)return await this.deployProxy(m,i.abi,s.factoryDeploymentData.implementationInitializerFunction,E)}let c=i.bytecode.startsWith("0x")?i.bytecode:`0x${i.bytecode}`;if(!Z.ethers.utils.isHexString(c))throw new Error(`Contract bytecode is invalid. + +${c}`);let u=Vne(i.abi).map(h=>h.type),l=this.convertParamValues(u,t);return this.deployContractWithAbi(i.abi,c,l)}async deployContractWithAbi(e,t,n){let a=this.getSigner();Tt.default(a,"Signer is required to deploy contracts");let i=await new Z.ethers.ContractFactory(e,t).connect(a).deploy(...n);this.events.emit("contractDeployed",{status:"submitted",transactionHash:i.deployTransaction.hash});let s=await i.deployed();return this.events.emit("contractDeployed",{status:"completed",contractAddress:s.address,transactionHash:s.deployTransaction.hash}),s.address}addDeployListener(e){this.events.on("contractDeployed",e)}removeDeployListener(e){this.events.off("contractDeployed",e)}removeAllDeployListeners(){this.events.removeAllListeners("contractDeployed")}async fetchAndCacheDeployMetadata(e){if(this.deployMetadataCache[e])return this.deployMetadataCache[e];let t=await zx(e,this.storage),n;try{n=await Yne(e,this.storage)}catch{}let a={compilerMetadata:t,extendedMetadata:n};return this.deployMetadataCache[e]=a,a}async fetchPublishedContractFromPolygon(e,t,n){let a=await Re(e),i=await new fm("polygon").getPublisher().getVersion(a,t,n);if(!i)throw new Error(`No published contract found for '${t}' at version '${n}' by '${a}'`);return i}getConstructorParamsForImplementation(e,t){switch(e){case Ep.contractType:case Cp.contractType:return[wL(t)?.wrapped?.address||Z.ethers.constants.AddressZero];case Sl.contractType:return[wL(t).wrapped.address||Z.ethers.constants.AddressZero,Z.ethers.constants.AddressZero];default:return[]}}hasLocalFactory(){return g.env.factoryAddress!==void 0}convertParamValues(e,t){if(e.length!==t.length)throw Error(`Passed the wrong number of constructor arguments: ${t.length}, expected ${e.length}`);return e.map((n,a)=>n==="tuple"||n.endsWith("[]")?typeof t[a]=="string"?JSON.parse(t[a]):t[a]:n==="bytes32"?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes32 value. Expected valid hex string but got "${t[a]}".`),Z.ethers.utils.hexZeroPad(t[a],32)):n.startsWith("bytes")?(Tt.default(Z.ethers.utils.isHexString(t[a]),`Could not parse bytes value. Expected valid hex string but got "${t[a]}".`),t[a]):n.startsWith("uint")||n.startsWith("int")?Z.BigNumber.from(t[a].toString()):t[a])}},qq=class{constructor(e){Y._defineProperty(this,"featureName",qL.name),Y._defineProperty(this,"contractWrapper",void 0),Y._defineProperty(this,"set",Ee(async t=>{let n=await Re(t);return Oe.fromContractWrapper({contractWrapper:this.contractWrapper,method:"setOwner",args:[n]})})),this.contractWrapper=e}async get(){return this.contractWrapper.readContract.owner()}},ght={},SOr=new fm("polygon");function bht(r,e){return`${r}-${e}`}function POr(r,e,t){ght[bht(r,e)]=t}function ROr(r,e){return ght[bht(r,e)]}async function K0(r,e,t){let n=(await e.getNetwork()).chainId,a=ROr(r,n);if(a)return a;let i;try{let s=await _I(r,e);if(!s)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await Fq(s,t)}catch{try{let o=await SOr.multiChainRegistry.getContractMetadataURI(n,r);if(!o)throw new Error(`Could not resolve metadata for contract at ${r}`);i=await Fq(o,t)}catch{throw new Error(`Could not resolve metadata for contract at ${r}`)}}if(!i)throw new Error(`Could not resolve metadata for contract at ${r}`);return POr(r,n,i),i}async function Rl(r,e,t){try{let n=await K0(r,e,t);if(n&&n.abi)return n.abi}catch{}}async function Fq(r,e){let t=await e.downloadJSON(r);if(!t||!t.output)throw new Error(`Could not resolve metadata for contract at ${r}`);let n=Vu.parse(t.output.abi),a=t.settings.compilationTarget,i=Object.keys(a),s=a[i[0]],o=iae.parse({title:t.output.devdoc.title,author:t.output.devdoc.author,details:t.output.devdoc.detail,notice:t.output.userdoc.notice}),c=[...new Set(Object.entries(t.sources).map(u=>{let[,l]=u;return l.license}))];return{name:s,abi:n,metadata:t,info:o,licenses:c}}async function $q(r,e){return await Promise.all(Object.entries(r.metadata.sources).map(async t=>{let[n,a]=t,i=a.urls,s=i?i.find(o=>o.includes("ipfs")):void 0;if(s){let o=s.split("ipfs/")[1],c=new Promise((l,h)=>setTimeout(()=>h("timeout"),3e3)),u=await Promise.race([(await e.download(`ipfs://${o}`)).text(),c]);return{filename:n,source:u}}else return{filename:n,source:a.content||"Could not find source for this contract"}}))}var Rdt=256,Ore="0|[1-9]\\d*",MOr=`(${Ore})\\.(${Ore})\\.(${Ore})`,NOr=new RegExp(MOr);function $x(r){if(r.length>Rdt)throw new Error(`version is longer than ${Rdt} characters`);let e=r.trim().match(NOr);if(!e||e?.length!==4)throw new Error(`${r} is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`);let t=Number(e[1]),n=Number(e[2]),a=Number(e[3]),i=[t,n,a].join(".");return{major:t,minor:n,patch:a,versionString:i}}function vht(r,e){let t=$x(r),n=$x(e);if(n.major>t.major)return!0;let a=n.major===t.major;if(a&&n.minor>t.minor)return!0;let i=n.minor===t.minor;return a&&i&&n.patch>t.patch}function BOr(r,e){let t=$x(r),n=$x(e);if(n.major{try{return $x(r),!0}catch{return!1}},r=>({message:`'${r}' is not a valid semantic version. Should be in the format of major.minor.patch. Ex: 0.4.1`})),displayName:pe.z.string().optional(),description:pe.z.string().optional(),readme:pe.z.string().optional(),license:pe.z.string().optional(),changelog:pe.z.string().optional(),tags:pe.z.array(pe.z.string()).optional(),audit:Y.FileOrBufferOrStringSchema.nullable().optional(),logo:Y.FileOrBufferOrStringSchema.nullable().optional(),isDeployableViaFactory:pe.z.boolean().optional(),isDeployableViaProxy:pe.z.boolean().optional(),factoryDeploymentData:Eht.optional(),constructorParams:pe.z.record(pe.z.string(),pe.z.object({displayName:pe.z.string().optional(),description:pe.z.string().optional(),defaultValue:pe.z.string().optional()}).catchall(pe.z.any())).optional()}).catchall(pe.z.any()),Cht=aae.extend({audit:pe.z.string().nullable().optional(),logo:pe.z.string().nullable().optional()}),Iht=DI.merge(aae).extend({publisher:ki.optional()}),kht=DI.merge(Cht).extend({publisher:ki.optional()}),Aht=pe.z.object({name:pe.z.string().optional(),bio:pe.z.string().optional(),avatar:Y.FileOrBufferOrStringSchema.nullable().optional(),website:pe.z.string().optional(),twitter:pe.z.string().optional(),telegram:pe.z.string().optional(),facebook:pe.z.string().optional(),github:pe.z.string().optional(),medium:pe.z.string().optional(),linkedin:pe.z.string().optional(),reddit:pe.z.string().optional(),discord:pe.z.string().optional()}),Sht=Aht.extend({avatar:pe.z.string().nullable().optional()}),Pht=pe.z.object({id:pe.z.string(),timestamp:Js,metadataUri:pe.z.string()}),iae=pe.z.object({title:pe.z.string().optional(),author:pe.z.string().optional(),details:pe.z.string().optional(),notice:pe.z.string().optional()}),Rht=pe.z.object({name:pe.z.string(),abi:Vu,metadata:pe.z.record(pe.z.string(),pe.z.any()),info:iae,licenses:pe.z.array(pe.z.string().optional()).default([]).transform(r=>r.filter(e=>e!==void 0))}),Mht=DI.merge(Rht).extend({bytecode:pe.z.string()}),DOr=new l2.ThirdwebStorage,sae=new Map;function oae(r,e){return`${r}-${e}`}function cae(r,e){let t=oae(r,e);return sae.has(t)}function Nht(r,e){if(!cae(r,e))throw new Error(`Contract ${r} was not found in cache`);let t=oae(r,e);return sae.get(t)}function Bht(r,e,t){let n=oae(e,t);sae.set(n,r)}function rI(r){return r||DOr}async function bL(r){let e=await Re(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(cae(e,a))return Nht(e,a);let i=typeof r.abi=="string"?JSON.parse(r.abi):r.abi,s=new Bq(t||n,e,await nq(e,Vu.parse(i),n,r.sdkOptions,rI(r.storage)),rI(r.storage),r.sdkOptions,a);return Bht(s,e,a),s}async function OOr(r){try{let e=new Z.Contract(r.address,Ane.default,r.provider),t=Z.ethers.utils.toUtf8String(await e.contractType()).replace(/\x00/g,"");return tae(t)}catch{return"custom"}}async function LOr(r){let e=await Re(r.address),[t,n]=fi(r.network,r.sdkOptions),a=(await n.getNetwork()).chainId;if(cae(e,a))return Nht(e,a);if(!r.contractTypeOrAbi||r.contractTypeOrAbi==="custom"){let i=await OOr({address:e,provider:n});if(i==="custom"){let s=new Dq(r.network,r.sdkOptions,rI(r.storage));try{let o=await s.fetchCompilerMetadataFromAddress(e);return bL({...r,address:e,abi:o.abi})}catch{throw new Error(`No ABI found for this contract. Try importing it by visiting: https://thirdweb.com/${a}/${e}`)}}else{let s=await ym[i].getAbi(e,n,rI(r.storage));return bL({...r,address:e,abi:s})}}else if(typeof r.contractTypeOrAbi=="string"&&r.contractTypeOrAbi in ym){let i=await ym[r.contractTypeOrAbi].initialize(t||n,e,rI(r.storage),r.sdkOptions);return Bht(i,e,a),i}else return bL({...r,address:e,abi:r.contractTypeOrAbi})}var gL=new WeakMap;async function uae(r){let[,e]=fi(r.network,r.sdkOptions),t;return gL.has(e)?t=gL.get(e):(t=e.getNetwork().then(n=>n.chainId).catch(n=>{throw gL.delete(e),n}),gL.set(e,t)),await t}async function qOr(r){let[,e]=fi(r.network,r.sdkOptions);return e.getBlockNumber()}var tI=new Map;async function Dht(r){let e=await uae(r),t=r.block,n=`${e}_${t}`,a;if(tI.has(n))a=tI.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlock(t).catch(s=>{throw tI.delete(n),s}),tI.set(n,a)}return await a}var Lre=new Map;async function Oht(r){let e=await uae(r),t=r.block,n=`${e}_${t}`,a;if(tI.has(n))a=Lre.get(n);else{let[,i]=fi(r.network,r.sdkOptions);a=i.getBlockWithTransactions(t).catch(s=>{throw Lre.delete(n),s}),Lre.set(n,a)}return await a}function lae(r){let[,e]=fi(r.network,r.sdkOptions);return e.on("block",r.onBlockNumber),()=>{e.off("block",r.onBlockNumber)}}function FOr(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Dht({block:a,...t}))}catch{}}return lae({...t,onBlockNumber:n})}function Lht(r){let{onBlock:e,...t}=r;async function n(a){try{e(await Oht({block:a,...t}))}catch{}}return lae({...t,onBlockNumber:n})}function WOr(r){let{address:e,onTransactions:t,...n}=r,a=e.toLowerCase();function i(s){let o=s.transactions.filter(c=>c.from.toLowerCase()===a?!0:c.to?.toLowerCase()===a);o.length>0&&t(o)}return Lht({...n,onBlock:i})}re.ALL_ROLES=zne;re.APPROVED_IMPLEMENTATIONS=Hre;re.AbiObjectSchema=Tht;re.AbiSchema=Vu;re.AbiTypeSchema=Ine;re.AddressOrEnsSchema=ki;re.AddressSchema=Mne;re.AdminRoleMissingError=one;re.AssetNotFoundError=$re;re.AuctionAlreadyStartedError=rne;re.AuctionHasNotEndedError=Lx;re.BYOCContractMetadataSchema=wht;re.BaseSignaturePayloadInput=Hq;re.BigNumberSchema=Ms;re.BigNumberTransformSchema=ept;re.BigNumberishSchema=Js;re.CONTRACTS_MAP=eae;re.CONTRACT_ADDRESSES=U1;re.CallOverrideSchema=tpt;re.ChainId=Be;re.ChainIdToAddressSchema=kne;re.ChainInfoInputSchema=rpt;re.ClaimConditionInputArray=spt;re.ClaimConditionInputSchema=MI;re.ClaimConditionMetadataSchema=ipt;re.ClaimConditionOutputSchema=One;re.ClaimEligibility=ka;re.CommonContractOutputSchema=pd;re.CommonContractSchema=Pl;re.CommonPlatformFeeSchema=Ip;re.CommonPrimarySaleSchema=H1;re.CommonRoyaltySchema=Jo;re.CommonSymbolSchema=_o;re.CommonTrustedForwarderSchema=hd;re.CompilerMetadataFetchedSchema=Rht;re.ContractAppURI=CI;re.ContractDeployer=Lq;re.ContractEncoder=h2;re.ContractEvents=f2;re.ContractInfoSchema=iae;re.ContractInterceptor=m2;re.ContractMetadata=F0;re.ContractOwner=qq;re.ContractPlatformFee=Mq;re.ContractPrimarySale=sq;re.ContractPublishedMetadata=Nq;re.ContractRoles=aq;re.ContractRoyalty=iq;re.ContractWrapper=Ns;re.CurrencySchema=npt;re.CurrencyValueSchema=apt;re.CustomContractDeploy=xht;re.CustomContractInput=nae;re.CustomContractOutput=_ht;re.CustomContractSchema=u2;re.DelayedReveal=xI;re.DropClaimConditions=TI;re.DropErc1155ClaimConditions=oq;re.DropErc1155ContractSchema=wpt;re.DropErc20ContractSchema=pht;re.DropErc721ContractSchema=Fne;re.DuplicateFileNameError=Qre;re.DuplicateLeafsError=EL;re.EditionDropInitializer=Fh;re.EditionInitializer=H0;re.EndDateSchema=PI;re.Erc1155=Aq;re.Erc1155BatchMintable=Cq;re.Erc1155Burnable=xq;re.Erc1155Enumerable=Tq;re.Erc1155LazyMintable=Eq;re.Erc1155Mintable=Iq;re.Erc1155SignatureMintable=kq;re.Erc20=pq;re.Erc20BatchMintable=uq;re.Erc20Burnable=cq;re.Erc20Mintable=lq;re.Erc20SignatureMintable=dq;re.Erc721=_q;re.Erc721BatchMintable=yq;re.Erc721Burnable=hq;re.Erc721ClaimableWithConditions=fq;re.Erc721Enumerable=bq;re.Erc721LazyMintable=mq;re.Erc721Mintable=gq;re.Erc721Supply=vq;re.Erc721WithQuantitySignatureMintable=wq;re.EventType=kl;re.ExtensionNotImplementedError=W0;re.ExtraPublishMetadataSchemaInput=aae;re.ExtraPublishMetadataSchemaOutput=Cht;re.FEATURE_DIRECT_LISTINGS=dI;re.FEATURE_ENGLISH_AUCTIONS=pI;re.FEATURE_NFT_REVEALABLE=gI;re.FEATURE_OFFERS=hI;re.FEATURE_PACK_VRF=cne;re.FactoryDeploymentSchema=Eht;re.FetchError=tne;re.FileNameMissingError=Jre;re.FullPublishMetadataSchemaInput=Iht;re.FullPublishMetadataSchemaOutput=kht;re.FunctionDeprecatedError=nne;re.GasCostEstimator=y2;re.GenericRequest=gpt;re.InterfaceId_IERC1155=AI;re.InterfaceId_IERC721=kI;re.InvalidAddressError=Vre;re.LINK_TOKEN_ADDRESS=KBr;re.LOCAL_NODE_PKEY=$dt;re.ListingNotFoundError=ane;re.MarketplaceContractSchema=Wne;re.MarketplaceInitializer=Ep;re.MarketplaceV3DirectListings=Sq;re.MarketplaceV3EnglishAuctions=Pq;re.MarketplaceV3Initializer=mm;re.MarketplaceV3Offers=Rq;re.MerkleSchema=G0;re.MintRequest1155=mpt;re.MintRequest20=hpt;re.MintRequest721=fpt;re.MintRequest721withQuantity=ypt;re.MissingOwnerRoleError=Xre;re.MissingRoleError=TL;re.MultiwrapContractSchema=fht;re.MultiwrapInitializer=Cp;re.NATIVE_TOKENS=iI;re.NATIVE_TOKEN_ADDRESS=Gu;re.NFTCollectionInitializer=j0;re.NFTDropInitializer=Wh;re.NotEnoughTokensError=Zre;re.NotFoundError=oI;re.OZ_DEFENDER_FORWARDER_ADDRESS=W1;re.PREBUILT_CONTRACTS_APPURI_MAP=mht;re.PREBUILT_CONTRACTS_MAP=ym;re.PackContractSchema=Tpt;re.PackInitializer=Sl;re.PartialClaimConditionInputSchema=YBr;re.PreDeployMetadata=DI;re.PreDeployMetadataFetchedSchema=Mht;re.ProfileSchemaInput=Aht;re.ProfileSchemaOutput=Sht;re.PublishedContractSchema=Pht;re.QuantityAboveLimitError=ene;re.RawDateSchema=SI;re.RestrictedTransferError=sne;re.SUPPORTED_CHAIN_IDS=Kdt;re.Signature1155PayloadInput=cpt;re.Signature1155PayloadInputWithTokenId=upt;re.Signature1155PayloadOutput=lpt;re.Signature20PayloadInput=Lne;re.Signature20PayloadOutput=opt;re.Signature721PayloadInput=jq;re.Signature721PayloadOutput=qne;re.Signature721WithQuantityInput=dpt;re.Signature721WithQuantityOutput=ppt;re.SignatureDropInitializer=Uh;re.SnapshotEntryInput=_L;re.SnapshotEntryWithProofSchema=Bne;re.SnapshotInfoSchema=$Br;re.SnapshotInputSchema=RI;re.SnapshotSchema=Dne;re.SplitInitializer=Hh;re.SplitsContractSchema=Cpt;re.StartDateSchema=Nne;re.Status=Yo;re.ThirdwebSDK=fm;re.TokenDropInitializer=z0;re.TokenErc1155ContractSchema=Rpt;re.TokenErc20ContractSchema=kpt;re.TokenErc721ContractSchema=Spt;re.TokenInitializer=jh;re.Transaction=Oe;re.TransactionError=cI;re.UploadError=Yre;re.UserWallet=Vx;re.VoteContractSchema=Bpt;re.VoteInitializer=zh;re.WrongListingTypeError=ine;re.approveErc20Allowance=jne;re.assertEnabled=er;re.buildTransactionFunction=Ee;re.cleanCurrencyAddress=IL;re.convertToReadableQuantity=Z8;re.createSnapshot=Gpt;re.detectContractFeature=Ye;re.detectFeatures=NI;re.extractConstructorParams=rht;re.extractConstructorParamsFromAbi=Vne;re.extractEventsFromAbi=sht;re.extractFunctionParamsFromAbi=iht;re.extractFunctions=nht;re.extractFunctionsFromAbi=jx;re.extractIPFSHashFromBytecode=cht;re.extractMinimalProxyImplementationAddress=oht;re.fetchAbiFromAddress=Rl;re.fetchContractMetadata=Fq;re.fetchContractMetadataFromAddress=K0;re.fetchCurrencyMetadata=Yx;re.fetchCurrencyValue=Tp;re.fetchExtendedReleaseMetadata=Yne;re.fetchPreDeployMetadata=zx;re.fetchRawPredeployMetadata=$ne;re.fetchSnapshotEntryForAddress=Kq;re.fetchSourceFilesFromMetadata=$q;re.fetchTokenMetadataForContract=BI;re.getAllDetectedFeatureNames=gne;re.getAllDetectedFeatures=dOr;re.getApprovedImplementation=Ydt;re.getBlock=Dht;re.getBlockNumber=qOr;re.getBlockWithTransactions=Oht;re.getChainId=uae;re.getChainIdFromNetwork=Dpt;re.getChainProvider=sI;re.getContract=LOr;re.getContractAddressByChainId=aI;re.getContractFromAbi=bL;re.getContractName=rae;re.getContractPublisherAddress=Jdt;re.getContractTypeForRemoteName=tae;re.getDefaultTrustedForwarders=Pne;re.getMultichainRegistryAddress=jre;re.getNativeTokenByChainId=wL;re.getProviderFromRpcUrl=xL;re.getRoleHash=Ox;re.getSignerAndProvider=fi;re.getSupportedChains=Vdt;re.handleTokenApproval=EI;re.hasERC20Allowance=RDr;re.hasFunction=vo;re.hasMatchingAbi=Gne;re.includesErrorMessage=uI;re.isChainConfig=zq;re.isDowngradeVersion=BOr;re.isFeatureEnabled=Kx;re.isIncrementalVersion=vht;re.isNativeToken=Kh;re.isProvider=Rne;re.isSigner=Uq;re.isTokenApprovedForTransfer=lht;re.isWinningBid=wOr;re.mapOffer=vOr;re.matchesPrebuiltAbi=cOr;re.normalizeAmount=MDr;re.normalizePriceValue=Ec;re.parseRevertReason=Une;re.resolveAddress=Re;re.resolveContractUriFromAddress=_I;re.setErc20Allowance=U0;re.setSupportedChains=Gdt;re.toDisplayValue=ODr;re.toEther=NDr;re.toSemver=$x;re.toUnits=DDr;re.toWei=BDr;re.uploadOrExtractURI=Zne;re.validateNewListingParam=bOr;re.watchBlock=FOr;re.watchBlockNumber=lae;re.watchBlockWithTransactions=Lht;re.watchTransactions=WOr});var Wht=x(j1=>{"use strict";d();p();var Jx=ds(),gm=kr(),Yq=Ei(),qht=gm.z.object({}).catchall(gm.z.union([Jx.BigNumberTransformSchema,gm.z.unknown()])),UOr=gm.z.union([gm.z.array(qht),qht]).optional(),Fht=gm.z.object({supply:Jx.BigNumberSchema,metadata:Yq.CommonNFTOutput}),HOr=Fht.extend({owner:gm.z.string(),quantityOwned:Jx.BigNumberSchema}),jOr=gm.z.object({supply:Jx.BigNumberishSchema,metadata:Yq.CommonNFTInput}),zOr=gm.z.object({supply:Jx.BigNumberishSchema,metadata:Yq.NFTInputOrUriSchema}),KOr=gm.z.object({toAddress:Jx.AddressOrEnsSchema,amount:Yq.AmountSchema}),GOr=function(r){return r[r.Pending=0]="Pending",r[r.Active=1]="Active",r[r.Canceled=2]="Canceled",r[r.Defeated=3]="Defeated",r[r.Succeeded=4]="Succeeded",r[r.Queued=5]="Queued",r[r.Expired=6]="Expired",r[r.Executed=7]="Executed",r}({});j1.EditionMetadataInputOrUriSchema=zOr;j1.EditionMetadataInputSchema=jOr;j1.EditionMetadataOutputSchema=Fht;j1.EditionMetadataWithOwnerOutputSchema=HOr;j1.OptionalPropertiesInput=UOr;j1.ProposalState=GOr;j1.TokenMintInputSchema=KOr});var Uht=x(ae=>{"use strict";d();p();Object.defineProperty(ae,"__esModule",{value:!0});var VOr=Ei(),oe=ds(),b2=Wht(),$Or=pre(),YOr=kre(),JOr=hL(),QOr=Tx(),ZOr=$8(),dae=vre(),XOr=Are(),OI=J8();Ir();je();kr();xn();Tn();En();Cn();In();kn();An();Sn();Pn();Rn();Mn();Nn();Bn();Dn();On();ln();Ln();qn();Fn();Wn();Un();Hn();jn();zn();Kn();Gn();Vn();$n();Yn();dn();Jn();Qn();Zn();Xn();ea();ta();ra();na();aa();ia();sa();oa();ca();ua();la();da();vt();pa();tn();Qe();ha();gn();Gr();Xr();fa();ma();ya();Fr();hn();ga();ba();va();wa();_a();xa();Ta();Ea();Ca();globalThis.global=globalThis;ae.getRpcUrl=VOr.getRpcUrl;ae.ALL_ROLES=oe.ALL_ROLES;ae.APPROVED_IMPLEMENTATIONS=oe.APPROVED_IMPLEMENTATIONS;ae.AbiObjectSchema=oe.AbiObjectSchema;ae.AbiSchema=oe.AbiSchema;ae.AbiTypeSchema=oe.AbiTypeSchema;ae.AddressOrEnsSchema=oe.AddressOrEnsSchema;ae.AddressSchema=oe.AddressSchema;ae.AdminRoleMissingError=oe.AdminRoleMissingError;ae.AssetNotFoundError=oe.AssetNotFoundError;ae.AuctionAlreadyStartedError=oe.AuctionAlreadyStartedError;ae.AuctionHasNotEndedError=oe.AuctionHasNotEndedError;ae.BYOCContractMetadataSchema=oe.BYOCContractMetadataSchema;ae.BaseSignaturePayloadInput=oe.BaseSignaturePayloadInput;ae.BigNumberSchema=oe.BigNumberSchema;ae.BigNumberTransformSchema=oe.BigNumberTransformSchema;ae.BigNumberishSchema=oe.BigNumberishSchema;ae.CONTRACTS_MAP=oe.CONTRACTS_MAP;ae.CONTRACT_ADDRESSES=oe.CONTRACT_ADDRESSES;ae.CallOverrideSchema=oe.CallOverrideSchema;ae.ChainId=oe.ChainId;ae.ChainIdToAddressSchema=oe.ChainIdToAddressSchema;ae.ChainInfoInputSchema=oe.ChainInfoInputSchema;ae.ClaimConditionInputArray=oe.ClaimConditionInputArray;ae.ClaimConditionInputSchema=oe.ClaimConditionInputSchema;ae.ClaimConditionMetadataSchema=oe.ClaimConditionMetadataSchema;ae.ClaimConditionOutputSchema=oe.ClaimConditionOutputSchema;ae.ClaimEligibility=oe.ClaimEligibility;ae.CommonContractOutputSchema=oe.CommonContractOutputSchema;ae.CommonContractSchema=oe.CommonContractSchema;ae.CommonPlatformFeeSchema=oe.CommonPlatformFeeSchema;ae.CommonPrimarySaleSchema=oe.CommonPrimarySaleSchema;ae.CommonRoyaltySchema=oe.CommonRoyaltySchema;ae.CommonSymbolSchema=oe.CommonSymbolSchema;ae.CommonTrustedForwarderSchema=oe.CommonTrustedForwarderSchema;ae.CompilerMetadataFetchedSchema=oe.CompilerMetadataFetchedSchema;ae.ContractAppURI=oe.ContractAppURI;ae.ContractDeployer=oe.ContractDeployer;ae.ContractEncoder=oe.ContractEncoder;ae.ContractEvents=oe.ContractEvents;ae.ContractInfoSchema=oe.ContractInfoSchema;ae.ContractInterceptor=oe.ContractInterceptor;ae.ContractMetadata=oe.ContractMetadata;ae.ContractOwner=oe.ContractOwner;ae.ContractPlatformFee=oe.ContractPlatformFee;ae.ContractPrimarySale=oe.ContractPrimarySale;ae.ContractPublishedMetadata=oe.ContractPublishedMetadata;ae.ContractRoles=oe.ContractRoles;ae.ContractRoyalty=oe.ContractRoyalty;ae.CurrencySchema=oe.CurrencySchema;ae.CurrencyValueSchema=oe.CurrencyValueSchema;ae.CustomContractDeploy=oe.CustomContractDeploy;ae.CustomContractInput=oe.CustomContractInput;ae.CustomContractOutput=oe.CustomContractOutput;ae.CustomContractSchema=oe.CustomContractSchema;ae.DelayedReveal=oe.DelayedReveal;ae.DropClaimConditions=oe.DropClaimConditions;ae.DropErc1155ClaimConditions=oe.DropErc1155ClaimConditions;ae.DuplicateFileNameError=oe.DuplicateFileNameError;ae.DuplicateLeafsError=oe.DuplicateLeafsError;ae.EditionDropInitializer=oe.EditionDropInitializer;ae.EditionInitializer=oe.EditionInitializer;ae.EndDateSchema=oe.EndDateSchema;ae.Erc1155=oe.Erc1155;ae.Erc1155BatchMintable=oe.Erc1155BatchMintable;ae.Erc1155Burnable=oe.Erc1155Burnable;ae.Erc1155Enumerable=oe.Erc1155Enumerable;ae.Erc1155LazyMintable=oe.Erc1155LazyMintable;ae.Erc1155Mintable=oe.Erc1155Mintable;ae.Erc1155SignatureMintable=oe.Erc1155SignatureMintable;ae.Erc20=oe.Erc20;ae.Erc20BatchMintable=oe.Erc20BatchMintable;ae.Erc20Burnable=oe.Erc20Burnable;ae.Erc20Mintable=oe.Erc20Mintable;ae.Erc20SignatureMintable=oe.Erc20SignatureMintable;ae.Erc721=oe.Erc721;ae.Erc721BatchMintable=oe.Erc721BatchMintable;ae.Erc721Burnable=oe.Erc721Burnable;ae.Erc721ClaimableWithConditions=oe.Erc721ClaimableWithConditions;ae.Erc721Enumerable=oe.Erc721Enumerable;ae.Erc721LazyMintable=oe.Erc721LazyMintable;ae.Erc721Mintable=oe.Erc721Mintable;ae.Erc721Supply=oe.Erc721Supply;ae.Erc721WithQuantitySignatureMintable=oe.Erc721WithQuantitySignatureMintable;ae.EventType=oe.EventType;ae.ExtensionNotImplementedError=oe.ExtensionNotImplementedError;ae.ExtraPublishMetadataSchemaInput=oe.ExtraPublishMetadataSchemaInput;ae.ExtraPublishMetadataSchemaOutput=oe.ExtraPublishMetadataSchemaOutput;ae.FactoryDeploymentSchema=oe.FactoryDeploymentSchema;ae.FetchError=oe.FetchError;ae.FileNameMissingError=oe.FileNameMissingError;ae.FullPublishMetadataSchemaInput=oe.FullPublishMetadataSchemaInput;ae.FullPublishMetadataSchemaOutput=oe.FullPublishMetadataSchemaOutput;ae.FunctionDeprecatedError=oe.FunctionDeprecatedError;ae.GasCostEstimator=oe.GasCostEstimator;ae.GenericRequest=oe.GenericRequest;ae.InterfaceId_IERC1155=oe.InterfaceId_IERC1155;ae.InterfaceId_IERC721=oe.InterfaceId_IERC721;ae.InvalidAddressError=oe.InvalidAddressError;ae.LINK_TOKEN_ADDRESS=oe.LINK_TOKEN_ADDRESS;ae.LOCAL_NODE_PKEY=oe.LOCAL_NODE_PKEY;ae.ListingNotFoundError=oe.ListingNotFoundError;ae.MarketplaceInitializer=oe.MarketplaceInitializer;ae.MarketplaceV3DirectListings=oe.MarketplaceV3DirectListings;ae.MarketplaceV3EnglishAuctions=oe.MarketplaceV3EnglishAuctions;ae.MarketplaceV3Initializer=oe.MarketplaceV3Initializer;ae.MarketplaceV3Offers=oe.MarketplaceV3Offers;ae.MerkleSchema=oe.MerkleSchema;ae.MintRequest1155=oe.MintRequest1155;ae.MintRequest20=oe.MintRequest20;ae.MintRequest721=oe.MintRequest721;ae.MintRequest721withQuantity=oe.MintRequest721withQuantity;ae.MissingOwnerRoleError=oe.MissingOwnerRoleError;ae.MissingRoleError=oe.MissingRoleError;ae.MultiwrapInitializer=oe.MultiwrapInitializer;ae.NATIVE_TOKENS=oe.NATIVE_TOKENS;ae.NATIVE_TOKEN_ADDRESS=oe.NATIVE_TOKEN_ADDRESS;ae.NFTCollectionInitializer=oe.NFTCollectionInitializer;ae.NFTDropInitializer=oe.NFTDropInitializer;ae.NotEnoughTokensError=oe.NotEnoughTokensError;ae.NotFoundError=oe.NotFoundError;ae.OZ_DEFENDER_FORWARDER_ADDRESS=oe.OZ_DEFENDER_FORWARDER_ADDRESS;ae.PREBUILT_CONTRACTS_APPURI_MAP=oe.PREBUILT_CONTRACTS_APPURI_MAP;ae.PREBUILT_CONTRACTS_MAP=oe.PREBUILT_CONTRACTS_MAP;ae.PackInitializer=oe.PackInitializer;ae.PartialClaimConditionInputSchema=oe.PartialClaimConditionInputSchema;ae.PreDeployMetadata=oe.PreDeployMetadata;ae.PreDeployMetadataFetchedSchema=oe.PreDeployMetadataFetchedSchema;ae.ProfileSchemaInput=oe.ProfileSchemaInput;ae.ProfileSchemaOutput=oe.ProfileSchemaOutput;ae.PublishedContractSchema=oe.PublishedContractSchema;ae.QuantityAboveLimitError=oe.QuantityAboveLimitError;ae.RawDateSchema=oe.RawDateSchema;ae.RestrictedTransferError=oe.RestrictedTransferError;ae.SUPPORTED_CHAIN_IDS=oe.SUPPORTED_CHAIN_IDS;ae.Signature1155PayloadInput=oe.Signature1155PayloadInput;ae.Signature1155PayloadInputWithTokenId=oe.Signature1155PayloadInputWithTokenId;ae.Signature1155PayloadOutput=oe.Signature1155PayloadOutput;ae.Signature20PayloadInput=oe.Signature20PayloadInput;ae.Signature20PayloadOutput=oe.Signature20PayloadOutput;ae.Signature721PayloadInput=oe.Signature721PayloadInput;ae.Signature721PayloadOutput=oe.Signature721PayloadOutput;ae.Signature721WithQuantityInput=oe.Signature721WithQuantityInput;ae.Signature721WithQuantityOutput=oe.Signature721WithQuantityOutput;ae.SignatureDropInitializer=oe.SignatureDropInitializer;ae.SnapshotEntryInput=oe.SnapshotEntryInput;ae.SnapshotEntryWithProofSchema=oe.SnapshotEntryWithProofSchema;ae.SnapshotInfoSchema=oe.SnapshotInfoSchema;ae.SnapshotInputSchema=oe.SnapshotInputSchema;ae.SnapshotSchema=oe.SnapshotSchema;ae.SplitInitializer=oe.SplitInitializer;ae.StartDateSchema=oe.StartDateSchema;ae.Status=oe.Status;ae.ThirdwebSDK=oe.ThirdwebSDK;ae.TokenDropInitializer=oe.TokenDropInitializer;ae.TokenInitializer=oe.TokenInitializer;ae.Transaction=oe.Transaction;ae.TransactionError=oe.TransactionError;ae.UploadError=oe.UploadError;ae.UserWallet=oe.UserWallet;ae.VoteInitializer=oe.VoteInitializer;ae.WrongListingTypeError=oe.WrongListingTypeError;ae.approveErc20Allowance=oe.approveErc20Allowance;ae.assertEnabled=oe.assertEnabled;ae.cleanCurrencyAddress=oe.cleanCurrencyAddress;ae.convertToReadableQuantity=oe.convertToReadableQuantity;ae.createSnapshot=oe.createSnapshot;ae.detectContractFeature=oe.detectContractFeature;ae.detectFeatures=oe.detectFeatures;ae.extractConstructorParams=oe.extractConstructorParams;ae.extractConstructorParamsFromAbi=oe.extractConstructorParamsFromAbi;ae.extractEventsFromAbi=oe.extractEventsFromAbi;ae.extractFunctionParamsFromAbi=oe.extractFunctionParamsFromAbi;ae.extractFunctions=oe.extractFunctions;ae.extractFunctionsFromAbi=oe.extractFunctionsFromAbi;ae.extractIPFSHashFromBytecode=oe.extractIPFSHashFromBytecode;ae.extractMinimalProxyImplementationAddress=oe.extractMinimalProxyImplementationAddress;ae.fetchAbiFromAddress=oe.fetchAbiFromAddress;ae.fetchContractMetadata=oe.fetchContractMetadata;ae.fetchContractMetadataFromAddress=oe.fetchContractMetadataFromAddress;ae.fetchCurrencyMetadata=oe.fetchCurrencyMetadata;ae.fetchCurrencyValue=oe.fetchCurrencyValue;ae.fetchExtendedReleaseMetadata=oe.fetchExtendedReleaseMetadata;ae.fetchPreDeployMetadata=oe.fetchPreDeployMetadata;ae.fetchRawPredeployMetadata=oe.fetchRawPredeployMetadata;ae.fetchSnapshotEntryForAddress=oe.fetchSnapshotEntryForAddress;ae.fetchSourceFilesFromMetadata=oe.fetchSourceFilesFromMetadata;ae.getAllDetectedFeatureNames=oe.getAllDetectedFeatureNames;ae.getAllDetectedFeatures=oe.getAllDetectedFeatures;ae.getApprovedImplementation=oe.getApprovedImplementation;ae.getBlock=oe.getBlock;ae.getBlockNumber=oe.getBlockNumber;ae.getBlockWithTransactions=oe.getBlockWithTransactions;ae.getChainId=oe.getChainId;ae.getChainIdFromNetwork=oe.getChainIdFromNetwork;ae.getChainProvider=oe.getChainProvider;ae.getContract=oe.getContract;ae.getContractAddressByChainId=oe.getContractAddressByChainId;ae.getContractFromAbi=oe.getContractFromAbi;ae.getContractName=oe.getContractName;ae.getContractPublisherAddress=oe.getContractPublisherAddress;ae.getContractTypeForRemoteName=oe.getContractTypeForRemoteName;ae.getDefaultTrustedForwarders=oe.getDefaultTrustedForwarders;ae.getMultichainRegistryAddress=oe.getMultichainRegistryAddress;ae.getNativeTokenByChainId=oe.getNativeTokenByChainId;ae.getProviderFromRpcUrl=oe.getProviderFromRpcUrl;ae.getRoleHash=oe.getRoleHash;ae.getSignerAndProvider=oe.getSignerAndProvider;ae.getSupportedChains=oe.getSupportedChains;ae.hasERC20Allowance=oe.hasERC20Allowance;ae.hasFunction=oe.hasFunction;ae.hasMatchingAbi=oe.hasMatchingAbi;ae.includesErrorMessage=oe.includesErrorMessage;ae.isChainConfig=oe.isChainConfig;ae.isDowngradeVersion=oe.isDowngradeVersion;ae.isFeatureEnabled=oe.isFeatureEnabled;ae.isIncrementalVersion=oe.isIncrementalVersion;ae.isNativeToken=oe.isNativeToken;ae.isProvider=oe.isProvider;ae.isSigner=oe.isSigner;ae.matchesPrebuiltAbi=oe.matchesPrebuiltAbi;ae.normalizeAmount=oe.normalizeAmount;ae.normalizePriceValue=oe.normalizePriceValue;ae.parseRevertReason=oe.parseRevertReason;ae.resolveContractUriFromAddress=oe.resolveContractUriFromAddress;ae.setErc20Allowance=oe.setErc20Allowance;ae.setSupportedChains=oe.setSupportedChains;ae.toDisplayValue=oe.toDisplayValue;ae.toEther=oe.toEther;ae.toSemver=oe.toSemver;ae.toUnits=oe.toUnits;ae.toWei=oe.toWei;ae.watchBlock=oe.watchBlock;ae.watchBlockNumber=oe.watchBlockNumber;ae.watchBlockWithTransactions=oe.watchBlockWithTransactions;ae.watchTransactions=oe.watchTransactions;ae.EditionMetadataInputOrUriSchema=b2.EditionMetadataInputOrUriSchema;ae.EditionMetadataInputSchema=b2.EditionMetadataInputSchema;ae.EditionMetadataOutputSchema=b2.EditionMetadataOutputSchema;ae.EditionMetadataWithOwnerOutputSchema=b2.EditionMetadataWithOwnerOutputSchema;ae.OptionalPropertiesInput=b2.OptionalPropertiesInput;ae.ProposalState=b2.ProposalState;ae.TokenMintInputSchema=b2.TokenMintInputSchema;ae.DropErc1155History=$Or.DropErc1155History;ae.TokenERC20History=YOr.TokenERC20History;ae.StandardErc20=JOr.StandardErc20;ae.StandardErc721=QOr.StandardErc721;ae.StandardErc1155=ZOr.StandardErc1155;ae.ListingType=dae.ListingType;ae.MarketplaceAuction=dae.MarketplaceAuction;ae.MarketplaceDirect=dae.MarketplaceDirect;ae.VoteType=XOr.VoteType;ae.PAPER_API_URL=OI.PAPER_API_URL;ae.PaperCheckout=OI.PaperCheckout;ae.createCheckoutLinkIntent=OI.createCheckoutLinkIntent;ae.fetchRegisteredCheckoutId=OI.fetchRegisteredCheckoutId;ae.parseChainIdToPaperChain=OI.parseChainIdToPaperChain});var Hht=x((IVn,pae)=>{"use strict";d();p();g.env.NODE_ENV==="production"?pae.exports=nlt():pae.exports=Uht()});var Zo=x(jht=>{"use strict";d();p();function eLr(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function tLr(r){var e=eLr(r,"string");return typeof e=="symbol"?e:String(e)}function rLr(r,e,t){return e=tLr(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}jht._defineProperty=rLr});var Qx=x(fae=>{"use strict";d();p();var nLr=Zo(),aLr=Qe();function iLr(r){return r&&r.__esModule?r:{default:r}}var sLr=iLr(aLr),Jq=class extends sLr.default{},hae=class extends Jq{constructor(e){super(),nLr._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};fae.TWConnector=Jq;fae.WagmiAdapter=hae});var Yu=x(zht=>{"use strict";d();p();function oLr(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}zht._checkPrivateRedeclaration=oLr});var bm=x(mae=>{"use strict";d();p();var cLr=Yu();function uLr(r,e){cLr._checkPrivateRedeclaration(r,e),e.add(r)}function lLr(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}mae._classPrivateMethodGet=lLr;mae._classPrivateMethodInitSpec=uLr});var z1=x(Qq=>{"use strict";d();p();Object.defineProperty(Qq,"__esModule",{value:!0});var Kht=Zo(),Zx=je(),dLr=Qe();function pLr(r){return r&&r.__esModule?r:{default:r}}var hLr=pLr(dLr);function fLr(r){return`https://${r}.rpc.thirdweb.com`}var mLr=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],yLr="0x1626ba7e";async function Ght(r,e,t,n){let a=new Zx.providers.JsonRpcProvider(fLr(n)),i=new Zx.Contract(t,mLr,a),s=Zx.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===yLr}catch{return!1}}var yae=class extends hLr.default{constructor(){super(...arguments),Kht._defineProperty(this,"type","evm"),Kht._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=Zx.utils.hashMessage(e),s=Zx.utils.arrayify(i);if(Zx.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await Ght(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};Qq.AbstractWallet=yae;Qq.checkContractWalletSignature=Ght});var Xx=x(LI=>{"use strict";d();p();var Vht=bm(),v2=Zo(),Ml=vt(),gLr=z1(),gae="__TW__",Zq=class{constructor(e){v2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${gae}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${gae}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${gae}/${this.name}/${e}`),t()})}};function bae(r){return new Zq(r)}var ja=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});ja.Mainnet,ja.Goerli,ja.Polygon,ja.Mumbai,ja.Fantom,ja.FantomTestnet,ja.Avalanche,ja.AvalancheFujiTestnet,ja.Optimism,ja.OptimismGoerli,ja.Arbitrum,ja.ArbitrumGoerli,ja.BinanceSmartChainMainnet,ja.BinanceSmartChainTestnet;var bLr={[ja.Mainnet]:Ml.Ethereum,[ja.Goerli]:Ml.Goerli,[ja.Polygon]:Ml.Polygon,[ja.Mumbai]:Ml.Mumbai,[ja.Avalanche]:Ml.Avalanche,[ja.AvalancheFujiTestnet]:Ml.AvalancheFuji,[ja.Fantom]:Ml.Fantom,[ja.FantomTestnet]:Ml.FantomTestnet,[ja.Arbitrum]:Ml.Arbitrum,[ja.ArbitrumGoerli]:Ml.ArbitrumGoerli,[ja.Optimism]:Ml.Optimism,[ja.OptimismGoerli]:Ml.OptimismGoerli,[ja.BinanceSmartChainMainnet]:Ml.Binance,[ja.BinanceSmartChainTestnet]:Ml.BinanceTestnet},Yht=Object.values(bLr),$ht=new WeakSet,Xq=class extends gLr.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),Vht._classPrivateMethodInitSpec(this,$ht),v2._defineProperty(this,"walletId",void 0),v2._defineProperty(this,"coordinatorStorage",void 0),v2._defineProperty(this,"walletStorage",void 0),v2._defineProperty(this,"chains",void 0),v2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||Yht,this.coordinatorStorage=t.coordinatorStorage||bae("coordinator"),this.walletStorage=t.walletStorage||bae(this.walletId)}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();Vht._classPrivateMethodGet(this,$ht,vLr).call(this,t);let n=async()=>{if(e?.saveParams!==!1)try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function vLr(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}v2._defineProperty(Xq,"meta",void 0);LI.AbstractBrowserWallet=Xq;LI.AsyncLocalStorage=Zq;LI.createAsyncLocalStorage=bae;LI.thirdwebChains=Yht});var vm=x(eF=>{"use strict";d();p();var wLr=Yu();function _Lr(r,e,t){wLr._checkPrivateRedeclaration(r,e),e.set(r,t)}function xLr(r,e){return e.get?e.get.call(r):e.value}function Jht(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function TLr(r,e){var t=Jht(r,e,"get");return xLr(r,t)}function ELr(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function CLr(r,e,t){var n=Jht(r,e,"set");return ELr(r,n,t),t}eF._classPrivateFieldGet=TLr;eF._classPrivateFieldInitSpec=_Lr;eF._classPrivateFieldSet=CLr});var eT=x(V0=>{"use strict";d();p();var wu=Zo(),ILr=vt(),kLr=Qe();function ALr(r){return r&&r.__esModule?r:{default:r}}var SLr=ALr(kLr),vae=class extends SLr.default{constructor(e){let{chains:t=ILr.defaultChains,options:n}=e;super(),wu._defineProperty(this,"id",void 0),wu._defineProperty(this,"name",void 0),wu._defineProperty(this,"chains",void 0),wu._defineProperty(this,"options",void 0),wu._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},tF=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),wu._defineProperty(this,"cause",void 0),wu._defineProperty(this,"code",void 0),wu._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},qI=class extends tF{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},wae=class extends Error{constructor(){super(...arguments),wu._defineProperty(this,"name","AddChainError"),wu._defineProperty(this,"message","Error adding chain")}},_ae=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),wu._defineProperty(this,"name","ChainNotConfigured")}},xae=class extends Error{constructor(){super(...arguments),wu._defineProperty(this,"name","ConnectorNotFoundError"),wu._defineProperty(this,"message","Connector not found")}},Tae=class extends tF{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),wu._defineProperty(this,"name","ResourceUnavailable")}},Eae=class extends qI{constructor(e){super("Error switching chain",{cause:e,code:4902}),wu._defineProperty(this,"name","SwitchChainError")}},Cae=class extends qI{constructor(e){super("User rejected request",{cause:e,code:4001}),wu._defineProperty(this,"name","UserRejectedRequestError")}};V0.AddChainError=wae;V0.ChainNotConfiguredError=_ae;V0.Connector=vae;V0.ConnectorNotFoundError=xae;V0.ProviderRpcError=qI;V0.ResourceUnavailableError=Tae;V0.SwitchChainError=Eae;V0.UserRejectedRequestError=Cae});var tT=x(Qht=>{"use strict";d();p();function PLr(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Qht.normalizeChainId=PLr});var Zht=x(rF=>{"use strict";d();p();Object.defineProperty(rF,"__esModule",{value:!0});rF.walletLogo=void 0;var RLr=(r,e)=>{let t;switch(r){case"standard":return t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' height='${t}' 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 t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.1*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 t=e,`data:image/svg+xml,%3Csvg width='${e}' height='${t}' 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 `}};rF.walletLogo=RLr});var Xht=x(nF=>{"use strict";d();p();Object.defineProperty(nF,"__esModule",{value:!0});nF.ScopedLocalStorage=void 0;var Iae=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;nlocalStorage.removeItem(n))}scopedKey(e){return`${this.scope}:${e}`}};nF.ScopedLocalStorage=Iae});var FI=x(Aae=>{"use strict";d();p();Object.defineProperty(Aae,"__esModule",{value:!0});var MLr=Bu();function eft(r,e,t){try{Reflect.apply(r,e,t)}catch(n){setTimeout(()=>{throw n})}}function NLr(r){let e=r.length,t=new Array(e);for(let n=0;n0&&([s]=t),s instanceof Error)throw s;let o=new Error(`Unhandled error.${s?` (${s.message})`:""}`);throw o.context=s,o}let i=a[e];if(i===void 0)return!1;if(typeof i=="function")eft(i,this,t);else{let s=i.length,o=NLr(i);for(let c=0;c{d();p();ift.exports=WI;WI.default=WI;WI.stable=nft;WI.stableStringify=nft;var aF="[...]",tft="[Circular]",_2=[],w2=[];function rft(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function WI(r,e,t,n){typeof n>"u"&&(n=rft()),Sae(r,"",0,[],void 0,0,n);var a;try{w2.length===0?a=JSON.stringify(r,e,t):a=JSON.stringify(r,aft(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;_2.length!==0;){var i=_2.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return a}function rT(r,e,t,n){var a=Object.getOwnPropertyDescriptor(n,t);a.get!==void 0?a.configurable?(Object.defineProperty(n,t,{value:r}),_2.push([n,t,e,a])):w2.push([e,t,r]):(n[t]=r,_2.push([n,t,e]))}function Sae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){rT(aF,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){rT(aF,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;oe?1:0}function nft(r,e,t,n){typeof n>"u"&&(n=rft());var a=Pae(r,"",0,[],void 0,0,n)||r,i;try{w2.length===0?i=JSON.stringify(a,e,t):i=JSON.stringify(a,aft(e),t)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;_2.length!==0;){var s=_2.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Pae(r,e,t,n,a,i,s){i+=1;var o;if(typeof r=="object"&&r!==null){for(o=0;os.depthLimit){rT(aF,r,e,a);return}if(typeof s.edgesLimit<"u"&&t+1>s.edgesLimit){rT(aF,r,e,a);return}if(n.push(r),Array.isArray(r))for(o=0;o0)for(var n=0;n{"use strict";d();p();Object.defineProperty(nT,"__esModule",{value:!0});nT.EthereumProviderError=nT.EthereumRpcError=void 0;var DLr=Rae(),iF=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return DLr.default(this.serialize(),LLr,2)}};nT.EthereumRpcError=iF;var Mae=class extends iF{constructor(e,t,n){if(!OLr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};nT.EthereumProviderError=Mae;function OLr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function LLr(r,e){if(e!=="[Circular]")return e}});var oF=x(aT=>{"use strict";d();p();Object.defineProperty(aT,"__esModule",{value:!0});aT.errorValues=aT.errorCodes=void 0;aT.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}};aT.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."}}});var Dae=x(Gh=>{"use strict";d();p();Object.defineProperty(Gh,"__esModule",{value:!0});Gh.serializeError=Gh.isValidCode=Gh.getMessageFromCode=Gh.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var cF=oF(),qLr=sF(),sft=cF.errorCodes.rpc.internal,FLr="Unspecified error message. This is a bug, please report it.",WLr={code:sft,message:Bae(sft)};Gh.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function Bae(r,e=FLr){if(Number.isInteger(r)){let t=r.toString();if(Nae(cF.errorValues,t))return cF.errorValues[t].message;if(uft(r))return Gh.JSON_RPC_SERVER_ERROR_MESSAGE}return e}Gh.getMessageFromCode=Bae;function cft(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(cF.errorValues[e]||uft(r))}Gh.isValidCode=cft;function ULr(r,{fallbackError:e=WLr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof qLr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&Nae(r,"code")&&cft(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,Nae(o,"data")&&(i.data=o.data)):(i.message=Bae(i.code),i.data={originalError:oft(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:oft(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}Gh.serializeError=ULr;function uft(r){return r>=-32099&&r<=-32e3}function oft(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function Nae(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var pft=x(uF=>{"use strict";d();p();Object.defineProperty(uF,"__esModule",{value:!0});uF.ethErrors=void 0;var Oae=sF(),lft=Dae(),_u=oF();uF.ethErrors={rpc:{parse:r=>Ap(_u.errorCodes.rpc.parse,r),invalidRequest:r=>Ap(_u.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Ap(_u.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Ap(_u.errorCodes.rpc.methodNotFound,r),internal:r=>Ap(_u.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Ap(e,r)},invalidInput:r=>Ap(_u.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Ap(_u.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Ap(_u.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Ap(_u.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Ap(_u.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Ap(_u.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>UI(_u.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>UI(_u.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>UI(_u.errorCodes.provider.unsupportedMethod,r),disconnected:r=>UI(_u.errorCodes.provider.disconnected,r),chainDisconnected:r=>UI(_u.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new Oae.EthereumProviderError(e,t,n)}}};function Ap(r,e){let[t,n]=dft(e);return new Oae.EthereumRpcError(r,t||lft.getMessageFromCode(r),n)}function UI(r,e){let[t,n]=dft(e);return new Oae.EthereumProviderError(r,t||lft.getMessageFromCode(r),n)}function dft(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var lF=x(Nl=>{"use strict";d();p();Object.defineProperty(Nl,"__esModule",{value:!0});Nl.getMessageFromCode=Nl.serializeError=Nl.EthereumProviderError=Nl.EthereumRpcError=Nl.ethErrors=Nl.errorCodes=void 0;var hft=sF();Object.defineProperty(Nl,"EthereumRpcError",{enumerable:!0,get:function(){return hft.EthereumRpcError}});Object.defineProperty(Nl,"EthereumProviderError",{enumerable:!0,get:function(){return hft.EthereumProviderError}});var fft=Dae();Object.defineProperty(Nl,"serializeError",{enumerable:!0,get:function(){return fft.serializeError}});Object.defineProperty(Nl,"getMessageFromCode",{enumerable:!0,get:function(){return fft.getMessageFromCode}});var HLr=pft();Object.defineProperty(Nl,"ethErrors",{enumerable:!0,get:function(){return HLr.ethErrors}});var jLr=oF();Object.defineProperty(Nl,"errorCodes",{enumerable:!0,get:function(){return jLr.errorCodes}})});var pF=x(dF=>{"use strict";d();p();Object.defineProperty(dF,"__esModule",{value:!0});dF.EVENTS=void 0;dF.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}});var mft=x(()=>{d();p()});var Dft=x((O$n,Bft)=>{d();p();var Gae=typeof Map=="function"&&Map.prototype,Lae=Object.getOwnPropertyDescriptor&&Gae?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,fF=Gae&&Lae&&typeof Lae.get=="function"?Lae.get:null,yft=Gae&&Map.prototype.forEach,Vae=typeof Set=="function"&&Set.prototype,qae=Object.getOwnPropertyDescriptor&&Vae?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,mF=Vae&&qae&&typeof qae.get=="function"?qae.get:null,gft=Vae&&Set.prototype.forEach,zLr=typeof WeakMap=="function"&&WeakMap.prototype,jI=zLr?WeakMap.prototype.has:null,KLr=typeof WeakSet=="function"&&WeakSet.prototype,zI=KLr?WeakSet.prototype.has:null,GLr=typeof WeakRef=="function"&&WeakRef.prototype,bft=GLr?WeakRef.prototype.deref:null,VLr=Boolean.prototype.valueOf,$Lr=Object.prototype.toString,YLr=Function.prototype.toString,JLr=String.prototype.match,$ae=String.prototype.slice,G1=String.prototype.replace,QLr=String.prototype.toUpperCase,vft=String.prototype.toLowerCase,Aft=RegExp.prototype.test,wft=Array.prototype.concat,wm=Array.prototype.join,ZLr=Array.prototype.slice,_ft=Math.floor,Uae=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Fae=Object.getOwnPropertySymbols,Hae=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,iT=typeof Symbol=="function"&&typeof Symbol.iterator=="object",xu=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===iT?"object":"symbol")?Symbol.toStringTag:null,Sft=Object.prototype.propertyIsEnumerable,xft=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function Tft(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||Aft.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-_ft(-r):_ft(r);if(n!==r){var a=String(n),i=$ae.call(e,a.length+1);return G1.call(a,t,"$&_")+"."+G1.call(G1.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return G1.call(e,t,"$&_")}var jae=mft(),Eft=jae.custom,Cft=Rft(Eft)?Eft:null;Bft.exports=function r(e,t,n,a){var i=t||{};if(K1(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(K1(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=K1(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K1(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K1(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var o=i.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Nft(e,i);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return o?Tft(e,c):c}if(typeof e=="bigint"){var u=String(e)+"n";return o?Tft(e,u):u}var l=typeof i.depth>"u"?5:i.depth;if(typeof n>"u"&&(n=0),n>=l&&l>0&&typeof e=="object")return zae(e)?"[Array]":"[Object]";var h=yqr(i,n);if(typeof a>"u")a=[];else if(Mft(a,e)>=0)return"[Circular]";function f(A,v,k){if(v&&(a=ZLr.call(a),a.push(v)),k){var O={depth:i.depth};return K1(i,"quoteStyle")&&(O.quoteStyle=i.quoteStyle),r(A,O,n+1,a)}return r(A,i,n+1,a)}if(typeof e=="function"&&!Ift(e)){var m=oqr(e),y=hF(e,f);return"[Function"+(m?": "+m:" (anonymous)")+"]"+(y.length>0?" { "+wm.call(y,", ")+" }":"")}if(Rft(e)){var E=iT?G1.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Hae.call(e);return typeof e=="object"&&!iT?HI(E):E}if(hqr(e)){for(var I="<"+vft.call(String(e.nodeName)),S=e.attributes||[],L=0;L",I}if(zae(e)){if(e.length===0)return"[]";var F=hF(e,f);return h&&!mqr(F)?"["+Kae(F,h)+"]":"[ "+wm.call(F,", ")+" ]"}if(tqr(e)){var W=hF(e,f);return!("cause"in Error.prototype)&&"cause"in e&&!Sft.call(e,"cause")?"{ ["+String(e)+"] "+wm.call(wft.call("[cause]: "+f(e.cause),W),", ")+" }":W.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+wm.call(W,", ")+" }"}if(typeof e=="object"&&s){if(Cft&&typeof e[Cft]=="function"&&jae)return jae(e,{depth:l-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(cqr(e)){var V=[];return yft&&yft.call(e,function(A,v){V.push(f(v,e,!0)+" => "+f(A,e))}),kft("Map",fF.call(e),V,h)}if(dqr(e)){var K=[];return gft&&gft.call(e,function(A){K.push(f(A,e))}),kft("Set",mF.call(e),K,h)}if(uqr(e))return Wae("WeakMap");if(pqr(e))return Wae("WeakSet");if(lqr(e))return Wae("WeakRef");if(nqr(e))return HI(f(Number(e)));if(iqr(e))return HI(f(Uae.call(e)));if(aqr(e))return HI(VLr.call(e));if(rqr(e))return HI(f(String(e)));if(!eqr(e)&&!Ift(e)){var H=hF(e,f),G=xft?xft(e)===Object.prototype:e instanceof Object||e.constructor===Object,J=e instanceof Object?"":"null prototype",q=!G&&xu&&Object(e)===e&&xu in e?$ae.call(V1(e),8,-1):J?"Object":"",T=G||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",P=T+(q||J?"["+wm.call(wft.call([],q||[],J||[]),": ")+"] ":"");return H.length===0?P+"{}":h?P+"{"+Kae(H,h)+"}":P+"{ "+wm.call(H,", ")+" }"}return String(e)};function Pft(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function XLr(r){return G1.call(String(r),/"/g,""")}function zae(r){return V1(r)==="[object Array]"&&(!xu||!(typeof r=="object"&&xu in r))}function eqr(r){return V1(r)==="[object Date]"&&(!xu||!(typeof r=="object"&&xu in r))}function Ift(r){return V1(r)==="[object RegExp]"&&(!xu||!(typeof r=="object"&&xu in r))}function tqr(r){return V1(r)==="[object Error]"&&(!xu||!(typeof r=="object"&&xu in r))}function rqr(r){return V1(r)==="[object String]"&&(!xu||!(typeof r=="object"&&xu in r))}function nqr(r){return V1(r)==="[object Number]"&&(!xu||!(typeof r=="object"&&xu in r))}function aqr(r){return V1(r)==="[object Boolean]"&&(!xu||!(typeof r=="object"&&xu in r))}function Rft(r){if(iT)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Hae)return!1;try{return Hae.call(r),!0}catch{}return!1}function iqr(r){if(!r||typeof r!="object"||!Uae)return!1;try{return Uae.call(r),!0}catch{}return!1}var sqr=Object.prototype.hasOwnProperty||function(r){return r in this};function K1(r,e){return sqr.call(r,e)}function V1(r){return $Lr.call(r)}function oqr(r){if(r.name)return r.name;var e=JLr.call(YLr.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function Mft(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Nft($ae.call(r,0,e.maxStringLength),e)+n}var a=G1.call(G1.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,fqr);return Pft(a,"single",e)}function fqr(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+QLr.call(e.toString(16))}function HI(r){return"Object("+r+")"}function Wae(r){return r+" { ? }"}function kft(r,e,t,n){var a=n?Kae(t,n):wm.call(t,", ");return r+" ("+e+") {"+a+"}"}function mqr(r){for(var e=0;e=0)return!1;return!0}function yqr(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=wm.call(Array(r.indent+1)," ");else return null;return{base:t,prev:wm.call(Array(e+1),t)}}function Kae(r,e){if(r.length===0)return"";var t=` +`+e.prev+e.base;return t+wm.call(r,","+t)+` +`+e.prev}function hF(r,e){var t=zae(r),n=[];if(t){n.length=r.length;for(var a=0;a{"use strict";d();p();var Yae=HE(),sT=jE(),gqr=Dft(),bqr=Yae("%TypeError%"),yF=Yae("%WeakMap%",!0),gF=Yae("%Map%",!0),vqr=sT("WeakMap.prototype.get",!0),wqr=sT("WeakMap.prototype.set",!0),_qr=sT("WeakMap.prototype.has",!0),xqr=sT("Map.prototype.get",!0),Tqr=sT("Map.prototype.set",!0),Eqr=sT("Map.prototype.has",!0),Jae=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},Cqr=function(r,e){var t=Jae(r,e);return t&&t.value},Iqr=function(r,e,t){var n=Jae(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},kqr=function(r,e){return!!Jae(r,e)};Oft.exports=function(){var e,t,n,a={assert:function(i){if(!a.has(i))throw new bqr("Side channel does not contain "+gqr(i))},get:function(i){if(yF&&i&&(typeof i=="object"||typeof i=="function")){if(e)return vqr(e,i)}else if(gF){if(t)return xqr(t,i)}else if(n)return Cqr(n,i)},has:function(i){if(yF&&i&&(typeof i=="object"||typeof i=="function")){if(e)return _qr(e,i)}else if(gF){if(t)return Eqr(t,i)}else if(n)return kqr(n,i);return!1},set:function(i,s){yF&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new yF),wqr(e,i,s)):gF?(t||(t=new gF),Tqr(t,i,s)):(n||(n={key:{},next:null}),Iqr(n,i,s))}};return a}});var bF=x((H$n,qft)=>{"use strict";d();p();var Aqr=String.prototype.replace,Sqr=/%20/g,Qae={RFC1738:"RFC1738",RFC3986:"RFC3986"};qft.exports={default:Qae.RFC3986,formatters:{RFC1738:function(r){return Aqr.call(r,Sqr,"+")},RFC3986:function(r){return String(r)}},RFC1738:Qae.RFC1738,RFC3986:Qae.RFC3986}});var Xae=x((K$n,Wft)=>{"use strict";d();p();var Pqr=bF(),Zae=Object.prototype.hasOwnProperty,x2=Array.isArray,_m=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Rqr=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(x2(n)){for(var a=[],i=0;i=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===Pqr.RFC1738&&(u===40||u===41)){o+=s.charAt(c);continue}if(u<128){o=o+_m[u];continue}if(u<2048){o=o+(_m[192|u>>6]+_m[128|u&63]);continue}if(u<55296||u>=57344){o=o+(_m[224|u>>12]+_m[128|u>>6&63]+_m[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),o+=_m[240|u>>18]+_m[128|u>>12&63]+_m[128|u>>6&63]+_m[128|u&63]}return o},Oqr=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a{"use strict";d();p();var jft=Lft(),vF=Xae(),KI=bF(),Uqr=Object.prototype.hasOwnProperty,Uft={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},$0=Array.isArray,Hqr=Array.prototype.push,zft=function(r,e){Hqr.apply(r,$0(e)?e:[e])},jqr=Date.prototype.toISOString,Hft=KI.default,Tu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:vF.encode,encodeValuesOnly:!1,format:Hft,formatter:KI.formatters[Hft],indices:!1,serializeDate:function(e){return jqr.call(e)},skipNulls:!1,strictNullHandling:!1},zqr=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},eie={},Kqr=function r(e,t,n,a,i,s,o,c,u,l,h,f,m,y,E,I){for(var S=e,L=I,F=0,W=!1;(L=L.get(eie))!==void 0&&!W;){var V=L.get(e);if(F+=1,typeof V<"u"){if(V===F)throw new RangeError("Cyclic object value");W=!0}typeof L.get(eie)>"u"&&(F=0)}if(typeof c=="function"?S=c(t,S):S instanceof Date?S=h(S):n==="comma"&&$0(S)&&(S=vF.maybeMap(S,function(O){return O instanceof Date?h(O):O})),S===null){if(i)return o&&!y?o(t,Tu.encoder,E,"key",f):t;S=""}if(zqr(S)||vF.isBuffer(S)){if(o){var K=y?t:o(t,Tu.encoder,E,"key",f);return[m(K)+"="+m(o(S,Tu.encoder,E,"value",f))]}return[m(t)+"="+m(String(S))]}var H=[];if(typeof S>"u")return H;var G;if(n==="comma"&&$0(S))y&&o&&(S=vF.maybeMap(S,o)),G=[{value:S.length>0?S.join(",")||null:void 0}];else if($0(c))G=c;else{var J=Object.keys(S);G=u?J.sort(u):J}for(var q=a&&$0(S)&&S.length===1?t+"[]":t,T=0;T"u"?Tu.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Tu.charsetSentinel,delimiter:typeof e.delimiter>"u"?Tu.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Tu.encode,encoder:typeof e.encoder=="function"?e.encoder:Tu.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Tu.encodeValuesOnly,filter:i,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Tu.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Tu.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Tu.strictNullHandling}};Kft.exports=function(r,e){var t=r,n=Gqr(e),a,i;typeof n.filter=="function"?(i=n.filter,t=i("",t)):$0(n.filter)&&(i=n.filter,a=i);var s=[];if(typeof t!="object"||t===null)return"";var o;e&&e.arrayFormat in Uft?o=e.arrayFormat:e&&"indices"in e?o=e.indices?"indices":"repeat":o="indices";var c=Uft[o];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var l=jft(),h=0;h0?y+m:""}});var Yft=x((Q$n,$ft)=>{"use strict";d();p();var oT=Xae(),tie=Object.prototype.hasOwnProperty,Vqr=Array.isArray,Xo={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oT.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},$qr=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Vft=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},Yqr="utf8=%26%2310003%3B",Jqr="utf8=%E2%9C%93",Qqr=function(e,t){var n={},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,i),o=-1,c,u=t.charset;if(t.charsetSentinel)for(c=0;c-1&&(y=Vqr(y)?[y]:y),tie.call(n,m)?n[m]=oT.combine(n[m],y):n[m]=y}return n},Zqr=function(r,e,t,n){for(var a=n?e:Vft(e,t),i=r.length-1;i>=0;--i){var s,o=r[i];if(o==="[]"&&t.parseArrays)s=[].concat(a);else{s=t.plainObjects?Object.create(null):{};var c=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o,u=parseInt(c,10);!t.parseArrays&&c===""?s={0:a}:!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&t.parseArrays&&u<=t.arrayLimit?(s=[],s[u]=a):c!=="__proto__"&&(s[c]=a)}a=s}return a},Xqr=function(e,t,n,a){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,c=n.depth>0&&s.exec(i),u=c?i.slice(0,c.index):i,l=[];if(u){if(!n.plainObjects&&tie.call(Object.prototype,u)&&!n.allowPrototypes)return;l.push(u)}for(var h=0;n.depth>0&&(c=o.exec(i))!==null&&h"u"?Xo.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?Xo.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Xo.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Xo.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Xo.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Xo.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Xo.comma,decoder:typeof e.decoder=="function"?e.decoder:Xo.decoder,delimiter:typeof e.delimiter=="string"||oT.isRegExp(e.delimiter)?e.delimiter:Xo.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Xo.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Xo.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Xo.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Xo.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Xo.strictNullHandling}};$ft.exports=function(r,e){var t=eFr(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?Qqr(r,t):r,a=t.plainObjects?Object.create(null):{},i=Object.keys(n),s=0;s{"use strict";d();p();var tFr=Gft(),rFr=Yft(),nFr=bF();Jft.exports={formats:nFr,parse:rFr,stringify:tFr}});var VI=x(Ic=>{"use strict";d();p();Object.defineProperty(Ic,"__esModule",{value:!0});Ic.ProviderType=Ic.RegExpString=Ic.IntNumber=Ic.BigIntString=Ic.AddressString=Ic.HexString=Ic.OpaqueType=void 0;function GI(){return r=>r}Ic.OpaqueType=GI;Ic.HexString=GI();Ic.AddressString=GI();Ic.BigIntString=GI();function aFr(r){return Math.floor(r)}Ic.IntNumber=aFr;Ic.RegExpString=GI();var iFr;(function(r){r.CoinbaseWallet="CoinbaseWallet",r.MetaMask="MetaMask",r.Unselected=""})(iFr=Ic.ProviderType||(Ic.ProviderType={}))});var Y0=x(Ht=>{"use strict";d();p();var sFr=Ht&&Ht.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.isInIFrame=Ht.createQrUrl=Ht.getFavicon=Ht.range=Ht.isBigNumber=Ht.ensureParsedJSONObject=Ht.ensureBN=Ht.ensureRegExpString=Ht.ensureIntNumber=Ht.ensureBuffer=Ht.ensureAddressString=Ht.ensureEvenLengthHexString=Ht.ensureHexString=Ht.isHexString=Ht.prepend0x=Ht.strip0x=Ht.has0xPrefix=Ht.hexStringFromIntNumber=Ht.intNumberFromHexString=Ht.bigIntStringFromBN=Ht.hexStringFromBuffer=Ht.hexStringToUint8Array=Ht.uint8ArrayToHex=Ht.randomBytesHex=void 0;var $1=sFr(Ir()),oFr=Qft(),Sp=VI(),Zft=/^[0-9]*$/,Xft=/^[a-f0-9]*$/;function cFr(r){return emt(crypto.getRandomValues(new Uint8Array(r)))}Ht.randomBytesHex=cFr;function emt(r){return[...r].map(e=>e.toString(16).padStart(2,"0")).join("")}Ht.uint8ArrayToHex=emt;function uFr(r){return new Uint8Array(r.match(/.{1,2}/g).map(e=>parseInt(e,16)))}Ht.hexStringToUint8Array=uFr;function lFr(r,e=!1){let t=r.toString("hex");return(0,Sp.HexString)(e?"0x"+t:t)}Ht.hexStringFromBuffer=lFr;function dFr(r){return(0,Sp.BigIntString)(r.toString(10))}Ht.bigIntStringFromBN=dFr;function pFr(r){return(0,Sp.IntNumber)(new $1.default(YI(r,!1),16).toNumber())}Ht.intNumberFromHexString=pFr;function hFr(r){return(0,Sp.HexString)("0x"+new $1.default(r).toString(16))}Ht.hexStringFromIntNumber=hFr;function rie(r){return r.startsWith("0x")||r.startsWith("0X")}Ht.has0xPrefix=rie;function wF(r){return rie(r)?r.slice(2):r}Ht.strip0x=wF;function tmt(r){return rie(r)?"0x"+r.slice(2):"0x"+r}Ht.prepend0x=tmt;function $I(r){if(typeof r!="string")return!1;let e=wF(r).toLowerCase();return Xft.test(e)}Ht.isHexString=$I;function rmt(r,e=!1){if(typeof r=="string"){let t=wF(r).toLowerCase();if(Xft.test(t))return(0,Sp.HexString)(e?"0x"+t:t)}throw new Error(`"${String(r)}" is not a hexadecimal string`)}Ht.ensureHexString=rmt;function YI(r,e=!1){let t=rmt(r,!1);return t.length%2===1&&(t=(0,Sp.HexString)("0"+t)),e?(0,Sp.HexString)("0x"+t):t}Ht.ensureEvenLengthHexString=YI;function fFr(r){if(typeof r=="string"){let e=wF(r).toLowerCase();if($I(e)&&e.length===40)return(0,Sp.AddressString)(tmt(e))}throw new Error(`Invalid Ethereum address: ${String(r)}`)}Ht.ensureAddressString=fFr;function mFr(r){if(b.Buffer.isBuffer(r))return r;if(typeof r=="string")if($I(r)){let e=YI(r,!1);return b.Buffer.from(e,"hex")}else return b.Buffer.from(r,"utf8");throw new Error(`Not binary data: ${String(r)}`)}Ht.ensureBuffer=mFr;function nmt(r){if(typeof r=="number"&&Number.isInteger(r))return(0,Sp.IntNumber)(r);if(typeof r=="string"){if(Zft.test(r))return(0,Sp.IntNumber)(Number(r));if($I(r))return(0,Sp.IntNumber)(new $1.default(YI(r,!1),16).toNumber())}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureIntNumber=nmt;function yFr(r){if(r instanceof RegExp)return(0,Sp.RegExpString)(r.toString());throw new Error(`Not a RegExp: ${String(r)}`)}Ht.ensureRegExpString=yFr;function gFr(r){if(r!==null&&($1.default.isBN(r)||amt(r)))return new $1.default(r.toString(10),10);if(typeof r=="number")return new $1.default(nmt(r));if(typeof r=="string"){if(Zft.test(r))return new $1.default(r,10);if($I(r))return new $1.default(YI(r,!1),16)}throw new Error(`Not an integer: ${String(r)}`)}Ht.ensureBN=gFr;function bFr(r){if(typeof r=="string")return JSON.parse(r);if(typeof r=="object")return r;throw new Error(`Not a JSON string or an object: ${String(r)}`)}Ht.ensureParsedJSONObject=bFr;function amt(r){if(r==null||typeof r.constructor!="function")return!1;let{constructor:e}=r;return typeof e.config=="function"&&typeof e.EUCLID=="number"}Ht.isBigNumber=amt;function vFr(r,e){return Array.from({length:e-r},(t,n)=>r+n)}Ht.range=vFr;function wFr(){let r=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:t}=document.location,n=r?r.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?e+n:`${e}//${t}${n}`}Ht.getFavicon=wFr;function _Fr(r,e,t,n,a,i){let s=n?"parent-id":"id",o=(0,oFr.stringify)({[s]:r,secret:e,server:t,v:a,chainId:i});return`${t}/#/link?${o}`}Ht.createQrUrl=_Fr;function xFr(){try{return window.frameElement!==null}catch{return!1}}Ht.isInIFrame=xFr});var xF=x(_F=>{"use strict";d();p();Object.defineProperty(_F,"__esModule",{value:!0});_F.Session=void 0;var imt=hC(),smt=Y0(),omt="session:id",cmt="session:secret",umt="session:linked",JI=class{constructor(e,t,n,a){this._storage=e,this._id=t||(0,smt.randomBytesHex)(16),this._secret=n||(0,smt.randomBytesHex)(32),this._key=new imt.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!a}static load(e){let t=e.getItem(omt),n=e.getItem(umt),a=e.getItem(cmt);return t&&a?new JI(e,t,a,n==="1"):null}static hash(e){return new imt.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(omt,this._id),this._storage.setItem(cmt,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(umt,this._linked?"1":"0")}};_F.Session=JI});var aie=x(xm=>{"use strict";d();p();Object.defineProperty(xm,"__esModule",{value:!0});xm.WalletSDKRelayAbstract=xm.APP_VERSION_KEY=xm.LOCAL_STORAGE_ADDRESSES_KEY=xm.WALLET_USER_NAME_KEY=void 0;var lmt=lF();xm.WALLET_USER_NAME_KEY="walletUsername";xm.LOCAL_STORAGE_ADDRESSES_KEY="Addresses";xm.APP_VERSION_KEY="AppVersion";var nie=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(n=>n.json()).then(n=>{if(!n)throw lmt.ethErrors.rpc.parse({});let a=n,{error:i}=a;if(i)throw(0,lmt.serializeError)(i);return a})}};xm.WalletSDKRelayAbstract=nie});var hmt=x((mYn,pmt)=>{d();p();var{Transform:TFr}=rC();pmt.exports=r=>class dmt extends TFr{constructor(t,n,a,i,s){super(s),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._hashBitLength=i,this._options=s,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(t){let n=null;try{this.push(this.digest())}catch(a){n=a}t(n)}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}digest(t){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 t!==void 0&&(n=n.toString(t)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new dmt(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var ymt=x((bYn,mmt)=>{d();p();var{Transform:EFr}=rC();mmt.exports=r=>class fmt extends EFr{constructor(t,n,a,i){super(i),this._rate=t,this._capacity=n,this._delimitedSuffix=a,this._options=i,this._state=new r,this._state.initialize(t,n),this._finalized=!1}_transform(t,n,a){let i=null;try{this.update(t,n)}catch(s){i=s}a(i)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!b.Buffer.isBuffer(t)&&typeof t!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return b.Buffer.isBuffer(t)||(t=b.Buffer.from(t,n)),this._state.absorb(t),this}squeeze(t,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let a=this._state.squeeze(t);return n!==void 0&&(a=a.toString(n)),a}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let t=new fmt(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}});var bmt=x((_Yn,gmt)=>{d();p();var CFr=hmt(),IFr=ymt();gmt.exports=function(r){let e=CFr(r),t=IFr(r);return function(n,a){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new e(1152,448,null,224,a);case"keccak256":return new e(1088,512,null,256,a);case"keccak384":return new e(832,768,null,384,a);case"keccak512":return new e(576,1024,null,512,a);case"sha3-224":return new e(1152,448,6,224,a);case"sha3-256":return new e(1088,512,6,256,a);case"sha3-384":return new e(832,768,6,384,a);case"sha3-512":return new e(576,1024,6,512,a);case"shake128":return new t(1344,256,31,a);case"shake256":return new t(1088,512,31,a);default:throw new Error("Invald algorithm: "+n)}}}});var _mt=x(wmt=>{d();p();var vmt=[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];wmt.p1600=function(r){for(let e=0;e<24;++e){let t=r[0]^r[10]^r[20]^r[30]^r[40],n=r[1]^r[11]^r[21]^r[31]^r[41],a=r[2]^r[12]^r[22]^r[32]^r[42],i=r[3]^r[13]^r[23]^r[33]^r[43],s=r[4]^r[14]^r[24]^r[34]^r[44],o=r[5]^r[15]^r[25]^r[35]^r[45],c=r[6]^r[16]^r[26]^r[36]^r[46],u=r[7]^r[17]^r[27]^r[37]^r[47],l=r[8]^r[18]^r[28]^r[38]^r[48],h=r[9]^r[19]^r[29]^r[39]^r[49],f=l^(a<<1|i>>>31),m=h^(i<<1|a>>>31),y=r[0]^f,E=r[1]^m,I=r[10]^f,S=r[11]^m,L=r[20]^f,F=r[21]^m,W=r[30]^f,V=r[31]^m,K=r[40]^f,H=r[41]^m;f=t^(s<<1|o>>>31),m=n^(o<<1|s>>>31);let G=r[2]^f,J=r[3]^m,q=r[12]^f,T=r[13]^m,P=r[22]^f,A=r[23]^m,v=r[32]^f,k=r[33]^m,O=r[42]^f,D=r[43]^m;f=a^(c<<1|u>>>31),m=i^(u<<1|c>>>31);let B=r[4]^f,_=r[5]^m,N=r[14]^f,U=r[15]^m,C=r[24]^f,z=r[25]^m,ee=r[34]^f,j=r[35]^m,X=r[44]^f,ie=r[45]^m;f=s^(l<<1|h>>>31),m=o^(h<<1|l>>>31);let ue=r[6]^f,he=r[7]^m,ke=r[16]^f,ge=r[17]^m,me=r[26]^f,Ke=r[27]^m,ve=r[36]^f,Ae=r[37]^m,so=r[46]^f,Et=r[47]^m;f=c^(t<<1|n>>>31),m=u^(n<<1|t>>>31);let bt=r[8]^f,ci=r[9]^m,_t=r[18]^f,st=r[19]^m,ui=r[28]^f,Nt=r[29]^m,dt=r[38]^f,oo=r[39]^m,jt=r[48]^f,Bt=r[49]^m,ac=y,ot=E,pt=S<<4|I>>>28,Nc=I<<4|S>>>28,Ct=L<<3|F>>>29,It=F<<3|L>>>29,Bc=V<<9|W>>>23,Dt=W<<9|V>>>23,kt=K<<18|H>>>14,Dc=H<<18|K>>>14,At=G<<1|J>>>31,Ot=J<<1|G>>>31,ic=T<<12|q>>>20,Lt=q<<12|T>>>20,qt=P<<10|A>>>22,Oc=A<<10|P>>>22,St=k<<13|v>>>19,Ft=v<<13|k>>>19,Lc=O<<2|D>>>30,Pt=D<<2|O>>>30,Wt=_<<30|B>>>2,sc=B<<30|_>>>2,Je=N<<6|U>>>26,it=U<<6|N>>>26,oc=z<<11|C>>>21,Ut=C<<11|z>>>21,Kt=ee<<15|j>>>17,ol=j<<15|ee>>>17,Gt=ie<<29|X>>>3,Vt=X<<29|ie>>>3,cl=ue<<28|he>>>4,$t=he<<28|ue>>>4,Yt=ge<<23|ke>>>9,Mu=ke<<23|ge>>>9,an=me<<25|Ke>>>7,sn=Ke<<25|me>>>7,qc=ve<<21|Ae>>>11,Fc=Ae<<21|ve>>>11,Wc=Et<<24|so>>>8,Uc=so<<24|Et>>>8,Hc=bt<<27|ci>>>5,zp=ci<<27|bt>>>5,Kp=_t<<20|st>>>12,Gp=st<<20|_t>>>12,Vp=Nt<<7|ui>>>25,$p=ui<<7|Nt>>>25,Yp=dt<<8|oo>>>24,Jp=oo<<8|dt>>>24,Qp=jt<<14|Bt>>>18,Zp=Bt<<14|jt>>>18;r[0]=ac^~ic&oc,r[1]=ot^~Lt&Ut,r[10]=cl^~Kp&Ct,r[11]=$t^~Gp&It,r[20]=At^~Je&an,r[21]=Ot^~it&sn,r[30]=Hc^~pt&qt,r[31]=zp^~Nc&Oc,r[40]=Wt^~Yt&Vp,r[41]=sc^~Mu&$p,r[2]=ic^~oc&qc,r[3]=Lt^~Ut&Fc,r[12]=Kp^~Ct&St,r[13]=Gp^~It&Ft,r[22]=Je^~an&Yp,r[23]=it^~sn&Jp,r[32]=pt^~qt&Kt,r[33]=Nc^~Oc&ol,r[42]=Yt^~Vp&Bc,r[43]=Mu^~$p&Dt,r[4]=oc^~qc&Qp,r[5]=Ut^~Fc&Zp,r[14]=Ct^~St&Gt,r[15]=It^~Ft&Vt,r[24]=an^~Yp&kt,r[25]=sn^~Jp&Dc,r[34]=qt^~Kt&Wc,r[35]=Oc^~ol&Uc,r[44]=Vp^~Bc&Lc,r[45]=$p^~Dt&Pt,r[6]=qc^~Qp&ac,r[7]=Fc^~Zp&ot,r[16]=St^~Gt&cl,r[17]=Ft^~Vt&$t,r[26]=Yp^~kt&At,r[27]=Jp^~Dc&Ot,r[36]=Kt^~Wc&Hc,r[37]=ol^~Uc&zp,r[46]=Bc^~Lc&Wt,r[47]=Dt^~Pt&sc,r[8]=Qp^~ac&ic,r[9]=Zp^~ot&Lt,r[18]=Gt^~cl&Kp,r[19]=Vt^~$t&Gp,r[28]=kt^~At&Je,r[29]=Dc^~Ot&it,r[38]=Wc^~Hc&pt,r[39]=Uc^~zp&Nc,r[48]=Lc^~Wt&Yt,r[49]=Pt^~sc&Mu,r[0]^=vmt[e*2],r[1]^=vmt[e*2+1]}}});var Tmt=x((kYn,xmt)=>{d();p();var TF=_mt();function cT(){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}cT.prototype.initialize=function(r,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=r/8,this.count=0,this.squeezing=!1};cT.prototype.absorb=function(r){for(let e=0;e>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(TF.p1600(this.state),this.count=0);return e};cT.prototype.copy=function(r){for(let e=0;e<50;++e)r.state[e]=this.state[e];r.blockSize=this.blockSize,r.count=this.count,r.squeezing=this.squeezing};xmt.exports=cT});var Cmt=x((PYn,Emt)=>{d();p();Emt.exports=bmt()(Tmt())});var iie=x((NYn,Pmt)=>{d();p();var kFr=Cmt(),AFr=Ir();function Imt(r){return b.Buffer.allocUnsafe(r).fill(0)}function kmt(r,e,t){let n=Imt(e);return r=EF(r),t?r.length{d();p();var C2=iie(),E2=Ir();function Mmt(r){return r.startsWith("int[")?"int256"+r.slice(3):r==="int"?"int256":r.startsWith("uint[")?"uint256"+r.slice(4):r==="uint"?"uint256":r.startsWith("fixed[")?"fixed128x128"+r.slice(5):r==="fixed"?"fixed128x128":r.startsWith("ufixed[")?"ufixed128x128"+r.slice(6):r==="ufixed"?"ufixed128x128":r}function uT(r){return parseInt(/^\D+(\d+)$/.exec(r)[1],10)}function Rmt(r){var e=/^\D+(\d+)x(\d+)$/.exec(r);return[parseInt(e[1],10),parseInt(e[2],10)]}function Nmt(r){var e=r.match(/(.*)\[(.*?)\]$/);return e?e[2]===""?"dynamic":parseInt(e[2],10):null}function T2(r){var e=typeof r;if(e==="string")return C2.isHexString(r)?new E2(C2.stripHexPrefix(r),16):new E2(r,10);if(e==="number")return new E2(r);if(r.toArray)return r;throw new Error("Argument is not a number")}function Tm(r,e){var t,n,a,i;if(r==="address")return Tm("uint160",T2(e));if(r==="bool")return Tm("uint8",e?1:0);if(r==="string")return Tm("bytes",new b.Buffer(e,"utf8"));if(BFr(r)){if(typeof e.length>"u")throw new Error("Not an array?");if(t=Nmt(r),t!=="dynamic"&&t!==0&&e.length>t)throw new Error("Elements exceed array size: "+t);a=[],r=r.slice(0,r.lastIndexOf("[")),typeof e=="string"&&(e=JSON.parse(e));for(i in e)a.push(Tm(r,e[i]));if(t==="dynamic"){var s=Tm("uint256",e.length);a.unshift(s)}return b.Buffer.concat(a)}else{if(r==="bytes")return e=new b.Buffer(e),a=b.Buffer.concat([Tm("uint256",e.length),e]),e.length%32!==0&&(a=b.Buffer.concat([a,C2.zeros(32-e.length%32)])),a;if(r.startsWith("bytes")){if(t=uT(r),t<1||t>32)throw new Error("Invalid bytes width: "+t);return C2.setLengthRight(e,32)}else if(r.startsWith("uint")){if(t=uT(r),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=T2(e),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());if(n<0)throw new Error("Supplied uint is negative");return n.toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("int")){if(t=uT(r),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=T2(e),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());return n.toTwos(256).toArrayLike(b.Buffer,"be",32)}else if(r.startsWith("ufixed")){if(t=Rmt(r),n=T2(e),n<0)throw new Error("Supplied ufixed is negative");return Tm("uint256",n.mul(new E2(2).pow(new E2(t[1]))))}else if(r.startsWith("fixed"))return t=Rmt(r),Tm("int256",T2(e).mul(new E2(2).pow(new E2(t[1]))))}throw new Error("Unsupported or invalid type: "+r)}function NFr(r){return r==="string"||r==="bytes"||Nmt(r)==="dynamic"}function BFr(r){return r.lastIndexOf("]")===r.length-1}function DFr(r,e){var t=[],n=[],a=32*r.length;for(var i in r){var s=Mmt(r[i]),o=e[i],c=Tm(s,o);NFr(s)?(t.push(Tm("uint256",a)),n.push(c),a+=c.length):t.push(c)}return b.Buffer.concat(t.concat(n))}function Bmt(r,e){if(r.length!==e.length)throw new Error("Number of types are not matching the values");for(var t,n,a=[],i=0;i32)throw new Error("Invalid bytes width: "+t);a.push(C2.setLengthRight(o,t))}else if(s.startsWith("uint")){if(t=uT(s),t%8||t<8||t>256)throw new Error("Invalid uint width: "+t);if(n=T2(o),n.bitLength()>t)throw new Error("Supplied uint exceeds width: "+t+" vs "+n.bitLength());a.push(n.toArrayLike(b.Buffer,"be",t/8))}else if(s.startsWith("int")){if(t=uT(s),t%8||t<8||t>256)throw new Error("Invalid int width: "+t);if(n=T2(o),n.bitLength()>t)throw new Error("Supplied int exceeds width: "+t+" vs "+n.bitLength());a.push(n.toTwos(t).toArrayLike(b.Buffer,"be",t/8))}else throw new Error("Unsupported or invalid type: "+s)}return b.Buffer.concat(a)}function OFr(r,e){return C2.keccak(Bmt(r,e))}Dmt.exports={rawEncode:DFr,solidityPack:Bmt,soliditySHA3:OFr}});var Fmt=x((FYn,qmt)=>{d();p();var Vh=iie(),QI=Omt(),Lmt={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"]},sie={encodeData(r,e,t,n=!0){let a=["bytes32"],i=[this.hashType(r,t)];if(n){let s=(o,c,u)=>{if(t[c]!==void 0)return["bytes32",u==null?"0x0000000000000000000000000000000000000000000000000000000000000000":Vh.keccak(this.encodeData(c,u,t,n))];if(u===void 0)throw new Error(`missing value for field ${o} of type ${c}`);if(c==="bytes")return["bytes32",Vh.keccak(u)];if(c==="string")return typeof u=="string"&&(u=b.Buffer.from(u,"utf8")),["bytes32",Vh.keccak(u)];if(c.lastIndexOf("]")===c.length-1){let l=c.slice(0,c.lastIndexOf("[")),h=u.map(f=>s(o,l,f));return["bytes32",Vh.keccak(QI.rawEncode(h.map(([f])=>f),h.map(([,f])=>f)))]}return[c,u]};for(let o of t[r]){let[c,u]=s(o.name,o.type,e[o.name]);a.push(c),i.push(u)}}else for(let s of t[r]){let o=e[s.name];if(o!==void 0)if(s.type==="bytes")a.push("bytes32"),o=Vh.keccak(o),i.push(o);else if(s.type==="string")a.push("bytes32"),typeof o=="string"&&(o=b.Buffer.from(o,"utf8")),o=Vh.keccak(o),i.push(o);else if(t[s.type]!==void 0)a.push("bytes32"),o=Vh.keccak(this.encodeData(s.type,o,t,n)),i.push(o);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),i.push(o)}}return QI.rawEncode(a,i)},encodeType(r,e){let t="",n=this.findTypeDependencies(r,e).filter(a=>a!==r);n=[r].concat(n.sort());for(let a of n){if(!e[a])throw new Error("No type definition specified: "+a);t+=a+"("+e[a].map(({name:s,type:o})=>o+" "+s).join(",")+")"}return t},findTypeDependencies(r,e,t=[]){if(r=r.match(/^\w*/)[0],t.includes(r)||e[r]===void 0)return t;t.push(r);for(let n of e[r])for(let a of this.findTypeDependencies(n.type,e,t))!t.includes(a)&&t.push(a);return t},hashStruct(r,e,t,n=!0){return Vh.keccak(this.encodeData(r,e,t,n))},hashType(r,e){return Vh.keccak(this.encodeType(r,e))},sanitizeData(r){let e={};for(let t in Lmt.properties)r[t]&&(e[t]=r[t]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(r,e=!0){let t=this.sanitizeData(r),n=[b.Buffer.from("1901","hex")];return n.push(this.hashStruct("EIP712Domain",t.domain,t.types,e)),t.primaryType!=="EIP712Domain"&&n.push(this.hashStruct(t.primaryType,t.message,t.types,e)),Vh.keccak(b.Buffer.concat(n))}};qmt.exports={TYPED_MESSAGE_SCHEMA:Lmt,TypedDataUtils:sie,hashForSignTypedDataLegacy:function(r){return LFr(r.data)},hashForSignTypedData_v3:function(r){return sie.hash(r.data,!1)},hashForSignTypedData_v4:function(r){return sie.hash(r.data)}};function LFr(r){let e=new Error("Expect argument to be non-empty array");if(typeof r!="object"||!r.length)throw e;let t=r.map(function(i){return i.type==="bytes"?Vh.toBuffer(i.value):i.value}),n=r.map(function(i){return i.type}),a=r.map(function(i){if(!i.name)throw e;return i.type+" "+i.name});return QI.soliditySHA3(["bytes32","bytes32"],[QI.soliditySHA3(new Array(r.length).fill("string"),a),QI.soliditySHA3(n,t)])}});var zmt=x(dT=>{"use strict";d();p();Object.defineProperty(dT,"__esModule",{value:!0});dT.filterFromParam=dT.FilterPolyfill=void 0;var lT=VI(),Ju=Y0(),qFr=5*60*1e3,I2={jsonrpc:"2.0",id:0},oie=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,lT.IntNumber)(1),this.provider=e}async newFilter(e){let t=jmt(e),n=this.makeFilterId(),a=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",a),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,Ju.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,Ju.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,Ju.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,Ju.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,Ju.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(CF())}async getFilterLogs(e){let t=(0,Ju.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getLogs",params:[Wmt(n)]})):CF()}makeFilterId(){return(0,lT.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(a,i)=>{if(a)return n(a);if(Array.isArray(i)||i==null)return n(new Error(`unexpected response received: ${JSON.stringify(i)}`));t(i)})})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return CF();let a=await this.getCurrentBlockHeight(),i=t.toBlock==="latest"?a:t.toBlock;if(n>a||n>t.toBlock)return IF();console.log(`Fetching logs from ${n} to ${i} for filter ${e}`);let s=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getLogs",params:[Wmt(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:i}))]}));if(Array.isArray(s.result)){let o=s.result.map(u=>(0,Ju.intNumberFromHexString)(u.blockNumber||"0x0")),c=Math.max(...o);if(c&&c>n){let u=(0,lT.IntNumber)(c+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${u}`),this.cursors.set(e,u)}}return s}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return CF();let n=await this.getCurrentBlockHeight();if(t>n)return IF();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let a=(await Promise.all((0,Ju.range)(t,n+1).map(s=>this.getBlockHashByNumber((0,lT.IntNumber)(s))))).filter(s=>!!s),i=(0,lT.IntNumber)(t+a.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${i}`),this.cursors.set(e,i),Object.assign(Object.assign({},I2),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(IF())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),a=typeof t=="number"&&t>n?t:n;return this.cursors.set(e,a),a}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},qFr);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_blockNumber",params:[]}));return(0,Ju.intNumberFromHexString)((0,Ju.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},I2),{method:"eth_getBlockByNumber",params:[(0,Ju.hexStringFromIntNumber)(e),!1]}));return t.result&&typeof t.result.hash=="string"?(0,Ju.ensureHexString)(t.result.hash):null}};dT.FilterPolyfill=oie;function jmt(r){return{fromBlock:Umt(r.fromBlock),toBlock:Umt(r.toBlock),addresses:r.address===void 0?null:Array.isArray(r.address)?r.address:[r.address],topics:r.topics||[]}}dT.filterFromParam=jmt;function Wmt(r){let e={fromBlock:Hmt(r.fromBlock),toBlock:Hmt(r.toBlock),topics:r.topics};return r.addresses!==null&&(e.address=r.addresses),e}function Umt(r){if(r===void 0||r==="latest"||r==="pending")return"latest";if(r==="earliest")return(0,lT.IntNumber)(0);if((0,Ju.isHexString)(r))return(0,Ju.intNumberFromHexString)(r);throw new Error(`Invalid block option: ${String(r)}`)}function Hmt(r){return r==="latest"?r:(0,Ju.hexStringFromIntNumber)(r)}function CF(){return Object.assign(Object.assign({},I2),{error:{code:-32e3,message:"filter not found"}})}function IF(){return Object.assign(Object.assign({},I2),{result:[]})}});var Kmt=x(ZI=>{"use strict";d();p();Object.defineProperty(ZI,"__esModule",{value:!0});ZI.JSONRPCMethod=void 0;var FFr;(function(r){r.eth_accounts="eth_accounts",r.eth_coinbase="eth_coinbase",r.net_version="net_version",r.eth_chainId="eth_chainId",r.eth_uninstallFilter="eth_uninstallFilter",r.eth_requestAccounts="eth_requestAccounts",r.eth_sign="eth_sign",r.eth_ecRecover="eth_ecRecover",r.personal_sign="personal_sign",r.personal_ecRecover="personal_ecRecover",r.eth_signTransaction="eth_signTransaction",r.eth_sendRawTransaction="eth_sendRawTransaction",r.eth_sendTransaction="eth_sendTransaction",r.eth_signTypedData_v1="eth_signTypedData_v1",r.eth_signTypedData_v2="eth_signTypedData_v2",r.eth_signTypedData_v3="eth_signTypedData_v3",r.eth_signTypedData_v4="eth_signTypedData_v4",r.eth_signTypedData="eth_signTypedData",r.cbWallet_arbitrary="walletlink_arbitrary",r.wallet_addEthereumChain="wallet_addEthereumChain",r.wallet_switchEthereumChain="wallet_switchEthereumChain",r.wallet_watchAsset="wallet_watchAsset",r.eth_subscribe="eth_subscribe",r.eth_unsubscribe="eth_unsubscribe",r.eth_newFilter="eth_newFilter",r.eth_newBlockFilter="eth_newBlockFilter",r.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",r.eth_getFilterChanges="eth_getFilterChanges",r.eth_getFilterLogs="eth_getFilterLogs"})(FFr=ZI.JSONRPCMethod||(ZI.JSONRPCMethod={}))});var cie=x(($Yn,Vmt)=>{"use strict";d();p();var Gmt=(r,e)=>function(){let t=e.promiseModule,n=new Array(arguments.length);for(let a=0;a{e.errorFirst?n.push(function(s,o){if(e.multiArgs){let c=new Array(arguments.length-1);for(let u=1;u{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);let t=a=>{let i=s=>typeof s=="string"?a===s:s.test(a);return e.include?e.include.some(i):!e.exclude.some(i)},n;typeof r=="function"?n=function(){return e.excludeMain?r.apply(this,arguments):Gmt(r,e).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(r));for(let a in r){let i=r[a];n[a]=typeof i=="function"&&t(a)?Gmt(i,e):i}return n}});var Ymt=x((QYn,$mt)=>{d();p();$mt.exports=UFr;var WFr=Object.prototype.hasOwnProperty;function UFr(){for(var r={},e=0;e{d();p();Jmt.exports=HFr;function HFr(r){r=r||{};var e=r.max||Number.MAX_SAFE_INTEGER,t=typeof r.start<"u"?r.start:Math.floor(Math.random()*e);return function(){return t=t%e,t++}}});var uie=x((nJn,Zmt)=>{d();p();var jFr=Ymt(),zFr=Qmt()();Zmt.exports=dr;function dr(r){let e=this;e.currentProvider=r}dr.prototype.getBalance=XI(2,"eth_getBalance");dr.prototype.getCode=XI(2,"eth_getCode");dr.prototype.getTransactionCount=XI(2,"eth_getTransactionCount");dr.prototype.getStorageAt=XI(3,"eth_getStorageAt");dr.prototype.call=XI(2,"eth_call");dr.prototype.protocolVersion=Mr("eth_protocolVersion");dr.prototype.syncing=Mr("eth_syncing");dr.prototype.coinbase=Mr("eth_coinbase");dr.prototype.mining=Mr("eth_mining");dr.prototype.hashrate=Mr("eth_hashrate");dr.prototype.gasPrice=Mr("eth_gasPrice");dr.prototype.accounts=Mr("eth_accounts");dr.prototype.blockNumber=Mr("eth_blockNumber");dr.prototype.getBlockTransactionCountByHash=Mr("eth_getBlockTransactionCountByHash");dr.prototype.getBlockTransactionCountByNumber=Mr("eth_getBlockTransactionCountByNumber");dr.prototype.getUncleCountByBlockHash=Mr("eth_getUncleCountByBlockHash");dr.prototype.getUncleCountByBlockNumber=Mr("eth_getUncleCountByBlockNumber");dr.prototype.sign=Mr("eth_sign");dr.prototype.sendTransaction=Mr("eth_sendTransaction");dr.prototype.sendRawTransaction=Mr("eth_sendRawTransaction");dr.prototype.estimateGas=Mr("eth_estimateGas");dr.prototype.getBlockByHash=Mr("eth_getBlockByHash");dr.prototype.getBlockByNumber=Mr("eth_getBlockByNumber");dr.prototype.getTransactionByHash=Mr("eth_getTransactionByHash");dr.prototype.getTransactionByBlockHashAndIndex=Mr("eth_getTransactionByBlockHashAndIndex");dr.prototype.getTransactionByBlockNumberAndIndex=Mr("eth_getTransactionByBlockNumberAndIndex");dr.prototype.getTransactionReceipt=Mr("eth_getTransactionReceipt");dr.prototype.getUncleByBlockHashAndIndex=Mr("eth_getUncleByBlockHashAndIndex");dr.prototype.getUncleByBlockNumberAndIndex=Mr("eth_getUncleByBlockNumberAndIndex");dr.prototype.getCompilers=Mr("eth_getCompilers");dr.prototype.compileLLL=Mr("eth_compileLLL");dr.prototype.compileSolidity=Mr("eth_compileSolidity");dr.prototype.compileSerpent=Mr("eth_compileSerpent");dr.prototype.newFilter=Mr("eth_newFilter");dr.prototype.newBlockFilter=Mr("eth_newBlockFilter");dr.prototype.newPendingTransactionFilter=Mr("eth_newPendingTransactionFilter");dr.prototype.uninstallFilter=Mr("eth_uninstallFilter");dr.prototype.getFilterChanges=Mr("eth_getFilterChanges");dr.prototype.getFilterLogs=Mr("eth_getFilterLogs");dr.prototype.getLogs=Mr("eth_getLogs");dr.prototype.getWork=Mr("eth_getWork");dr.prototype.submitWork=Mr("eth_submitWork");dr.prototype.submitHashrate=Mr("eth_submitHashrate");dr.prototype.sendAsync=function(r,e){this.currentProvider.sendAsync(KFr(r),function(n,a){if(!n&&a.error&&(n=new Error("EthQuery - RPC Error - "+a.error.message)),n)return e(n);e(null,a.result)})};function Mr(r){return function(){let e=this;var t=[].slice.call(arguments),n=t.pop();e.sendAsync({method:r,params:t},n)}}function XI(r,e){return function(){let t=this;var n=[].slice.call(arguments),a=n.pop();n.length{d();p();var GFr=SR(),e0t=Bu(),lie=typeof Reflect=="object"?Reflect:null,VFr=lie&&typeof lie.apply=="function"?lie.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t0t.exports=die;function die(){e0t.call(this)}GFr.inherits(die,e0t);die.prototype.emit=function(r){for(var e=[],t=1;t0&&(i=e[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var o=a[r];if(o===void 0)return!1;if(typeof o=="function")Xmt(o,this,e);else for(var c=o.length,u=$Fr(o,c),t=0;t{throw n})}}function $Fr(r,e){for(var t=new Array(e),n=0;n{d();p();var uJn=uie(),lJn=cie(),YFr=r0t(),JFr=1e3,QFr=(r,e)=>r+e,n0t=["sync","latest"],pie=class extends YFr{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||20*JFr,this._blockResetTimeout,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()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(t=>this.once("latest",t))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,t){!n0t.includes(e)||this._maybeStart()}_onRemoveListener(e,t){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){!this._isRunning||(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return n0t.map(e=>this.listenerCount(e)).reduce(QFr)}_newPotentialLatest(e){let t=this._currentBlock;t&&a0t(e)<=a0t(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}};i0t.exports=pie;function a0t(r){return Number.parseInt(r,16)}});var u0t=x((fJn,c0t)=>{d();p();var ZFr=cie(),XFr=s0t(),eWr=1e3,hie=class extends XFr{constructor(e={}){if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");let t=e.pollingInterval||20*eWr,n=e.retryTimeout||t/10,a=e.keepEventLoopActive!==void 0?e.keepEventLoopActive:!0,i=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:t},e)),this._provider=e.provider,this._pollingInterval=t,this._retryTimeout=n,this._keepEventLoopActive=a,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o0t(this._pollingInterval,!this._keepEventLoopActive)}catch(e){let t=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block: +${e.stack}`);try{this.emit("error",t)}catch{console.error(t)}await o0t(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let t=await ZFr(n=>this._provider.sendAsync(e,n))();if(t.error)throw new Error(`PollingBlockTracker - encountered error fetching block: +${t.error}`);return t.result}};c0t.exports=hie;function o0t(r,e){return new Promise(t=>{let n=setTimeout(t,r);n.unref&&e&&n.unref()})}});var mie=x(kF=>{"use strict";d();p();Object.defineProperty(kF,"__esModule",{value:!0});kF.getUniqueId=void 0;var l0t=4294967295,fie=Math.floor(Math.random()*l0t);function tWr(){return fie=(fie+1)%l0t,fie}kF.getUniqueId=tWr});var d0t=x(AF=>{"use strict";d();p();Object.defineProperty(AF,"__esModule",{value:!0});AF.createIdRemapMiddleware=void 0;var rWr=mie();function nWr(){return(r,e,t,n)=>{let a=r.id,i=rWr.getUniqueId();r.id=i,e.id=i,t(s=>{r.id=a,e.id=a,s()})}}AF.createIdRemapMiddleware=nWr});var p0t=x(SF=>{"use strict";d();p();Object.defineProperty(SF,"__esModule",{value:!0});SF.createAsyncMiddleware=void 0;function aWr(r){return async(e,t,n,a)=>{let i,s=new Promise(l=>{i=l}),o=null,c=!1,u=async()=>{c=!0,n(l=>{o=l,i()}),await s};try{await r(e,t,u),c?(await s,o(null)):a(null)}catch(l){o?o(l):a(l)}}}SF.createAsyncMiddleware=aWr});var h0t=x(PF=>{"use strict";d();p();Object.defineProperty(PF,"__esModule",{value:!0});PF.createScaffoldMiddleware=void 0;function iWr(r){return(e,t,n,a)=>{let i=r[e.method];return i===void 0?n():typeof i=="function"?i(e,t,n,a):(t.result=i,a())}}PF.createScaffoldMiddleware=iWr});var MF=x(pT=>{"use strict";d();p();Object.defineProperty(pT,"__esModule",{value:!0});pT.EthereumProviderError=pT.EthereumRpcError=void 0;var sWr=Rae(),RF=class extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string.');super(t),this.code=e,n!==void 0&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return this.data!==void 0&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return sWr.default(this.serialize(),cWr,2)}};pT.EthereumRpcError=RF;var yie=class extends RF{constructor(e,t,n){if(!oWr(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}};pT.EthereumProviderError=yie;function oWr(r){return Number.isInteger(r)&&r>=1e3&&r<=4999}function cWr(r,e){if(e!=="[Circular]")return e}});var NF=x(hT=>{"use strict";d();p();Object.defineProperty(hT,"__esModule",{value:!0});hT.errorValues=hT.errorCodes=void 0;hT.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}};hT.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."}}});var vie=x($h=>{"use strict";d();p();Object.defineProperty($h,"__esModule",{value:!0});$h.serializeError=$h.isValidCode=$h.getMessageFromCode=$h.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;var BF=NF(),uWr=MF(),f0t=BF.errorCodes.rpc.internal,lWr="Unspecified error message. This is a bug, please report it.",dWr={code:f0t,message:bie(f0t)};$h.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function bie(r,e=lWr){if(Number.isInteger(r)){let t=r.toString();if(gie(BF.errorValues,t))return BF.errorValues[t].message;if(g0t(r))return $h.JSON_RPC_SERVER_ERROR_MESSAGE}return e}$h.getMessageFromCode=bie;function y0t(r){if(!Number.isInteger(r))return!1;let e=r.toString();return!!(BF.errorValues[e]||g0t(r))}$h.isValidCode=y0t;function pWr(r,{fallbackError:e=dWr,shouldIncludeStack:t=!1}={}){var n,a;if(!e||!Number.isInteger(e.code)||typeof e.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(r instanceof uWr.EthereumRpcError)return r.serialize();let i={};if(r&&typeof r=="object"&&!Array.isArray(r)&&gie(r,"code")&&y0t(r.code)){let o=r;i.code=o.code,o.message&&typeof o.message=="string"?(i.message=o.message,gie(o,"data")&&(i.data=o.data)):(i.message=bie(i.code),i.data={originalError:m0t(r)})}else{i.code=e.code;let o=(n=r)===null||n===void 0?void 0:n.message;i.message=o&&typeof o=="string"?o:e.message,i.data={originalError:m0t(r)}}let s=(a=r)===null||a===void 0?void 0:a.stack;return t&&r&&s&&typeof s=="string"&&(i.stack=s),i}$h.serializeError=pWr;function g0t(r){return r>=-32099&&r<=-32e3}function m0t(r){return r&&typeof r=="object"&&!Array.isArray(r)?Object.assign({},r):r}function gie(r,e){return Object.prototype.hasOwnProperty.call(r,e)}});var w0t=x(DF=>{"use strict";d();p();Object.defineProperty(DF,"__esModule",{value:!0});DF.ethErrors=void 0;var wie=MF(),b0t=vie(),Eu=NF();DF.ethErrors={rpc:{parse:r=>Pp(Eu.errorCodes.rpc.parse,r),invalidRequest:r=>Pp(Eu.errorCodes.rpc.invalidRequest,r),invalidParams:r=>Pp(Eu.errorCodes.rpc.invalidParams,r),methodNotFound:r=>Pp(Eu.errorCodes.rpc.methodNotFound,r),internal:r=>Pp(Eu.errorCodes.rpc.internal,r),server:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum RPC Server errors must provide single object argument.");let{code:e}=r;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Pp(e,r)},invalidInput:r=>Pp(Eu.errorCodes.rpc.invalidInput,r),resourceNotFound:r=>Pp(Eu.errorCodes.rpc.resourceNotFound,r),resourceUnavailable:r=>Pp(Eu.errorCodes.rpc.resourceUnavailable,r),transactionRejected:r=>Pp(Eu.errorCodes.rpc.transactionRejected,r),methodNotSupported:r=>Pp(Eu.errorCodes.rpc.methodNotSupported,r),limitExceeded:r=>Pp(Eu.errorCodes.rpc.limitExceeded,r)},provider:{userRejectedRequest:r=>ek(Eu.errorCodes.provider.userRejectedRequest,r),unauthorized:r=>ek(Eu.errorCodes.provider.unauthorized,r),unsupportedMethod:r=>ek(Eu.errorCodes.provider.unsupportedMethod,r),disconnected:r=>ek(Eu.errorCodes.provider.disconnected,r),chainDisconnected:r=>ek(Eu.errorCodes.provider.chainDisconnected,r),custom:r=>{if(!r||typeof r!="object"||Array.isArray(r))throw new Error("Ethereum Provider custom errors must provide single object argument.");let{code:e,message:t,data:n}=r;if(!t||typeof t!="string")throw new Error('"message" must be a nonempty string');return new wie.EthereumProviderError(e,t,n)}}};function Pp(r,e){let[t,n]=v0t(e);return new wie.EthereumRpcError(r,t||b0t.getMessageFromCode(r),n)}function ek(r,e){let[t,n]=v0t(e);return new wie.EthereumProviderError(r,t||b0t.getMessageFromCode(r),n)}function v0t(r){if(r){if(typeof r=="string")return[r];if(typeof r=="object"&&!Array.isArray(r)){let{message:e,data:t}=r;if(e&&typeof e!="string")throw new Error("Must specify string message.");return[e||void 0,t]}}return[]}});var T0t=x(Bl=>{"use strict";d();p();Object.defineProperty(Bl,"__esModule",{value:!0});Bl.getMessageFromCode=Bl.serializeError=Bl.EthereumProviderError=Bl.EthereumRpcError=Bl.ethErrors=Bl.errorCodes=void 0;var _0t=MF();Object.defineProperty(Bl,"EthereumRpcError",{enumerable:!0,get:function(){return _0t.EthereumRpcError}});Object.defineProperty(Bl,"EthereumProviderError",{enumerable:!0,get:function(){return _0t.EthereumProviderError}});var x0t=vie();Object.defineProperty(Bl,"serializeError",{enumerable:!0,get:function(){return x0t.serializeError}});Object.defineProperty(Bl,"getMessageFromCode",{enumerable:!0,get:function(){return x0t.getMessageFromCode}});var hWr=w0t();Object.defineProperty(Bl,"ethErrors",{enumerable:!0,get:function(){return hWr.ethErrors}});var fWr=NF();Object.defineProperty(Bl,"errorCodes",{enumerable:!0,get:function(){return fWr.errorCodes}})});var xie=x(fT=>{"use strict";d();p();var mWr=fT&&fT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(fT,"__esModule",{value:!0});fT.JsonRpcEngine=void 0;var yWr=mWr(FI()),Rp=T0t(),Yh=class extends yWr.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&typeof t!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,a)=>{try{let[i,s,o]=await Yh._runAllMiddleware(e,t,this._middleware);return s?(await Yh._runReturnHandlers(o),a(i)):n(async c=>{try{await Yh._runReturnHandlers(o)}catch(u){return c(u)}return c()})}catch(i){return a(i)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,n):n}catch(n){if(t)return t(n);throw n}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(n,a)=>{t(a)})})}async _handle(e,t){if(!e||Array.isArray(e)||typeof e!="object"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(s,{id:void 0,jsonrpc:"2.0",error:s})}if(typeof e.method!="string"){let s=new Rp.EthereumRpcError(Rp.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(s,{id:e.id,jsonrpc:"2.0",error:s})}let n=Object.assign({},e),a={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,a)}catch(s){i=s}return i&&(delete a.result,a.error||(a.error=Rp.serializeError(i))),t(i,a)}async _processRequest(e,t){let[n,a,i]=await Yh._runAllMiddleware(e,t,this._middleware);if(Yh._checkForCompletion(e,t,a),await Yh._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let a=[],i=null,s=!1;for(let o of n)if([i,s]=await Yh._runMiddleware(e,t,o,a),s)break;return[i,s,a.reverse()]}static _runMiddleware(e,t,n,a){return new Promise(i=>{let s=c=>{let u=c||t.error;u&&(t.error=Rp.serializeError(u)),i([u,!0])},o=c=>{t.error?s(t.error):(c&&(typeof c!="function"&&s(new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof c}" for request: +${_ie(e)}`,{request:e})),a.push(c)),i([null,!1]))};try{n(e,t,o,s)}catch(c){s(c)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((n,a)=>{t(i=>i?a(i):n())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: +${_ie(e)}`,{request:e});if(!n)throw new Rp.EthereumRpcError(Rp.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: +${_ie(e)}`,{request:e})}};fT.JsonRpcEngine=Yh;function _ie(r){return JSON.stringify(r,null,2)}});var E0t=x(OF=>{"use strict";d();p();Object.defineProperty(OF,"__esModule",{value:!0});OF.mergeMiddleware=void 0;var gWr=xie();function bWr(r){let e=new gWr.JsonRpcEngine;return r.forEach(t=>e.push(t)),e.asMiddleware()}OF.mergeMiddleware=bWr});var Tie=x(Mp=>{"use strict";d();p();var vWr=Mp&&Mp.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),mT=Mp&&Mp.__exportStar||function(r,e){for(var t in r)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&vWr(e,r,t)};Object.defineProperty(Mp,"__esModule",{value:!0});mT(d0t(),Mp);mT(p0t(),Mp);mT(h0t(),Mp);mT(mie(),Mp);mT(xie(),Mp);mT(E0t(),Mp)});var WF=x((XJn,FF)=>{d();p();var C0t,I0t,k0t,A0t,S0t,P0t,R0t,M0t,N0t,B0t,D0t,O0t,L0t,LF,Eie,q0t,F0t,W0t,yT,U0t,H0t,j0t,z0t,K0t,G0t,V0t,$0t,Y0t,qF;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof FF=="object"&&typeof FF.exports=="object"?r(t(e,t(FF.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])};C0t=function(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(n,a);function i(){this.constructor=n}n.prototype=a===null?Object.create(a):(i.prototype=a.prototype,new i)},I0t=Object.assign||function(n){for(var a,i=1,s=arguments.length;i=0;l--)(u=n[l])&&(c=(o<3?u(c):o>3?u(a,i,c):u(a,i))||c);return o>3&&c&&Object.defineProperty(a,i,c),c},S0t=function(n,a){return function(i,s){a(i,s,n)}},P0t=function(n,a,i,s,o,c){function u(W){if(W!==void 0&&typeof W!="function")throw new TypeError("Function expected");return W}for(var l=s.kind,h=l==="getter"?"get":l==="setter"?"set":"value",f=!a&&n?s.static?n:n.prototype:null,m=a||(f?Object.getOwnPropertyDescriptor(f,s.name):{}),y,E=!1,I=i.length-1;I>=0;I--){var S={};for(var L in s)S[L]=L==="access"?{}:s[L];for(var L in s.access)S.access[L]=s.access[L];S.addInitializer=function(W){if(E)throw new TypeError("Cannot add initializers after decoration has completed");c.push(u(W||null))};var F=(0,i[I])(l==="accessor"?{get:m.get,set:m.set}:m[h],S);if(l==="accessor"){if(F===void 0)continue;if(F===null||typeof F!="object")throw new TypeError("Object expected");(y=u(F.get))&&(m.get=y),(y=u(F.set))&&(m.set=y),(y=u(F.init))&&o.push(y)}else(y=u(F))&&(l==="field"?o.push(y):m[h]=y)}f&&Object.defineProperty(f,s.name,m),E=!0},R0t=function(n,a,i){for(var s=arguments.length>2,o=0;o0&&c[c.length-1])&&(f[0]===6||f[0]===2)){i=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]=n.length&&(n=void 0),{value:n&&n[s++],done:!n}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Eie=function(n,a){var i=typeof Symbol=="function"&&n[Symbol.iterator];if(!i)return n;var s=i.call(n),o,c=[],u;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)c.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(u)throw u.error}}return c},q0t=function(){for(var n=[],a=0;a1||l(E,I)})})}function l(E,I){try{h(s[E](I))}catch(S){y(c[0][3],S)}}function h(E){E.value instanceof yT?Promise.resolve(E.value.v).then(f,m):y(c[0][2],E)}function f(E){l("next",E)}function m(E){l("throw",E)}function y(E,I){E(I),c.shift(),c.length&&l(c[0][0],c[0][1])}},H0t=function(n){var a,i;return a={},s("next"),s("throw",function(o){throw o}),s("return"),a[Symbol.iterator]=function(){return this},a;function s(o,c){a[o]=n[o]?function(u){return(i=!i)?{value:yT(n[o](u)),done:!1}:c?c(u):u}:c}},j0t=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=n[Symbol.asyncIterator],i;return a?a.call(n):(n=typeof LF=="function"?LF(n):n[Symbol.iterator](),i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i);function s(c){i[c]=n[c]&&function(u){return new Promise(function(l,h){u=n[c](u),o(l,h,u.done,u.value)})}}function o(c,u,l,h){Promise.resolve(h).then(function(f){c({value:f,done:l})},u)}},z0t=function(n,a){return Object.defineProperty?Object.defineProperty(n,"raw",{value:a}):n.raw=a,n};var t=Object.create?function(n,a){Object.defineProperty(n,"default",{enumerable:!0,value:a})}:function(n,a){n.default=a};K0t=function(n){if(n&&n.__esModule)return n;var a={};if(n!=null)for(var i in n)i!=="default"&&Object.prototype.hasOwnProperty.call(n,i)&&qF(a,n,i);return t(a,n),a},G0t=function(n){return n&&n.__esModule?n:{default:n}},V0t=function(n,a,i,s){if(i==="a"&&!s)throw new TypeError("Private accessor was defined without a getter");if(typeof a=="function"?n!==a||!s:!a.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return i==="m"?s:i==="a"?s.call(n):s?s.value:a.get(n)},$0t=function(n,a,i,s,o){if(s==="m")throw new TypeError("Private method is not writable");if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof a=="function"?n!==a||!o:!a.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return s==="a"?o.call(n,i):o?o.value=i:a.set(n,i),i},Y0t=function(n,a){if(a===null||typeof a!="object"&&typeof a!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?a===n:n.has(a)},r("__extends",C0t),r("__assign",I0t),r("__rest",k0t),r("__decorate",A0t),r("__param",S0t),r("__esDecorate",P0t),r("__runInitializers",R0t),r("__propKey",M0t),r("__setFunctionName",N0t),r("__metadata",B0t),r("__awaiter",D0t),r("__generator",O0t),r("__exportStar",L0t),r("__createBinding",qF),r("__values",LF),r("__read",Eie),r("__spread",q0t),r("__spreadArrays",F0t),r("__spreadArray",W0t),r("__await",yT),r("__asyncGenerator",U0t),r("__asyncDelegator",H0t),r("__asyncValues",j0t),r("__makeTemplateObject",z0t),r("__importStar",K0t),r("__importDefault",G0t),r("__classPrivateFieldGet",V0t),r("__classPrivateFieldSet",$0t),r("__classPrivateFieldIn",Y0t)})});var Iie=x(Cie=>{"use strict";d();p();Object.defineProperty(Cie,"__esModule",{value:!0});var J0t=WF(),wWr=function(){function r(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return r.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(a){return e._queue.push(a)});return t||this._dispatch(),n},r.prototype.runExclusive=function(e){return J0t.__awaiter(this,void 0,void 0,function(){var t,n,a;return J0t.__generator(this,function(i){switch(i.label){case 0:return[4,this.acquire()];case 1:t=i.sent(),n=t[0],a=t[1],i.label=2;case 2:return i.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,i.sent()];case 4:return a(),[7];case 5:return[2]}})})},r.prototype.isLocked=function(){return this._value<=0},r.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 e=this._currentReleaser;this._currentReleaser=void 0,e()}},r.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(!!t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},r}();Cie.default=wWr});var Z0t=x(kie=>{"use strict";d();p();Object.defineProperty(kie,"__esModule",{value:!0});var Q0t=WF(),_Wr=Iie(),xWr=function(){function r(){this._semaphore=new _Wr.default(1)}return r.prototype.acquire=function(){return Q0t.__awaiter(this,void 0,void 0,function(){var e,t;return Q0t.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=n.sent(),t=e[1],[2,t]}})})},r.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},r.prototype.isLocked=function(){return this._semaphore.isLocked()},r.prototype.release=function(){this._semaphore.release()},r}();kie.default=xWr});var X0t=x(HF=>{"use strict";d();p();Object.defineProperty(HF,"__esModule",{value:!0});HF.withTimeout=void 0;var UF=WF();function TWr(r,e,t){var n=this;return t===void 0&&(t=new Error("timeout")),{acquire:function(){return new Promise(function(a,i){return UF.__awaiter(n,void 0,void 0,function(){var s,o,c;return UF.__generator(this,function(u){switch(u.label){case 0:return s=!1,setTimeout(function(){s=!0,i(t)},e),[4,r.acquire()];case 1:return o=u.sent(),s?(c=Array.isArray(o)?o[1]:o,c()):a(o),[2]}})})})},runExclusive:function(a){return UF.__awaiter(this,void 0,void 0,function(){var i,s;return UF.__generator(this,function(o){switch(o.label){case 0:i=function(){},o.label=1;case 1:return o.trys.push([1,,7,8]),[4,this.acquire()];case 2:return s=o.sent(),Array.isArray(s)?(i=s[1],[4,a(s[0])]):[3,4];case 3:return[2,o.sent()];case 4:return i=s,[4,a()];case 5:return[2,o.sent()];case 6:return[3,8];case 7:return i(),[7];case 8:return[2]}})})},release:function(){r.release()},isLocked:function(){return r.isLocked()}}}HF.withTimeout=TWr});var eyt=x(Y1=>{"use strict";d();p();Object.defineProperty(Y1,"__esModule",{value:!0});Y1.withTimeout=Y1.Semaphore=Y1.Mutex=void 0;var EWr=Z0t();Object.defineProperty(Y1,"Mutex",{enumerable:!0,get:function(){return EWr.default}});var CWr=Iie();Object.defineProperty(Y1,"Semaphore",{enumerable:!0,get:function(){return CWr.default}});var IWr=X0t();Object.defineProperty(Y1,"withTimeout",{enumerable:!0,get:function(){return IWr.withTimeout}})});var ayt=x((fQn,nyt)=>{"use strict";d();p();var tyt=(r,e,t,n)=>function(...a){let i=e.promiseModule;return new i((s,o)=>{e.multiArgs?a.push((...u)=>{e.errorFirst?u[0]?o(u):(u.shift(),s(u)):s(u)}):e.errorFirst?a.push((u,l)=>{u?o(u):s(l)}):a.push(s),Reflect.apply(r,this===t?n:this,a)})},ryt=new WeakMap;nyt.exports=(r,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};let t=typeof r;if(!(r!==null&&(t==="object"||t==="function")))throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${r===null?"null":t}\``);let n=(s,o)=>{let c=ryt.get(s);if(c||(c={},ryt.set(s,c)),o in c)return c[o];let u=y=>typeof y=="string"||typeof o=="symbol"?o===y:y.test(o),l=Reflect.getOwnPropertyDescriptor(s,o),h=l===void 0||l.writable||l.configurable,m=(e.include?e.include.some(u):!e.exclude.some(u))&&h;return c[o]=m,m},a=new WeakMap,i=new Proxy(r,{apply(s,o,c){let u=a.get(s);if(u)return Reflect.apply(u,o,c);let l=e.excludeMain?s:tyt(s,e,i,s);return a.set(s,l),Reflect.apply(l,o,c)},get(s,o){let c=s[o];if(!n(s,o)||c===Function.prototype[o])return c;let u=a.get(c);if(u)return u;if(typeof c=="function"){let l=tyt(c,e,i,s);return a.set(c,l),l}return c}});return i}});var jF=x((gQn,iyt)=>{d();p();var kWr=FI().default,Aie=class extends kWr{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(t=>this.emit("update",t))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}};iyt.exports=Aie});var oyt=x((wQn,syt)=>{d();p();var AWr=jF(),Sie=class extends AWr{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}};syt.exports=Sie});var gT=x((TQn,lyt)=>{d();p();lyt.exports={minBlockRef:SWr,maxBlockRef:PWr,sortBlockRefs:Pie,bnToHex:RWr,blockRefIsNumber:MWr,hexToInt:zF,incrementHexInt:NWr,intToHex:uyt,unsafeRandomBytes:BWr};function SWr(...r){return Pie(r)[0]}function PWr(...r){let e=Pie(r);return e[e.length-1]}function Pie(r){return r.sort((e,t)=>e==="latest"||t==="earliest"?1:t==="latest"||e==="earliest"?-1:zF(e)-zF(t))}function RWr(r){return"0x"+r.toString(16)}function MWr(r){return r&&!["earliest","latest","pending"].includes(r)}function zF(r){return r==null?r:Number.parseInt(r,16)}function NWr(r){if(r==null)return r;let e=zF(r);return uyt(e+1)}function uyt(r){if(r==null)return r;let e=r.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function BWr(r){let e="0x";for(let t=0;t{d();p();var DWr=uie(),OWr=ayt(),LWr=oyt(),{bnToHex:IQn,hexToInt:KF,incrementHexInt:qWr,minBlockRef:FWr,blockRefIsNumber:WWr}=gT(),Rie=class extends LWr{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new DWr(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(n=>n.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),t==="earliest"&&(t="0x0"),this.params.fromBlock=t;let n=FWr(this.params.toBlock,e),a=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(a);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n=t,a;e?a=qWr(e):a=t;let i=Object.assign({},this.params,{fromBlock:a,toBlock:n}),o=(await this._fetchLogs(i)).filter(c=>this.matchLog(c));this.addResults(o)}async _fetchLogs(e){return await OWr(n=>this.ethQuery.getLogs(e,n))()}matchLog(e){if(KF(this.params.fromBlock)>=KF(e.blockNumber)||WWr(this.params.toBlock)&&KF(this.params.toBlock)<=KF(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();return this.params.address&&t&&!this.params.address.includes(t)?!1:this.params.topics.every((a,i)=>{let s=e.topics[i];if(!s)return!1;s=s.toLowerCase();let o=Array.isArray(a)?a:[a];return o.includes(null)?!0:(o=o.map(l=>l.toLowerCase()),o.includes(s))})}};dyt.exports=Rie});var GF=x((PQn,fyt)=>{d();p();fyt.exports=UWr;async function UWr({provider:r,fromBlock:e,toBlock:t}){e||(e=t);let n=hyt(e),i=hyt(t)-n+1,s=Array(i).fill().map((c,u)=>n+u).map(HWr);return await Promise.all(s.map(c=>zWr(r,"eth_getBlockByNumber",[c,!1])))}function hyt(r){return r==null?r:Number.parseInt(r,16)}function HWr(r){return r==null?r:"0x"+r.toString(16)}function jWr(r,e){return new Promise((t,n)=>{r.sendAsync(e,(a,i)=>{a?n(a):i.error?n(i.error):i.result?t(i.result):n(new Error("Result was empty"))})})}async function zWr(r,e,t){for(let n=0;n<3;n++)try{return await jWr(r,{id:1,jsonrpc:"2.0",method:e,params:t})}catch(a){console.error(`provider.sendAsync failed: ${a.stack||a.message||a}`)}throw new Error(`Block not found for params: ${JSON.stringify(t)}`)}});var yyt=x((NQn,myt)=>{d();p();var KWr=jF(),GWr=GF(),{incrementHexInt:VWr}=gT(),Mie=class extends KWr{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=t,a=VWr(e),s=(await GWr({provider:this.provider,fromBlock:a,toBlock:n})).map(o=>o.hash);this.addResults(s)}};myt.exports=Mie});var byt=x((OQn,gyt)=>{d();p();var $Wr=jF(),YWr=GF(),{incrementHexInt:JWr}=gT(),Nie=class extends $Wr{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=e,n=JWr(e),a=await YWr({provider:this.provider,fromBlock:n,toBlock:t}),i=[];for(let s of a)i.push(...s.transactions);this.addResults(i)}};gyt.exports=Nie});var _yt=x((FQn,wyt)=>{d();p();var QWr=eyt().Mutex,{createAsyncMiddleware:ZWr,createScaffoldMiddleware:XWr}=Tie(),eUr=pyt(),tUr=yyt(),rUr=byt(),{intToHex:vyt,hexToInt:Bie}=gT();wyt.exports=nUr;function nUr({blockTracker:r,provider:e}){let t=0,n={},a=new QWr,i=aUr({mutex:a}),s=XWr({eth_newFilter:i(Die(c)),eth_newBlockFilter:i(Die(u)),eth_newPendingTransactionFilter:i(Die(l)),eth_uninstallFilter:i(VF(m)),eth_getFilterChanges:i(VF(h)),eth_getFilterLogs:i(VF(f))}),o=async({oldBlock:L,newBlock:F})=>{if(n.length===0)return;let W=await a.acquire();try{await Promise.all(bT(n).map(async V=>{try{await V.update({oldBlock:L,newBlock:F})}catch(K){console.error(K)}}))}catch(V){console.error(V)}W()};return s.newLogFilter=c,s.newBlockFilter=u,s.newPendingTransactionFilter=l,s.uninstallFilter=m,s.getFilterChanges=h,s.getFilterLogs=f,s.destroy=()=>{I()},s;async function c(L){let F=new eUr({provider:e,params:L}),W=await y(F);return F}async function u(){let L=new tUr({provider:e}),F=await y(L);return L}async function l(){let L=new rUr({provider:e}),F=await y(L);return L}async function h(L){let F=Bie(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);return W.getChangesAndClear()}async function f(L){let F=Bie(L),W=n[F];if(!W)throw new Error(`No filter for index "${F}"`);let V=[];return W.type==="log"&&(V=W.getAllResults()),V}async function m(L){let F=Bie(L),W=n[F],V=Boolean(W);return V&&await E(F),V}async function y(L){let F=bT(n).length,W=await r.getLatestBlock();await L.initialize({currentBlock:W}),t++,n[t]=L,L.id=t,L.idHex=vyt(t);let V=bT(n).length;return S({prevFilterCount:F,newFilterCount:V}),t}async function E(L){let F=bT(n).length;delete n[L];let W=bT(n).length;S({prevFilterCount:F,newFilterCount:W})}async function I(){let L=bT(n).length;n={},S({prevFilterCount:L,newFilterCount:0})}function S({prevFilterCount:L,newFilterCount:F}){if(L===0&&F>0){r.on("sync",o);return}if(L>0&&F===0){r.removeListener("sync",o);return}}}function Die(r){return VF(async(...e)=>{let t=await r(...e);return vyt(t.id)})}function VF(r){return ZWr(async(e,t)=>{let n=await r.apply(null,e.params);t.result=n})}function aUr({mutex:r}){return e=>async(t,n,a,i)=>{(await r.acquire())(),e(t,n,a,i)}}function bT(r,e){let t=[];for(let n in r)t.push(r[n]);return t}});var Eyt=x((HQn,Tyt)=>{d();p();var iUr=FI().default,{createAsyncMiddleware:xyt,createScaffoldMiddleware:sUr}=Tie(),oUr=_yt(),{unsafeRandomBytes:cUr,incrementHexInt:uUr}=gT(),lUr=GF();Tyt.exports=dUr;function dUr({blockTracker:r,provider:e}){let t={},n=oUr({blockTracker:r,provider:e}),a=!1,i=new iUr,s=sUr({eth_subscribe:xyt(o),eth_unsubscribe:xyt(c)});return s.destroy=l,{events:i,middleware:s};async function o(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=cUr(16),E;switch(m){case"newHeads":E=I({subId:y});break;case"logs":let L=h.params[1],F=await n.newLogFilter(L);E=S({subId:y,filter:F});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${m}"`)}t[y]=E,f.result=y;return;function I({subId:L}){let F={type:m,destroy:async()=>{r.removeListener("sync",F.update)},update:async({oldBlock:W,newBlock:V})=>{let K=V,H=uUr(W);(await lUr({provider:e,fromBlock:H,toBlock:K})).map(pUr).filter(q=>q!==null).forEach(q=>{u(L,q)})}};return r.on("sync",F.update),F}function S({subId:L,filter:F}){return F.on("update",V=>u(L,V)),{type:m,destroy:async()=>await n.uninstallFilter(F.idHex)}}}async function c(h,f){if(a)throw new Error("SubscriptionManager - attempting to use after destroying");let m=h.params[0],y=t[m];if(!y){f.result=!1;return}delete t[m],await y.destroy(),f.result=!0}function u(h,f){i.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:h,result:f}})}function l(){i.removeAllListeners();for(let h in t)t[h].destroy(),delete t[h];a=!0}}function pUr(r){return r==null?null:{hash:r.hash,parentHash:r.parentHash,sha3Uncles:r.sha3Uncles,miner:r.miner,stateRoot:r.stateRoot,transactionsRoot:r.transactionsRoot,receiptsRoot:r.receiptsRoot,logsBloom:r.logsBloom,difficulty:r.difficulty,number:r.number,gasLimit:r.gasLimit,gasUsed:r.gasUsed,nonce:r.nonce,mixHash:r.mixHash,timestamp:r.timestamp,extraData:r.extraData}}});var Iyt=x($F=>{"use strict";d();p();Object.defineProperty($F,"__esModule",{value:!0});$F.SubscriptionManager=void 0;var hUr=u0t(),fUr=Eyt(),Cyt=()=>{},Oie=class{constructor(e){let t=new hUr({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:a}=fUr({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=a}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,Cyt,Cyt),t}destroy(){this.subscriptionMiddleware.destroy()}};$F.SubscriptionManager=Oie});var YF=x(vT=>{"use strict";d();p();var Wie=vT&&vT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(vT,"__esModule",{value:!0});vT.CoinbaseWalletProvider=void 0;var mUr=Wie(FI()),yUr=Wie(Ir()),Cu=lF(),Lie=pF(),kyt=xF(),Ayt=aie(),Ar=Y0(),qie=Wie(Fmt()),gUr=zmt(),Ra=Kmt(),bUr=Iyt(),Syt="DefaultChainId",Pyt="DefaultJsonRpcUrl",Fie=class extends mUr.default{constructor(e){var t,n;super(),this._filterPolyfill=new gUr.FilterPolyfill(this),this._subscriptionManager=new bUr.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),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=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this.isCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let a=this.getChainId(),i=(0,Ar.prepend0x)(a.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(Ayt.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let o=s.split(" ");o[0]!==""&&(this._addresses=o.map(c=>(0,Ar.ensureAddressString)(c)),this.emit("accountsChanged",o))}this._subscriptionManager.events.on("notification",o=>{this.emit("message",{type:o.method,data:o.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",o=>{var c;if(!(o.origin!==location.origin||o.source!==window)&&o.data.type==="walletLinkMessage"){if(o.data.data.action==="defaultChainChanged"||o.data.data.action==="dappChainSwitched"){let u=o.data.data.chainId,l=(c=o.data.data.jsonRpcUrl)!==null&&c!==void 0?c:this.jsonRpcUrl;this.updateProviderInfo(l,Number(u))}o.data.data.action==="addressChanged"&&this._setAddresses([o.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,Ar.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 e;return(e=this._storage.getItem(Pyt))!==null&&e!==void 0?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(Pyt,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(Syt,t.toString(10)),((0,Ar.ensureIntNumber)(t)!==n||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,a,i,s){return!!(await(await this.initializeRelay()).watchAsset(e,t,n,a,i,s?.toString()).promise).result}async addEthereumChain(e,t,n,a,i,s){var o,c;if((0,Ar.ensureIntNumber)(e)===this.getChainId())return!1;let u=await this.initializeRelay(),l=u.inlineAddEthereumChain(e.toString());!this._isAuthorized()&&!l&&await u.requestEthereumAccounts().promise;let h=await u.addEthereumChain(e.toString(),t,i,n,a,s).promise;return((o=h.result)===null||o===void 0?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),((c=h.result)===null||c===void 0?void 0:c.isApproved)===!0}async switchEthereumChain(e){let n=await(await this.initializeRelay()).switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw Cu.ethErrors.provider.custom({code:n.errorCode});let a=n.result;a.isApproved&&a.rpcUrl.length>0&&this.updateProviderInfo(a.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(e=this.diagnostic)===null||e===void 0||e.log(Lie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?kyt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(Ra.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){if(typeof e=="string"){let a=e,i=Array.isArray(t)?t:t!==void 0?[t]:[],s={jsonrpc:"2.0",id:0,method:a,params:i};return this._sendRequestAsync(s).then(o=>o.result)}if(typeof t=="function"){let a=e,i=t;return this._sendAsync(a,i)}if(Array.isArray(e))return e.map(i=>this._sendRequest(i));let n=e;return this._sendRequest(n)}async sendAsync(e,t){if(typeof t!="function")throw new Error("callback is required");if(Array.isArray(e)){let a=t;this._sendMultipleRequestsAsync(e).then(i=>a(null,i)).catch(i=>a(i,null));return}let n=t;return this._sendRequestAsync(e).then(a=>n(null,a)).catch(a=>n(a,null))}async request(e){if(!e||typeof e!="object"||Array.isArray(e))throw Cu.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if(typeof t!="string"||t.length===0)throw Cu.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(n!==void 0&&!Array.isArray(n)&&(typeof n!="object"||n===null))throw Cu.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let a=n===void 0?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:a,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){let n=await(await this.initializeRelay()).scanQRCode((0,Ar.ensureRegExpString)(e)).promise;if(typeof n.result!="string")throw new Error("result was not a string");return n.result}async genericRequest(e,t){let a=await(await this.initializeRelay()).genericRequest(e,t).promise;if(typeof a.result!="string")throw new Error("result was not a string");return a.result}async selectProvider(e){let n=await(await this.initializeRelay()).selectProvider(e).promise;if(typeof n.result!="string")throw new Error("result was not a string");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(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),t.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 t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");let n=e.map(a=>(0,Ar.ensureAddressString)(a));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&this.supportsAddressSwitching===!1&&!t||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(Ayt.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let a=this._handleSynchronousMethods(e);if(a!==void 0)return t({jsonrpc:"2.0",id:e.id,result:a});let i=this._handleAsynchronousFilterMethods(e);if(i!==void 0){i.then(o=>t(Object.assign(Object.assign({},o),{id:e.id}))).catch(o=>n(o));return}let s=this._handleSubscriptionMethods(e);if(s!==void 0){s.then(o=>t({jsonrpc:"2.0",id:e.id,result:o.result})).catch(o=>n(o));return}}catch(a){return n(a)}this._handleAsynchronousMethods(e).then(a=>a&&t(Object.assign(Object.assign({},a),{id:e.id}))).catch(a=>n(a))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(t=>this._sendRequestAsync(t)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_accounts:return this._eth_accounts();case Ra.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case Ra.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case Ra.JSONRPCMethod.net_version:return this._net_version();case Ra.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case Ra.JSONRPCMethod.eth_sign:return this._eth_sign(n);case Ra.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case Ra.JSONRPCMethod.personal_sign:return this._personal_sign(n);case Ra.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case Ra.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case Ra.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case Ra.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case Ra.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case Ra.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case Ra.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case Ra.JSONRPCMethod.eth_signTypedData_v4:case Ra.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case Ra.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case Ra.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case Ra.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case Ra.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case Ra.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case Ra.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case Ra.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case Ra.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case Ra.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case Ra.JSONRPCMethod.eth_subscribe:case Ra.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,Ar.ensureAddressString)(e);return this._addresses.map(a=>(0,Ar.ensureAddressString)(a)).includes(t)}catch{}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw(t=this.diagnostic)===null||t===void 0||t.log(Lie.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,Ar.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,Ar.ensureAddressString)(e.to):null,a=e.value!=null?(0,Ar.ensureBN)(e.value):new yUr.default(0),i=e.data?(0,Ar.ensureBuffer)(e.data):b.Buffer.alloc(0),s=e.nonce!=null?(0,Ar.ensureIntNumber)(e.nonce):null,o=e.gasPrice!=null?(0,Ar.ensureBN)(e.gasPrice):null,c=e.maxFeePerGas!=null?(0,Ar.ensureBN)(e.maxFeePerGas):null,u=e.maxPriorityFeePerGas!=null?(0,Ar.ensureBN)(e.maxPriorityFeePerGas):null,l=e.gas!=null?(0,Ar.ensureBN)(e.gas):null,h=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:a,data:i,nonce:s,gasPriceInWei:o,maxFeePerGas:c,maxPriorityFeePerGas:u,gasLimit:l,chainId:h}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw Cu.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw Cu.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,a){this._ensureKnownAddress(t);try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumMessage(e,t,n,a).promise).result}}catch(i){throw typeof i.message=="string"&&i.message.match(/(denied|rejected)/i)?Cu.ethErrors.provider.userRejectedRequest("User denied message signature"):i}}async _ethereumAddressFromSignedMessage(e,t,n){return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).ethereumAddressFromSignedMessage(e,t,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,Ar.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(Syt);if(!e)return(0,Ar.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,Ar.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if((e=this.diagnostic)===null||e===void 0||e.log(Lie.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?kyt.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{t=await(await this.initializeRelay()).requestEthereumAccounts().promise}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Cu.ethErrors.provider.userRejectedRequest("User denied account authorization"):n}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,Ar.ensureBuffer)(e[0]),n=(0,Ar.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Cu.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_sendRawTransaction(e){let t=(0,Ar.ensureBuffer)(e[0]);return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{return{jsonrpc:"2.0",id:0,result:(await(await this.initializeRelay()).signAndSubmitEthereumTransaction(t).promise).result}}catch(n){throw typeof n.message=="string"&&n.message.match(/(denied|rejected)/i)?Cu.ethErrors.provider.userRejectedRequest("User denied transaction signature"):n}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,Ar.ensureParsedJSONObject)(e[0]),n=(0,Ar.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let a=qie.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(a,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=qie.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,Ar.ensureAddressString)(e[0]),n=(0,Ar.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let a=qie.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(a,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if(typeof n!="string")throw new Error("parameter must be a string");if(typeof t!="object"||t===null)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,n)}}async _wallet_addEthereumChain(e){var t,n,a,i;let s=e[0];if(((t=s.rpcUrls)===null||t===void 0?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||s.chainName.trim()==="")throw Cu.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw Cu.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let o=parseInt(s.chainId,16);return await this.addEthereumChain(o,(n=s.rpcUrls)!==null&&n!==void 0?n:[],(a=s.blockExplorerUrls)!==null&&a!==void 0?a:[],s.chainName,(i=s.iconUrls)!==null&&i!==void 0?i:[],s.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(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw Cu.ethErrors.rpc.invalidParams({message:"Type is required"});if(t?.type!=="ERC20")throw Cu.ethErrors.rpc.invalidParams({message:`Asset of type '${t.type}' is not supported`});if(!t?.options)throw Cu.ethErrors.rpc.invalidParams({message:"Options are required"});if(!t?.options.address)throw Cu.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:a,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,a,i,o,s,n)}}_eth_uninstallFilter(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}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(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,Ar.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((t,n)=>this._setAddresses(t,n)),e.setChainCallback((t,n)=>{this.updateProviderInfo(n,parseInt(t,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}};vT.CoinbaseWalletProvider=Fie});var Ol={};cr(Ol,{Component:()=>Dl,Fragment:()=>Np,cloneElement:()=>zie,createContext:()=>ik,createElement:()=>fd,createRef:()=>ak,h:()=>fd,hydrate:()=>XF,isValidElement:()=>Oyt,options:()=>at,render:()=>A2,toChildArray:()=>Jh});function J0(r,e){for(var t in e)r[t]=e[t];return r}function Wyt(r){var e=r.parentNode;e&&e.removeChild(r)}function fd(r,e,t){var n,a,i,s={};for(i in e)i=="key"?n=e[i]:i=="ref"?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?nk.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(i in r.defaultProps)s[i]===void 0&&(s[i]=r.defaultProps[i]);return tk(r,s,n,a,null)}function tk(r,e,t,n,a){var i={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:a??++Dyt};return a==null&&at.vnode!=null&&at.vnode(i),i}function ak(){return{current:null}}function Np(r){return r.children}function Dl(r,e){this.props=r,this.context=e}function rk(r,e){if(e==null)return r.__?rk(r.__,r.__.__k.indexOf(r)+1):null;for(var t;ee&&k2.sort(Uie));QF.__r=0}function Hyt(r,e,t,n,a,i,s,o,c,u){var l,h,f,m,y,E,I,S=n&&n.__k||Fyt,L=S.length;for(t.__k=[],l=0;l0?tk(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)!=null){if(m.__=t,m.__b=t.__b+1,(f=S[l])===null||f&&m.key==f.key&&m.type===f.type)S[l]=void 0;else for(h=0;h=0;e--)if((t=r.__k[e])&&(n=Kyt(t)))return n}return null}function wUr(r,e,t,n,a){var i;for(i in t)i==="children"||i==="key"||i in e||ZF(r,i,null,t[i],n);for(i in e)a&&typeof e[i]!="function"||i==="children"||i==="key"||i==="value"||i==="checked"||t[i]===e[i]||ZF(r,i,e[i],t[i],n)}function Myt(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||vUr.test(e)?t:t+"px"}function ZF(r,e,t,n,a){var i;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||Myt(r.style,e,"");if(t)for(e in t)n&&t[e]===n[e]||Myt(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+i]=t,t?n||r.addEventListener(e,i?Byt:Nyt,i):r.removeEventListener(e,i?Byt:Nyt,i);else if(e!=="dangerouslySetInnerHTML"){if(a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e.indexOf("-")==-1?r.removeAttribute(e):r.setAttribute(e,t))}}function Nyt(r){return this.l[r.type+!1](at.event?at.event(r):r)}function Byt(r){return this.l[r.type+!0](at.event?at.event(r):r)}function jie(r,e,t,n,a,i,s,o,c){var u,l,h,f,m,y,E,I,S,L,F,W,V,K,H,G=e.type;if(e.constructor!==void 0)return null;t.__h!=null&&(c=t.__h,o=e.__e=t.__e,e.__h=null,i=[o]),(u=at.__b)&&u(e);try{e:if(typeof G=="function"){if(I=e.props,S=(u=G.contextType)&&n[u.__c],L=u?S?S.props.value:u.__:n,t.__c?E=(l=e.__c=t.__c).__=l.__E:("prototype"in G&&G.prototype.render?e.__c=l=new G(I,L):(e.__c=l=new Dl(I,L),l.constructor=G,l.render=xUr),S&&S.sub(l),l.props=I,l.state||(l.state={}),l.context=L,l.__n=n,h=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),G.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J0({},l.__s)),J0(l.__s,G.getDerivedStateFromProps(I,l.__s))),f=l.props,m=l.state,l.__v=e,h)G.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(G.getDerivedStateFromProps==null&&I!==f&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(I,L),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(I,l.__s,L)===!1||e.__v===t.__v){for(e.__v!==t.__v&&(l.props=I,l.state=l.__s,l.__d=!1),l.__e=!1,e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(J){J&&(J.__=e)}),F=0;F2&&(s.children=arguments.length>3?nk.call(arguments,2):t),tk(r.type,s,n||r.key,a||r.ref,null)}function ik(r,e){var t={__c:e="__cC"+qyt++,__:r,Consumer:function(n,a){return n.children(a)},Provider:function(n){var a,i;return this.getChildContext||(a=[],(i={})[e]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&a.some(function(o){o.__e=!0,Hie(o)})},this.sub=function(s){a.push(s);var o=s.componentWillUnmount;s.componentWillUnmount=function(){a.splice(a.indexOf(s),1),o&&o.call(s)}}),n.children}};return t.Provider.__=t.Consumer.contextType=t}var nk,at,Dyt,Oyt,k2,Ryt,Lyt,Uie,qyt,JF,Fyt,vUr,kc=ce(()=>{d();p();JF={},Fyt=[],vUr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;nk=Fyt.slice,at={__e:function(r,e,t,n){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(r)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(r,n||{}),s=a.__d),s)return a.__E=a}catch(o){r=o}throw r}},Dyt=0,Oyt=function(r){return r!=null&&r.constructor===void 0},Dl.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=J0({},this.state),typeof r=="function"&&(r=r(J0({},t),this.props)),r&&J0(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),Hie(this))},Dl.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),Hie(this))},Dl.prototype.render=Np,k2=[],Lyt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Uie=function(r,e){return r.__v.__b-e.__v.__b},QF.__r=0,qyt=0});var wT=x(Kie=>{"use strict";d();p();Object.defineProperty(Kie,"__esModule",{value:!0});function TUr(r){return typeof r=="function"}Kie.isFunction=TUr});var sk=x(Vie=>{"use strict";d();p();Object.defineProperty(Vie,"__esModule",{value:!0});var Gie=!1;Vie.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(r){if(r){var e=new Error;console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: +`+e.stack)}else Gie&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Gie=r},get useDeprecatedSynchronousErrorHandling(){return Gie}}});var eW=x($ie=>{"use strict";d();p();Object.defineProperty($ie,"__esModule",{value:!0});function EUr(r){setTimeout(function(){throw r},0)}$ie.hostReportError=EUr});var Jie=x(Yie=>{"use strict";d();p();Object.defineProperty(Yie,"__esModule",{value:!0});var CUr=sk(),IUr=eW();Yie.empty={closed:!0,next:function(r){},error:function(r){if(CUr.config.useDeprecatedSynchronousErrorHandling)throw r;IUr.hostReportError(r)},complete:function(){}}});var Qu=x(Qie=>{"use strict";d();p();Object.defineProperty(Qie,"__esModule",{value:!0});Qie.isArray=function(){return Array.isArray||function(r){return r&&typeof r.length=="number"}}()});var tW=x(Zie=>{"use strict";d();p();Object.defineProperty(Zie,"__esModule",{value:!0});function kUr(r){return r!==null&&typeof r=="object"}Zie.isObject=kUr});var ese=x(Xie=>{"use strict";d();p();Object.defineProperty(Xie,"__esModule",{value:!0});var AUr=function(){function r(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(t,n){return n+1+") "+t.toString()}).join(` - `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();Eie.UnsubscriptionError=xWr});var wo=_(Iie=>{"use strict";d();p();Object.defineProperty(Iie,"__esModule",{value:!0});var _Wr=$u(),TWr=NF(),EWr=tT(),BF=Cie(),CWr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";d();p();Object.defineProperty(WI,"__esModule",{value:!0});WI.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();WI.$$rxSubscriber=WI.rxSubscriber});var tr=_(nT=>{"use strict";d();p();var iyt=nT&&nT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nT,"__esModule",{value:!0});var ayt=tT(),kie=xie(),IWr=wo(),kWr=DF(),rT=FI(),OF=MF(),syt=function(r){iyt(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=kie.empty;break;case 1:if(!t){i.destination=kie.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new Aie(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new Aie(i,t,n,a);break}return i}return e.prototype[kWr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(IWr.Subscription);nT.Subscriber=syt;var Aie=function(r){iyt(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return ayt.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==kie.empty&&(c=Object.create(n),ayt.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!rT.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=rT.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):OF.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;OF.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!rT.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),rT.config.useDeprecatedSynchronousErrorHandling)throw a;OF.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!rT.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return rT.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(OF.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(syt);nT.SafeSubscriber=Aie});var LF=_(Sie=>{"use strict";d();p();Object.defineProperty(Sie,"__esModule",{value:!0});var AWr=tr();function SWr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof AWr.Subscriber?r=n:r=null}return!0}Sie.canReportError=SWr});var cyt=_(Rie=>{"use strict";d();p();Object.defineProperty(Rie,"__esModule",{value:!0});var Pie=tr(),oyt=DF(),PWr=xie();function RWr(r,e,t){if(r){if(r instanceof Pie.Subscriber)return r;if(r[oyt.rxSubscriber])return r[oyt.rxSubscriber]()}return!r&&!e&&!t?new Pie.Subscriber(PWr.empty):new Pie.Subscriber(r,e,t)}Rie.toSubscriber=RWr});var w2=_(Mie=>{"use strict";d();p();Object.defineProperty(Mie,"__esModule",{value:!0});Mie.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var U1=_(Nie=>{"use strict";d();p();Object.defineProperty(Nie,"__esModule",{value:!0});function MWr(r){return r}Nie.identity=MWr});var FF=_(qF=>{"use strict";d();p();Object.defineProperty(qF,"__esModule",{value:!0});var NWr=U1();function BWr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Bie,"__esModule",{value:!0});var DWr=LF(),OWr=cyt(),LWr=w2(),qWr=FF(),WF=FI(),FWr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=OWr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||WF.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),WF.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){WF.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),DWr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=lyt(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[LWr.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(Die,"__esModule",{value:!0});var WWr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();Die.ObjectUnsubscribedError=WWr});var Oie=_(HI=>{"use strict";d();p();var UWr=HI&&HI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(HI,"__esModule",{value:!0});var HWr=wo(),jWr=function(r){UWr(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(HWr.Subscription);HI.SubjectSubscription=jWr});var Tu=_(x2=>{"use strict";d();p();var Fie=x2&&x2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(x2,"__esModule",{value:!0});var dyt=nn(),zWr=tr(),Lie=wo(),jI=UI(),KWr=Oie(),VWr=DF(),pyt=function(r){Fie(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(zWr.Subscriber);x2.SubjectSubscriber=pyt;var hyt=function(r){Fie(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[VWr.rxSubscriber]=function(){return new pyt(this)},e.prototype.lift=function(t){var n=new qie(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new jI.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";d();p();var GWr=zI&&zI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zI,"__esModule",{value:!0});var $Wr=tr();function YWr(){return function(e){return e.lift(new JWr(e))}}zI.refCount=YWr;var JWr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new QWr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),QWr=function(r){GWr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}($Wr.Subscriber)});var Uie=_(aT=>{"use strict";d();p();var Wie=aT&&aT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aT,"__esModule",{value:!0});var ZWr=Tu(),XWr=nn(),eUr=tr(),fyt=wo(),tUr=UF(),myt=function(r){Wie(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new fyt.Subscription,t.add(this.source.subscribe(new rUr(this.getSubject(),this))),t.closed&&(this._connection=null,t=fyt.Subscription.EMPTY)),t},e.prototype.refCount=function(){return tUr.refCount()(this)},e}(XWr.Observable);aT.ConnectableObservable=myt;aT.connectableObservableDescriptor=function(){var r=myt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var rUr=function(r){Wie(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(ZWr.SubjectSubscriber),jQn=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new nUr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),nUr=function(r){Wie(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(eUr.Subscriber)});var jie=_(iT=>{"use strict";d();p();var HF=iT&&iT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(iT,"__esModule",{value:!0});var yyt=tr(),gyt=wo(),aUr=nn(),iUr=Tu();function sUr(r,e,t,n){return function(a){return a.lift(new oUr(r,e,t,n))}}iT.groupBy=sUr;var oUr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new cUr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),cUr=function(r){HF(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new iUr.Subject,a.set(n,i);var o=new Hie(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new Hie(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new uUr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(yyt.Subscriber),uUr=function(r){HF(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(yyt.Subscriber),Hie=function(r){HF(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new gyt.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new lUr(i)),n.add(s.subscribe(t)),n},e}(aUr.Observable);iT.GroupedObservable=Hie;var lUr=function(r){HF(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(gyt.Subscription)});var zie=_(KI=>{"use strict";d();p();var dUr=KI&&KI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(KI,"__esModule",{value:!0});var pUr=Tu(),hUr=UI(),fUr=function(r){dUr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new hUr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(pUr.Subject);KI.BehaviorSubject=fUr});var byt=_(VI=>{"use strict";d();p();var mUr=VI&&VI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(VI,"__esModule",{value:!0});var yUr=wo(),gUr=function(r){mUr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(yUr.Subscription);VI.Action=gUr});var sT=_(GI=>{"use strict";d();p();var bUr=GI&&GI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(GI,"__esModule",{value:!0});var vUr=byt(),wUr=function(r){bUr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(vUr.Action);GI.AsyncAction=wUr});var vyt=_($I=>{"use strict";d();p();var xUr=$I&&$I.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($I,"__esModule",{value:!0});var _Ur=sT(),TUr=function(r){xUr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(_Ur.AsyncAction);$I.QueueAction=TUr});var Vie=_(Kie=>{"use strict";d();p();Object.defineProperty(Kie,"__esModule",{value:!0});var EUr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();Kie.Scheduler=EUr});var oT=_(YI=>{"use strict";d();p();var CUr=YI&&YI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(YI,"__esModule",{value:!0});var wyt=Vie(),IUr=function(r){CUr(e,r);function e(t,n){n===void 0&&(n=wyt.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(wyt.Scheduler);YI.AsyncScheduler=IUr});var xyt=_(JI=>{"use strict";d();p();var kUr=JI&&JI.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(JI,"__esModule",{value:!0});var AUr=oT(),SUr=function(r){kUr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(AUr.AsyncScheduler);JI.QueueScheduler=SUr});var Gie=_(QI=>{"use strict";d();p();Object.defineProperty(QI,"__esModule",{value:!0});var PUr=vyt(),RUr=xyt();QI.queueScheduler=new RUr.QueueScheduler(PUr.QueueAction);QI.queue=QI.queueScheduler});var Yh=_(ZI=>{"use strict";d();p();Object.defineProperty(ZI,"__esModule",{value:!0});var _yt=nn();ZI.EMPTY=new _yt.Observable(function(r){return r.complete()});function MUr(r){return r?NUr(r):ZI.EMPTY}ZI.empty=MUr;function NUr(r){return new _yt.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Jh=_($ie=>{"use strict";d();p();Object.defineProperty($ie,"__esModule",{value:!0});function BUr(r){return r&&typeof r.schedule=="function"}$ie.isScheduler=BUr});var Jie=_(Yie=>{"use strict";d();p();Object.defineProperty(Yie,"__esModule",{value:!0});Yie.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";d();p();Object.defineProperty(Qie,"__esModule",{value:!0});var DUr=nn(),OUr=wo();function LUr(r,e){return new DUr.Observable(function(t){var n=new OUr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}Qie.scheduleArray=LUr});var cT=_(Zie=>{"use strict";d();p();Object.defineProperty(Zie,"__esModule",{value:!0});var qUr=nn(),FUr=Jie(),WUr=jF();function UUr(r,e){return e?WUr.scheduleArray(r,e):new qUr.Observable(FUr.subscribeToArray(r))}Zie.fromArray=UUr});var XI=_(Xie=>{"use strict";d();p();Object.defineProperty(Xie,"__esModule",{value:!0});var HUr=Jh(),jUr=cT(),zUr=jF();function KUr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(ese,"__esModule",{value:!0});var Tyt=nn();function VUr(r,e){return e?new Tyt.Observable(function(t){return e.schedule(GUr,0,{error:r,subscriber:t})}):new Tyt.Observable(function(t){return t.error(r)})}ese.throwError=VUr;function GUr(r){var e=r.error,t=r.subscriber;t.error(e)}});var tk=_(ek=>{"use strict";d();p();Object.defineProperty(ek,"__esModule",{value:!0});var $Ur=Yh(),YUr=XI(),JUr=zF(),QUr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(QUr=ek.NotificationKind||(ek.NotificationKind={}));var ZUr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return YUr.of(this.value);case"E":return JUr.throwError(this.error);case"C":return $Ur.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();ek.Notification=ZUr});var rse=_(H1=>{"use strict";d();p();var XUr=H1&&H1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(H1,"__esModule",{value:!0});var eHr=tr(),tse=tk();function tHr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new Eyt(r,e))}}H1.observeOn=tHr;var Eyt=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new Cyt(e,this.scheduler,this.delay))},r}();H1.ObserveOnOperator=Eyt;var Cyt=function(r){XUr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new Iyt(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(tse.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(tse.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(tse.Notification.createComplete()),this.unsubscribe()},e}(eHr.Subscriber);H1.ObserveOnSubscriber=Cyt;var Iyt=function(){function r(e,t){this.notification=e,this.destination=t}return r}();H1.ObserveOnMessage=Iyt});var KF=_(rk=>{"use strict";d();p();var rHr=rk&&rk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rk,"__esModule",{value:!0});var nHr=Tu(),aHr=Gie(),iHr=wo(),sHr=rse(),oHr=UI(),cHr=Oie(),uHr=function(r){rHr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new lHr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new oHr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=iHr.Subscription.EMPTY:(this.observers.push(t),o=new cHr.SubjectSubscription(this,t)),i&&t.add(t=new sHr.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(nHr.Subject);rk.ReplaySubject=uHr;var lHr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var ak=_(nk=>{"use strict";d();p();var dHr=nk&&nk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nk,"__esModule",{value:!0});var pHr=Tu(),kyt=wo(),hHr=function(r){dHr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),kyt.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),kyt.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(pHr.Subject);nk.AsyncSubject=hHr});var Syt=_(GF=>{"use strict";d();p();Object.defineProperty(GF,"__esModule",{value:!0});var fHr=1,mHr=function(){return Promise.resolve()}(),VF={};function Ayt(r){return r in VF?(delete VF[r],!0):!1}GF.Immediate={setImmediate:function(r){var e=fHr++;return VF[e]=!0,mHr.then(function(){return Ayt(e)&&r()}),e},clearImmediate:function(r){Ayt(r)}};GF.TestTools={pending:function(){return Object.keys(VF).length}}});var Ryt=_(ik=>{"use strict";d();p();var yHr=ik&&ik.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ik,"__esModule",{value:!0});var Pyt=Syt(),gHr=sT(),bHr=function(r){yHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=Pyt.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(Pyt.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(gHr.AsyncAction);ik.AsapAction=bHr});var Myt=_(sk=>{"use strict";d();p();var vHr=sk&&sk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sk,"__esModule",{value:!0});var wHr=oT(),xHr=function(r){vHr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(ok,"__esModule",{value:!0});var _Hr=Ryt(),THr=Myt();ok.asapScheduler=new THr.AsapScheduler(_Hr.AsapAction);ok.asap=ok.asapScheduler});var Yu=_(ck=>{"use strict";d();p();Object.defineProperty(ck,"__esModule",{value:!0});var EHr=sT(),CHr=oT();ck.asyncScheduler=new CHr.AsyncScheduler(EHr.AsyncAction);ck.async=ck.asyncScheduler});var Nyt=_(uk=>{"use strict";d();p();var IHr=uk&&uk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uk,"__esModule",{value:!0});var kHr=sT(),AHr=function(r){IHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(kHr.AsyncAction);uk.AnimationFrameAction=AHr});var Byt=_(lk=>{"use strict";d();p();var SHr=lk&&lk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lk,"__esModule",{value:!0});var PHr=oT(),RHr=function(r){SHr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(dk,"__esModule",{value:!0});var MHr=Nyt(),NHr=Byt();dk.animationFrameScheduler=new NHr.AnimationFrameScheduler(MHr.AnimationFrameAction);dk.animationFrame=dk.animationFrameScheduler});var qyt=_(uT=>{"use strict";d();p();var Oyt=uT&&uT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uT,"__esModule",{value:!0});var BHr=sT(),DHr=oT(),OHr=function(r){Oyt(e,r);function e(t,n){t===void 0&&(t=Lyt),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(DHr.AsyncScheduler);uT.VirtualTimeScheduler=OHr;var Lyt=function(r){Oyt(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(BHr.AsyncAction);uT.VirtualAction=Lyt});var $F=_(ase=>{"use strict";d();p();Object.defineProperty(ase,"__esModule",{value:!0});function LHr(){}ase.noop=LHr});var Fyt=_(ise=>{"use strict";d();p();Object.defineProperty(ise,"__esModule",{value:!0});var qHr=nn();function FHr(r){return!!r&&(r instanceof qHr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}ise.isObservable=FHr});var lT=_(sse=>{"use strict";d();p();Object.defineProperty(sse,"__esModule",{value:!0});var WHr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();sse.ArgumentOutOfRangeError=WHr});var dT=_(ose=>{"use strict";d();p();Object.defineProperty(ose,"__esModule",{value:!0});var UHr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();ose.EmptyError=UHr});var use=_(cse=>{"use strict";d();p();Object.defineProperty(cse,"__esModule",{value:!0});var HHr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();cse.TimeoutError=HHr});var fd=_(pT=>{"use strict";d();p();var jHr=pT&&pT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pT,"__esModule",{value:!0});var zHr=tr();function KHr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new Wyt(r,e))}}pT.map=KHr;var Wyt=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new VHr(e,this.project,this.thisArg))},r}();pT.MapOperator=Wyt;var VHr=function(r){jHr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(zHr.Subscriber)});var jyt=_(lse=>{"use strict";d();p();Object.defineProperty(lse,"__esModule",{value:!0});var GHr=nn(),Uyt=ak(),$Hr=fd(),YHr=LF(),JHr=$u(),QHr=Jh();function Hyt(r,e,t){if(e)if(QHr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();Object.defineProperty(dse,"__esModule",{value:!0});var ejr=nn(),Kyt=ak(),tjr=fd(),rjr=LF(),njr=Jh(),ajr=$u();function Vyt(r,e,t){if(e)if(njr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();var ojr=pk&&pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pk,"__esModule",{value:!0});var cjr=tr(),ujr=function(r){ojr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(cjr.Subscriber);pk.OuterSubscriber=ujr});var $yt=_(hk=>{"use strict";d();p();var ljr=hk&&hk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hk,"__esModule",{value:!0});var djr=tr(),pjr=function(r){ljr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(djr.Subscriber);hk.InnerSubscriber=pjr});var Yyt=_(pse=>{"use strict";d();p();Object.defineProperty(pse,"__esModule",{value:!0});var hjr=MF();pse.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,hjr.hostReportError),e}}});var fT=_(hT=>{"use strict";d();p();Object.defineProperty(hT,"__esModule",{value:!0});function Jyt(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}hT.getSymbolIterator=Jyt;hT.iterator=Jyt();hT.$$iterator=hT.iterator});var Qyt=_(hse=>{"use strict";d();p();Object.defineProperty(hse,"__esModule",{value:!0});var fjr=fT();hse.subscribeToIterable=function(r){return function(e){var t=r[fjr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var Zyt=_(fse=>{"use strict";d();p();Object.defineProperty(fse,"__esModule",{value:!0});var mjr=w2();fse.subscribeToObservable=function(r){return function(e){var t=r[mjr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var yse=_(mse=>{"use strict";d();p();Object.defineProperty(mse,"__esModule",{value:!0});mse.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var bse=_(gse=>{"use strict";d();p();Object.defineProperty(gse,"__esModule",{value:!0});function yjr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}gse.isPromise=yjr});var fk=_(vse=>{"use strict";d();p();Object.defineProperty(vse,"__esModule",{value:!0});var gjr=Jie(),bjr=Yyt(),vjr=Qyt(),wjr=Zyt(),xjr=yse(),_jr=bse(),Tjr=NF(),Ejr=fT(),Cjr=w2();vse.subscribeTo=function(r){if(!!r&&typeof r[Cjr.observable]=="function")return wjr.subscribeToObservable(r);if(xjr.isArrayLike(r))return gjr.subscribeToArray(r);if(_jr.isPromise(r))return bjr.subscribeToPromise(r);if(!!r&&typeof r[Ejr.iterator]=="function")return vjr.subscribeToIterable(r);var e=Tjr.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var z1=_(wse=>{"use strict";d();p();Object.defineProperty(wse,"__esModule",{value:!0});var Ijr=$yt(),kjr=fk(),Ajr=nn();function Sjr(r,e,t,n,a){if(a===void 0&&(a=new Ijr.InnerSubscriber(r,t,n)),!a.closed)return e instanceof Ajr.Observable?e.subscribe(a):kjr.subscribeTo(e)(a)}wse.subscribeToResult=Sjr});var YF=_(_2=>{"use strict";d();p();var Pjr=_2&&_2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_2,"__esModule",{value:!0});var Rjr=Jh(),Mjr=$u(),Njr=j1(),Bjr=z1(),Djr=cT(),Xyt={};function Ojr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(xse,"__esModule",{value:!0});var Ljr=nn(),qjr=wo(),Fjr=w2();function Wjr(r,e){return new Ljr.Observable(function(t){var n=new qjr.Subscription;return n.add(e.schedule(function(){var a=r[Fjr.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}xse.scheduleObservable=Wjr});var n1t=_(_se=>{"use strict";d();p();Object.defineProperty(_se,"__esModule",{value:!0});var Ujr=nn(),Hjr=wo();function jjr(r,e){return new Ujr.Observable(function(t){var n=new Hjr.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}_se.schedulePromise=jjr});var a1t=_(Tse=>{"use strict";d();p();Object.defineProperty(Tse,"__esModule",{value:!0});var zjr=nn(),Kjr=wo(),Vjr=fT();function Gjr(r,e){if(!r)throw new Error("Iterable cannot be null");return new zjr.Observable(function(t){var n=new Kjr.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[Vjr.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}Tse.scheduleIterable=Gjr});var i1t=_(Ese=>{"use strict";d();p();Object.defineProperty(Ese,"__esModule",{value:!0});var $jr=w2();function Yjr(r){return r&&typeof r[$jr.observable]=="function"}Ese.isInteropObservable=Yjr});var s1t=_(Cse=>{"use strict";d();p();Object.defineProperty(Cse,"__esModule",{value:!0});var Jjr=fT();function Qjr(r){return r&&typeof r[Jjr.iterator]=="function"}Cse.isIterable=Qjr});var kse=_(Ise=>{"use strict";d();p();Object.defineProperty(Ise,"__esModule",{value:!0});var Zjr=r1t(),Xjr=n1t(),ezr=jF(),tzr=a1t(),rzr=i1t(),nzr=bse(),azr=yse(),izr=s1t();function szr(r,e){if(r!=null){if(rzr.isInteropObservable(r))return Zjr.scheduleObservable(r,e);if(nzr.isPromise(r))return Xjr.schedulePromise(r,e);if(azr.isArrayLike(r))return ezr.scheduleArray(r,e);if(izr.isIterable(r)||typeof r=="string")return tzr.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}Ise.scheduled=szr});var Qh=_(Ase=>{"use strict";d();p();Object.defineProperty(Ase,"__esModule",{value:!0});var o1t=nn(),ozr=fk(),czr=kse();function uzr(r,e){return e?czr.scheduled(r,e):r instanceof o1t.Observable?r:new o1t.Observable(ozr.subscribeTo(r))}Ase.from=uzr});var Qi=_(V0=>{"use strict";d();p();var JF=V0&&V0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(V0,"__esModule",{value:!0});var QF=tr(),lzr=nn(),dzr=fk(),pzr=function(r){JF(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(QF.Subscriber);V0.SimpleInnerSubscriber=pzr;var hzr=function(r){JF(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(QF.Subscriber);V0.ComplexInnerSubscriber=hzr;var fzr=function(r){JF(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(QF.Subscriber);V0.SimpleOuterSubscriber=fzr;var mzr=function(r){JF(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(QF.Subscriber);V0.ComplexOuterSubscriber=mzr;function yzr(r,e){if(!e.closed){if(r instanceof lzr.Observable)return r.subscribe(e);var t;try{t=dzr.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}V0.innerSubscribe=yzr});var mk=_(K1=>{"use strict";d();p();var gzr=K1&&K1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(K1,"__esModule",{value:!0});var bzr=fd(),vzr=Qh(),Sse=Qi();function Pse(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(Pse(function(a,i){return vzr.from(r(a,i)).pipe(bzr.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new c1t(r,t))})}K1.mergeMap=Pse;var c1t=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new u1t(e,this.project,this.concurrent))},r}();K1.MergeMapOperator=c1t;var u1t=function(r){gzr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(Sse.SimpleOuterSubscriber);K1.MergeMapSubscriber=u1t;K1.flatMap=Pse});var ZF=_(Rse=>{"use strict";d();p();Object.defineProperty(Rse,"__esModule",{value:!0});var wzr=mk(),xzr=U1();function _zr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),wzr.mergeMap(xzr.identity,r)}Rse.mergeAll=_zr});var Nse=_(Mse=>{"use strict";d();p();Object.defineProperty(Mse,"__esModule",{value:!0});var Tzr=ZF();function Ezr(){return Tzr.mergeAll(1)}Mse.concatAll=Ezr});var yk=_(Bse=>{"use strict";d();p();Object.defineProperty(Bse,"__esModule",{value:!0});var Czr=XI(),Izr=Nse();function kzr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Dse,"__esModule",{value:!0});var Azr=nn(),Szr=Qh(),Pzr=Yh();function Rzr(r){return new Azr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?Szr.from(t):Pzr.empty();return n.subscribe(e)})}Dse.defer=Rzr});var d1t=_(Ose=>{"use strict";d();p();Object.defineProperty(Ose,"__esModule",{value:!0});var Mzr=nn(),l1t=$u(),Nzr=fd(),Bzr=NF(),Dzr=Qh();function Ozr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Lse,"__esModule",{value:!0});var Lzr=nn(),qzr=$u(),Fzr=tT(),Wzr=fd(),gta=function(){return Object.prototype.toString}();function p1t(r,e,t,n){return Fzr.isFunction(t)&&(n=t,t=void 0),n?p1t(r,e,t).pipe(Wzr.map(function(a){return qzr.isArray(a)?n.apply(void 0,a):n(a)})):new Lzr.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}h1t(r,e,i,a,t)})}Lse.fromEvent=p1t;function h1t(r,e,t,n,a){var i;if(jzr(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(Hzr(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if(Uzr(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";d();p();Object.defineProperty(qse,"__esModule",{value:!0});var zzr=nn(),Kzr=$u(),Vzr=tT(),Gzr=fd();function m1t(r,e,t){return t?m1t(r,e).pipe(Gzr.map(function(n){return Kzr.isArray(n)?t.apply(void 0,n):t(n)})):new zzr.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";d();p();Object.defineProperty(Fse,"__esModule",{value:!0});var $zr=nn(),g1t=U1(),Yzr=Jh();function Jzr(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||g1t.identity,a=o.scheduler}else n===void 0||Yzr.isScheduler(n)?(s=r,i=g1t.identity,a=n):(s=r,i=n);return new $zr.Observable(function(c){var u=s;if(a)return a.schedule(Qzr,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(f){c.error(f);return}if(!l){c.complete();break}}var h=void 0;try{h=i(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=t(u)}catch(f){c.error(f);return}}while(!0)})}Fse.generate=Jzr;function Qzr(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var w1t=_(Wse=>{"use strict";d();p();Object.defineProperty(Wse,"__esModule",{value:!0});var Zzr=XF(),v1t=Yh();function Xzr(r,e,t){return e===void 0&&(e=v1t.EMPTY),t===void 0&&(t=v1t.EMPTY),Zzr.defer(function(){return r()?e:t})}Wse.iif=Xzr});var gk=_(Use=>{"use strict";d();p();Object.defineProperty(Use,"__esModule",{value:!0});var eKr=$u();function tKr(r){return!eKr.isArray(r)&&r-parseFloat(r)+1>=0}Use.isNumeric=tKr});var _1t=_(Hse=>{"use strict";d();p();Object.defineProperty(Hse,"__esModule",{value:!0});var rKr=nn(),x1t=Yu(),nKr=gk();function aKr(r,e){return r===void 0&&(r=0),e===void 0&&(e=x1t.async),(!nKr.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=x1t.async),new rKr.Observable(function(t){return t.add(e.schedule(iKr,r,{subscriber:t,counter:0,period:r})),t})}Hse.interval=aKr;function iKr(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var zse=_(jse=>{"use strict";d();p();Object.defineProperty(jse,"__esModule",{value:!0});var sKr=nn(),oKr=Jh(),cKr=ZF(),uKr=cT();function lKr(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof sKr.Observable?r[0]:cKr.mergeAll(t)(uKr.fromArray(r,n))}jse.merge=lKr});var Kse=_(bk=>{"use strict";d();p();Object.defineProperty(bk,"__esModule",{value:!0});var dKr=nn(),pKr=$F();bk.NEVER=new dKr.Observable(pKr.noop);function hKr(){return bk.NEVER}bk.never=hKr});var T1t=_(Gse=>{"use strict";d();p();Object.defineProperty(Gse,"__esModule",{value:!0});var fKr=nn(),mKr=Qh(),yKr=$u(),gKr=Yh();function Vse(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(tW,"__esModule",{value:!0});var E1t=nn(),bKr=wo();function vKr(r,e){return e?new E1t.Observable(function(t){var n=Object.keys(r),a=new bKr.Subscription;return a.add(e.schedule(C1t,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new E1t.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";d();p();Object.defineProperty($se,"__esModule",{value:!0});function wKr(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}$se.not=wKr});var T2=_(vk=>{"use strict";d();p();var xKr=vk&&vk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vk,"__esModule",{value:!0});var _Kr=tr();function TKr(r,e){return function(n){return n.lift(new EKr(r,e))}}vk.filter=TKr;var EKr=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new CKr(e,this.predicate,this.thisArg))},r}(),CKr=function(r){xKr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(_Kr.Subscriber)});var P1t=_(Jse=>{"use strict";d();p();Object.defineProperty(Jse,"__esModule",{value:!0});var IKr=Yse(),k1t=fk(),A1t=T2(),S1t=nn();function kKr(r,e,t){return[A1t.filter(e,t)(new S1t.Observable(k1t.subscribeTo(r))),A1t.filter(IKr.not(e,t))(new S1t.Observable(k1t.subscribeTo(r)))]}Jse.partition=kKr});var Qse=_(E2=>{"use strict";d();p();var AKr=E2&&E2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(E2,"__esModule",{value:!0});var SKr=$u(),PKr=cT(),RKr=j1(),MKr=z1();function NKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(rW,"__esModule",{value:!0});var BKr=nn();function DKr(r,e,t){return r===void 0&&(r=0),new BKr.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(N1t,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}rW.range=DKr;function N1t(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}rW.dispatch=N1t});var Xse=_(Zse=>{"use strict";d();p();Object.defineProperty(Zse,"__esModule",{value:!0});var OKr=nn(),LKr=Yu(),D1t=gk(),O1t=Jh();function qKr(r,e,t){r===void 0&&(r=0);var n=-1;return D1t.isNumeric(e)?n=Number(e)<1&&1||Number(e):O1t.isScheduler(e)&&(t=e),O1t.isScheduler(t)||(t=LKr.async),new OKr.Observable(function(a){var i=D1t.isNumeric(r)?r:+r-t.now();return t.schedule(FKr,i,{index:0,period:n,subscriber:a})})}Zse.timer=qKr;function FKr(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var L1t=_(eoe=>{"use strict";d();p();Object.defineProperty(eoe,"__esModule",{value:!0});var WKr=nn(),UKr=Qh(),HKr=Yh();function jKr(r,e){return new WKr.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?UKr.from(a):HKr.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}eoe.using=jKr});var aW=_(C2=>{"use strict";d();p();var q1t=C2&&C2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(C2,"__esModule",{value:!0});var zKr=cT(),KKr=$u(),VKr=tr(),nW=fT(),toe=Qi();function GKr(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),JKr=function(r){q1t(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[nW.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return toe.innerSubscribe(this.observable,new toe.SimpleInnerSubscriber(this))},e}(toe.SimpleOuterSubscriber)});var wk=_(Xe=>{"use strict";d();p();Object.defineProperty(Xe,"__esModule",{value:!0});var QKr=nn();Xe.Observable=QKr.Observable;var ZKr=Uie();Xe.ConnectableObservable=ZKr.ConnectableObservable;var XKr=jie();Xe.GroupedObservable=XKr.GroupedObservable;var eVr=w2();Xe.observable=eVr.observable;var tVr=Tu();Xe.Subject=tVr.Subject;var rVr=zie();Xe.BehaviorSubject=rVr.BehaviorSubject;var nVr=KF();Xe.ReplaySubject=nVr.ReplaySubject;var aVr=ak();Xe.AsyncSubject=aVr.AsyncSubject;var U1t=nse();Xe.asap=U1t.asap;Xe.asapScheduler=U1t.asapScheduler;var H1t=Yu();Xe.async=H1t.async;Xe.asyncScheduler=H1t.asyncScheduler;var j1t=Gie();Xe.queue=j1t.queue;Xe.queueScheduler=j1t.queueScheduler;var z1t=Dyt();Xe.animationFrame=z1t.animationFrame;Xe.animationFrameScheduler=z1t.animationFrameScheduler;var K1t=qyt();Xe.VirtualTimeScheduler=K1t.VirtualTimeScheduler;Xe.VirtualAction=K1t.VirtualAction;var iVr=Vie();Xe.Scheduler=iVr.Scheduler;var sVr=wo();Xe.Subscription=sVr.Subscription;var oVr=tr();Xe.Subscriber=oVr.Subscriber;var V1t=tk();Xe.Notification=V1t.Notification;Xe.NotificationKind=V1t.NotificationKind;var cVr=FF();Xe.pipe=cVr.pipe;var uVr=$F();Xe.noop=uVr.noop;var lVr=U1();Xe.identity=lVr.identity;var dVr=Fyt();Xe.isObservable=dVr.isObservable;var pVr=lT();Xe.ArgumentOutOfRangeError=pVr.ArgumentOutOfRangeError;var hVr=dT();Xe.EmptyError=hVr.EmptyError;var fVr=UI();Xe.ObjectUnsubscribedError=fVr.ObjectUnsubscribedError;var mVr=Cie();Xe.UnsubscriptionError=mVr.UnsubscriptionError;var yVr=use();Xe.TimeoutError=yVr.TimeoutError;var gVr=jyt();Xe.bindCallback=gVr.bindCallback;var bVr=Gyt();Xe.bindNodeCallback=bVr.bindNodeCallback;var vVr=YF();Xe.combineLatest=vVr.combineLatest;var wVr=yk();Xe.concat=wVr.concat;var xVr=XF();Xe.defer=xVr.defer;var _Vr=Yh();Xe.empty=_Vr.empty;var TVr=d1t();Xe.forkJoin=TVr.forkJoin;var EVr=Qh();Xe.from=EVr.from;var CVr=f1t();Xe.fromEvent=CVr.fromEvent;var IVr=y1t();Xe.fromEventPattern=IVr.fromEventPattern;var kVr=b1t();Xe.generate=kVr.generate;var AVr=w1t();Xe.iif=AVr.iif;var SVr=_1t();Xe.interval=SVr.interval;var PVr=zse();Xe.merge=PVr.merge;var RVr=Kse();Xe.never=RVr.never;var MVr=XI();Xe.of=MVr.of;var NVr=T1t();Xe.onErrorResumeNext=NVr.onErrorResumeNext;var BVr=I1t();Xe.pairs=BVr.pairs;var DVr=P1t();Xe.partition=DVr.partition;var OVr=Qse();Xe.race=OVr.race;var LVr=B1t();Xe.range=LVr.range;var qVr=zF();Xe.throwError=qVr.throwError;var FVr=Xse();Xe.timer=FVr.timer;var WVr=L1t();Xe.using=WVr.using;var UVr=aW();Xe.zip=UVr.zip;var HVr=kse();Xe.scheduled=HVr.scheduled;var jVr=Yh();Xe.EMPTY=jVr.EMPTY;var zVr=Kse();Xe.NEVER=zVr.NEVER;var KVr=FI();Xe.config=KVr.config});var xk=_((xra,roe)=>{d();p();function $1t(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;euW,useContext:()=>lW,useDebugValue:()=>dW,useEffect:()=>Tk,useErrorBoundary:()=>ngt,useId:()=>pW,useImperativeHandle:()=>cW,useLayoutEffect:()=>k2,useMemo:()=>gT,useReducer:()=>_k,useRef:()=>oW,useState:()=>yT});function I2(r,e){nt.__h&&nt.__h(ei,r,mT||e),mT=0;var t=ei.__H||(ei.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:iW}),t.__[r]}function yT(r){return mT=1,_k(agt,r)}function _k(r,e,t){var n=I2(V1++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):agt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ei,!ei.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!i||i.call(this,o,c,u);var h=!1;return l.forEach(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),!(!h&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};ei.u=!0;var i=ei.shouldComponentUpdate,s=ei.componentWillUpdate;ei.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},ei.shouldComponentUpdate=a}return n.__N||n.__}function Tk(r,e){var t=I2(V1++,3);!nt.__s&&ioe(t.__H,e)&&(t.__=r,t.i=e,ei.__H.__h.push(t))}function k2(r,e){var t=I2(V1++,4);!nt.__s&&ioe(t.__H,e)&&(t.__=r,t.i=e,ei.__h.push(t))}function oW(r){return mT=5,gT(function(){return{current:r}},[])}function cW(r,e,t){mT=6,k2(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function gT(r,e){var t=I2(V1++,7);return ioe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function uW(r,e){return mT=8,gT(function(){return r},e)}function lW(r){var e=ei.context[r.__c],t=I2(V1++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(ei)),e.props.value):r.__}function dW(r,e){nt.useDebugValue&&nt.useDebugValue(e?e(r):r)}function ngt(r){var e=I2(V1++,10),t=yT();return e.__=r,ei.componentDidCatch||(ei.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function pW(){var r=I2(V1++,11);if(!r.__){for(var e=ei.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function VVr(){for(var r;r=rgt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(sW),r.__H.__h.forEach(aoe),r.__H.__h=[]}catch(e){r.__H.__h=[],nt.__e(e,r.__v)}}function GVr(r){var e,t=function(){clearTimeout(n),tgt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);tgt&&(e=requestAnimationFrame(t))}function sW(r){var e=ei,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),ei=e}function aoe(r){var e=ei;r.__c=r.__(),ei=e}function ioe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function agt(r,e){return typeof e=="function"?e(r):e}var V1,ei,noe,Y1t,mT,rgt,iW,J1t,Q1t,Z1t,X1t,egt,tgt,G1=ce(()=>{d();p();Tc();mT=0,rgt=[],iW=[],J1t=nt.__b,Q1t=nt.__r,Z1t=nt.diffed,X1t=nt.__c,egt=nt.unmount;nt.__b=function(r){ei=null,J1t&&J1t(r)},nt.__r=function(r){Q1t&&Q1t(r),V1=0;var e=(ei=r.__c).__H;e&&(noe===ei?(e.__h=[],ei.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=iW,t.__N=t.i=void 0})):(e.__h.forEach(sW),e.__h.forEach(aoe),e.__h=[])),noe=ei},nt.diffed=function(r){Z1t&&Z1t(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(rgt.push(e)!==1&&Y1t===nt.requestAnimationFrame||((Y1t=nt.requestAnimationFrame)||GVr)(VVr)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==iW&&(t.__=t.__V),t.i=void 0,t.__V=iW})),noe=ei=null},nt.__c=function(r,e){e.some(function(t){try{t.__h.forEach(sW),t.__h=t.__h.filter(function(n){return!n.__||aoe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],nt.__e(n,t.__v)}}),X1t&&X1t(r,e)},nt.unmount=function(r){egt&&egt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{sW(n)}catch(a){e=a}}),t.__H=void 0,e&&nt.__e(e,t.__v))};tgt=typeof requestAnimationFrame=="function"});var igt=_(hW=>{"use strict";d();p();Object.defineProperty(hW,"__esModule",{value:!0});hW.LIB_VERSION=void 0;hW.LIB_VERSION="3.6.4"});var ogt=_(fW=>{"use strict";d();p();Object.defineProperty(fW,"__esModule",{value:!0});fW.CloseIcon=void 0;var sgt=(Tc(),rt(Ml));function $Vr(r){return(0,sgt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,sgt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}fW.CloseIcon=$Vr});var cgt=_(soe=>{"use strict";d();p();Object.defineProperty(soe,"__esModule",{value:!0});soe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var ugt=_(ooe=>{"use strict";d();p();Object.defineProperty(ooe,"__esModule",{value:!0});ooe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var lgt=_(mW=>{"use strict";d();p();Object.defineProperty(mW,"__esModule",{value:!0});mW.QRCodeIcon=void 0;var wm=(Tc(),rt(Ml));function YVr(r){return(0,wm.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,wm.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,wm.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,wm.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,wm.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,wm.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,wm.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,wm.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,wm.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,wm.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}mW.QRCodeIcon=YVr});var dgt=_(coe=>{"use strict";d();p();Object.defineProperty(coe,"__esModule",{value:!0});var JVr=` + `):"",this.name="UnsubscriptionError",this.errors=e,this}return r.prototype=Object.create(Error.prototype),r}();Xie.UnsubscriptionError=AUr});var xo=x(tse=>{"use strict";d();p();Object.defineProperty(tse,"__esModule",{value:!0});var SUr=Qu(),PUr=tW(),RUr=wT(),rW=ese(),MUr=function(){function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var t=this,n=t._parentOrParents,a=t._ctorUnsubscribe,i=t._unsubscribe,s=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(n!==null)for(var o=0;o{"use strict";d();p();Object.defineProperty(ok,"__esModule",{value:!0});ok.rxSubscriber=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();ok.$$rxSubscriber=ok.rxSubscriber});var tr=x(xT=>{"use strict";d();p();var Qyt=xT&&xT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xT,"__esModule",{value:!0});var Jyt=wT(),rse=Jie(),NUr=xo(),BUr=nW(),_T=sk(),aW=eW(),Zyt=function(r){Qyt(e,r);function e(t,n,a){var i=r.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=rse.empty;break;case 1:if(!t){i.destination=rse.empty;break}if(typeof t=="object"){t instanceof e?(i.syncErrorThrowable=t.syncErrorThrowable,i.destination=t,t.add(i)):(i.syncErrorThrowable=!0,i.destination=new nse(i,t));break}default:i.syncErrorThrowable=!0,i.destination=new nse(i,t,n,a);break}return i}return e.prototype[BUr.rxSubscriber]=function(){return this},e.create=function(t,n,a){var i=new e(t,n,a);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(NUr.Subscription);xT.Subscriber=Zyt;var nse=function(r){Qyt(e,r);function e(t,n,a,i){var s=r.call(this)||this;s._parentSubscriber=t;var o,c=s;return Jyt.isFunction(n)?o=n:n&&(o=n.next,a=n.error,i=n.complete,n!==rse.empty&&(c=Object.create(n),Jyt.isFunction(c.unsubscribe)&&s.add(c.unsubscribe.bind(c)),c.unsubscribe=s.unsubscribe.bind(s))),s._context=c,s._next=o,s._error=a,s._complete=i,s}return e.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;!_T.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(n,this._next,t)&&this.unsubscribe()}},e.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,a=_T.config.useDeprecatedSynchronousErrorHandling;if(this._error)!a||!n.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(n,this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)a?(n.syncErrorValue=t,n.syncErrorThrown=!0):aW.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),a)throw t;aW.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var a=function(){return t._complete.call(t._context)};!_T.config.useDeprecatedSynchronousErrorHandling||!n.syncErrorThrowable?(this.__tryOrUnsub(a),this.unsubscribe()):(this.__tryOrSetError(n,a),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(a){if(this.unsubscribe(),_T.config.useDeprecatedSynchronousErrorHandling)throw a;aW.hostReportError(a)}},e.prototype.__tryOrSetError=function(t,n,a){if(!_T.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,a)}catch(i){return _T.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(aW.hostReportError(i),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Zyt);xT.SafeSubscriber=nse});var iW=x(ase=>{"use strict";d();p();Object.defineProperty(ase,"__esModule",{value:!0});var DUr=tr();function OUr(r){for(;r;){var e=r,t=e.closed,n=e.destination,a=e.isStopped;if(t||a)return!1;n&&n instanceof DUr.Subscriber?r=n:r=null}return!0}ase.canReportError=OUr});var e1t=x(sse=>{"use strict";d();p();Object.defineProperty(sse,"__esModule",{value:!0});var ise=tr(),Xyt=nW(),LUr=Jie();function qUr(r,e,t){if(r){if(r instanceof ise.Subscriber)return r;if(r[Xyt.rxSubscriber])return r[Xyt.rxSubscriber]()}return!r&&!e&&!t?new ise.Subscriber(LUr.empty):new ise.Subscriber(r,e,t)}sse.toSubscriber=qUr});var S2=x(ose=>{"use strict";d();p();Object.defineProperty(ose,"__esModule",{value:!0});ose.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var J1=x(cse=>{"use strict";d();p();Object.defineProperty(cse,"__esModule",{value:!0});function FUr(r){return r}cse.identity=FUr});var oW=x(sW=>{"use strict";d();p();Object.defineProperty(sW,"__esModule",{value:!0});var WUr=J1();function UUr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(use,"__esModule",{value:!0});var HUr=iW(),jUr=e1t(),zUr=S2(),KUr=oW(),cW=sk(),GUr=function(){function r(e){this._isScalar=!1,e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var a=this.operator,i=jUr.toSubscriber(e,t,n);if(a?i.add(a.call(i,this.source)):i.add(this.source||cW.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),cW.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){cW.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),HUr.canReportError(e)?e.error(t):console.warn(t)}},r.prototype.forEach=function(e,t){var n=this;return t=r1t(t),new t(function(a,i){var s;s=n.subscribe(function(o){try{e(o)}catch(c){i(c),s&&s.unsubscribe()}},i,a)})},r.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},r.prototype[zUr.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";d();p();Object.defineProperty(lse,"__esModule",{value:!0});var VUr=function(){function r(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return r.prototype=Object.create(Error.prototype),r}();lse.ObjectUnsubscribedError=VUr});var dse=x(uk=>{"use strict";d();p();var $Ur=uk&&uk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uk,"__esModule",{value:!0});var YUr=xo(),JUr=function(r){$Ur(e,r);function e(t,n){var a=r.call(this)||this;return a.subject=t,a.subscriber=n,a.closed=!1,a}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,!(!n||n.length===0||t.isStopped||t.closed)){var a=n.indexOf(this.subscriber);a!==-1&&n.splice(a,1)}}},e}(YUr.Subscription);uk.SubjectSubscription=JUr});var Iu=x(P2=>{"use strict";d();p();var fse=P2&&P2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(P2,"__esModule",{value:!0});var n1t=nn(),QUr=tr(),pse=xo(),lk=ck(),ZUr=dse(),XUr=nW(),a1t=function(r){fse(e,r);function e(t){var n=r.call(this,t)||this;return n.destination=t,n}return e}(QUr.Subscriber);P2.SubjectSubscriber=a1t;var i1t=function(r){fse(e,r);function e(){var t=r.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype[XUr.rxSubscriber]=function(){return new a1t(this)},e.prototype.lift=function(t){var n=new hse(this,this);return n.operator=t,n},e.prototype.next=function(t){if(this.closed)throw new lk.ObjectUnsubscribedError;if(!this.isStopped)for(var n=this.observers,a=n.length,i=n.slice(),s=0;s{"use strict";d();p();var eHr=dk&&dk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dk,"__esModule",{value:!0});var tHr=tr();function rHr(){return function(e){return e.lift(new nHr(e))}}dk.refCount=rHr;var nHr=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new aHr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),aHr=function(r){eHr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(tHr.Subscriber)});var yse=x(TT=>{"use strict";d();p();var mse=TT&&TT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(TT,"__esModule",{value:!0});var iHr=Iu(),sHr=nn(),oHr=tr(),s1t=xo(),cHr=uW(),o1t=function(r){mse(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subjectFactory=n,a._refCount=0,a._isComplete=!1,a}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new s1t.Subscription,t.add(this.source.subscribe(new uHr(this.getSubject(),this))),t.closed&&(this._connection=null,t=s1t.Subscription.EMPTY)),t},e.prototype.refCount=function(){return cHr.refCount()(this)},e}(sHr.Observable);TT.ConnectableObservable=o1t;TT.connectableObservableDescriptor=function(){var r=o1t.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:r._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}}}();var uHr=function(r){mse(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._error=function(t){this._unsubscribe(),r.prototype._error.call(this,t)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},e}(iHr.SubjectSubscriber),iXn=function(){function r(e){this.connectable=e}return r.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var a=new lHr(e,n),i=t.subscribe(a);return a.closed||(a.connection=n.connect()),i},r}(),lHr=function(r){mse(e,r);function e(t,n){var a=r.call(this,t)||this;return a.connectable=n,a}return e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var n=t._refCount;if(n<=0){this.connection=null;return}if(t._refCount=n-1,n>1){this.connection=null;return}var a=this.connection,i=t._connection;this.connection=null,i&&(!a||i===a)&&i.unsubscribe()},e}(oHr.Subscriber)});var bse=x(ET=>{"use strict";d();p();var lW=ET&&ET.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ET,"__esModule",{value:!0});var c1t=tr(),u1t=xo(),dHr=nn(),pHr=Iu();function hHr(r,e,t,n){return function(a){return a.lift(new fHr(r,e,t,n))}}ET.groupBy=hHr;var fHr=function(){function r(e,t,n,a){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=a}return r.prototype.call=function(e,t){return t.subscribe(new mHr(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},r}(),mHr=function(r){lW(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.keySelector=n,o.elementSelector=a,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return e.prototype._next=function(t){var n;try{n=this.keySelector(t)}catch(a){this.error(a);return}this._group(t,n)},e.prototype._group=function(t,n){var a=this.groups;a||(a=this.groups=new Map);var i=a.get(n),s;if(this.elementSelector)try{s=this.elementSelector(t)}catch(u){this.error(u)}else s=t;if(!i){i=this.subjectSelector?this.subjectSelector():new pHr.Subject,a.set(n,i);var o=new gse(n,i,this);if(this.destination.next(o),this.durationSelector){var c=void 0;try{c=this.durationSelector(new gse(n,i))}catch(u){this.error(u);return}this.add(c.subscribe(new yHr(n,i,this)))}}i.closed||i.next(s)},e.prototype._error=function(t){var n=this.groups;n&&(n.forEach(function(a,i){a.error(t)}),n.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(n,a){n.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&r.prototype.unsubscribe.call(this))},e}(c1t.Subscriber),yHr=function(r){lW(e,r);function e(t,n,a){var i=r.call(this,n)||this;return i.key=t,i.group=n,i.parent=a,i}return e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,n=t.parent,a=t.key;this.key=this.parent=null,n&&n.removeGroup(a)},e}(c1t.Subscriber),gse=function(r){lW(e,r);function e(t,n,a){var i=r.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=a,i}return e.prototype._subscribe=function(t){var n=new u1t.Subscription,a=this,i=a.refCountSubscription,s=a.groupSubject;return i&&!i.closed&&n.add(new gHr(i)),n.add(s.subscribe(t)),n},e}(dHr.Observable);ET.GroupedObservable=gse;var gHr=function(r){lW(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,t.count++,n}return e.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(r.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},e}(u1t.Subscription)});var vse=x(pk=>{"use strict";d();p();var bHr=pk&&pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pk,"__esModule",{value:!0});var vHr=Iu(),wHr=ck(),_Hr=function(r){bHr(e,r);function e(t){var n=r.call(this)||this;return n._value=t,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(t){var n=r.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new wHr.ObjectUnsubscribedError;return this._value},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(vHr.Subject);pk.BehaviorSubject=_Hr});var l1t=x(hk=>{"use strict";d();p();var xHr=hk&&hk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hk,"__esModule",{value:!0});var THr=xo(),EHr=function(r){xHr(e,r);function e(t,n){return r.call(this)||this}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),this},e}(THr.Subscription);hk.Action=EHr});var CT=x(fk=>{"use strict";d();p();var CHr=fk&&fk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fk,"__esModule",{value:!0});var IHr=l1t(),kHr=function(r){CHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a.pending=!1,a}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),this.closed)return this;this.state=t;var a=this.id,i=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(i,a,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),setInterval(t.flush.bind(t,this),a)},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&this.delay===a&&this.pending===!1)return n;clearInterval(n)},e.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(t,n);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,n){var a=!1,i=void 0;try{this.work(t)}catch(s){a=!0,i=!!s&&s||new Error(s)}if(a)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,a=n.actions,i=a.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,i!==-1&&a.splice(i,1),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},e}(IHr.Action);fk.AsyncAction=kHr});var d1t=x(mk=>{"use strict";d();p();var AHr=mk&&mk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mk,"__esModule",{value:!0});var SHr=CT(),PHr=function(r){AHr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,n){return n>0||this.closed?r.prototype.execute.call(this,t,n):this._execute(t,n)},e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,n,a):t.flush(this)},e}(SHr.AsyncAction);mk.QueueAction=PHr});var _se=x(wse=>{"use strict";d();p();Object.defineProperty(wse,"__esModule",{value:!0});var RHr=function(){function r(e,t){t===void 0&&(t=r.now),this.SchedulerAction=e,this.now=t}return r.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},r.now=function(){return Date.now()},r}();wse.Scheduler=RHr});var IT=x(yk=>{"use strict";d();p();var MHr=yk&&yk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yk,"__esModule",{value:!0});var p1t=_se(),NHr=function(r){MHr(e,r);function e(t,n){n===void 0&&(n=p1t.Scheduler.now);var a=r.call(this,t,function(){return e.delegate&&e.delegate!==a?e.delegate.now():n()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return e.prototype.schedule=function(t,n,a){return n===void 0&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(t,n,a):r.prototype.schedule.call(this,t,n,a)},e.prototype.flush=function(t){var n=this.actions;if(this.active){n.push(t);return}var a;this.active=!0;do if(a=t.execute(t.state,t.delay))break;while(t=n.shift());if(this.active=!1,a){for(;t=n.shift();)t.unsubscribe();throw a}},e}(p1t.Scheduler);yk.AsyncScheduler=NHr});var h1t=x(gk=>{"use strict";d();p();var BHr=gk&&gk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gk,"__esModule",{value:!0});var DHr=IT(),OHr=function(r){BHr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(DHr.AsyncScheduler);gk.QueueScheduler=OHr});var xse=x(bk=>{"use strict";d();p();Object.defineProperty(bk,"__esModule",{value:!0});var LHr=d1t(),qHr=h1t();bk.queueScheduler=new qHr.QueueScheduler(LHr.QueueAction);bk.queue=bk.queueScheduler});var Qh=x(vk=>{"use strict";d();p();Object.defineProperty(vk,"__esModule",{value:!0});var f1t=nn();vk.EMPTY=new f1t.Observable(function(r){return r.complete()});function FHr(r){return r?WHr(r):vk.EMPTY}vk.empty=FHr;function WHr(r){return new f1t.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var Zh=x(Tse=>{"use strict";d();p();Object.defineProperty(Tse,"__esModule",{value:!0});function UHr(r){return r&&typeof r.schedule=="function"}Tse.isScheduler=UHr});var Cse=x(Ese=>{"use strict";d();p();Object.defineProperty(Ese,"__esModule",{value:!0});Ese.subscribeToArray=function(r){return function(e){for(var t=0,n=r.length;t{"use strict";d();p();Object.defineProperty(Ise,"__esModule",{value:!0});var HHr=nn(),jHr=xo();function zHr(r,e){return new HHr.Observable(function(t){var n=new jHr.Subscription,a=0;return n.add(e.schedule(function(){if(a===r.length){t.complete();return}t.next(r[a++]),t.closed||n.add(this.schedule())})),n})}Ise.scheduleArray=zHr});var kT=x(kse=>{"use strict";d();p();Object.defineProperty(kse,"__esModule",{value:!0});var KHr=nn(),GHr=Cse(),VHr=dW();function $Hr(r,e){return e?VHr.scheduleArray(r,e):new KHr.Observable(GHr.subscribeToArray(r))}kse.fromArray=$Hr});var wk=x(Ase=>{"use strict";d();p();Object.defineProperty(Ase,"__esModule",{value:!0});var YHr=Zh(),JHr=kT(),QHr=dW();function ZHr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Sse,"__esModule",{value:!0});var m1t=nn();function XHr(r,e){return e?new m1t.Observable(function(t){return e.schedule(ejr,0,{error:r,subscriber:t})}):new m1t.Observable(function(t){return t.error(r)})}Sse.throwError=XHr;function ejr(r){var e=r.error,t=r.subscriber;t.error(e)}});var xk=x(_k=>{"use strict";d();p();Object.defineProperty(_k,"__esModule",{value:!0});var tjr=Qh(),rjr=wk(),njr=pW(),ajr;(function(r){r.NEXT="N",r.ERROR="E",r.COMPLETE="C"})(ajr=_k.NotificationKind||(_k.NotificationKind={}));var ijr=function(){function r(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e==="N"}return r.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},r.prototype.do=function(e,t,n){var a=this.kind;switch(a){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},r.prototype.accept=function(e,t,n){return e&&typeof e.next=="function"?this.observe(e):this.do(e,t,n)},r.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return rjr.of(this.value);case"E":return njr.throwError(this.error);case"C":return tjr.empty()}throw new Error("unexpected notification kind value")},r.createNext=function(e){return typeof e<"u"?new r("N",e):r.undefinedValueNotification},r.createError=function(e){return new r("E",void 0,e)},r.createComplete=function(){return r.completeNotification},r.completeNotification=new r("C"),r.undefinedValueNotification=new r("N",void 0),r}();_k.Notification=ijr});var Rse=x(Q1=>{"use strict";d();p();var sjr=Q1&&Q1.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q1,"__esModule",{value:!0});var ojr=tr(),Pse=xk();function cjr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new y1t(r,e))}}Q1.observeOn=cjr;var y1t=function(){function r(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return t.subscribe(new g1t(e,this.scheduler,this.delay))},r}();Q1.ObserveOnOperator=y1t;var g1t=function(r){sjr(e,r);function e(t,n,a){a===void 0&&(a=0);var i=r.call(this,t)||this;return i.scheduler=n,i.delay=a,i}return e.dispatch=function(t){var n=t.notification,a=t.destination;n.observe(a),this.unsubscribe()},e.prototype.scheduleMessage=function(t){var n=this.destination;n.add(this.scheduler.schedule(e.dispatch,this.delay,new b1t(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(Pse.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(Pse.Notification.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(Pse.Notification.createComplete()),this.unsubscribe()},e}(ojr.Subscriber);Q1.ObserveOnSubscriber=g1t;var b1t=function(){function r(e,t){this.notification=e,this.destination=t}return r}();Q1.ObserveOnMessage=b1t});var hW=x(Tk=>{"use strict";d();p();var ujr=Tk&&Tk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Tk,"__esModule",{value:!0});var ljr=Iu(),djr=xse(),pjr=xo(),hjr=Rse(),fjr=ck(),mjr=dse(),yjr=function(r){ujr(e,r);function e(t,n,a){t===void 0&&(t=Number.POSITIVE_INFINITY),n===void 0&&(n=Number.POSITIVE_INFINITY);var i=r.call(this)||this;return i.scheduler=a,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return e.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}r.prototype.next.call(this,t)},e.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new gjr(this._getNow(),t)),this._trimBufferThenGetEvents()),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){var n=this._infiniteTimeWindow,a=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=a.length,o;if(this.closed)throw new fjr.ObjectUnsubscribedError;if(this.isStopped||this.hasError?o=pjr.Subscription.EMPTY:(this.observers.push(t),o=new mjr.SubjectSubscription(this,t)),i&&t.add(t=new hjr.ObserveOnSubscriber(t,i)),n)for(var c=0;cn&&(o=Math.max(o,s-n)),o>0&&i.splice(0,o),i},e}(ljr.Subject);Tk.ReplaySubject=yjr;var gjr=function(){function r(e,t){this.time=e,this.value=t}return r}()});var Ck=x(Ek=>{"use strict";d();p();var bjr=Ek&&Ek.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ek,"__esModule",{value:!0});var vjr=Iu(),v1t=xo(),wjr=function(r){bjr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return e.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),v1t.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),v1t.Subscription.EMPTY):r.prototype._subscribe.call(this,t)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(t){this.hasCompleted||r.prototype.error.call(this,t)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&r.prototype.next.call(this,this.value),r.prototype.complete.call(this)},e}(vjr.Subject);Ek.AsyncSubject=wjr});var _1t=x(mW=>{"use strict";d();p();Object.defineProperty(mW,"__esModule",{value:!0});var _jr=1,xjr=function(){return Promise.resolve()}(),fW={};function w1t(r){return r in fW?(delete fW[r],!0):!1}mW.Immediate={setImmediate:function(r){var e=_jr++;return fW[e]=!0,xjr.then(function(){return w1t(e)&&r()}),e},clearImmediate:function(r){w1t(r)}};mW.TestTools={pending:function(){return Object.keys(fW).length}}});var T1t=x(Ik=>{"use strict";d();p();var Tjr=Ik&&Ik.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ik,"__esModule",{value:!0});var x1t=_1t(),Ejr=CT(),Cjr=function(r){Tjr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=x1t.Immediate.setImmediate(t.flush.bind(t,null))))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(x1t.Immediate.clearImmediate(n),t.scheduled=void 0)},e}(Ejr.AsyncAction);Ik.AsapAction=Cjr});var E1t=x(kk=>{"use strict";d();p();var Ijr=kk&&kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kk,"__esModule",{value:!0});var kjr=IT(),Ajr=function(r){Ijr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Ak,"__esModule",{value:!0});var Sjr=T1t(),Pjr=E1t();Ak.asapScheduler=new Pjr.AsapScheduler(Sjr.AsapAction);Ak.asap=Ak.asapScheduler});var Zu=x(Sk=>{"use strict";d();p();Object.defineProperty(Sk,"__esModule",{value:!0});var Rjr=CT(),Mjr=IT();Sk.asyncScheduler=new Mjr.AsyncScheduler(Rjr.AsyncAction);Sk.async=Sk.asyncScheduler});var C1t=x(Pk=>{"use strict";d();p();var Njr=Pk&&Pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pk,"__esModule",{value:!0});var Bjr=CT(),Djr=function(r){Njr(e,r);function e(t,n){var a=r.call(this,t,n)||this;return a.scheduler=t,a.work=n,a}return e.prototype.requestAsyncId=function(t,n,a){return a===void 0&&(a=0),a!==null&&a>0?r.prototype.requestAsyncId.call(this,t,n,a):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},e.prototype.recycleAsyncId=function(t,n,a){if(a===void 0&&(a=0),a!==null&&a>0||a===null&&this.delay>0)return r.prototype.recycleAsyncId.call(this,t,n,a);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},e}(Bjr.AsyncAction);Pk.AnimationFrameAction=Djr});var I1t=x(Rk=>{"use strict";d();p();var Ojr=Rk&&Rk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rk,"__esModule",{value:!0});var Ljr=IT(),qjr=function(r){Ojr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var n=this.actions,a,i=-1,s=n.length;t=t||n.shift();do if(a=t.execute(t.state,t.delay))break;while(++i{"use strict";d();p();Object.defineProperty(Mk,"__esModule",{value:!0});var Fjr=C1t(),Wjr=I1t();Mk.animationFrameScheduler=new Wjr.AnimationFrameScheduler(Fjr.AnimationFrameAction);Mk.animationFrame=Mk.animationFrameScheduler});var P1t=x(AT=>{"use strict";d();p();var A1t=AT&&AT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AT,"__esModule",{value:!0});var Ujr=CT(),Hjr=IT(),jjr=function(r){A1t(e,r);function e(t,n){t===void 0&&(t=S1t),n===void 0&&(n=Number.POSITIVE_INFINITY);var a=r.call(this,t,function(){return a.frame})||this;return a.maxFrames=n,a.frame=0,a.index=-1,a}return e.prototype.flush=function(){for(var t=this,n=t.actions,a=t.maxFrames,i,s;(s=n[0])&&s.delay<=a&&(n.shift(),this.frame=s.delay,!(i=s.execute(s.state,s.delay))););if(i){for(;s=n.shift();)s.unsubscribe();throw i}},e.frameTimeFactor=10,e}(Hjr.AsyncScheduler);AT.VirtualTimeScheduler=jjr;var S1t=function(r){A1t(e,r);function e(t,n,a){a===void 0&&(a=t.index+=1);var i=r.call(this,t,n)||this;return i.scheduler=t,i.work=n,i.index=a,i.active=!0,i.index=t.index=a,i}return e.prototype.schedule=function(t,n){if(n===void 0&&(n=0),!this.id)return r.prototype.schedule.call(this,t,n);this.active=!1;var a=new e(this.scheduler,this.work);return this.add(a),a.schedule(t,n)},e.prototype.requestAsyncId=function(t,n,a){a===void 0&&(a=0),this.delay=t.frame+a;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,n,a){a===void 0&&(a=0)},e.prototype._execute=function(t,n){if(this.active===!0)return r.prototype._execute.call(this,t,n)},e.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},e}(Ujr.AsyncAction);AT.VirtualAction=S1t});var yW=x(Nse=>{"use strict";d();p();Object.defineProperty(Nse,"__esModule",{value:!0});function zjr(){}Nse.noop=zjr});var R1t=x(Bse=>{"use strict";d();p();Object.defineProperty(Bse,"__esModule",{value:!0});var Kjr=nn();function Gjr(r){return!!r&&(r instanceof Kjr.Observable||typeof r.lift=="function"&&typeof r.subscribe=="function")}Bse.isObservable=Gjr});var ST=x(Dse=>{"use strict";d();p();Object.defineProperty(Dse,"__esModule",{value:!0});var Vjr=function(){function r(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return r.prototype=Object.create(Error.prototype),r}();Dse.ArgumentOutOfRangeError=Vjr});var PT=x(Ose=>{"use strict";d();p();Object.defineProperty(Ose,"__esModule",{value:!0});var $jr=function(){function r(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return r.prototype=Object.create(Error.prototype),r}();Ose.EmptyError=$jr});var qse=x(Lse=>{"use strict";d();p();Object.defineProperty(Lse,"__esModule",{value:!0});var Yjr=function(){function r(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return r.prototype=Object.create(Error.prototype),r}();Lse.TimeoutError=Yjr});var md=x(RT=>{"use strict";d();p();var Jjr=RT&&RT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(RT,"__esModule",{value:!0});var Qjr=tr();function Zjr(r,e){return function(n){if(typeof r!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new M1t(r,e))}}RT.map=Zjr;var M1t=function(){function r(e,t){this.project=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new Xjr(e,this.project,this.thisArg))},r}();RT.MapOperator=M1t;var Xjr=function(r){Jjr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=a||i,i}return e.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(Qjr.Subscriber)});var D1t=x(Fse=>{"use strict";d();p();Object.defineProperty(Fse,"__esModule",{value:!0});var ezr=nn(),N1t=Ck(),tzr=md(),rzr=iW(),nzr=Qu(),azr=Zh();function B1t(r,e,t){if(e)if(azr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();Object.defineProperty(Wse,"__esModule",{value:!0});var ozr=nn(),L1t=Ck(),czr=md(),uzr=iW(),lzr=Zh(),dzr=Qu();function q1t(r,e,t){if(e)if(lzr.isScheduler(e))t=e;else return function(){for(var n=[],a=0;a{"use strict";d();p();var fzr=Nk&&Nk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nk,"__esModule",{value:!0});var mzr=tr(),yzr=function(r){fzr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(n)},e.prototype.notifyError=function(t,n){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(mzr.Subscriber);Nk.OuterSubscriber=yzr});var W1t=x(Bk=>{"use strict";d();p();var gzr=Bk&&Bk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bk,"__esModule",{value:!0});var bzr=tr(),vzr=function(r){gzr(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i.index=0,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(bzr.Subscriber);Bk.InnerSubscriber=vzr});var U1t=x(Use=>{"use strict";d();p();Object.defineProperty(Use,"__esModule",{value:!0});var wzr=eW();Use.subscribeToPromise=function(r){return function(e){return r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,wzr.hostReportError),e}}});var NT=x(MT=>{"use strict";d();p();Object.defineProperty(MT,"__esModule",{value:!0});function H1t(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}MT.getSymbolIterator=H1t;MT.iterator=H1t();MT.$$iterator=MT.iterator});var j1t=x(Hse=>{"use strict";d();p();Object.defineProperty(Hse,"__esModule",{value:!0});var _zr=NT();Hse.subscribeToIterable=function(r){return function(e){var t=r[_zr.iterator]();do{var n=void 0;try{n=t.next()}catch(a){return e.error(a),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}while(!0);return typeof t.return=="function"&&e.add(function(){t.return&&t.return()}),e}}});var z1t=x(jse=>{"use strict";d();p();Object.defineProperty(jse,"__esModule",{value:!0});var xzr=S2();jse.subscribeToObservable=function(r){return function(e){var t=r[xzr.observable]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)}}});var Kse=x(zse=>{"use strict";d();p();Object.defineProperty(zse,"__esModule",{value:!0});zse.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var Vse=x(Gse=>{"use strict";d();p();Object.defineProperty(Gse,"__esModule",{value:!0});function Tzr(r){return!!r&&typeof r.subscribe!="function"&&typeof r.then=="function"}Gse.isPromise=Tzr});var Dk=x($se=>{"use strict";d();p();Object.defineProperty($se,"__esModule",{value:!0});var Ezr=Cse(),Czr=U1t(),Izr=j1t(),kzr=z1t(),Azr=Kse(),Szr=Vse(),Pzr=tW(),Rzr=NT(),Mzr=S2();$se.subscribeTo=function(r){if(!!r&&typeof r[Mzr.observable]=="function")return kzr.subscribeToObservable(r);if(Azr.isArrayLike(r))return Ezr.subscribeToArray(r);if(Szr.isPromise(r))return Czr.subscribeToPromise(r);if(!!r&&typeof r[Rzr.iterator]=="function")return Izr.subscribeToIterable(r);var e=Pzr.isObject(r)?"an invalid object":"'"+r+"'",t="You provided "+e+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)}});var X1=x(Yse=>{"use strict";d();p();Object.defineProperty(Yse,"__esModule",{value:!0});var Nzr=W1t(),Bzr=Dk(),Dzr=nn();function Ozr(r,e,t,n,a){if(a===void 0&&(a=new Nzr.InnerSubscriber(r,t,n)),!a.closed)return e instanceof Dzr.Observable?e.subscribe(a):Bzr.subscribeTo(e)(a)}Yse.subscribeToResult=Ozr});var gW=x(R2=>{"use strict";d();p();var Lzr=R2&&R2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(R2,"__esModule",{value:!0});var qzr=Zh(),Fzr=Qu(),Wzr=Z1(),Uzr=X1(),Hzr=kT(),K1t={};function jzr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Jse,"__esModule",{value:!0});var zzr=nn(),Kzr=xo(),Gzr=S2();function Vzr(r,e){return new zzr.Observable(function(t){var n=new Kzr.Subscription;return n.add(e.schedule(function(){var a=r[Gzr.observable]();n.add(a.subscribe({next:function(i){n.add(e.schedule(function(){return t.next(i)}))},error:function(i){n.add(e.schedule(function(){return t.error(i)}))},complete:function(){n.add(e.schedule(function(){return t.complete()}))}}))})),n})}Jse.scheduleObservable=Vzr});var Y1t=x(Qse=>{"use strict";d();p();Object.defineProperty(Qse,"__esModule",{value:!0});var $zr=nn(),Yzr=xo();function Jzr(r,e){return new $zr.Observable(function(t){var n=new Yzr.Subscription;return n.add(e.schedule(function(){return r.then(function(a){n.add(e.schedule(function(){t.next(a),n.add(e.schedule(function(){return t.complete()}))}))},function(a){n.add(e.schedule(function(){return t.error(a)}))})})),n})}Qse.schedulePromise=Jzr});var J1t=x(Zse=>{"use strict";d();p();Object.defineProperty(Zse,"__esModule",{value:!0});var Qzr=nn(),Zzr=xo(),Xzr=NT();function eKr(r,e){if(!r)throw new Error("Iterable cannot be null");return new Qzr.Observable(function(t){var n=new Zzr.Subscription,a;return n.add(function(){a&&typeof a.return=="function"&&a.return()}),n.add(e.schedule(function(){a=r[Xzr.iterator](),n.add(e.schedule(function(){if(!t.closed){var i,s;try{var o=a.next();i=o.value,s=o.done}catch(c){t.error(c);return}s?t.complete():(t.next(i),this.schedule())}}))})),n})}Zse.scheduleIterable=eKr});var Q1t=x(Xse=>{"use strict";d();p();Object.defineProperty(Xse,"__esModule",{value:!0});var tKr=S2();function rKr(r){return r&&typeof r[tKr.observable]=="function"}Xse.isInteropObservable=rKr});var Z1t=x(eoe=>{"use strict";d();p();Object.defineProperty(eoe,"__esModule",{value:!0});var nKr=NT();function aKr(r){return r&&typeof r[nKr.iterator]=="function"}eoe.isIterable=aKr});var roe=x(toe=>{"use strict";d();p();Object.defineProperty(toe,"__esModule",{value:!0});var iKr=$1t(),sKr=Y1t(),oKr=dW(),cKr=J1t(),uKr=Q1t(),lKr=Vse(),dKr=Kse(),pKr=Z1t();function hKr(r,e){if(r!=null){if(uKr.isInteropObservable(r))return iKr.scheduleObservable(r,e);if(lKr.isPromise(r))return sKr.schedulePromise(r,e);if(dKr.isArrayLike(r))return oKr.scheduleArray(r,e);if(pKr.isIterable(r)||typeof r=="string")return cKr.scheduleIterable(r,e)}throw new TypeError((r!==null&&typeof r||r)+" is not observable")}toe.scheduled=hKr});var Xh=x(noe=>{"use strict";d();p();Object.defineProperty(noe,"__esModule",{value:!0});var X1t=nn(),fKr=Dk(),mKr=roe();function yKr(r,e){return e?mKr.scheduled(r,e):r instanceof X1t.Observable?r:new X1t.Observable(fKr.subscribeTo(r))}noe.from=yKr});var Qi=x(Q0=>{"use strict";d();p();var bW=Q0&&Q0.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Q0,"__esModule",{value:!0});var vW=tr(),gKr=nn(),bKr=Dk(),vKr=function(r){bW(e,r);function e(t){var n=r.call(this)||this;return n.parent=t,n}return e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(vW.Subscriber);Q0.SimpleInnerSubscriber=vKr;var wKr=function(r){bW(e,r);function e(t,n,a){var i=r.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=a,i}return e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(vW.Subscriber);Q0.ComplexInnerSubscriber=wKr;var _Kr=function(r){bW(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(vW.Subscriber);Q0.SimpleOuterSubscriber=_Kr;var xKr=function(r){bW(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.notifyNext=function(t,n,a,i){this.destination.next(n)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(vW.Subscriber);Q0.ComplexOuterSubscriber=xKr;function TKr(r,e){if(!e.closed){if(r instanceof gKr.Observable)return r.subscribe(e);var t;try{t=bKr.subscribeTo(r)(e)}catch(n){e.error(n)}return t}}Q0.innerSubscribe=TKr});var Ok=x(eg=>{"use strict";d();p();var EKr=eg&&eg.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(eg,"__esModule",{value:!0});var CKr=md(),IKr=Xh(),aoe=Qi();function ioe(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?function(n){return n.pipe(ioe(function(a,i){return IKr.from(r(a,i)).pipe(CKr.map(function(s,o){return e(a,s,i,o)}))},t))}:(typeof e=="number"&&(t=e),function(n){return n.lift(new egt(r,t))})}eg.mergeMap=ioe;var egt=function(){function r(e,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return r.prototype.call=function(e,t){return t.subscribe(new tgt(e,this.project,this.concurrent))},r}();eg.MergeMapOperator=egt;var tgt=function(r){EKr(e,r);function e(t,n,a){a===void 0&&(a=Number.POSITIVE_INFINITY);var i=r.call(this,t)||this;return i.project=n,i.concurrent=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return e.prototype._next=function(t){this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},e}(aoe.SimpleOuterSubscriber);eg.MergeMapSubscriber=tgt;eg.flatMap=ioe});var wW=x(soe=>{"use strict";d();p();Object.defineProperty(soe,"__esModule",{value:!0});var kKr=Ok(),AKr=J1();function SKr(r){return r===void 0&&(r=Number.POSITIVE_INFINITY),kKr.mergeMap(AKr.identity,r)}soe.mergeAll=SKr});var coe=x(ooe=>{"use strict";d();p();Object.defineProperty(ooe,"__esModule",{value:!0});var PKr=wW();function RKr(){return PKr.mergeAll(1)}ooe.concatAll=RKr});var Lk=x(uoe=>{"use strict";d();p();Object.defineProperty(uoe,"__esModule",{value:!0});var MKr=wk(),NKr=coe();function BKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(loe,"__esModule",{value:!0});var DKr=nn(),OKr=Xh(),LKr=Qh();function qKr(r){return new DKr.Observable(function(e){var t;try{t=r()}catch(a){e.error(a);return}var n=t?OKr.from(t):LKr.empty();return n.subscribe(e)})}loe.defer=qKr});var ngt=x(doe=>{"use strict";d();p();Object.defineProperty(doe,"__esModule",{value:!0});var FKr=nn(),rgt=Qu(),WKr=md(),UKr=tW(),HKr=Xh();function jKr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(poe,"__esModule",{value:!0});var zKr=nn(),KKr=Qu(),GKr=wT(),VKr=md(),Nra=function(){return Object.prototype.toString}();function agt(r,e,t,n){return GKr.isFunction(t)&&(n=t,t=void 0),n?agt(r,e,t).pipe(VKr.map(function(a){return KKr.isArray(a)?n.apply(void 0,a):n(a)})):new zKr.Observable(function(a){function i(s){arguments.length>1?a.next(Array.prototype.slice.call(arguments)):a.next(s)}igt(r,e,i,a,t)})}poe.fromEvent=agt;function igt(r,e,t,n,a){var i;if(JKr(r)){var s=r;r.addEventListener(e,t,a),i=function(){return s.removeEventListener(e,t,a)}}else if(YKr(r)){var o=r;r.on(e,t),i=function(){return o.off(e,t)}}else if($Kr(r)){var c=r;r.addListener(e,t),i=function(){return c.removeListener(e,t)}}else if(r&&r.length)for(var u=0,l=r.length;u{"use strict";d();p();Object.defineProperty(hoe,"__esModule",{value:!0});var QKr=nn(),ZKr=Qu(),XKr=wT(),eGr=md();function ogt(r,e,t){return t?ogt(r,e).pipe(eGr.map(function(n){return ZKr.isArray(n)?t.apply(void 0,n):t(n)})):new QKr.Observable(function(n){var a=function(){for(var s=[],o=0;o{"use strict";d();p();Object.defineProperty(foe,"__esModule",{value:!0});var tGr=nn(),ugt=J1(),rGr=Zh();function nGr(r,e,t,n,a){var i,s;if(arguments.length==1){var o=r;s=o.initialState,e=o.condition,t=o.iterate,i=o.resultSelector||ugt.identity,a=o.scheduler}else n===void 0||rGr.isScheduler(n)?(s=r,i=ugt.identity,a=n):(s=r,i=n);return new tGr.Observable(function(c){var u=s;if(a)return a.schedule(aGr,0,{subscriber:c,iterate:t,condition:e,resultSelector:i,state:u});do{if(e){var l=void 0;try{l=e(u)}catch(f){c.error(f);return}if(!l){c.complete();break}}var h=void 0;try{h=i(u)}catch(f){c.error(f);return}if(c.next(h),c.closed)break;try{u=t(u)}catch(f){c.error(f);return}}while(!0)})}foe.generate=nGr;function aGr(r){var e=r.subscriber,t=r.condition;if(!e.closed){if(r.needIterate)try{r.state=r.iterate(r.state)}catch(i){e.error(i);return}else r.needIterate=!0;if(t){var n=void 0;try{n=t(r.state)}catch(i){e.error(i);return}if(!n){e.complete();return}if(e.closed)return}var a;try{a=r.resultSelector(r.state)}catch(i){e.error(i);return}if(!e.closed&&(e.next(a),!e.closed))return this.schedule(r)}}});var pgt=x(moe=>{"use strict";d();p();Object.defineProperty(moe,"__esModule",{value:!0});var iGr=_W(),dgt=Qh();function sGr(r,e,t){return e===void 0&&(e=dgt.EMPTY),t===void 0&&(t=dgt.EMPTY),iGr.defer(function(){return r()?e:t})}moe.iif=sGr});var qk=x(yoe=>{"use strict";d();p();Object.defineProperty(yoe,"__esModule",{value:!0});var oGr=Qu();function cGr(r){return!oGr.isArray(r)&&r-parseFloat(r)+1>=0}yoe.isNumeric=cGr});var fgt=x(goe=>{"use strict";d();p();Object.defineProperty(goe,"__esModule",{value:!0});var uGr=nn(),hgt=Zu(),lGr=qk();function dGr(r,e){return r===void 0&&(r=0),e===void 0&&(e=hgt.async),(!lGr.isNumeric(r)||r<0)&&(r=0),(!e||typeof e.schedule!="function")&&(e=hgt.async),new uGr.Observable(function(t){return t.add(e.schedule(pGr,r,{subscriber:t,counter:0,period:r})),t})}goe.interval=dGr;function pGr(r){var e=r.subscriber,t=r.counter,n=r.period;e.next(t),this.schedule({subscriber:e,counter:t+1,period:n},n)}});var voe=x(boe=>{"use strict";d();p();Object.defineProperty(boe,"__esModule",{value:!0});var hGr=nn(),fGr=Zh(),mGr=wW(),yGr=kT();function gGr(){for(var r=[],e=0;e1&&typeof r[r.length-1]=="number"&&(t=r.pop())):typeof a=="number"&&(t=r.pop()),n===null&&r.length===1&&r[0]instanceof hGr.Observable?r[0]:mGr.mergeAll(t)(yGr.fromArray(r,n))}boe.merge=gGr});var woe=x(Fk=>{"use strict";d();p();Object.defineProperty(Fk,"__esModule",{value:!0});var bGr=nn(),vGr=yW();Fk.NEVER=new bGr.Observable(vGr.noop);function wGr(){return Fk.NEVER}Fk.never=wGr});var mgt=x(xoe=>{"use strict";d();p();Object.defineProperty(xoe,"__esModule",{value:!0});var _Gr=nn(),xGr=Xh(),TGr=Qu(),EGr=Qh();function _oe(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(TW,"__esModule",{value:!0});var ygt=nn(),CGr=xo();function IGr(r,e){return e?new ygt.Observable(function(t){var n=Object.keys(r),a=new CGr.Subscription;return a.add(e.schedule(ggt,0,{keys:n,index:0,subscriber:t,subscription:a,obj:r})),a}):new ygt.Observable(function(t){for(var n=Object.keys(r),a=0;a{"use strict";d();p();Object.defineProperty(Toe,"__esModule",{value:!0});function kGr(r,e){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=r,t.thisArg=e,t}Toe.not=kGr});var M2=x(Wk=>{"use strict";d();p();var AGr=Wk&&Wk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Wk,"__esModule",{value:!0});var SGr=tr();function PGr(r,e){return function(n){return n.lift(new RGr(r,e))}}Wk.filter=PGr;var RGr=function(){function r(e,t){this.predicate=e,this.thisArg=t}return r.prototype.call=function(e,t){return t.subscribe(new MGr(e,this.predicate,this.thisArg))},r}(),MGr=function(r){AGr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.thisArg=a,i.count=0,i}return e.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(a){this.destination.error(a);return}n&&this.destination.next(t)},e}(SGr.Subscriber)});var xgt=x(Coe=>{"use strict";d();p();Object.defineProperty(Coe,"__esModule",{value:!0});var NGr=Eoe(),vgt=Dk(),wgt=M2(),_gt=nn();function BGr(r,e,t){return[wgt.filter(e,t)(new _gt.Observable(vgt.subscribeTo(r))),wgt.filter(NGr.not(e,t))(new _gt.Observable(vgt.subscribeTo(r)))]}Coe.partition=BGr});var Ioe=x(N2=>{"use strict";d();p();var DGr=N2&&N2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(N2,"__esModule",{value:!0});var OGr=Qu(),LGr=kT(),qGr=Z1(),FGr=X1();function WGr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(EW,"__esModule",{value:!0});var UGr=nn();function HGr(r,e,t){return r===void 0&&(r=0),new UGr.Observable(function(n){e===void 0&&(e=r,r=0);var a=0,i=r;if(t)return t.schedule(Cgt,0,{index:a,count:e,start:r,subscriber:n});do{if(a++>=e){n.complete();break}if(n.next(i++),n.closed)break}while(!0)})}EW.range=HGr;function Cgt(r){var e=r.start,t=r.index,n=r.count,a=r.subscriber;if(t>=n){a.complete();return}a.next(e),!a.closed&&(r.index=t+1,r.start=e+1,this.schedule(r))}EW.dispatch=Cgt});var Aoe=x(koe=>{"use strict";d();p();Object.defineProperty(koe,"__esModule",{value:!0});var jGr=nn(),zGr=Zu(),kgt=qk(),Agt=Zh();function KGr(r,e,t){r===void 0&&(r=0);var n=-1;return kgt.isNumeric(e)?n=Number(e)<1&&1||Number(e):Agt.isScheduler(e)&&(t=e),Agt.isScheduler(t)||(t=zGr.async),new jGr.Observable(function(a){var i=kgt.isNumeric(r)?r:+r-t.now();return t.schedule(GGr,i,{index:0,period:n,subscriber:a})})}koe.timer=KGr;function GGr(r){var e=r.index,t=r.period,n=r.subscriber;if(n.next(e),!n.closed){if(t===-1)return n.complete();r.index=e+1,this.schedule(r,t)}}});var Sgt=x(Soe=>{"use strict";d();p();Object.defineProperty(Soe,"__esModule",{value:!0});var VGr=nn(),$Gr=Xh(),YGr=Qh();function JGr(r,e){return new VGr.Observable(function(t){var n;try{n=r()}catch(o){t.error(o);return}var a;try{a=e(n)}catch(o){t.error(o);return}var i=a?$Gr.from(a):YGr.EMPTY,s=i.subscribe(t);return function(){s.unsubscribe(),n&&n.unsubscribe()}})}Soe.using=JGr});var IW=x(B2=>{"use strict";d();p();var Pgt=B2&&B2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(B2,"__esModule",{value:!0});var QGr=kT(),ZGr=Qu(),XGr=tr(),CW=NT(),Poe=Qi();function eVr(){for(var r=[],e=0;ethis.index},r.prototype.hasCompleted=function(){return this.array.length===this.index},r}(),nVr=function(r){Pgt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.parent=n,i.observable=a,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return e.prototype[CW.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Poe.innerSubscribe(this.observable,new Poe.SimpleInnerSubscriber(this))},e}(Poe.SimpleOuterSubscriber)});var Uk=x(et=>{"use strict";d();p();Object.defineProperty(et,"__esModule",{value:!0});var aVr=nn();et.Observable=aVr.Observable;var iVr=yse();et.ConnectableObservable=iVr.ConnectableObservable;var sVr=bse();et.GroupedObservable=sVr.GroupedObservable;var oVr=S2();et.observable=oVr.observable;var cVr=Iu();et.Subject=cVr.Subject;var uVr=vse();et.BehaviorSubject=uVr.BehaviorSubject;var lVr=hW();et.ReplaySubject=lVr.ReplaySubject;var dVr=Ck();et.AsyncSubject=dVr.AsyncSubject;var Ngt=Mse();et.asap=Ngt.asap;et.asapScheduler=Ngt.asapScheduler;var Bgt=Zu();et.async=Bgt.async;et.asyncScheduler=Bgt.asyncScheduler;var Dgt=xse();et.queue=Dgt.queue;et.queueScheduler=Dgt.queueScheduler;var Ogt=k1t();et.animationFrame=Ogt.animationFrame;et.animationFrameScheduler=Ogt.animationFrameScheduler;var Lgt=P1t();et.VirtualTimeScheduler=Lgt.VirtualTimeScheduler;et.VirtualAction=Lgt.VirtualAction;var pVr=_se();et.Scheduler=pVr.Scheduler;var hVr=xo();et.Subscription=hVr.Subscription;var fVr=tr();et.Subscriber=fVr.Subscriber;var qgt=xk();et.Notification=qgt.Notification;et.NotificationKind=qgt.NotificationKind;var mVr=oW();et.pipe=mVr.pipe;var yVr=yW();et.noop=yVr.noop;var gVr=J1();et.identity=gVr.identity;var bVr=R1t();et.isObservable=bVr.isObservable;var vVr=ST();et.ArgumentOutOfRangeError=vVr.ArgumentOutOfRangeError;var wVr=PT();et.EmptyError=wVr.EmptyError;var _Vr=ck();et.ObjectUnsubscribedError=_Vr.ObjectUnsubscribedError;var xVr=ese();et.UnsubscriptionError=xVr.UnsubscriptionError;var TVr=qse();et.TimeoutError=TVr.TimeoutError;var EVr=D1t();et.bindCallback=EVr.bindCallback;var CVr=F1t();et.bindNodeCallback=CVr.bindNodeCallback;var IVr=gW();et.combineLatest=IVr.combineLatest;var kVr=Lk();et.concat=kVr.concat;var AVr=_W();et.defer=AVr.defer;var SVr=Qh();et.empty=SVr.empty;var PVr=ngt();et.forkJoin=PVr.forkJoin;var RVr=Xh();et.from=RVr.from;var MVr=sgt();et.fromEvent=MVr.fromEvent;var NVr=cgt();et.fromEventPattern=NVr.fromEventPattern;var BVr=lgt();et.generate=BVr.generate;var DVr=pgt();et.iif=DVr.iif;var OVr=fgt();et.interval=OVr.interval;var LVr=voe();et.merge=LVr.merge;var qVr=woe();et.never=qVr.never;var FVr=wk();et.of=FVr.of;var WVr=mgt();et.onErrorResumeNext=WVr.onErrorResumeNext;var UVr=bgt();et.pairs=UVr.pairs;var HVr=xgt();et.partition=HVr.partition;var jVr=Ioe();et.race=jVr.race;var zVr=Igt();et.range=zVr.range;var KVr=pW();et.throwError=KVr.throwError;var GVr=Aoe();et.timer=GVr.timer;var VVr=Sgt();et.using=VVr.using;var $Vr=IW();et.zip=$Vr.zip;var YVr=roe();et.scheduled=YVr.scheduled;var JVr=Qh();et.EMPTY=JVr.EMPTY;var QVr=woe();et.NEVER=QVr.NEVER;var ZVr=sk();et.config=ZVr.config});var Hk=x((Lna,Roe)=>{d();p();function Wgt(r){var e,t,n="";if(typeof r=="string"||typeof r=="number")n+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;eRW,useContext:()=>MW,useDebugValue:()=>NW,useEffect:()=>zk,useErrorBoundary:()=>Ygt,useId:()=>BW,useImperativeHandle:()=>PW,useLayoutEffect:()=>O2,useMemo:()=>OT,useReducer:()=>jk,useRef:()=>SW,useState:()=>DT});function D2(r,e){at.__h&&at.__h(ei,r,BT||e),BT=0;var t=ei.__H||(ei.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:kW}),t.__[r]}function DT(r){return BT=1,jk(Jgt,r)}function jk(r,e,t){var n=D2(tg++,2);if(n.t=r,!n.__c&&(n.__=[t?t(e):Jgt(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,o);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=ei,!ei.u)){var a=function(o,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(f){return f.__c});if(l.every(function(f){return!f.__N}))return!i||i.call(this,o,c,u);var h=!1;return l.forEach(function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(h=!0)}}),!(!h&&n.__c.props===o)&&(!i||i.call(this,o,c,u))};ei.u=!0;var i=ei.shouldComponentUpdate,s=ei.componentWillUpdate;ei.componentWillUpdate=function(o,c,u){if(this.__e){var l=i;i=void 0,a(o,c,u),i=l}s&&s.call(this,o,c,u)},ei.shouldComponentUpdate=a}return n.__N||n.__}function zk(r,e){var t=D2(tg++,3);!at.__s&&Boe(t.__H,e)&&(t.__=r,t.i=e,ei.__H.__h.push(t))}function O2(r,e){var t=D2(tg++,4);!at.__s&&Boe(t.__H,e)&&(t.__=r,t.i=e,ei.__h.push(t))}function SW(r){return BT=5,OT(function(){return{current:r}},[])}function PW(r,e,t){BT=6,O2(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function OT(r,e){var t=D2(tg++,7);return Boe(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function RW(r,e){return BT=8,OT(function(){return r},e)}function MW(r){var e=ei.context[r.__c],t=D2(tg++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(ei)),e.props.value):r.__}function NW(r,e){at.useDebugValue&&at.useDebugValue(e?e(r):r)}function Ygt(r){var e=D2(tg++,10),t=DT();return e.__=r,ei.componentDidCatch||(ei.componentDidCatch=function(n,a){e.__&&e.__(n,a),t[1](n)}),[t[0],function(){t[1](void 0)}]}function BW(){var r=D2(tg++,11);if(!r.__){for(var e=ei.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function XVr(){for(var r;r=$gt.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(AW),r.__H.__h.forEach(Noe),r.__H.__h=[]}catch(e){r.__H.__h=[],at.__e(e,r.__v)}}function e$r(r){var e,t=function(){clearTimeout(n),Vgt&&cancelAnimationFrame(e),setTimeout(r)},n=setTimeout(t,100);Vgt&&(e=requestAnimationFrame(t))}function AW(r){var e=ei,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),ei=e}function Noe(r){var e=ei;r.__c=r.__(),ei=e}function Boe(r,e){return!r||r.length!==e.length||e.some(function(t,n){return t!==r[n]})}function Jgt(r,e){return typeof e=="function"?e(r):e}var tg,ei,Moe,Ugt,BT,$gt,kW,Hgt,jgt,zgt,Kgt,Ggt,Vgt,rg=ce(()=>{d();p();kc();BT=0,$gt=[],kW=[],Hgt=at.__b,jgt=at.__r,zgt=at.diffed,Kgt=at.__c,Ggt=at.unmount;at.__b=function(r){ei=null,Hgt&&Hgt(r)},at.__r=function(r){jgt&&jgt(r),tg=0;var e=(ei=r.__c).__H;e&&(Moe===ei?(e.__h=[],ei.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=kW,t.__N=t.i=void 0})):(e.__h.forEach(AW),e.__h.forEach(Noe),e.__h=[])),Moe=ei},at.diffed=function(r){zgt&&zgt(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&($gt.push(e)!==1&&Ugt===at.requestAnimationFrame||((Ugt=at.requestAnimationFrame)||e$r)(XVr)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==kW&&(t.__=t.__V),t.i=void 0,t.__V=kW})),Moe=ei=null},at.__c=function(r,e){e.some(function(t){try{t.__h.forEach(AW),t.__h=t.__h.filter(function(n){return!n.__||Noe(n)})}catch(n){e.some(function(a){a.__h&&(a.__h=[])}),e=[],at.__e(n,t.__v)}}),Kgt&&Kgt(r,e)},at.unmount=function(r){Ggt&&Ggt(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{AW(n)}catch(a){e=a}}),t.__H=void 0,e&&at.__e(e,t.__v))};Vgt=typeof requestAnimationFrame=="function"});var Qgt=x(DW=>{"use strict";d();p();Object.defineProperty(DW,"__esModule",{value:!0});DW.LIB_VERSION=void 0;DW.LIB_VERSION="3.6.4"});var Xgt=x(OW=>{"use strict";d();p();Object.defineProperty(OW,"__esModule",{value:!0});OW.CloseIcon=void 0;var Zgt=(kc(),nt(Ol));function t$r(r){return(0,Zgt.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),(0,Zgt.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}OW.CloseIcon=t$r});var ebt=x(Doe=>{"use strict";d();p();Object.defineProperty(Doe,"__esModule",{value:!0});Doe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="});var tbt=x(Ooe=>{"use strict";d();p();Object.defineProperty(Ooe,"__esModule",{value:!0});Ooe.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="});var rbt=x(LW=>{"use strict";d();p();Object.defineProperty(LW,"__esModule",{value:!0});LW.QRCodeIcon=void 0;var Em=(kc(),nt(Ol));function r$r(r){return(0,Em.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,Em.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,Em.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,Em.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,Em.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,Em.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,Em.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,Em.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,Em.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,Em.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}LW.QRCodeIcon=r$r});var nbt=x(Loe=>{"use strict";d();p();Object.defineProperty(Loe,"__esModule",{value:!0});var n$r=` -`;coe.default=JVr});var pgt=_(uoe=>{"use strict";d();p();Object.defineProperty(uoe,"__esModule",{value:!0});uoe.default=` +`;Loe.default=n$r});var abt=x(qoe=>{"use strict";d();p();Object.defineProperty(qoe,"__esModule",{value:!0});qoe.default=` -`});var fgt=_(yW=>{"use strict";d();p();Object.defineProperty(yW,"__esModule",{value:!0});yW.StatusDotIcon=void 0;var hgt=(Tc(),rt(Ml));function QVr(r){return(0,hgt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,hgt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}yW.StatusDotIcon=QVr});var vgt=_((Qra,bgt)=>{d();p();function mgt(r){this.mode=md.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,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))}mgt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=_m.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=Zi.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=Zi.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=Zi.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};_m.PAD0=236;_m.PAD1=17;_m.createData=function(r,e,t){for(var n=xm.getRSBlocks(r,e),a=new ygt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(_m.PAD0,8),a.getLengthInBits()>=o*8));)a.put(_m.PAD1,8);return _m.createBytes(a,n)};_m.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var E=0,l=0;l=0;)e^=Zi.G15<=0;)e^=Zi.G18<>>=1;return e},getPatternPosition:function(r){return Zi.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case $1.PATTERN000:return(e+t)%2==0;case $1.PATTERN001:return e%2==0;case $1.PATTERN010:return t%3==0;case $1.PATTERN011:return(e+t)%3==0;case $1.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case $1.PATTERN101:return e*t%2+e*t%3==0;case $1.PATTERN110:return(e*t%2+e*t%3)%2==0;case $1.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new vT([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return Qo.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Ys=0;Ys<8;Ys++)Qo.EXP_TABLE[Ys]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var loe=[[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 ggt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[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 n(u){switch(u){case"L":return Y1.L;case"M":return Y1.M;case"Q":return Y1.Q;case"H":return Y1.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var h=i(u),f=1,m=0,y=0,E=loe.length;y<=E;y++){var I=loe[y];if(!I)throw new Error("Content too long: expected "+m+" but got "+h);switch(l){case"L":m=I[0];break;case"M":m=I[1];break;case"Q":m=I[2];break;case"H":m=I[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(h<=m)break;f++}if(f>loe.length)throw new Error("Content too long");return f}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new _m(o,c),this.qrcode.addData(s),this.qrcode.make()}ggt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r -`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,E=y?a+''+i:"",I=a+''+i,S="",L="",F=0;F'+i:S+=a+''+i}}h&&(S=a+'');let T="";if(this.options.image!==void 0&&this.options.image.svg){let A=s*this.options.image.width/100,v=o*this.options.image.height/100,k=s/2-A/2,O=o/2-v/2;T+=``,T+=this.options.image.svg+i,T+=""}var P="";switch(r.container){case"svg":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"svg-viewbox":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"g":P+=''+i,P+=E+I+S,P+=T,P+="";break;default:P+=(E+I+S+T).replace(/^\s+/,"");break}return P};bgt.exports=ggt});var xgt=_(wT=>{"use strict";d();p();var ZVr=wT&&wT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(wT,"__esModule",{value:!0});wT.QRCode=void 0;var XVr=(Tc(),rt(Ml)),wgt=(G1(),rt(bT)),eGr=ZVr(vgt()),tGr=r=>{let[e,t]=(0,wgt.useState)("");return(0,wgt.useEffect)(()=>{var n,a;let i=new eGr.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=b.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,XVr.h)("img",{src:e,alt:"QR Code"}):null};wT.QRCode=tGr});var _gt=_(doe=>{"use strict";d();p();Object.defineProperty(doe,"__esModule",{value:!0});doe.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 Tgt=_(xT=>{"use strict";d();p();var rGr=xT&&xT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xT,"__esModule",{value:!0});xT.Spinner=void 0;var gW=(Tc(),rt(Ml)),nGr=rGr(_gt()),aGr=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,gW.h)("div",{class:"-cbwsdk-spinner"},(0,gW.h)("style",null,nGr.default),(0,gW.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,gW.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};xT.Spinner=aGr});var Egt=_(poe=>{"use strict";d();p();Object.defineProperty(poe,"__esModule",{value:!0});poe.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}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-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 Rgt=_(Np=>{"use strict";d();p();var _T=Np&&Np.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Np,"__esModule",{value:!0});Np.CoinbaseAppSteps=Np.CoinbaseWalletSteps=Np.ConnectItem=Np.ConnectContent=void 0;var Mp=_T(xk()),rr=(Tc(),rt(Ml)),Cgt=(G1(),rt(bT)),iGr=z0(),sGr=igt(),oGr=ogt(),cGr=_T(cgt()),uGr=_T(ugt()),kgt=lgt(),lGr=_T(dgt()),dGr=_T(pgt()),pGr=fgt(),hGr=xgt(),fGr=Tgt(),mGr=_T(Egt()),Igt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:uGr.default,steps:Sgt},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:cGr.default,steps:Pgt}},yGr=r=>{switch(r){case"coinbase-app":return lGr.default;case"coinbase-wallet-app":default:return dGr.default}},hoe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function gGr(r){let{theme:e}=r,[t,n]=(0,Cgt.useState)("coinbase-wallet-app"),a=(0,Cgt.useCallback)(u=>{n(u)},[]),i=(0,iGr.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=Igt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,rr.h)("div",{"data-testid":"connect-content",class:(0,Mp.default)("-cbwsdk-connect-content",e)},(0,rr.h)("style",null,mGr.default),(0,rr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,rr.h)("h2",{class:(0,Mp.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,rr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,rr.h)(oGr.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,rr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,rr.h)("div",null,Object.entries(Igt).map(([u,l])=>(0,rr.h)(Agt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,rr.h)("div",{class:(0,Mp.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,rr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,rr.h)(hGr.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:yGr(t),width:25,height:25}}),(0,rr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:sGr.LIB_VERSION}),(0,rr.h)("input",{type:"hidden",value:i})),(0,rr.h)(o,{theme:e}),!r.isConnected&&(0,rr.h)("div",{"data-testid":"connecting-spinner",class:(0,Mp.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,rr.h)(fGr.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,rr.h)("p",null,"Connecting...")))))}Np.ConnectContent=gGr;function Agt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,rr.h)("div",{onClick:i,class:(0,Mp.default)("-cbwsdk-connect-item",a,{selected:n})},(0,rr.h)("div",null,(0,rr.h)("img",{src:t,alt:r})),(0,rr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,rr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,rr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Np.ConnectItem=Agt;function Sgt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Mp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,rr.h)("li",{class:(0,Mp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"Scan")," "),(0,rr.h)("span",{class:(0,Mp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(kgt.QRCodeIcon,{fill:hoe(r)})))))}Np.CoinbaseWalletSteps=Sgt;function Pgt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Mp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,rr.h)("li",{class:(0,Mp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"More")),(0,rr.h)("span",{class:(0,Mp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(pGr.StatusDotIcon,{fill:hoe(r)})),(0,rr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,rr.h)("strong",null,"Scan")),(0,rr.h)("span",{class:(0,Mp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(kgt.QRCodeIcon,{fill:hoe(r)})))))}Np.CoinbaseAppSteps=Pgt});var Ngt=_(bW=>{"use strict";d();p();Object.defineProperty(bW,"__esModule",{value:!0});bW.ArrowLeftIcon=void 0;var Mgt=(Tc(),rt(Ml));function bGr(r){return(0,Mgt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,Mgt.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"}))}bW.ArrowLeftIcon=bGr});var Bgt=_(vW=>{"use strict";d();p();Object.defineProperty(vW,"__esModule",{value:!0});vW.LaptopIcon=void 0;var foe=(Tc(),rt(Ml));function vGr(r){return(0,foe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,foe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,foe.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"}))}vW.LaptopIcon=vGr});var Ogt=_(wW=>{"use strict";d();p();Object.defineProperty(wW,"__esModule",{value:!0});wW.SafeIcon=void 0;var Dgt=(Tc(),rt(Ml));function wGr(r){return(0,Dgt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,Dgt.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"}))}wW.SafeIcon=wGr});var Lgt=_(moe=>{"use strict";d();p();Object.defineProperty(moe,"__esModule",{value:!0});moe.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 Fgt=_(TT=>{"use strict";d();p();var qgt=TT&&TT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(TT,"__esModule",{value:!0});TT.TryExtensionContent=void 0;var A2=qgt(xk()),Js=(Tc(),rt(Ml)),yoe=(G1(),rt(bT)),xGr=Ngt(),_Gr=Bgt(),TGr=Ogt(),EGr=qgt(Lgt());function CGr({theme:r}){let[e,t]=(0,yoe.useState)(!1),n=(0,yoe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,yoe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,Js.h)("div",{class:(0,A2.default)("-cbwsdk-try-extension",r)},(0,Js.h)("style",null,EGr.default),(0,Js.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Js.h)("h3",{class:(0,A2.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,Js.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Js.h)("button",{class:(0,A2.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,Js.h)("div",null,!e&&(0,Js.h)(xGr.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,Js.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Js.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Js.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Js.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Js.h)("span",{class:(0,A2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Js.h)(_Gr.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Js.h)("div",{class:(0,A2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,Js.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Js.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Js.h)("span",{class:(0,A2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Js.h)(TGr.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Js.h)("div",{class:(0,A2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}TT.TryExtensionContent=CGr});var Wgt=_(goe=>{"use strict";d();p();Object.defineProperty(goe,"__esModule",{value:!0});goe.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 Hgt=_(ET=>{"use strict";d();p();var Ugt=ET&&ET.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ET,"__esModule",{value:!0});ET.ConnectDialog=void 0;var boe=Ugt(xk()),S2=(Tc(),rt(Ml)),voe=(G1(),rt(bT)),IGr=Rgt(),kGr=Fgt(),AGr=Ugt(Wgt()),SGr=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,voe.useState)(!e),[i,s]=(0,voe.useState)(!e);(0,voe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,S2.h)("div",{class:(0,boe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,S2.h)("style",null,AGr.default),(0,S2.h)("div",{class:(0,boe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,S2.h)("div",{class:"-cbwsdk-connect-dialog"},(0,S2.h)("div",{class:(0,boe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,S2.h)(IGr.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,S2.h)(kGr.TryExtensionContent,{theme:o}))))};ET.ConnectDialog=SGr});var zgt=_(xW=>{"use strict";d();p();Object.defineProperty(xW,"__esModule",{value:!0});xW.LinkFlow=void 0;var woe=(Tc(),rt(Ml)),jgt=wk(),PGr=Hgt(),xoe=class{constructor(e){this.extensionUI$=new jgt.BehaviorSubject({}),this.subscriptions=new jgt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,woe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,woe.render)((0,woe.h)(PGr.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};xW.LinkFlow=xoe});var Kgt=_(_oe=>{"use strict";d();p();Object.defineProperty(_oe,"__esModule",{value:!0});_oe.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}"});var Ggt=_(Bp=>{"use strict";d();p();var Vgt=Bp&&Bp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Bp,"__esModule",{value:!0});Bp.SnackbarInstance=Bp.SnackbarContainer=Bp.Snackbar=void 0;var _W=Vgt(xk()),Qs=(Tc(),rt(Ml)),Toe=(G1(),rt(bT)),RGr=Vgt(Kgt()),MGr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function NGr(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var Eoe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,Qs.render)((0,Qs.h)("div",null,(0,Qs.h)(Bp.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,Qs.h)(Bp.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Bp.Snackbar=Eoe;var BGr=r=>(0,Qs.h)("div",{class:(0,_W.default)("-cbwsdk-snackbar-container")},(0,Qs.h)("style",null,RGr.default),(0,Qs.h)("div",{class:"-cbwsdk-snackbar"},r.children));Bp.SnackbarContainer=BGr;var DGr=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,Toe.useState)(!0),[s,o]=(0,Toe.useState)(r??!1);(0,Toe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,Qs.h)("div",{class:(0,_W.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,Qs.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,Qs.h)("img",{src:NGr(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,Qs.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,Qs.h)("div",{class:"-gear-container"},!s&&(0,Qs.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Qs.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,Qs.h)("img",{src:MGr,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,Qs.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,Qs.h)("div",{class:(0,_W.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,Qs.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Qs.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,Qs.h)("span",{class:(0,_W.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};Bp.SnackbarInstance=DGr});var $gt=_(Coe=>{"use strict";d();p();Object.defineProperty(Coe,"__esModule",{value:!0});Coe.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 Ygt=_(CT=>{"use strict";d();p();var OGr=CT&&CT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(CT,"__esModule",{value:!0});CT.injectCssReset=void 0;var LGr=OGr($gt());function qGr(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(LGr.default)),document.documentElement.appendChild(r)}CT.injectCssReset=qGr});var Jgt=_(TW=>{"use strict";d();p();Object.defineProperty(TW,"__esModule",{value:!0});TW.WalletSDKUI=void 0;var FGr=zgt(),WGr=Ggt(),UGr=Ygt(),Ioe=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new WGr.Snackbar({darkMode:e.darkMode}),this.linkFlow=new FGr.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,UGr.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,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:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,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:e.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:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};TW.WalletSDKUI=Ioe});var Zgt=_(EW=>{"use strict";d();p();Object.defineProperty(EW,"__esModule",{value:!0});var IT;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(IT||(IT={}));function Qgt(r,e,t){if(!t||typeof t.value!==IT.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:IT.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:IT.boolTrue,writable:IT.boolTrue}),n}}}EW.bind=Qgt;EW.default=Qgt});var Aoe=_(Ek=>{"use strict";d();p();var HGr=Ek&&Ek.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ek,"__esModule",{value:!0});var koe=Qi();function jGr(r){return function(t){return t.lift(new zGr(r))}}Ek.audit=jGr;var zGr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new KGr(e,this.durationSelector))},r}(),KGr=function(r){HGr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=koe.innerSubscribe(n,new koe.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(koe.SimpleOuterSubscriber)});var Xgt=_(Soe=>{"use strict";d();p();Object.defineProperty(Soe,"__esModule",{value:!0});var VGr=Yu(),GGr=Aoe(),$Gr=Xse();function YGr(r,e){return e===void 0&&(e=VGr.async),GGr.audit(function(){return $Gr.timer(r,e)})}Soe.auditTime=YGr});var ebt=_(Ck=>{"use strict";d();p();var JGr=Ck&&Ck.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ck,"__esModule",{value:!0});var Poe=Qi();function QGr(r){return function(t){return t.lift(new ZGr(r))}}Ck.buffer=QGr;var ZGr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new XGr(e,this.closingNotifier))},r}(),XGr=function(r){JGr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(Poe.innerSubscribe(n,new Poe.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(Poe.SimpleOuterSubscriber)});var nbt=_(Ik=>{"use strict";d();p();var tbt=Ik&&Ik.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ik,"__esModule",{value:!0});var rbt=tr();function e$r(r,e){return e===void 0&&(e=null),function(n){return n.lift(new t$r(r,e))}}Ik.bufferCount=e$r;var t$r=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=r$r:this.subscriberClass=n$r}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),r$r=function(r){tbt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}(rbt.Subscriber),n$r=function(r){tbt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}(rbt.Subscriber)});var sbt=_(kk=>{"use strict";d();p();var a$r=kk&&kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kk,"__esModule",{value:!0});var i$r=Yu(),s$r=tr(),o$r=Jh();function c$r(r){var e=arguments.length,t=i$r.async;o$r.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new u$r(r,n,a,t))}}kk.bufferTime=c$r;var u$r=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new d$r(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),l$r=function(){function r(){this.buffer=[]}return r}(),d$r=function(r){a$r(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(abt,n,u))}else{var l={subscriber:o,context:c},h={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(ibt,n,l)),o.add(s.schedule(p$r,a,h))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(abt,a,i))}},e.prototype.openContext=function(){var t=new l$r;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(s$r.Subscriber);function abt(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function p$r(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(ibt,t,{subscriber:n,context:i})),s.schedule(r,e))}function ibt(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var cbt=_(Ak=>{"use strict";d();p();var h$r=Ak&&Ak.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ak,"__esModule",{value:!0});var f$r=wo(),obt=z1(),m$r=j1();function y$r(r,e){return function(n){return n.lift(new g$r(r,e))}}Ak.bufferToggle=y$r;var g$r=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new b$r(e,this.openings,this.closingSelector))},r}(),b$r=function(r){h$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(obt.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new f$r.Subscription,s={buffer:a,subscription:i};n.push(s);var o=obt.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(m$r.OuterSubscriber)});var ubt=_(Sk=>{"use strict";d();p();var v$r=Sk&&Sk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Sk,"__esModule",{value:!0});var w$r=wo(),Roe=Qi();function x$r(r){return function(e){return e.lift(new _$r(r))}}Sk.bufferWhen=x$r;var _$r=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new T$r(e,this.closingSelector))},r}(),T$r=function(r){v$r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new w$r.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Roe.innerSubscribe(a,new Roe.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(Roe.SimpleOuterSubscriber)});var lbt=_(Pk=>{"use strict";d();p();var E$r=Pk&&Pk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Pk,"__esModule",{value:!0});var Moe=Qi();function C$r(r){return function(t){var n=new I$r(r),a=t.lift(n);return n.caught=a}}Pk.catchError=C$r;var I$r=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new k$r(e,this.selector,this.caught))},r}(),k$r=function(r){E$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new Moe.SimpleInnerSubscriber(this);this.add(a);var i=Moe.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(Moe.SimpleOuterSubscriber)});var dbt=_(Noe=>{"use strict";d();p();Object.defineProperty(Noe,"__esModule",{value:!0});var A$r=YF();function S$r(r){return function(e){return e.lift(new A$r.CombineLatestOperator(r))}}Noe.combineAll=S$r});var pbt=_(Boe=>{"use strict";d();p();Object.defineProperty(Boe,"__esModule",{value:!0});var P$r=$u(),R$r=YF(),M$r=Qh();function N$r(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Doe,"__esModule",{value:!0});var B$r=yk();function D$r(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Ooe,"__esModule",{value:!0});var O$r=mk();function L$r(r,e){return O$r.mergeMap(r,e,1)}Ooe.concatMap=L$r});var fbt=_(qoe=>{"use strict";d();p();Object.defineProperty(qoe,"__esModule",{value:!0});var q$r=Loe();function F$r(r,e){return q$r.concatMap(function(){return r},e)}qoe.concatMapTo=F$r});var mbt=_(Rk=>{"use strict";d();p();var W$r=Rk&&Rk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Rk,"__esModule",{value:!0});var U$r=tr();function H$r(r){return function(e){return e.lift(new j$r(r,e))}}Rk.count=H$r;var j$r=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new z$r(e,this.predicate,this.source))},r}(),z$r=function(r){W$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(U$r.Subscriber)});var ybt=_(Mk=>{"use strict";d();p();var K$r=Mk&&Mk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Mk,"__esModule",{value:!0});var Foe=Qi();function V$r(r){return function(e){return e.lift(new G$r(r))}}Mk.debounce=V$r;var G$r=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new $$r(e,this.durationSelector))},r}(),$$r=function(r){K$r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=Foe.innerSubscribe(n,new Foe.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(Foe.SimpleOuterSubscriber)});var gbt=_(Nk=>{"use strict";d();p();var Y$r=Nk&&Nk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Nk,"__esModule",{value:!0});var J$r=tr(),Q$r=Yu();function Z$r(r,e){return e===void 0&&(e=Q$r.async),function(t){return t.lift(new X$r(r,e))}}Nk.debounceTime=Z$r;var X$r=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new eYr(e,this.dueTime,this.scheduler))},r}(),eYr=function(r){Y$r(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(tYr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(J$r.Subscriber);function tYr(r){r.debouncedNext()}});var kT=_(Bk=>{"use strict";d();p();var rYr=Bk&&Bk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Bk,"__esModule",{value:!0});var nYr=tr();function aYr(r){return r===void 0&&(r=null),function(e){return e.lift(new iYr(r))}}Bk.defaultIfEmpty=aYr;var iYr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new sYr(e,this.defaultValue))},r}(),sYr=function(r){rYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(nYr.Subscriber)});var Uoe=_(Woe=>{"use strict";d();p();Object.defineProperty(Woe,"__esModule",{value:!0});function oYr(r){return r instanceof Date&&!isNaN(+r)}Woe.isDate=oYr});var vbt=_(Dk=>{"use strict";d();p();var cYr=Dk&&Dk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Dk,"__esModule",{value:!0});var uYr=Yu(),lYr=Uoe(),dYr=tr(),bbt=tk();function pYr(r,e){e===void 0&&(e=uYr.async);var t=lYr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new hYr(n,e))}}Dk.delay=pYr;var hYr=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new fYr(e,this.delay,this.scheduler))},r}(),fYr=function(r){cYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new mYr(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(bbt.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(bbt.Notification.createComplete()),this.unsubscribe()},e}(dYr.Subscriber),mYr=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var xbt=_(Ok=>{"use strict";d();p();var Hoe=Ok&&Ok.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Ok,"__esModule",{value:!0});var yYr=tr(),gYr=nn(),bYr=j1(),vYr=z1();function wYr(r,e){return e?function(t){return new _Yr(t,e).lift(new wbt(r))}:function(t){return t.lift(new wbt(r))}}Ok.delayWhen=wYr;var wbt=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new xYr(e,this.delayDurationSelector))},r}(),xYr=function(r){Hoe(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=vYr.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(bYr.OuterSubscriber),_Yr=function(r){Hoe(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new TYr(t,this.source))},e}(gYr.Observable),TYr=function(r){Hoe(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(yYr.Subscriber)});var _bt=_(Lk=>{"use strict";d();p();var EYr=Lk&&Lk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Lk,"__esModule",{value:!0});var CYr=tr();function IYr(){return function(e){return e.lift(new kYr)}}Lk.dematerialize=IYr;var kYr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new AYr(e))},r}(),AYr=function(r){EYr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(CYr.Subscriber)});var Ebt=_(AT=>{"use strict";d();p();var SYr=AT&&AT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AT,"__esModule",{value:!0});var joe=Qi();function PYr(r,e){return function(t){return t.lift(new RYr(r,e))}}AT.distinct=PYr;var RYr=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new Tbt(e,this.keySelector,this.flushes))},r}(),Tbt=function(r){SYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(joe.innerSubscribe(a,new joe.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(joe.SimpleOuterSubscriber);AT.DistinctSubscriber=Tbt});var zoe=_(qk=>{"use strict";d();p();var MYr=qk&&qk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qk,"__esModule",{value:!0});var NYr=tr();function BYr(r,e){return function(t){return t.lift(new DYr(r,e))}}qk.distinctUntilChanged=BYr;var DYr=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new OYr(e,this.compare,this.keySelector))},r}(),OYr=function(r){MYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(NYr.Subscriber)});var Cbt=_(Koe=>{"use strict";d();p();Object.defineProperty(Koe,"__esModule",{value:!0});var LYr=zoe();function qYr(r,e){return LYr.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}Koe.distinctUntilKeyChanged=qYr});var Wk=_(Fk=>{"use strict";d();p();var FYr=Fk&&Fk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Fk,"__esModule",{value:!0});var WYr=dT(),UYr=tr();function HYr(r){return r===void 0&&(r=KYr),function(e){return e.lift(new jYr(r))}}Fk.throwIfEmpty=HYr;var jYr=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new zYr(e,this.errorFactory))},r}(),zYr=function(r){FYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}(UYr.Subscriber);function KYr(){return new WYr.EmptyError}});var CW=_(Uk=>{"use strict";d();p();var VYr=Uk&&Uk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Uk,"__esModule",{value:!0});var GYr=tr(),$Yr=lT(),YYr=Yh();function JYr(r){return function(e){return r===0?YYr.empty():e.lift(new QYr(r))}}Uk.take=JYr;var QYr=function(){function r(e){if(this.total=e,this.total<0)throw new $Yr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new ZYr(e,this.total))},r}(),ZYr=function(r){VYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(GYr.Subscriber)});var kbt=_(Voe=>{"use strict";d();p();Object.defineProperty(Voe,"__esModule",{value:!0});var Ibt=lT(),XYr=T2(),eJr=Wk(),tJr=kT(),rJr=CW();function nJr(r,e){if(r<0)throw new Ibt.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(XYr.filter(function(a,i){return i===r}),rJr.take(1),t?tJr.defaultIfEmpty(e):eJr.throwIfEmpty(function(){return new Ibt.ArgumentOutOfRangeError}))}}Voe.elementAt=nJr});var Abt=_(Goe=>{"use strict";d();p();Object.defineProperty(Goe,"__esModule",{value:!0});var aJr=yk(),iJr=XI();function sJr(){for(var r=[],e=0;e{"use strict";d();p();var oJr=Hk&&Hk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Hk,"__esModule",{value:!0});var cJr=tr();function uJr(r,e){return function(t){return t.lift(new lJr(r,e,t))}}Hk.every=uJr;var lJr=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new dJr(e,this.predicate,this.thisArg,this.source))},r}(),dJr=function(r){oJr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(cJr.Subscriber)});var Pbt=_(jk=>{"use strict";d();p();var pJr=jk&&jk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jk,"__esModule",{value:!0});var $oe=Qi();function hJr(){return function(r){return r.lift(new fJr)}}jk.exhaust=hJr;var fJr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new mJr(e))},r}(),mJr=function(r){pJr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add($oe.innerSubscribe(t,new $oe.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}($oe.SimpleOuterSubscriber)});var Mbt=_(zk=>{"use strict";d();p();var yJr=zk&&zk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zk,"__esModule",{value:!0});var gJr=fd(),bJr=Qh(),Yoe=Qi();function Rbt(r,e){return e?function(t){return t.pipe(Rbt(function(n,a){return bJr.from(r(n,a)).pipe(gJr.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new vJr(r))}}zk.exhaustMap=Rbt;var vJr=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new wJr(e,this.project))},r}(),wJr=function(r){yJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new Yoe.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=Yoe.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Yoe.SimpleOuterSubscriber)});var Dbt=_(P2=>{"use strict";d();p();var xJr=P2&&P2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(P2,"__esModule",{value:!0});var Joe=Qi();function _Jr(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new Nbt(r,e,t))}}P2.expand=_Jr;var Nbt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new Bbt(e,this.project,this.concurrent,this.scheduler))},r}();P2.ExpandOperator=Nbt;var Bbt=function(r){xJr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(Joe.SimpleOuterSubscriber);P2.ExpandSubscriber=Bbt});var Obt=_(Kk=>{"use strict";d();p();var TJr=Kk&&Kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kk,"__esModule",{value:!0});var EJr=tr(),CJr=wo();function IJr(r){return function(e){return e.lift(new kJr(r))}}Kk.finalize=IJr;var kJr=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new AJr(e,this.callback))},r}(),AJr=function(r){TJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new CJr.Subscription(n)),a}return e}(EJr.Subscriber)});var Qoe=_(R2=>{"use strict";d();p();var SJr=R2&&R2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(R2,"__esModule",{value:!0});var PJr=tr();function RJr(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Lbt(r,t,!1,e))}}R2.find=RJr;var Lbt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new qbt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();R2.FindValueOperator=Lbt;var qbt=function(r){SJr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(PJr.Subscriber);R2.FindValueSubscriber=qbt});var Fbt=_(Zoe=>{"use strict";d();p();Object.defineProperty(Zoe,"__esModule",{value:!0});var MJr=Qoe();function NJr(r,e){return function(t){return t.lift(new MJr.FindValueOperator(r,t,!0,e))}}Zoe.findIndex=NJr});var Wbt=_(Xoe=>{"use strict";d();p();Object.defineProperty(Xoe,"__esModule",{value:!0});var BJr=dT(),DJr=T2(),OJr=CW(),LJr=kT(),qJr=Wk(),FJr=U1();function WJr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?DJr.filter(function(a,i){return r(a,i,n)}):FJr.identity,OJr.take(1),t?LJr.defaultIfEmpty(e):qJr.throwIfEmpty(function(){return new BJr.EmptyError}))}}Xoe.first=WJr});var Ubt=_(Vk=>{"use strict";d();p();var UJr=Vk&&Vk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vk,"__esModule",{value:!0});var HJr=tr();function jJr(){return function(e){return e.lift(new zJr)}}Vk.ignoreElements=jJr;var zJr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new KJr(e))},r}(),KJr=function(r){UJr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(HJr.Subscriber)});var Hbt=_(Gk=>{"use strict";d();p();var VJr=Gk&&Gk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gk,"__esModule",{value:!0});var GJr=tr();function $Jr(){return function(r){return r.lift(new YJr)}}Gk.isEmpty=$Jr;var YJr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new JJr(e))},r}(),JJr=function(r){VJr(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(GJr.Subscriber)});var IW=_($k=>{"use strict";d();p();var QJr=$k&&$k.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($k,"__esModule",{value:!0});var ZJr=tr(),XJr=lT(),eQr=Yh();function tQr(r){return function(t){return r===0?eQr.empty():t.lift(new rQr(r))}}$k.takeLast=tQr;var rQr=function(){function r(e){if(this.total=e,this.total<0)throw new XJr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new nQr(e,this.total))},r}(),nQr=function(r){QJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";d();p();Object.defineProperty(ece,"__esModule",{value:!0});var aQr=dT(),iQr=T2(),sQr=IW(),oQr=Wk(),cQr=kT(),uQr=U1();function lQr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?iQr.filter(function(a,i){return r(a,i,n)}):uQr.identity,sQr.takeLast(1),t?cQr.defaultIfEmpty(e):oQr.throwIfEmpty(function(){return new aQr.EmptyError}))}}ece.last=lQr});var zbt=_(Yk=>{"use strict";d();p();var dQr=Yk&&Yk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yk,"__esModule",{value:!0});var pQr=tr();function hQr(r){return function(e){return e.lift(new fQr(r))}}Yk.mapTo=hQr;var fQr=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new mQr(e,this.value))},r}(),mQr=function(r){dQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(pQr.Subscriber)});var Kbt=_(Jk=>{"use strict";d();p();var yQr=Jk&&Jk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jk,"__esModule",{value:!0});var gQr=tr(),tce=tk();function bQr(){return function(e){return e.lift(new vQr)}}Jk.materialize=bQr;var vQr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new wQr(e))},r}(),wQr=function(r){yQr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(tce.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(tce.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(tce.Notification.createComplete()),t.complete()},e}(gQr.Subscriber)});var kW=_(Qk=>{"use strict";d();p();var xQr=Qk&&Qk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qk,"__esModule",{value:!0});var _Qr=tr();function TQr(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new EQr(r,e,t))}}Qk.scan=TQr;var EQr=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new CQr(e,this.accumulator,this.seed,this.hasSeed))},r}(),CQr=function(r){xQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(_Qr.Subscriber)});var Zk=_(rce=>{"use strict";d();p();Object.defineProperty(rce,"__esModule",{value:!0});var Vbt=kW(),Gbt=IW(),IQr=kT(),$bt=FF();function kQr(r,e){return arguments.length>=2?function(n){return $bt.pipe(Vbt.scan(r,e),Gbt.takeLast(1),IQr.defaultIfEmpty(e))(n)}:function(n){return $bt.pipe(Vbt.scan(function(a,i,s){return r(a,i,s+1)}),Gbt.takeLast(1))(n)}}rce.reduce=kQr});var Ybt=_(nce=>{"use strict";d();p();Object.defineProperty(nce,"__esModule",{value:!0});var AQr=Zk();function SQr(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return AQr.reduce(e)}nce.max=SQr});var Jbt=_(ace=>{"use strict";d();p();Object.defineProperty(ace,"__esModule",{value:!0});var PQr=zse();function RQr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(ice,"__esModule",{value:!0});var Qbt=mk();function MQr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?Qbt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),Qbt.mergeMap(function(){return r},t))}ice.mergeMapTo=MQr});var tvt=_(M2=>{"use strict";d();p();var NQr=M2&&M2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(M2,"__esModule",{value:!0});var sce=Qi();function BQr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new Xbt(r,e,t))}}M2.mergeScan=BQr;var Xbt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new evt(e,this.accumulator,this.seed,this.concurrent))},r}();M2.MergeScanOperator=Xbt;var evt=function(r){NQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(sce.SimpleOuterSubscriber);M2.MergeScanSubscriber=evt});var rvt=_(oce=>{"use strict";d();p();Object.defineProperty(oce,"__esModule",{value:!0});var DQr=Zk();function OQr(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";d();p();Object.defineProperty(AW,"__esModule",{value:!0});var LQr=Uie();function qQr(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new nvt(a,e));var i=Object.create(n,LQr.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}AW.multicast=qQr;var nvt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();AW.MulticastOperator=nvt});var svt=_(ST=>{"use strict";d();p();var FQr=ST&&ST.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(ST,"__esModule",{value:!0});var WQr=Qh(),avt=$u(),cce=Qi();function UQr(){for(var r=[],e=0;e{"use strict";d();p();var zQr=Xk&&Xk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xk,"__esModule",{value:!0});var KQr=tr();function VQr(){return function(r){return r.lift(new GQr)}}Xk.pairwise=VQr;var GQr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new $Qr(e))},r}(),$Qr=function(r){zQr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(KQr.Subscriber)});var uvt=_(uce=>{"use strict";d();p();Object.defineProperty(uce,"__esModule",{value:!0});var YQr=Yse(),cvt=T2();function JQr(r,e){return function(t){return[cvt.filter(r,e)(t),cvt.filter(YQr.not(r,e))(t)]}}uce.partition=JQr});var lvt=_(lce=>{"use strict";d();p();Object.defineProperty(lce,"__esModule",{value:!0});var QQr=fd();function ZQr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(dce,"__esModule",{value:!0});var dvt=Tu(),pvt=N2();function eZr(r){return r?pvt.multicast(function(){return new dvt.Subject},r):pvt.multicast(new dvt.Subject)}dce.publish=eZr});var fvt=_(pce=>{"use strict";d();p();Object.defineProperty(pce,"__esModule",{value:!0});var tZr=zie(),rZr=N2();function nZr(r){return function(e){return rZr.multicast(new tZr.BehaviorSubject(r))(e)}}pce.publishBehavior=nZr});var mvt=_(hce=>{"use strict";d();p();Object.defineProperty(hce,"__esModule",{value:!0});var aZr=ak(),iZr=N2();function sZr(){return function(r){return iZr.multicast(new aZr.AsyncSubject)(r)}}hce.publishLast=sZr});var yvt=_(fce=>{"use strict";d();p();Object.defineProperty(fce,"__esModule",{value:!0});var oZr=KF(),cZr=N2();function uZr(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new oZr.ReplaySubject(r,e,n);return function(s){return cZr.multicast(function(){return i},a)(s)}}fce.publishReplay=uZr});var gvt=_(mce=>{"use strict";d();p();Object.defineProperty(mce,"__esModule",{value:!0});var lZr=$u(),dZr=Qse();function pZr(){for(var r=[],e=0;e{"use strict";d();p();var hZr=eA&&eA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(eA,"__esModule",{value:!0});var fZr=tr(),mZr=Yh();function yZr(r){return r===void 0&&(r=-1),function(e){return r===0?mZr.empty():r<0?e.lift(new bvt(-1,e)):e.lift(new bvt(r-1,e))}}eA.repeat=yZr;var bvt=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new gZr(e,this.count,this.source))},r}(),gZr=function(r){hZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(fZr.Subscriber)});var wvt=_(tA=>{"use strict";d();p();var bZr=tA&&tA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tA,"__esModule",{value:!0});var vZr=Tu(),yce=Qi();function wZr(r){return function(e){return e.lift(new xZr(r))}}tA.repeatWhen=wZr;var xZr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new _Zr(e,this.notifier,t))},r}(),_Zr=function(r){bZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new vZr.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=yce.innerSubscribe(t,new yce.SimpleInnerSubscriber(this))},e}(yce.SimpleOuterSubscriber)});var xvt=_(rA=>{"use strict";d();p();var TZr=rA&&rA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rA,"__esModule",{value:!0});var EZr=tr();function CZr(r){return r===void 0&&(r=-1),function(e){return e.lift(new IZr(r,e))}}rA.retry=CZr;var IZr=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new kZr(e,this.count,this.source))},r}(),kZr=function(r){TZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(EZr.Subscriber)});var _vt=_(nA=>{"use strict";d();p();var AZr=nA&&nA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nA,"__esModule",{value:!0});var SZr=Tu(),gce=Qi();function PZr(r){return function(e){return e.lift(new RZr(r,e))}}nA.retryWhen=PZr;var RZr=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new MZr(e,this.notifier,this.source))},r}(),MZr=function(r){AZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new SZr.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=gce.innerSubscribe(a,new gce.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(gce.SimpleOuterSubscriber)});var Tvt=_(aA=>{"use strict";d();p();var NZr=aA&&aA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aA,"__esModule",{value:!0});var bce=Qi();function BZr(r){return function(e){return e.lift(new DZr(r))}}aA.sample=BZr;var DZr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new OZr(e),a=t.subscribe(n);return a.add(bce.innerSubscribe(this.notifier,new bce.SimpleInnerSubscriber(n))),a},r}(),OZr=function(r){NZr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(bce.SimpleOuterSubscriber)});var Evt=_(iA=>{"use strict";d();p();var LZr=iA&&iA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(iA,"__esModule",{value:!0});var qZr=tr(),FZr=Yu();function WZr(r,e){return e===void 0&&(e=FZr.async),function(t){return t.lift(new UZr(r,e))}}iA.sampleTime=WZr;var UZr=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new HZr(e,this.period,this.scheduler))},r}(),HZr=function(r){LZr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(jZr,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(qZr.Subscriber);function jZr(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var Svt=_(B2=>{"use strict";d();p();var Cvt=B2&&B2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(B2,"__esModule",{value:!0});var Ivt=tr();function zZr(r,e){return function(t){return t.lift(new kvt(r,e))}}B2.sequenceEqual=zZr;var kvt=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new Avt(e,this.compareTo,this.comparator))},r}();B2.SequenceEqualOperator=kvt;var Avt=function(r){Cvt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new KZr(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(Ivt.Subscriber);B2.SequenceEqualSubscriber=Avt;var KZr=function(r){Cvt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(Ivt.Subscriber)});var Pvt=_(vce=>{"use strict";d();p();Object.defineProperty(vce,"__esModule",{value:!0});var VZr=N2(),GZr=UF(),$Zr=Tu();function YZr(){return new $Zr.Subject}function JZr(){return function(r){return GZr.refCount()(VZr.multicast(YZr)(r))}}vce.share=JZr});var Rvt=_(wce=>{"use strict";d();p();Object.defineProperty(wce,"__esModule",{value:!0});var QZr=KF();function ZZr(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(XZr(n))}}wce.shareReplay=ZZr;function XZr(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,h=!1;return function(m){c++;var y;!o||l?(l=!1,o=new QZr.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(E){o.next(E)},error:function(E){l=!0,o.error(E)},complete:function(){h=!0,u=void 0,o.complete()}}),h&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!h&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var Mvt=_(sA=>{"use strict";d();p();var eXr=sA&&sA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sA,"__esModule",{value:!0});var tXr=tr(),rXr=dT();function nXr(r){return function(e){return e.lift(new aXr(r,e))}}sA.single=nXr;var aXr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new iXr(e,this.predicate,this.source))},r}(),iXr=function(r){eXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new rXr.EmptyError)},e}(tXr.Subscriber)});var Nvt=_(oA=>{"use strict";d();p();var sXr=oA&&oA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(oA,"__esModule",{value:!0});var oXr=tr();function cXr(r){return function(e){return e.lift(new uXr(r))}}oA.skip=cXr;var uXr=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new lXr(e,this.total))},r}(),lXr=function(r){sXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(oXr.Subscriber)});var Dvt=_(cA=>{"use strict";d();p();var dXr=cA&&cA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cA,"__esModule",{value:!0});var Bvt=tr(),pXr=lT();function hXr(r){return function(e){return e.lift(new fXr(r))}}cA.skipLast=hXr;var fXr=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new pXr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new Bvt.Subscriber(e)):t.subscribe(new mXr(e,this._skipCount))},r}(),mXr=function(r){dXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";d();p();var yXr=uA&&uA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uA,"__esModule",{value:!0});var xce=Qi();function gXr(r){return function(e){return e.lift(new bXr(r))}}uA.skipUntil=gXr;var bXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new vXr(e,this.notifier))},r}(),vXr=function(r){yXr(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new xce.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=xce.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(xce.SimpleOuterSubscriber)});var Lvt=_(lA=>{"use strict";d();p();var wXr=lA&&lA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lA,"__esModule",{value:!0});var xXr=tr();function _Xr(r){return function(e){return e.lift(new TXr(r))}}lA.skipWhile=_Xr;var TXr=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new EXr(e,this.predicate))},r}(),EXr=function(r){wXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(xXr.Subscriber)});var Fvt=_(_ce=>{"use strict";d();p();Object.defineProperty(_ce,"__esModule",{value:!0});var qvt=yk(),CXr=Jh();function IXr(){for(var r=[],e=0;e{"use strict";d();p();var kXr=dA&&dA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dA,"__esModule",{value:!0});var AXr=nn(),Tce=nse(),SXr=gk(),PXr=function(r){kXr(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=Tce.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!SXr.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=Tce.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=Tce.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}(AXr.Observable);dA.SubscribeOnObservable=PXr});var Uvt=_(Ece=>{"use strict";d();p();Object.defineProperty(Ece,"__esModule",{value:!0});var RXr=Wvt();function MXr(r,e){return e===void 0&&(e=0),function(n){return n.lift(new NXr(r,e))}}Ece.subscribeOn=MXr;var NXr=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new RXr.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var SW=_(pA=>{"use strict";d();p();var BXr=pA&&pA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pA,"__esModule",{value:!0});var DXr=fd(),OXr=Qh(),Cce=Qi();function Hvt(r,e){return typeof e=="function"?function(t){return t.pipe(Hvt(function(n,a){return OXr.from(r(n,a)).pipe(DXr.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new LXr(r))}}pA.switchMap=Hvt;var LXr=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new qXr(e,this.project))},r}(),qXr=function(r){BXr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new Cce.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=Cce.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(Cce.SimpleOuterSubscriber)});var jvt=_(Ice=>{"use strict";d();p();Object.defineProperty(Ice,"__esModule",{value:!0});var FXr=SW(),WXr=U1();function UXr(){return FXr.switchMap(WXr.identity)}Ice.switchAll=UXr});var Kvt=_(kce=>{"use strict";d();p();Object.defineProperty(kce,"__esModule",{value:!0});var zvt=SW();function HXr(r,e){return e?zvt.switchMap(function(){return r},e):zvt.switchMap(function(){return r})}kce.switchMapTo=HXr});var Vvt=_(hA=>{"use strict";d();p();var jXr=hA&&hA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hA,"__esModule",{value:!0});var Ace=Qi();function zXr(r){return function(e){return e.lift(new KXr(r))}}hA.takeUntil=zXr;var KXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new VXr(e),a=Ace.innerSubscribe(this.notifier,new Ace.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),VXr=function(r){jXr(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(Ace.SimpleOuterSubscriber)});var Gvt=_(fA=>{"use strict";d();p();var GXr=fA&&fA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fA,"__esModule",{value:!0});var $Xr=tr();function YXr(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new JXr(r,e))}}fA.takeWhile=YXr;var JXr=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new QXr(e,this.predicate,this.inclusive))},r}(),QXr=function(r){GXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}($Xr.Subscriber)});var $vt=_(mA=>{"use strict";d();p();var ZXr=mA&&mA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mA,"__esModule",{value:!0});var XXr=tr(),J1=$F(),een=tT();function ten(r,e,t){return function(a){return a.lift(new ren(r,e,t))}}mA.tap=ten;var ren=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new nen(e,this.nextOrObserver,this.error,this.complete))},r}(),nen=function(r){ZXr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=J1.noop,s._tapError=J1.noop,s._tapComplete=J1.noop,s._tapError=a||J1.noop,s._tapComplete=i||J1.noop,een.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||J1.noop,s._tapError=n.error||J1.noop,s._tapComplete=n.complete||J1.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(XXr.Subscriber)});var Pce=_(D2=>{"use strict";d();p();var aen=D2&&D2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(D2,"__esModule",{value:!0});var Sce=Qi();D2.defaultThrottleConfig={leading:!0,trailing:!1};function ien(r,e){return e===void 0&&(e=D2.defaultThrottleConfig),function(t){return t.lift(new sen(r,!!e.leading,!!e.trailing))}}D2.throttle=ien;var sen=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new oen(e,this.durationSelector,this.leading,this.trailing))},r}(),oen=function(r){aen(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=Sce.innerSubscribe(n,new Sce.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(Sce.SimpleOuterSubscriber)});var Yvt=_(yA=>{"use strict";d();p();var cen=yA&&yA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yA,"__esModule",{value:!0});var uen=tr(),len=Yu(),den=Pce();function pen(r,e,t){return e===void 0&&(e=len.async),t===void 0&&(t=den.defaultThrottleConfig),function(n){return n.lift(new hen(r,e,t.leading,t.trailing))}}yA.throttleTime=pen;var hen=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new fen(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),fen=function(r){cen(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(men,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(uen.Subscriber);function men(r){var e=r.subscriber;e.clearThrottle()}});var Qvt=_(PW=>{"use strict";d();p();Object.defineProperty(PW,"__esModule",{value:!0});var yen=Yu(),gen=kW(),ben=XF(),ven=fd();function wen(r){return r===void 0&&(r=yen.async),function(e){return ben.defer(function(){return e.pipe(gen.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),ven.map(function(t){var n=t.current,a=t.last,i=t.value;return new Jvt(i,n-a)}))})}}PW.timeInterval=wen;var Jvt=function(){function r(e,t){this.value=e,this.interval=t}return r}();PW.TimeInterval=Jvt});var Mce=_(gA=>{"use strict";d();p();var xen=gA&&gA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gA,"__esModule",{value:!0});var _en=Yu(),Ten=Uoe(),Rce=Qi();function Een(r,e,t){return t===void 0&&(t=_en.async),function(n){var a=Ten.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new Cen(i,a,e,t))}}gA.timeoutWith=Een;var Cen=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Ien(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),Ien=function(r){xen(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(Rce.innerSubscribe(n,new Rce.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(Rce.SimpleOuterSubscriber)});var Zvt=_(Nce=>{"use strict";d();p();Object.defineProperty(Nce,"__esModule",{value:!0});var ken=Yu(),Aen=use(),Sen=Mce(),Pen=zF();function Ren(r,e){return e===void 0&&(e=ken.async),Sen.timeoutWith(r,Pen.throwError(new Aen.TimeoutError),e)}Nce.timeout=Ren});var e2t=_(RW=>{"use strict";d();p();Object.defineProperty(RW,"__esModule",{value:!0});var Men=Yu(),Nen=fd();function Ben(r){return r===void 0&&(r=Men.async),Nen.map(function(e){return new Xvt(e,r.now())})}RW.timestamp=Ben;var Xvt=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();RW.Timestamp=Xvt});var t2t=_(Bce=>{"use strict";d();p();Object.defineProperty(Bce,"__esModule",{value:!0});var Den=Zk();function Oen(r,e,t){return t===0?[e]:(r.push(e),r)}function Len(){return Den.reduce(Oen,[])}Bce.toArray=Len});var n2t=_(bA=>{"use strict";d();p();var qen=bA&&bA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bA,"__esModule",{value:!0});var r2t=Tu(),Dce=Qi();function Fen(r){return function(t){return t.lift(new Wen(r))}}bA.window=Fen;var Wen=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new Uen(e),a=t.subscribe(n);return a.closed||n.add(Dce.innerSubscribe(this.windowBoundaries,new Dce.SimpleInnerSubscriber(n))),a},r}(),Uen=function(r){qen(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new r2t.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new r2t.Subject;n.next(a)},e}(Dce.SimpleOuterSubscriber)});var i2t=_(vA=>{"use strict";d();p();var Hen=vA&&vA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(vA,"__esModule",{value:!0});var jen=tr(),a2t=Tu();function zen(r,e){return e===void 0&&(e=0),function(n){return n.lift(new Ken(r,e))}}vA.windowCount=zen;var Ken=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new Ven(e,this.windowSize,this.startWindowEvery))},r}(),Ven=function(r){Hen(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new a2t.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new a2t.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(jen.Subscriber)});var u2t=_(wA=>{"use strict";d();p();var o2t=wA&&wA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wA,"__esModule",{value:!0});var Gen=Tu(),$en=Yu(),Yen=tr(),s2t=gk(),Oce=Jh();function Jen(r){var e=$en.async,t=null,n=Number.POSITIVE_INFINITY;return Oce.isScheduler(arguments[3])&&(e=arguments[3]),Oce.isScheduler(arguments[2])?e=arguments[2]:s2t.isNumeric(arguments[2])&&(n=Number(arguments[2])),Oce.isScheduler(arguments[1])?e=arguments[1]:s2t.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new Qen(r,t,n,e))}}wA.windowTime=Jen;var Qen=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Xen(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),Zen=function(r){o2t(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(Gen.Subject),Xen=function(r){o2t(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(c2t,n,u)),o.add(s.schedule(ttn,a,l))}else{var h={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(etn,n,h))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new Zen;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(Yen.Subscriber);function etn(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function ttn(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(c2t,e,c),s.add(o.subscription),s.schedule(r,a)}function c2t(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var d2t=_(xA=>{"use strict";d();p();var rtn=xA&&xA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xA,"__esModule",{value:!0});var ntn=Tu(),atn=wo(),itn=j1(),l2t=z1();function stn(r,e){return function(t){return t.lift(new otn(r,e))}}xA.windowToggle=stn;var otn=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new ctn(e,this.openings,this.closingSelector))},r}(),ctn=function(r){rtn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=l2t.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";d();p();var utn=_A&&_A.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_A,"__esModule",{value:!0});var ltn=Tu(),dtn=j1(),ptn=z1();function htn(r){return function(t){return t.lift(new ftn(r))}}_A.windowWhen=htn;var ftn=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new mtn(e,this.closingSelector))},r}(),mtn=function(r){utn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new ltn.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=ptn.subscribeToResult(this,i))},e}(dtn.OuterSubscriber)});var h2t=_(TA=>{"use strict";d();p();var ytn=TA&&TA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(TA,"__esModule",{value:!0});var gtn=j1(),btn=z1();function vtn(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(gtn.OuterSubscriber)});var f2t=_(Lce=>{"use strict";d();p();Object.defineProperty(Lce,"__esModule",{value:!0});var _tn=aW();function Ttn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(qce,"__esModule",{value:!0});var Etn=aW();function Ctn(r){return function(e){return e.lift(new Etn.ZipOperator(r))}}qce.zipAll=Ctn});var MW=_(Se=>{"use strict";d();p();Object.defineProperty(Se,"__esModule",{value:!0});var Itn=Aoe();Se.audit=Itn.audit;var ktn=Xgt();Se.auditTime=ktn.auditTime;var Atn=ebt();Se.buffer=Atn.buffer;var Stn=nbt();Se.bufferCount=Stn.bufferCount;var Ptn=sbt();Se.bufferTime=Ptn.bufferTime;var Rtn=cbt();Se.bufferToggle=Rtn.bufferToggle;var Mtn=ubt();Se.bufferWhen=Mtn.bufferWhen;var Ntn=lbt();Se.catchError=Ntn.catchError;var Btn=dbt();Se.combineAll=Btn.combineAll;var Dtn=pbt();Se.combineLatest=Dtn.combineLatest;var Otn=hbt();Se.concat=Otn.concat;var Ltn=Nse();Se.concatAll=Ltn.concatAll;var qtn=Loe();Se.concatMap=qtn.concatMap;var Ftn=fbt();Se.concatMapTo=Ftn.concatMapTo;var Wtn=mbt();Se.count=Wtn.count;var Utn=ybt();Se.debounce=Utn.debounce;var Htn=gbt();Se.debounceTime=Htn.debounceTime;var jtn=kT();Se.defaultIfEmpty=jtn.defaultIfEmpty;var ztn=vbt();Se.delay=ztn.delay;var Ktn=xbt();Se.delayWhen=Ktn.delayWhen;var Vtn=_bt();Se.dematerialize=Vtn.dematerialize;var Gtn=Ebt();Se.distinct=Gtn.distinct;var $tn=zoe();Se.distinctUntilChanged=$tn.distinctUntilChanged;var Ytn=Cbt();Se.distinctUntilKeyChanged=Ytn.distinctUntilKeyChanged;var Jtn=kbt();Se.elementAt=Jtn.elementAt;var Qtn=Abt();Se.endWith=Qtn.endWith;var Ztn=Sbt();Se.every=Ztn.every;var Xtn=Pbt();Se.exhaust=Xtn.exhaust;var ern=Mbt();Se.exhaustMap=ern.exhaustMap;var trn=Dbt();Se.expand=trn.expand;var rrn=T2();Se.filter=rrn.filter;var nrn=Obt();Se.finalize=nrn.finalize;var arn=Qoe();Se.find=arn.find;var irn=Fbt();Se.findIndex=irn.findIndex;var srn=Wbt();Se.first=srn.first;var orn=jie();Se.groupBy=orn.groupBy;var crn=Ubt();Se.ignoreElements=crn.ignoreElements;var urn=Hbt();Se.isEmpty=urn.isEmpty;var lrn=jbt();Se.last=lrn.last;var drn=fd();Se.map=drn.map;var prn=zbt();Se.mapTo=prn.mapTo;var hrn=Kbt();Se.materialize=hrn.materialize;var frn=Ybt();Se.max=frn.max;var mrn=Jbt();Se.merge=mrn.merge;var yrn=ZF();Se.mergeAll=yrn.mergeAll;var y2t=mk();Se.mergeMap=y2t.mergeMap;Se.flatMap=y2t.flatMap;var grn=Zbt();Se.mergeMapTo=grn.mergeMapTo;var brn=tvt();Se.mergeScan=brn.mergeScan;var vrn=rvt();Se.min=vrn.min;var wrn=N2();Se.multicast=wrn.multicast;var xrn=rse();Se.observeOn=xrn.observeOn;var _rn=svt();Se.onErrorResumeNext=_rn.onErrorResumeNext;var Trn=ovt();Se.pairwise=Trn.pairwise;var Ern=uvt();Se.partition=Ern.partition;var Crn=lvt();Se.pluck=Crn.pluck;var Irn=hvt();Se.publish=Irn.publish;var krn=fvt();Se.publishBehavior=krn.publishBehavior;var Arn=mvt();Se.publishLast=Arn.publishLast;var Srn=yvt();Se.publishReplay=Srn.publishReplay;var Prn=gvt();Se.race=Prn.race;var Rrn=Zk();Se.reduce=Rrn.reduce;var Mrn=vvt();Se.repeat=Mrn.repeat;var Nrn=wvt();Se.repeatWhen=Nrn.repeatWhen;var Brn=xvt();Se.retry=Brn.retry;var Drn=_vt();Se.retryWhen=Drn.retryWhen;var Orn=UF();Se.refCount=Orn.refCount;var Lrn=Tvt();Se.sample=Lrn.sample;var qrn=Evt();Se.sampleTime=qrn.sampleTime;var Frn=kW();Se.scan=Frn.scan;var Wrn=Svt();Se.sequenceEqual=Wrn.sequenceEqual;var Urn=Pvt();Se.share=Urn.share;var Hrn=Rvt();Se.shareReplay=Hrn.shareReplay;var jrn=Mvt();Se.single=jrn.single;var zrn=Nvt();Se.skip=zrn.skip;var Krn=Dvt();Se.skipLast=Krn.skipLast;var Vrn=Ovt();Se.skipUntil=Vrn.skipUntil;var Grn=Lvt();Se.skipWhile=Grn.skipWhile;var $rn=Fvt();Se.startWith=$rn.startWith;var Yrn=Uvt();Se.subscribeOn=Yrn.subscribeOn;var Jrn=jvt();Se.switchAll=Jrn.switchAll;var Qrn=SW();Se.switchMap=Qrn.switchMap;var Zrn=Kvt();Se.switchMapTo=Zrn.switchMapTo;var Xrn=CW();Se.take=Xrn.take;var enn=IW();Se.takeLast=enn.takeLast;var tnn=Vvt();Se.takeUntil=tnn.takeUntil;var rnn=Gvt();Se.takeWhile=rnn.takeWhile;var nnn=$vt();Se.tap=nnn.tap;var ann=Pce();Se.throttle=ann.throttle;var inn=Yvt();Se.throttleTime=inn.throttleTime;var snn=Wk();Se.throwIfEmpty=snn.throwIfEmpty;var onn=Qvt();Se.timeInterval=onn.timeInterval;var cnn=Zvt();Se.timeout=cnn.timeout;var unn=Mce();Se.timeoutWith=unn.timeoutWith;var lnn=e2t();Se.timestamp=lnn.timestamp;var dnn=t2t();Se.toArray=dnn.toArray;var pnn=n2t();Se.window=pnn.window;var hnn=i2t();Se.windowCount=hnn.windowCount;var fnn=u2t();Se.windowTime=fnn.windowTime;var mnn=d2t();Se.windowToggle=mnn.windowToggle;var ynn=p2t();Se.windowWhen=ynn.windowWhen;var gnn=h2t();Se.withLatestFrom=gnn.withLatestFrom;var bnn=f2t();Se.zip=bnn.zip;var vnn=m2t();Se.zipAll=vnn.zipAll});var g2t=_(Dp=>{"use strict";d();p();Object.defineProperty(Dp,"__esModule",{value:!0});Dp.ClientMessagePublishEvent=Dp.ClientMessageSetSessionConfig=Dp.ClientMessageGetSessionConfig=Dp.ClientMessageIsLinked=Dp.ClientMessageHostSession=void 0;function wnn(r){return Object.assign({type:"HostSession"},r)}Dp.ClientMessageHostSession=wnn;function xnn(r){return Object.assign({type:"IsLinked"},r)}Dp.ClientMessageIsLinked=xnn;function _nn(r){return Object.assign({type:"GetSessionConfig"},r)}Dp.ClientMessageGetSessionConfig=_nn;function Tnn(r){return Object.assign({type:"SetSessionConfig"},r)}Dp.ClientMessageSetSessionConfig=Tnn;function Enn(r){return Object.assign({type:"PublishEvent"},r)}Dp.ClientMessagePublishEvent=Enn});var v2t=_(O2=>{"use strict";d();p();Object.defineProperty(O2,"__esModule",{value:!0});O2.RxWebSocket=O2.ConnectionState=void 0;var PT=wk(),b2t=MW(),RT;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(RT=O2.ConnectionState||(O2.ConnectionState={}));var Fce=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new PT.BehaviorSubject(RT.DISCONNECTED),this.incomingDataSubject=new PT.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,PT.throwError)(new Error("webSocket object is not null")):new PT.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(RT.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(RT.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(RT.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,b2t.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(RT.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,b2t.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,PT.empty)()}return(0,PT.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};O2.RxWebSocket=Fce});var w2t=_(NW=>{"use strict";d();p();Object.defineProperty(NW,"__esModule",{value:!0});NW.isServerMessageFail=void 0;function Cnn(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}NW.isServerMessageFail=Cnn});var _2t=_(DW=>{"use strict";d();p();Object.defineProperty(DW,"__esModule",{value:!0});DW.WalletSDKConnection=void 0;var Zh=wk(),Jr=MW(),EA=eF(),MT=II(),CA=g2t(),IA=zq(),BW=v2t(),Wce=w2t(),x2t=1e4,Inn=6e4,Uce=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new Zh.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,MT.IntNumber)(1),this.connectedSubject=new Zh.BehaviorSubject(!1),this.linkedSubject=new Zh.BehaviorSubject(!1),this.sessionConfigSubject=new Zh.ReplaySubject(1);let s=new BW.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,Jr.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(IA.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:EA.Session.hash(e)})}),(0,Jr.skip)(1),(0,Jr.filter)(o=>o===BW.ConnectionState.DISCONNECTED&&!this.destroyed),(0,Jr.delay)(5e3),(0,Jr.filter)(o=>!this.destroyed),(0,Jr.flatMap)(o=>s.connect()),(0,Jr.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,Jr.skip)(2),(0,Jr.switchMap)(o=>(0,Zh.iif)(()=>o===BW.ConnectionState.CONNECTED,this.authenticate().pipe((0,Jr.tap)(c=>this.sendIsLinked()),(0,Jr.tap)(c=>this.sendGetSessionConfig()),(0,Jr.map)(c=>!0)),(0,Zh.of)(!1))),(0,Jr.distinctUntilChanged)(),(0,Jr.catchError)(o=>(0,Zh.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,Jr.skip)(1),(0,Jr.switchMap)(o=>(0,Zh.iif)(()=>o===BW.ConnectionState.CONNECTED,(0,Zh.timer)(0,x2t)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,Jr.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,Jr.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(IA.EVENTS.LINKED,{sessionIdHash:EA.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,Jr.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(IA.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:EA.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(IA.EVENTS.STARTED_CONNECTING,{sessionIdHash:EA.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(IA.EVENTS.DISCONNECTED,{sessionIdHash:EA.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,Jr.filter)(e=>e),(0,Jr.take)(1),(0,Jr.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,Jr.filter)(e=>e),(0,Jr.take)(1),(0,Jr.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,Jr.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,Jr.map)(e=>e))}setSessionMetadata(e,t){let n=(0,CA.ClientMessageSetSessionConfig)({id:(0,MT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,Jr.flatMap)(a=>this.makeRequest(n)),(0,Jr.map)(a=>{if((0,Wce.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,CA.ClientMessagePublishEvent)({id:(0,MT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,Jr.flatMap)(i=>this.makeRequest(a)),(0,Jr.map)(i=>{if((0,Wce.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>x2t*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=Inn){let n=e.id;try{this.sendData(e)}catch(a){return(0,Zh.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,Jr.timeoutWith)(t,(0,Zh.throwError)(new Error(`request ${n} timed out`))),(0,Jr.filter)(a=>a.id===n),(0,Jr.take)(1))}authenticate(){let e=(0,CA.ClientMessageHostSession)({id:(0,MT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,Jr.map)(t=>{if((0,Wce.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,CA.ClientMessageIsLinked)({id:(0,MT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,CA.ClientMessageGetSessionConfig)({id:(0,MT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};DW.WalletSDKConnection=Uce});var T2t=_(OW=>{"use strict";d();p();Object.defineProperty(OW,"__esModule",{value:!0});OW.WalletUIError=void 0;var L2=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};OW.WalletUIError=L2;L2.UserRejectedRequest=new L2("User rejected request");L2.SwitchEthereumChainUnsupportedChainId=new L2("Unsupported chainId",4902)});var E2t=_(NT=>{"use strict";d();p();Object.defineProperty(NT,"__esModule",{value:!0});NT.decrypt=NT.encrypt=void 0;var LW=z0();async function knn(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,LW.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),h=new Uint8Array([...t,...u,...l]);return(0,LW.uint8ArrayToHex)(h)}NT.encrypt=knn;function Ann(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,LW.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,LW.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,a,u),f=new TextDecoder;t(f.decode(h))}catch(h){n(h)}})()})}NT.decrypt=Ann});var Hce=_(kA=>{"use strict";d();p();Object.defineProperty(kA,"__esModule",{value:!0});kA.Web3Method=void 0;var Snn;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(Snn=kA.Web3Method||(kA.Web3Method={}))});var qW=_(AA=>{"use strict";d();p();Object.defineProperty(AA,"__esModule",{value:!0});AA.RelayMessageType=void 0;var Pnn;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(Pnn=AA.RelayMessageType||(AA.RelayMessageType={}))});var C2t=_(FW=>{"use strict";d();p();Object.defineProperty(FW,"__esModule",{value:!0});FW.Web3RequestCanceledMessage=void 0;var Rnn=qW();function Mnn(r){return{type:Rnn.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}FW.Web3RequestCanceledMessage=Mnn});var I2t=_(WW=>{"use strict";d();p();Object.defineProperty(WW,"__esModule",{value:!0});WW.Web3RequestMessage=void 0;var Nnn=qW();function Bnn(r){return Object.assign({type:Nnn.RelayMessageType.WEB3_REQUEST},r)}WW.Web3RequestMessage=Bnn});var k2t=_(Ai=>{"use strict";d();p();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.EthereumAddressFromSignedMessageResponse=Ai.SubmitEthereumTransactionResponse=Ai.SignEthereumTransactionResponse=Ai.SignEthereumMessageResponse=Ai.isRequestEthereumAccountsResponse=Ai.SelectProviderResponse=Ai.WatchAssetReponse=Ai.RequestEthereumAccountsResponse=Ai.SwitchEthereumChainResponse=Ai.AddEthereumChainResponse=Ai.ErrorResponse=void 0;var Tm=Hce();function Dnn(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Ai.ErrorResponse=Dnn;function Onn(r){return{method:Tm.Web3Method.addEthereumChain,result:r}}Ai.AddEthereumChainResponse=Onn;function Lnn(r){return{method:Tm.Web3Method.switchEthereumChain,result:r}}Ai.SwitchEthereumChainResponse=Lnn;function qnn(r){return{method:Tm.Web3Method.requestEthereumAccounts,result:r}}Ai.RequestEthereumAccountsResponse=qnn;function Fnn(r){return{method:Tm.Web3Method.watchAsset,result:r}}Ai.WatchAssetReponse=Fnn;function Wnn(r){return{method:Tm.Web3Method.selectProvider,result:r}}Ai.SelectProviderResponse=Wnn;function Unn(r){return r&&r.method===Tm.Web3Method.requestEthereumAccounts}Ai.isRequestEthereumAccountsResponse=Unn;function Hnn(r){return{method:Tm.Web3Method.signEthereumMessage,result:r}}Ai.SignEthereumMessageResponse=Hnn;function jnn(r){return{method:Tm.Web3Method.signEthereumTransaction,result:r}}Ai.SignEthereumTransactionResponse=jnn;function znn(r){return{method:Tm.Web3Method.submitEthereumTransaction,result:r}}Ai.SubmitEthereumTransactionResponse=znn;function Knn(r){return{method:Tm.Web3Method.ethereumAddressFromSignedMessage,result:r}}Ai.EthereumAddressFromSignedMessageResponse=Knn});var S2t=_(BT=>{"use strict";d();p();Object.defineProperty(BT,"__esModule",{value:!0});BT.isWeb3ResponseMessage=BT.Web3ResponseMessage=void 0;var A2t=qW();function Vnn(r){return Object.assign({type:A2t.RelayMessageType.WEB3_RESPONSE},r)}BT.Web3ResponseMessage=Vnn;function Gnn(r){return r&&r.type===A2t.RelayMessageType.WEB3_RESPONSE}BT.isWeb3ResponseMessage=Gnn});var N2t=_(Nl=>{"use strict";d();p();var $nn=Nl&&Nl.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),Ynn=Nl&&Nl.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),R2t=Nl&&Nl.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},Jnn=Nl&&Nl.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&$nn(e,r,t);return Ynn(e,r),e},Qnn=Nl&&Nl.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Nl,"__esModule",{value:!0});Nl.WalletSDKRelay=void 0;var M2t=Qnn(Zgt()),P2t=Hq(),DT=wk(),xo=MW(),Eu=zq(),Znn=_2t(),jce=T2t(),Xnn=II(),Si=z0(),Q1=Jnn(E2t()),Z1=eF(),UW=Sae(),Zo=Hce(),ean=C2t(),tan=I2t(),yd=k2t(),Ju=S2t(),gd=class extends UW.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new DT.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new DT.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=Z1.Session.load(this.storage)||new Z1.Session(this.storage).save(),t=new Znn.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,xo.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,xo.skip)(1),(0,xo.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(UW.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(Eu.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,xo.mergeMap)(a=>Q1.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(UW.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,xo.mergeMap)(a=>Q1.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(UW.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,xo.mergeMap)(a=>(0,DT.zip)(Q1.decrypt(a.metadata.ChainId,e.secret),Q1.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,xo.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,xo.mergeMap)(a=>Q1.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),gd.accountRequestCallbackIds.size>0&&(Array.from(gd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Ju.Web3ResponseMessage)({id:i,response:(0,yd.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),gd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,xo.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,xo.mergeMap)(a=>Q1.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,xo.timeout)(1e3),(0,xo.catchError)(e=>(0,DT.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(Eu.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=Z1.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(Eu.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:Z1.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Eu.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:Zo.Web3Method.signEthereumMessage,params:{message:(0,Si.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:Zo.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Si.hexStringFromBuffer)(e,!0),signature:(0,Si.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:Zo.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Si.bigIntStringFromBN)(e.weiValue),data:(0,Si.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Si.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:Zo.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Si.bigIntStringFromBN)(e.weiValue),data:(0,Si.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Si.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Si.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Si.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:Zo.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Si.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:Zo.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Si.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:Zo.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,tan.Web3RequestMessage)({id:e,request:t}),i=Z1.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(Eu.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?Z1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(Eu.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?Z1.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,ean.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new DT.Observable(i=>{Q1.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,xo.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,DT.from)(Q1.decrypt(e.data,this.session.secret)).pipe((0,xo.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Ju.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(Eu.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(Eu.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,yd.isRequestEthereumAccountsResponse)(n)){gd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),gd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:(0,yd.ErrorResponse)(t,(n??jce.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:Zo.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,Si.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,yd.RequestEthereumAccountsResponse)(h)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=P2t.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}gd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:Zo.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,yd.SelectProviderResponse)(Xnn.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:n,response:(0,yd.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:Zo.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,Si.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let h=new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,yd.WatchAssetReponse)(!1)}))},E=()=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,yd.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:E,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:h}}addEthereumChain(e,t,n,a,i,s){let o={method:Zo.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,Si.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,yd.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},E=I=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:u,response:(0,yd.AddEthereumChainResponse)({isApproved:!0,rpcUrl:I})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:E,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:Zo.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,Si.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,h=>{if(h.errorMessage&&h.errorCode)return c(P2t.ethErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));o(h)});let u=h=>{if(typeof h=="number"){let f=h;this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,yd.ErrorResponse)(Zo.Web3Method.switchEthereumChain,jce.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,f)}))}else h instanceof jce.WalletUIError?this.handleErrorResponse(a,Zo.Web3Method.switchEthereumChain,h,h.errorCode):this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,yd.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=h=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:a,response:(0,yd.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return Z1.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Ju.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case Zo.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case Zo.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case Zo.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case Zo.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};gd.accountRequestCallbackIds=new Set;R2t([M2t.default],gd.prototype,"resetAndReload",null);R2t([M2t.default],gd.prototype,"handleIncomingEvent",null);Nl.WalletSDKRelay=gd});var B2t=_(HW=>{"use strict";d();p();Object.defineProperty(HW,"__esModule",{value:!0});HW.WalletSDKRelayEventManager=void 0;var ran=z0(),zce=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,ran.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};HW.WalletSDKRelayEventManager=zce});var D2t=_((mla,nan)=>{nan.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var Kce=_(jW=>{"use strict";d();p();Object.defineProperty(jW,"__esModule",{value:!0});jW.CoinbaseWalletSDK=void 0;var aan=sht(),ian=oht(),san=kF(),oan=Jgt(),can=N2t(),uan=B2t(),lan=z0(),dan=g.env.LINK_API_URL||"https://www.walletlink.org",O2t=g.env.SDK_VERSION||D2t().version||"unknown",OT=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||dan,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new oan.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new ian.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",OT.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new uan.WalletSDKRelayEventManager,this._relay=new can.WalletSDKRelay({linkAPIUrl:i,version:O2t,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new san.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,lan.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,aan.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};jW.CoinbaseWalletSDK=OT;OT.VERSION=O2t});var Gce=_(q2=>{"use strict";d();p();Object.defineProperty(q2,"__esModule",{value:!0});q2.CoinbaseWalletProvider=q2.CoinbaseWalletSDK=void 0;var Vce=Kce(),L2t=kF(),pan=Kce();Object.defineProperty(q2,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return pan.CoinbaseWalletSDK}});var han=kF();Object.defineProperty(q2,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return han.CoinbaseWalletProvider}});q2.default=Vce.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=Vce.CoinbaseWalletSDK,window.CoinbaseWalletProvider=L2t.CoinbaseWalletProvider,window.WalletLink=Vce.CoinbaseWalletSDK,window.WalletLinkProvider=L2t.CoinbaseWalletProvider)});var U2t=_(Qce=>{"use strict";d();p();Object.defineProperty(Qce,"__esModule",{value:!0});var $ce=U0(),Xh=D1(),LT=yu(),q2t=Ge(),zW=Hr(),F2=O_(),F2t=gI();pd();Pt();it();function fan(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var qT=new WeakMap,SA=new WeakMap,Yce=new WeakSet,Jce=class extends F2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),$ce._classPrivateMethodInitSpec(this,Yce),LT._defineProperty(this,"id","coinbaseWallet"),LT._defineProperty(this,"name","Coinbase Wallet"),LT._defineProperty(this,"ready",!0),Xh._classPrivateFieldInitSpec(this,qT,{writable:!0,value:void 0}),Xh._classPrivateFieldInitSpec(this,SA,{writable:!0,value:void 0}),LT._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:zW.getAddress(a[0])})}),LT._defineProperty(this,"onChainChanged",a=>{let i=F2t.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),LT._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=zW.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new q2t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new F2.UserRejectedRequestError(t):t}}async disconnect(){if(!Xh._classPrivateFieldGet(this,SA))return;let 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(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return zW.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return F2t.normalizeChainId(e.chainId)}async getProvider(){if(!Xh._classPrivateFieldGet(this,SA)){let e=(await Promise.resolve().then(function(){return fan(Gce())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),Xh._classPrivateFieldSet(this,qT,new e(this.options));let t=Xh._classPrivateFieldGet(this,qT).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];Xh._classPrivateFieldSet(this,SA,Xh._classPrivateFieldGet(this,qT).makeWeb3Provider(i,a))}return Xh._classPrivateFieldGet(this,SA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new q2t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=zW.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new F2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw $ce._classPrivateMethodGet(this,Yce,W2t).call(this,s)?new F2.UserRejectedRequestError(s):new F2.AddChainError}throw $ce._classPrivateMethodGet(this,Yce,W2t).call(this,a)?new F2.UserRejectedRequestError(a):new F2.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!Xh._classPrivateFieldGet(this,qT))throw new Error("Coinbase Wallet SDK not initialized");return Xh._classPrivateFieldGet(this,qT).getQrUrl()}};function W2t(r){return/(user rejected)/i.test(r.message)}Qce.CoinbaseWalletConnector=Jce});var H2t=_(Zce=>{"use strict";d();p();Object.defineProperty(Zce,"__esModule",{value:!0});var KW=yu(),man=fI(),yan=mI(),gan=ac();it();U0();pd();Pt();l2();Ge();typeof window<"u"&&(window.Buffer=gan.Buffer);var W2=class extends yan.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(W2.id,e),KW._defineProperty(this,"connector",void 0),KW._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return U2t()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new man.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};KW._defineProperty(W2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});KW._defineProperty(W2,"id","coinbaseWallet");Zce.CoinbaseWallet=W2});var Cu=_(j2t=>{"use strict";d();p();function ban(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function van(r){var e=ban(r,"string");return typeof e=="symbol"?e:String(e)}function wan(r,e,t){return e=van(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}j2t._defineProperty=wan});var PA=_(eue=>{"use strict";d();p();var xan=Cu(),_an=it();function Tan(r){return r&&r.__esModule?r:{default:r}}var Ean=Tan(_an),VW=class extends Ean.default{},Xce=class extends VW{constructor(e){super(),xan._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};eue.TWConnector=VW;eue.WagmiAdapter=Xce});var bd=_(z2t=>{"use strict";d();p();function Can(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}z2t._checkPrivateRedeclaration=Can});var G0=_(tue=>{"use strict";d();p();var Ian=bd();function kan(r,e){Ian._checkPrivateRedeclaration(r,e),e.add(r)}function Aan(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}tue._classPrivateMethodGet=Aan;tue._classPrivateMethodInitSpec=kan});var U2=_(GW=>{"use strict";d();p();Object.defineProperty(GW,"__esModule",{value:!0});var K2t=Cu(),FT=Ge(),San=it();function Pan(r){return r&&r.__esModule?r:{default:r}}var Ran=Pan(San);function Man(r){return`https://${r}.rpc.thirdweb.com`}var Nan=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],Ban="0x1626ba7e";async function V2t(r,e,t,n){let a=new FT.providers.JsonRpcProvider(Man(n)),i=new FT.Contract(t,Nan,a),s=FT.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===Ban}catch{return!1}}var rue=class extends Ran.default{constructor(){super(...arguments),K2t._defineProperty(this,"type","evm"),K2t._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=FT.utils.hashMessage(e),s=FT.utils.arrayify(i);if(FT.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await V2t(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};GW.AbstractWallet=rue;GW.checkContractWalletSignature=V2t});var RA=_(nue=>{"use strict";d();p();var G2t=G0(),WT=Cu(),Bl=Pt(),Dan=U2(),za=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});za.Mainnet,za.Goerli,za.Polygon,za.Mumbai,za.Fantom,za.FantomTestnet,za.Avalanche,za.AvalancheFujiTestnet,za.Optimism,za.OptimismGoerli,za.Arbitrum,za.ArbitrumGoerli,za.BinanceSmartChainMainnet,za.BinanceSmartChainTestnet;var Oan={[za.Mainnet]:Bl.Ethereum,[za.Goerli]:Bl.Goerli,[za.Polygon]:Bl.Polygon,[za.Mumbai]:Bl.Mumbai,[za.Avalanche]:Bl.Avalanche,[za.AvalancheFujiTestnet]:Bl.AvalancheFuji,[za.Fantom]:Bl.Fantom,[za.FantomTestnet]:Bl.FantomTestnet,[za.Arbitrum]:Bl.Arbitrum,[za.ArbitrumGoerli]:Bl.ArbitrumGoerli,[za.Optimism]:Bl.Optimism,[za.OptimismGoerli]:Bl.OptimismGoerli,[za.BinanceSmartChainMainnet]:Bl.Binance,[za.BinanceSmartChainTestnet]:Bl.BinanceTestnet},Y2t=Object.values(Oan),$2t=new WeakSet,$W=class extends Dan.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),G2t._classPrivateMethodInitSpec(this,$2t),WT._defineProperty(this,"walletId",void 0),WT._defineProperty(this,"coordinatorStorage",void 0),WT._defineProperty(this,"walletStorage",void 0),WT._defineProperty(this,"chains",void 0),WT._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||Y2t,this.coordinatorStorage=t.coordinatorStorage,this.walletStorage=t.walletStorage}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();G2t._classPrivateMethodGet(this,$2t,Lan).call(this,t);let n=async()=>{try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function Lan(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}WT._defineProperty($W,"meta",void 0);nue.AbstractBrowserWallet=$W;nue.thirdwebChains=Y2t});var X1=_(YW=>{"use strict";d();p();var qan=bd();function Fan(r,e,t){qan._checkPrivateRedeclaration(r,e),e.set(r,t)}function Wan(r,e){return e.get?e.get.call(r):e.value}function J2t(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function Uan(r,e){var t=J2t(r,e,"get");return Wan(r,t)}function Han(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function jan(r,e,t){var n=J2t(r,e,"set");return Han(r,n,t),t}YW._classPrivateFieldGet=Uan;YW._classPrivateFieldInitSpec=Fan;YW._classPrivateFieldSet=jan});var UT=_($0=>{"use strict";d();p();var Iu=Cu(),Q2t=Pt(),zan=it();function Kan(r){return r&&r.__esModule?r:{default:r}}var Van=Kan(zan),aue=class extends Van.default{constructor(e){let{chains:t=[Q2t.Ethereum,Q2t.Goerli],options:n}=e;super(),Iu._defineProperty(this,"id",void 0),Iu._defineProperty(this,"name",void 0),Iu._defineProperty(this,"chains",void 0),Iu._defineProperty(this,"options",void 0),Iu._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},JW=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),Iu._defineProperty(this,"cause",void 0),Iu._defineProperty(this,"code",void 0),Iu._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},MA=class extends JW{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},iue=class extends Error{constructor(){super(...arguments),Iu._defineProperty(this,"name","AddChainError"),Iu._defineProperty(this,"message","Error adding chain")}},sue=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),Iu._defineProperty(this,"name","ChainNotConfigured")}},oue=class extends Error{constructor(){super(...arguments),Iu._defineProperty(this,"name","ConnectorNotFoundError"),Iu._defineProperty(this,"message","Connector not found")}},cue=class extends JW{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),Iu._defineProperty(this,"name","ResourceUnavailable")}},uue=class extends MA{constructor(e){super("Error switching chain",{cause:e,code:4902}),Iu._defineProperty(this,"name","SwitchChainError")}},lue=class extends MA{constructor(e){super("User rejected request",{cause:e,code:4001}),Iu._defineProperty(this,"name","UserRejectedRequestError")}};$0.AddChainError=iue;$0.ChainNotConfiguredError=sue;$0.Connector=aue;$0.ConnectorNotFoundError=oue;$0.ProviderRpcError=MA;$0.ResourceUnavailableError=cue;$0.SwitchChainError=uue;$0.UserRejectedRequestError=lue});var NA=_(Z2t=>{"use strict";d();p();function Gan(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}Z2t.normalizeChainId=Gan});var rwt=_(fue=>{"use strict";d();p();Object.defineProperty(fue,"__esModule",{value:!0});var due=G0(),ef=X1(),HT=Cu(),X2t=Ge(),QW=Hr(),H2=UT(),ewt=NA();bd();Pt();it();function $an(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var jT=new WeakMap,BA=new WeakMap,pue=new WeakSet,hue=class extends H2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),due._classPrivateMethodInitSpec(this,pue),HT._defineProperty(this,"id","coinbaseWallet"),HT._defineProperty(this,"name","Coinbase Wallet"),HT._defineProperty(this,"ready",!0),ef._classPrivateFieldInitSpec(this,jT,{writable:!0,value:void 0}),ef._classPrivateFieldInitSpec(this,BA,{writable:!0,value:void 0}),HT._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:QW.getAddress(a[0])})}),HT._defineProperty(this,"onChainChanged",a=>{let i=ewt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),HT._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=QW.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new X2t.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new H2.UserRejectedRequestError(t):t}}async disconnect(){if(!ef._classPrivateFieldGet(this,BA))return;let 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(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return QW.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return ewt.normalizeChainId(e.chainId)}async getProvider(){if(!ef._classPrivateFieldGet(this,BA)){let e=(await Promise.resolve().then(function(){return $an(Gce())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),ef._classPrivateFieldSet(this,jT,new e(this.options));let t=ef._classPrivateFieldGet(this,jT).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];ef._classPrivateFieldSet(this,BA,ef._classPrivateFieldGet(this,jT).makeWeb3Provider(i,a))}return ef._classPrivateFieldGet(this,BA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new X2t.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=QW.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new H2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw due._classPrivateMethodGet(this,pue,twt).call(this,s)?new H2.UserRejectedRequestError(s):new H2.AddChainError}throw due._classPrivateMethodGet(this,pue,twt).call(this,a)?new H2.UserRejectedRequestError(a):new H2.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e;return(await this.getProvider()).request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!ef._classPrivateFieldGet(this,jT))throw new Error("Coinbase Wallet SDK not initialized");return ef._classPrivateFieldGet(this,jT).getQrUrl()}};function twt(r){return/(user rejected)/i.test(r.message)}fue.CoinbaseWalletConnector=hue});var nwt=_(mue=>{"use strict";d();p();Object.defineProperty(mue,"__esModule",{value:!0});var ZW=Cu(),Yan=PA(),Jan=RA(),Qan=ac();it();G0();bd();Pt();U2();Ge();typeof window<"u"&&(window.Buffer=Qan.Buffer);var j2=class extends Jan.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(j2.id,e),ZW._defineProperty(this,"connector",void 0),ZW._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return rwt()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new Yan.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};ZW._defineProperty(j2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});ZW._defineProperty(j2,"id","coinbaseWallet");mue.CoinbaseWallet=j2});var awt=_((oda,yue)=>{"use strict";d();p();g.env.NODE_ENV==="production"?yue.exports=H2t():yue.exports=nwt()});var iwt=_(wue=>{"use strict";d();p();Object.defineProperty(wue,"__esModule",{value:!0});var gue=D1(),Zan=l2();pd();yu();Ge();it();var bue=new WeakMap,vue=class extends Zan.AbstractWallet{constructor(e){super(),gue._classPrivateFieldInitSpec(this,bue,{writable:!0,value:void 0}),gue._classPrivateFieldSet(this,bue,e)}async getSigner(){return gue._classPrivateFieldGet(this,bue)}};wue.EthersWallet=vue});var swt=_(Eue=>{"use strict";d();p();Object.defineProperty(Eue,"__esModule",{value:!0});var xue=X1(),Xan=U2();bd();Cu();Ge();it();var _ue=new WeakMap,Tue=class extends Xan.AbstractWallet{constructor(e){super(),xue._classPrivateFieldInitSpec(this,_ue,{writable:!0,value:void 0}),xue._classPrivateFieldSet(this,_ue,e)}async getSigner(){return xue._classPrivateFieldGet(this,_ue)}};Eue.EthersWallet=Tue});var owt=_((yda,Cue)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Cue.exports=iwt():Cue.exports=swt()});var Sue=_(Aue=>{"use strict";d();p();Object.defineProperty(Aue,"__esModule",{value:!0});var z2=D1(),eg=yu(),DA=Ge(),Dl=O_(),cwt=gI();pd();Pt();it();function ein(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var Iue=new WeakMap,XW=new WeakMap,kue=class extends Dl.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>typeof window<"u"?window.ethereum:void 0},...e.options};super({chains:e.chains,options:n}),eg._defineProperty(this,"id",void 0),eg._defineProperty(this,"name",void 0),eg._defineProperty(this,"ready",void 0),z2._classPrivateFieldInitSpec(this,Iue,{writable:!0,value:void 0}),z2._classPrivateFieldInitSpec(this,XW,{writable:!0,value:void 0}),eg._defineProperty(this,"connectorStorage",void 0),eg._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),eg._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:DA.utils.getAddress(i[0])})}),eg._defineProperty(this,"onChainChanged",i=>{let s=cwt.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),eg._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&z2._classPrivateFieldGet(this,XW)){z2._classPrivateFieldSet(this,XW,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=ein(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new Dl.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=DA.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new Dl.UserRejectedRequestError(t):t.code===-32002?new Dl.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Dl.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return DA.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Dl.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(cwt.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&z2._classPrivateFieldSet(this,Iue,e),z2._classPrivateFieldGet(this,Iue)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new DA.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new Dl.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&z2._classPrivateFieldSet(this,XW,!0);let t=await this.getProvider();if(!t)throw new Dl.ConnectorNotFoundError;let n=DA.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Dl.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new Dl.UserRejectedRequestError(a):new Dl.AddChainError}throw this.isUserRejectedRequestError(a)?new Dl.UserRejectedRequestError(a):new Dl.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e,s=await this.getProvider();if(!s)throw new Dl.ConnectorNotFoundError;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};Aue.InjectedConnector=kue});var uwt=_(Rue=>{"use strict";d();p();Object.defineProperty(Rue,"__esModule",{value:!0});var Pue=yu(),tin=fI(),rin=mI();it();U0();pd();Pt();l2();Ge();var zT=class extends rin.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(zT.id,e),Pue._defineProperty(this,"connector",void 0),Pue._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return Sue()});this.connector=new tin.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};Pue._defineProperty(zT,"id","injected");Rue.InjectedWallet=zT});var Due=_(Bue=>{"use strict";d();p();Object.defineProperty(Bue,"__esModule",{value:!0});var K2=X1(),tg=Cu(),OA=Ge(),Ol=UT(),lwt=NA();bd();Pt();it();function nin(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var Mue=new WeakMap,eU=new WeakMap,Nue=class extends Ol.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>typeof window<"u"?window.ethereum:void 0},...e.options};super({chains:e.chains,options:n}),tg._defineProperty(this,"id",void 0),tg._defineProperty(this,"name",void 0),tg._defineProperty(this,"ready",void 0),K2._classPrivateFieldInitSpec(this,Mue,{writable:!0,value:void 0}),K2._classPrivateFieldInitSpec(this,eU,{writable:!0,value:void 0}),tg._defineProperty(this,"connectorStorage",void 0),tg._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),tg._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:OA.utils.getAddress(i[0])})}),tg._defineProperty(this,"onChainChanged",i=>{let s=lwt.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),tg._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&K2._classPrivateFieldGet(this,eU)){K2._classPrivateFieldSet(this,eU,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=nin(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new Ol.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=OA.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new Ol.UserRejectedRequestError(t):t.code===-32002?new Ol.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new Ol.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return OA.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new Ol.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(lwt.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&K2._classPrivateFieldSet(this,Mue,e),K2._classPrivateFieldGet(this,Mue)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new OA.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new Ol.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&K2._classPrivateFieldSet(this,eU,!0);let t=await this.getProvider();if(!t)throw new Ol.ConnectorNotFoundError;let n=OA.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Ol.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new Ol.UserRejectedRequestError(a):new Ol.AddChainError}throw this.isUserRejectedRequestError(a)?new Ol.UserRejectedRequestError(a):new Ol.SwitchChainError(a)}}async watchAsset(e){let{address:t,decimals:n=18,image:a,symbol:i}=e,s=await this.getProvider();if(!s)throw new Ol.ConnectorNotFoundError;return s.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,decimals:n,image:a,symbol:i}}})}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};Bue.InjectedConnector=Nue});var dwt=_(Lue=>{"use strict";d();p();Object.defineProperty(Lue,"__esModule",{value:!0});var Oue=Cu(),ain=PA(),iin=RA();it();G0();bd();Pt();U2();Ge();var KT=class extends iin.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(KT.id,e),Oue._defineProperty(this,"connector",void 0),Oue._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return Due()});this.connector=new ain.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};Oue._defineProperty(KT,"id","injected");Lue.InjectedWallet=KT});var pwt=_((Rda,que)=>{"use strict";d();p();g.env.NODE_ENV==="production"?que.exports=uwt():que.exports=dwt()});var hwt=_(Hue=>{"use strict";d();p();Object.defineProperty(Hue,"__esModule",{value:!0});var Fue=D1(),sin=yu(),oin=Sue(),cin=Ge(),tU=O_();pd();gI();Pt();it();function uin(r){return"ethereum"in window}var Wue=new WeakMap,Uue=class extends oin.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&uin())return window.ethereum?.providers?window.ethereum.providers.find(a):a(window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),sin._defineProperty(this,"id","metaMask"),Fue._classPrivateFieldInitSpec(this,Wue,{writable:!0,value:void 0}),Fue._classPrivateFieldSet(this,Wue,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new tU.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(Fue._classPrivateFieldGet(this,Wue)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new tU.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=cin.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new tU.UserRejectedRequestError(t):t.code===-32002?new tU.ResourceUnavailableError(t):t}}};Hue.MetaMaskConnector=Uue});var fwt=ce(()=>{d();p()});var V2,jue=ce(()=>{d();p();V2=class{}});var rU,LA,VT,mwt=ce(()=>{d();p();jue();rU=class extends V2{constructor(e){super()}},LA=class extends V2{constructor(){super()}},VT=class extends LA{constructor(e){super()}}});var ywt=ce(()=>{d();p()});var zue={};cr(zue,{IBaseJsonRpcProvider:()=>LA,IEvents:()=>V2,IJsonRpcConnection:()=>rU,IJsonRpcProvider:()=>VT});var nU=ce(()=>{d();p();fwt();jue();mwt();ywt()});var gwt,bwt,vwt,wwt,aU,qA,Kue,iU,rg,FA,sU=ce(()=>{d();p();gwt="PARSE_ERROR",bwt="INVALID_REQUEST",vwt="METHOD_NOT_FOUND",wwt="INVALID_PARAMS",aU="INTERNAL_ERROR",qA="SERVER_ERROR",Kue=[-32700,-32600,-32601,-32602,-32603],iU=[-32e3,-32099],rg={[gwt]:{code:-32700,message:"Parse error"},[bwt]:{code:-32600,message:"Invalid Request"},[vwt]:{code:-32601,message:"Method not found"},[wwt]:{code:-32602,message:"Invalid params"},[aU]:{code:-32603,message:"Internal error"},[qA]:{code:-32e3,message:"Server error"}},FA=qA});function lin(r){return r<=iU[0]&&r>=iU[1]}function oU(r){return Kue.includes(r)}function xwt(r){return typeof r=="number"}function cU(r){return Object.keys(rg).includes(r)?rg[r]:rg[FA]}function uU(r){let e=Object.values(rg).find(t=>t.code===r);return e||rg[FA]}function din(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!xwt(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(oU(r.error.code)){let e=uU(r.error.code);if(e.message!==rg[FA].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function WA(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var Vue=ce(()=>{d();p();sU()});var vd=_((opa,dU)=>{d();p();var _wt,Twt,Ewt,Cwt,Iwt,kwt,Awt,Swt,Pwt,lU,Gue,Rwt,Mwt,GT,Nwt,Bwt,Dwt,Owt,Lwt,qwt,Fwt,Wwt,Uwt;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof dU=="object"&&typeof dU.exports=="object"?r(t(e,t(dU.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};_wt=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},Twt=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},Iwt=function(t,n){return function(a,i){n(a,i,t)}},kwt=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},Awt=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(f){try{h(i.next(f))}catch(m){c(m)}}function l(f){try{h(i.throw(f))}catch(m){c(m)}}function h(f){f.done?o(f.value):s(f.value).then(u,l)}h((i=i.apply(t,n||[])).next())})},Swt=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(f){return l([h,f])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,s=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Gue=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},Rwt=function(){for(var t=[],n=0;n1||u(y,E)})})}function u(y,E){try{l(i[y](E))}catch(I){m(o[0][3],I)}}function l(y){y.value instanceof GT?Promise.resolve(y.value.v).then(h,f):m(o[0][2],y)}function h(y){u("next",y)}function f(y){u("throw",y)}function m(y,E){y(E),o.shift(),o.length&&u(o[0][0],o[0][1])}},Bwt=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:GT(t[s](c)),done:s==="return"}:o?o(c):c}:o}},Dwt=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof lU=="function"?lU(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(h){o({value:h,done:u})},c)}},Owt=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},Lwt=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},qwt=function(t){return t&&t.__esModule?t:{default:t}},Fwt=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},Wwt=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",_wt),r("__assign",Twt),r("__rest",Ewt),r("__decorate",Cwt),r("__param",Iwt),r("__metadata",kwt),r("__awaiter",Awt),r("__generator",Swt),r("__exportStar",Pwt),r("__createBinding",Uwt),r("__values",lU),r("__read",Gue),r("__spread",Rwt),r("__spreadArrays",Mwt),r("__await",GT),r("__asyncGenerator",Nwt),r("__asyncDelegator",Bwt),r("__asyncValues",Dwt),r("__makeTemplateObject",Owt),r("__importStar",Lwt),r("__importDefault",qwt),r("__classPrivateFieldGet",Fwt),r("__classPrivateFieldSet",Wwt)})});var jwt=_(ng=>{"use strict";d();p();Object.defineProperty(ng,"__esModule",{value:!0});ng.isBrowserCryptoAvailable=ng.getSubtleCrypto=ng.getBrowerCrypto=void 0;function $ue(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}ng.getBrowerCrypto=$ue;function Hwt(){let r=$ue();return r.subtle||r.webkitSubtle}ng.getSubtleCrypto=Hwt;function pin(){return!!$ue()&&!!Hwt()}ng.isBrowserCryptoAvailable=pin});var Vwt=_(ag=>{"use strict";d();p();Object.defineProperty(ag,"__esModule",{value:!0});ag.isBrowser=ag.isNode=ag.isReactNative=void 0;function zwt(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}ag.isReactNative=zwt;function Kwt(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}ag.isNode=Kwt;function hin(){return!zwt()&&!Kwt()}ag.isBrowser=hin});var $T=_(pU=>{"use strict";d();p();Object.defineProperty(pU,"__esModule",{value:!0});var Gwt=vd();Gwt.__exportStar(jwt(),pU);Gwt.__exportStar(Vwt(),pU)});var Zs={};cr(Zs,{isNodeJs:()=>Ywt});var $wt,Ywt,Jwt=ce(()=>{d();p();$wt=mn($T());gr(Zs,mn($T()));Ywt=$wt.isNode});function hU(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function Yue(r,e,t){return{id:t||hU(),jsonrpc:"2.0",method:r,params:e}}function fin(r,e){return{id:r,jsonrpc:"2.0",result:e}}function UA(r,e,t){return{id:r,jsonrpc:"2.0",error:Qwt(e,t)}}function Qwt(r,e){return typeof r>"u"?cU(aU):(typeof r=="string"&&(r=Object.assign(Object.assign({},cU(qA)),{message:r})),typeof e<"u"&&(r.data=e),oU(r.code)&&(r=uU(r.code)),r)}var Zwt=ce(()=>{d();p();Vue();sU()});function min(r){return r.includes("*")?mU(r):!/\W/g.test(r)}function fU(r){return r==="*"}function mU(r){return fU(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function yin(r){return!fU(r)&&mU(r)&&!r.split("*")[0].trim()}function gin(r){return!fU(r)&&mU(r)&&!r.split("*")[1].trim()}var Xwt=ce(()=>{d();p()});var e3t=ce(()=>{d();p();nU()});function win(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function t3t(r,e){let t=win(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function yU(r){return t3t(r,bin)}function gU(r){return t3t(r,vin)}function Jue(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var bin,vin,r3t=ce(()=>{d();p();bin="^https?:",vin="^wss?:"});function Que(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function xin(r){return Que(r)&&"method"in r}function Zue(r){return Que(r)&&(n3t(r)||bU(r))}function n3t(r){return"result"in r}function bU(r){return"error"in r}function _in(r){return"error"in r&&r.valid===!1}var a3t=ce(()=>{d();p()});var Xs={};cr(Xs,{DEFAULT_ERROR:()=>FA,IBaseJsonRpcProvider:()=>LA,IEvents:()=>V2,IJsonRpcConnection:()=>rU,IJsonRpcProvider:()=>VT,INTERNAL_ERROR:()=>aU,INVALID_PARAMS:()=>wwt,INVALID_REQUEST:()=>bwt,METHOD_NOT_FOUND:()=>vwt,PARSE_ERROR:()=>gwt,RESERVED_ERROR_CODES:()=>Kue,SERVER_ERROR:()=>qA,SERVER_ERROR_CODE_RANGE:()=>iU,STANDARD_ERROR_MAP:()=>rg,formatErrorMessage:()=>Qwt,formatJsonRpcError:()=>UA,formatJsonRpcRequest:()=>Yue,formatJsonRpcResult:()=>fin,getError:()=>cU,getErrorByCode:()=>uU,isHttpUrl:()=>yU,isJsonRpcError:()=>bU,isJsonRpcPayload:()=>Que,isJsonRpcRequest:()=>xin,isJsonRpcResponse:()=>Zue,isJsonRpcResult:()=>n3t,isJsonRpcValidationInvalid:()=>_in,isLocalhostUrl:()=>Jue,isNodeJs:()=>Ywt,isReservedErrorCode:()=>oU,isServerErrorCode:()=>lin,isValidDefaultRoute:()=>fU,isValidErrorCode:()=>xwt,isValidLeadingWildcardRoute:()=>yin,isValidRoute:()=>min,isValidTrailingWildcardRoute:()=>gin,isValidWildcardRoute:()=>mU,isWsUrl:()=>gU,parseConnectionError:()=>WA,payloadId:()=>hU,validateJsonRpcError:()=>din});var Y0=ce(()=>{d();p();sU();Vue();Jwt();gr(Xs,Zs);Zwt();Xwt();e3t();r3t();a3t()});var i3t=ce(()=>{d();p()});var HA,J0,Xue,ele,tle,rle,nle,ale,ile,vU,sle,ole,wU,s3t=ce(()=>{d();p();HA="Session currently connected",J0="Session currently disconnected",Xue="Session Rejected",ele="Missing JSON RPC response",tle='JSON-RPC success response must include "result" field',rle='JSON-RPC error response must include "error" field',nle='JSON RPC request must have valid "method" value',ale='JSON RPC request must have valid "id" value',ile="Missing one of the required parameters: bridge / uri / session",vU="JSON RPC response format is invalid",sle="URI format is invalid",ole="QRCode Modal not provided",wU="User close QRCode Modal"});var xU,Tin,o3t=ce(()=>{d();p();xU=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Tin=xU});var c3t,YT,u3t,Ein,Cin,l3t=ce(()=>{d();p();c3t=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],YT=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...c3t],u3t=["eth_accounts","eth_chainId","net_version"],Ein=YT,Cin=u3t});var G2,Iin,d3t=ce(()=>{d();p();G2="WALLETCONNECT_DEEPLINK_CHOICE",Iin=G2});var _U,kin,p3t=ce(()=>{d();p();_U={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},kin=_U});var h3t=ce(()=>{d();p();s3t();o3t();l3t();d3t();p3t()});var f3t=ce(()=>{d();p()});var cle,m3t=ce(()=>{d();p();cle=class{}});var y3t=ce(()=>{d();p()});var g3t=ce(()=>{d();p()});var b3t=ce(()=>{d();p()});var v3t=ce(()=>{d();p()});var w3t=ce(()=>{d();p()});var x3t=ce(()=>{d();p()});var _3t=ce(()=>{d();p()});var ule={};cr(ule,{ERROR_INVALID_RESPONSE:()=>vU,ERROR_INVALID_URI:()=>sle,ERROR_MISSING_ERROR:()=>rle,ERROR_MISSING_ID:()=>ale,ERROR_MISSING_JSON_RPC:()=>ele,ERROR_MISSING_METHOD:()=>nle,ERROR_MISSING_REQUIRED:()=>ile,ERROR_MISSING_RESULT:()=>tle,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>ole,ERROR_QRCODE_MODAL_USER_CLOSED:()=>wU,ERROR_SESSION_CONNECTED:()=>HA,ERROR_SESSION_DISCONNECTED:()=>J0,ERROR_SESSION_REJECTED:()=>Xue,IEvents:()=>cle,INFURA_NETWORKS:()=>_U,MOBILE_LINK_CHOICE_KEY:()=>G2,RESERVED_EVENTS:()=>xU,SIGNING_METHODS:()=>YT,STATE_METHODS:()=>u3t,WALLET_METHODS:()=>c3t,infuraNetworks:()=>kin,mobileLinkChoiceKey:()=>Iin,reservedEvents:()=>Tin,signingMethods:()=>Ein,stateMethods:()=>Cin});var $2=ce(()=>{d();p();i3t();h3t();f3t();m3t();y3t();g3t();b3t();v3t();w3t();x3t();_3t()});var dle=_((Xha,C3t)=>{d();p();C3t.exports=lle;lle.strict=T3t;lle.loose=E3t;var Ain=Object.prototype.toString,Sin={"[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 lle(r){return T3t(r)||E3t(r)}function T3t(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function E3t(r){return Sin[Ain.call(r)]}});var k3t=_((rfa,I3t)=>{d();p();var Pin=dle().strict;I3t.exports=function(e){if(Pin(e)){var t=b.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return b.Buffer.from(e)}});function ig(r){return new Uint8Array(r)}function EU(r,e=!1){let t=r.toString(ple);return e?JT(t):t}function CU(r){return r.toString(hle)}function fle(r){return r.readUIntBE(0,r.length)}function sg(r){return(0,S3t.default)(r)}function Em(r,e=!1){return EU(sg(r),e)}function IU(r){return CU(sg(r))}function mle(r){return fle(sg(r))}function kU(r){return b.Buffer.from(og(r),ple)}function Cm(r){return ig(kU(r))}function P3t(r){return CU(kU(r))}function R3t(r){return mle(Cm(r))}function AU(r){return b.Buffer.from(r,hle)}function SU(r){return ig(AU(r))}function M3t(r,e=!1){return EU(AU(r),e)}function N3t(r){let e=parseInt(r,10);return zin(jin(e),"Number can only safely store up to 53 bits"),e}function B3t(r){return Oin(yle(r))}function D3t(r){return gle(yle(r))}function O3t(r,e){return Lin(yle(r),e)}function L3t(r){return`${r}`}function yle(r){let e=(r>>>0).toString(2);return xle(e)}function Oin(r){return sg(gle(r))}function gle(r){return new Uint8Array(Win(r).map(e=>parseInt(e,2)))}function Lin(r,e){return Em(gle(r),e)}function qin(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function ble(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function jA(r){return b.Buffer.isBuffer(r)}function PU(r){return A3t.default.strict(r)&&!jA(r)}function vle(r){return!PU(r)&&!jA(r)&&typeof r.byteLength<"u"}function q3t(r){return jA(r)?Min:PU(r)?Bin:vle(r)?Din:Array.isArray(r)?Nin:typeof r}function F3t(r){return qin(r)?Rin:ble(r)?ple:hle}function W3t(...r){return b.Buffer.concat(r)}function wle(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function Fin(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function Win(r,e=8){let t=xle(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function xle(r,e=8,t=TU){return Uin(r,Fin(r.length,e),t)}function Uin(r,e,t=TU){return Kin(r,e,!0,t)}function og(r){return r.replace(/^0x/,"")}function JT(r){return r.startsWith("0x")?r:`0x${r}`}function U3t(r){return r=og(r),r=xle(r,2),r&&(r=JT(r)),r}function H3t(r){let e=r.startsWith("0x");return r=og(r),r=r.startsWith(TU)?r.substring(1):r,e?JT(r):r}function Hin(r){return typeof r>"u"}function jin(r){return!Hin(r)}function zin(r,e){if(!r)throw new Error(e)}function Kin(r,e,t,n=TU){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var A3t,S3t,ple,hle,Rin,Min,Nin,Bin,Din,TU,zA=ce(()=>{d();p();A3t=mn(dle()),S3t=mn(k3t()),ple="hex",hle="utf8",Rin="binary",Min="buffer",Nin="array",Bin="typed-array",Din="array-buffer",TU="0"});function KA(r){return sg(new Uint8Array(r))}function Vin(r){return IU(new Uint8Array(r))}function _le(r,e){return Em(new Uint8Array(r),!e)}function Gin(r){return mle(new Uint8Array(r))}function $in(...r){return Cm(r.map(e=>Em(new Uint8Array(e))).join("")).buffer}function Tle(r){return ig(r).buffer}function Yin(r){return CU(r)}function Jin(r,e){return EU(r,!e)}function Qin(r){return fle(r)}function Zin(...r){return W3t(...r)}function Xin(r){return SU(r).buffer}function esn(r){return AU(r)}function tsn(r,e){return M3t(r,!e)}function rsn(r){return N3t(r)}function nsn(r){return kU(r)}function Ele(r){return Cm(r).buffer}function asn(r){return P3t(r)}function isn(r){return R3t(r)}function ssn(r){return B3t(r)}function osn(r){return D3t(r).buffer}function csn(r){return L3t(r)}function Cle(r,e){return O3t(Number(r),!e)}var j3t=ce(()=>{d();p();zA()});var kle=_(Pi=>{"use strict";d();p();var z3t=Pi&&Pi.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Q3t:typeof navigator<"u"?Ile(navigator.userAgent):e5t()}Pi.detect=psn;function Z3t(r){return r!==""&&dsn.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function hsn(r){var e=Z3t(r);return e?e[0]:null}Pi.browserName=hsn;function Ile(r){var e=Z3t(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new J3t;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";d();p();Object.defineProperty(si,"__esModule",{value:!0});si.getLocalStorage=si.getLocalStorageOrThrow=si.getCrypto=si.getCryptoOrThrow=si.getLocation=si.getLocationOrThrow=si.getNavigator=si.getNavigatorOrThrow=si.getDocument=si.getDocumentOrThrow=si.getFromWindowOrThrow=si.getFromWindow=void 0;function Y2(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}si.getFromWindow=Y2;function QT(r){let e=Y2(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}si.getFromWindowOrThrow=QT;function msn(){return QT("document")}si.getDocumentOrThrow=msn;function ysn(){return Y2("document")}si.getDocument=ysn;function gsn(){return QT("navigator")}si.getNavigatorOrThrow=gsn;function bsn(){return Y2("navigator")}si.getNavigator=bsn;function vsn(){return QT("location")}si.getLocationOrThrow=vsn;function wsn(){return Y2("location")}si.getLocation=wsn;function xsn(){return QT("crypto")}si.getCryptoOrThrow=xsn;function _sn(){return Y2("crypto")}si.getCrypto=_sn;function Tsn(){return QT("localStorage")}si.getLocalStorageOrThrow=Tsn;function Esn(){return Y2("localStorage")}si.getLocalStorage=Esn});var Ri,Csn,Isn,ksn,Asn,Ssn,Ale,Psn,Sle,Rsn,Msn,Nsn,VA,NU=ce(()=>{d();p();Ri=mn(MU()),Csn=Ri.getFromWindow,Isn=Ri.getFromWindowOrThrow,ksn=Ri.getDocumentOrThrow,Asn=Ri.getDocument,Ssn=Ri.getNavigatorOrThrow,Ale=Ri.getNavigator,Psn=Ri.getLocationOrThrow,Sle=Ri.getLocation,Rsn=Ri.getCryptoOrThrow,Msn=Ri.getCrypto,Nsn=Ri.getLocalStorageOrThrow,VA=Ri.getLocalStorage});function GA(r){return(0,t5t.detect)(r)}function BU(){let r=GA();return r&&r.os?r.os:void 0}function r5t(){let r=BU();return r?r.toLowerCase().includes("android"):!1}function n5t(){let r=BU();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function Ple(){return BU()?r5t()||n5t():!1}function a5t(){let r=GA();return r&&r.name?r.name.toLowerCase()==="node":!1}function Rle(){return!a5t()&&!!Ale()}var t5t,i5t=ce(()=>{d();p();t5t=mn(kle());NU()});var Mle={};cr(Mle,{safeJsonParse:()=>Q0,safeJsonStringify:()=>Im});function Q0(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function Im(r){return typeof r=="string"?r:JSON.stringify(r)}var ZT=ce(()=>{d();p()});var Nle,Ble,Dle=ce(()=>{d();p();ZT();Nle=Q0,Ble=Im});function $A(r,e){let t=Ble(e),n=VA();n&&n.setItem(r,t)}function YA(r){let e=null,t=null,n=VA();return n&&(t=n.getItem(r)),e=t&&Nle(t),e}function JA(r){let e=VA();e&&e.removeItem(r)}var Ole=ce(()=>{d();p();Dle();NU()});var Lle=_(DU=>{"use strict";d();p();Object.defineProperty(DU,"__esModule",{value:!0});DU.getWindowMetadata=void 0;var s5t=MU();function Bsn(){let r,e;try{r=s5t.getDocumentOrThrow(),e=s5t.getLocationOrThrow()}catch{return null}function t(){let h=r.getElementsByTagName("link"),f=[];for(let m=0;m-1){let I=y.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let S=e.protocol+"//"+e.host;if(I.indexOf("/")===0)S+=I;else{let L=e.pathname.split("/");L.pop();let F=L.join("/");S+=F+"/"+I}f.push(S)}else if(I.indexOf("//")===0){let S=e.protocol+I;f.push(S)}else f.push(I)}}return f}function n(...h){let f=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(I)).filter(I=>I?h.includes(I):!1);if(E.length&&E){let I=y.getAttribute("content");if(I)return I}}return""}function a(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}DU.getWindowMetadata=Bsn});function OU(){return o5t.getWindowMetadata()}var o5t,c5t=ce(()=>{d();p();o5t=mn(Lle())});function Dsn(r){return U3t(r)}function Osn(r){return JT(r)}function Lsn(r){return og(r)}function qsn(r){return H3t(JT(r))}function QA(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function Fsn(){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 u5t(r,e){let t,n=_U[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function Wsn(r,e){let t,n=u5t(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var qle,l5t=ce(()=>{d();p();zA();Y0();$2();qle=hU});function Usn(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function Hsn(r){let e=r.href.split("?")[0];$A(G2,Object.assign(Object.assign({},r),{href:e}))}function d5t(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function jsn(r,e){let t=r;return e&&(t=e.map(n=>d5t(r,n)).filter(Boolean)),t}var p5t=ce(()=>{d();p();$2();Ole()});function zsn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function Fle(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var h5t=ce(()=>{d();p()});function Ksn(){return f5t+"/api/v2/wallets"}function Vsn(){return f5t+"/api/v2/dapps"}function m5t(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function Gsn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>m5t(t,e))}var f5t,y5t=ce(()=>{d();p();f5t="https://registry.walletconnect.com"});var Wle=_((ema,g5t)=>{"use strict";d();p();g5t.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var Hle=_((nma,x5t)=>{"use strict";d();p();var w5t="%[a-f0-9]{2}",b5t=new RegExp("("+w5t+")|([^%]+?)","gi"),v5t=new RegExp("("+w5t+")+","gi");function Ule(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],Ule(t),Ule(n))}function $sn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(b5t)||[],t=1;t{"use strict";d();p();_5t.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var zle=_((uma,T5t)=>{"use strict";d();p();T5t.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";d();p();var Jsn=Wle(),Qsn=Hle(),C5t=jle(),Zsn=zle(),Xsn=r=>r==null;function eon(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Ec(e,r),"[",a,"]"].join("")]:[...t,[Ec(e,r),"[",Ec(a,r),"]=",Ec(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Ec(e,r),"[]"].join("")]:[...t,[Ec(e,r),"[]=",Ec(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[Ec(e,r),"=",Ec(n,r)].join("")]:[[t,Ec(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Ec(e,r)]:[...t,[Ec(e,r),"=",Ec(n,r)].join("")]}}function ton(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&J2(n,r).includes(r.arrayFormatSeparator);n=s?J2(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>J2(c,r)):n===null?n:J2(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function I5t(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ec(r,e){return e.encode?e.strict?Jsn(r):encodeURIComponent(r):r}function J2(r,e){return e.decode?Qsn(r):r}function k5t(r){return Array.isArray(r)?r.sort():typeof r=="object"?k5t(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function A5t(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function ron(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function S5t(r){r=A5t(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function E5t(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function P5t(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),I5t(e.arrayFormatSeparator);let t=ton(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=C5t(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:J2(s,e),t(J2(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=E5t(i[s],e);else n[a]=E5t(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=k5t(s):a[i]=s,a},Object.create(null))}Ll.extract=S5t;Ll.parse=P5t;Ll.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),I5t(e.arrayFormatSeparator);let t=s=>e.skipNull&&Xsn(r[s])||e.skipEmptyString&&r[s]==="",n=eon(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Ec(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):Ec(s,e)+"="+Ec(o,e)}).filter(s=>s.length>0).join("&")};Ll.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=C5t(r,"#");return Object.assign({url:t.split("?")[0]||"",query:P5t(S5t(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:J2(n,e)}:{})};Ll.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=A5t(r.url).split("?")[0]||"",n=Ll.extract(r.url),a=Ll.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Ll.stringify(i,e);s&&(s=`?${s}`);let o=ron(r.url);return r.fragmentIdentifier&&(o=`#${Ec(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};Ll.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=Ll.parseUrl(r,t);return Ll.stringifyUrl({url:n,query:Zsn(a,e),fragmentIdentifier:i},t)};Ll.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Ll.pick(r,n,t)}});function Kle(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function Vle(r,e){let t=qU(r);return t=Object.assign(Object.assign({},t),e),r=M5t(t),r}function qU(r){return LU.parse(r)}function M5t(r){return LU.stringify(r)}var LU,Gle=ce(()=>{d();p();LU=mn(R5t())});function $le(r){return typeof r.bridge<"u"}function Yle(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(h){let f="@",m=h.split(f);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(h){let f=qU(h);return{key:f.key||"",bridge:f.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var N5t=ce(()=>{d();p();Gle()});function non(r){return r===""||typeof r=="string"&&r.trim()===""}function aon(r){return!(r&&r.length)}function ion(r){return jA(r)}function son(r){return PU(r)}function oon(r){return vle(r)}function con(r){return q3t(r)}function uon(r){return F3t(r)}function lon(r,e){return ble(r,e)}function don(r){return typeof r.params=="object"}function Jle(r){return typeof r.method<"u"}function cg(r){return typeof r.result<"u"}function Q2(r){return typeof r.error<"u"}function FU(r){return typeof r.event<"u"}function Qle(r){return xU.includes(r)||r.startsWith("wc_")}function Zle(r){return r.method.startsWith("wc_")?!0:!YT.includes(r.method)}var B5t=ce(()=>{d();p();zA();$2()});var WU={};cr(WU,{addHexPrefix:()=>Osn,appendToQueryString:()=>Vle,concatArrayBuffers:()=>$in,concatBuffers:()=>Zin,convertArrayBufferToBuffer:()=>KA,convertArrayBufferToHex:()=>_le,convertArrayBufferToNumber:()=>Gin,convertArrayBufferToUtf8:()=>Vin,convertBufferToArrayBuffer:()=>Tle,convertBufferToHex:()=>Jin,convertBufferToNumber:()=>Qin,convertBufferToUtf8:()=>Yin,convertHexToArrayBuffer:()=>Ele,convertHexToBuffer:()=>nsn,convertHexToNumber:()=>isn,convertHexToUtf8:()=>asn,convertNumberToArrayBuffer:()=>osn,convertNumberToBuffer:()=>ssn,convertNumberToHex:()=>Cle,convertNumberToUtf8:()=>csn,convertUtf8ToArrayBuffer:()=>Xin,convertUtf8ToBuffer:()=>esn,convertUtf8ToHex:()=>tsn,convertUtf8ToNumber:()=>rsn,detectEnv:()=>GA,detectOS:()=>BU,formatIOSMobile:()=>Usn,formatMobileRegistry:()=>Gsn,formatMobileRegistryEntry:()=>m5t,formatQueryString:()=>M5t,formatRpcError:()=>Fle,getClientMeta:()=>OU,getCrypto:()=>Msn,getCryptoOrThrow:()=>Rsn,getDappRegistryUrl:()=>Vsn,getDocument:()=>Asn,getDocumentOrThrow:()=>ksn,getEncoding:()=>uon,getFromWindow:()=>Csn,getFromWindowOrThrow:()=>Isn,getInfuraRpcUrl:()=>u5t,getLocal:()=>YA,getLocalStorage:()=>VA,getLocalStorageOrThrow:()=>Nsn,getLocation:()=>Sle,getLocationOrThrow:()=>Psn,getMobileLinkRegistry:()=>jsn,getMobileRegistryEntry:()=>d5t,getNavigator:()=>Ale,getNavigatorOrThrow:()=>Ssn,getQueryString:()=>Kle,getRpcUrl:()=>Wsn,getType:()=>con,getWalletRegistryUrl:()=>Ksn,isAndroid:()=>r5t,isArrayBuffer:()=>oon,isBrowser:()=>Rle,isBuffer:()=>ion,isEmptyArray:()=>aon,isEmptyString:()=>non,isHexString:()=>lon,isIOS:()=>n5t,isInternalEvent:()=>FU,isJsonRpcRequest:()=>Jle,isJsonRpcResponseError:()=>Q2,isJsonRpcResponseSuccess:()=>cg,isJsonRpcSubscription:()=>don,isMobile:()=>Ple,isNode:()=>a5t,isReservedEvent:()=>Qle,isSilentPayload:()=>Zle,isTypedArray:()=>son,isWalletConnectSession:()=>$le,logDeprecationWarning:()=>Fsn,parseQueryString:()=>qU,parseWalletConnectUri:()=>Yle,payloadId:()=>qle,promisify:()=>zsn,removeHexLeadingZeros:()=>qsn,removeHexPrefix:()=>Lsn,removeLocal:()=>JA,safeJsonParse:()=>Nle,safeJsonStringify:()=>Ble,sanitizeHex:()=>Dsn,saveMobileLinkInfo:()=>Hsn,setLocal:()=>$A,uuid:()=>QA});var Z0=ce(()=>{d();p();j3t();i5t();Dle();Ole();c5t();l5t();p5t();h5t();y5t();N5t();Gle();B5t();NU()});var Xle,D5t,O5t=ce(()=>{d();p();Xle=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},D5t=Xle});var q5t=_((zma,L5t)=>{"use strict";d();p();L5t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function hon(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=Rle()?{protocol:e,version:t,env:"browser",host:((n=Sle())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=GA())===null||a===void 0?void 0:a.name)||""},c=Vle(Kle(s[1]||""),o);return s[0]+"?"+c}var pon,ede,F5t,W5t=ce(()=>{d();p();Z0();O5t();pon=typeof global.WebSocket<"u"?global.WebSocket:q5t(),ede=class{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 D5t,!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,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=hon(this._url,this._protocol,this._version);if(this._nextSocket=new pon(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),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){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};F5t=ede});var tde,U5t,H5t=ce(()=>{d();p();Z0();tde=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;Jle(e)?n=e.method:cg(e)||Q2(e)?n=`response:${e.id}`:FU(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!Qle(n)&&!FU(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(Q2(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},U5t=tde});var rde,j5t,z5t=ce(()=>{d();p();Z0();rde=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=YA(this.storageId);return t&&$le(t)&&(e=t),e}setSession(e){return $A(this.storageId,e),e}removeSession(){JA(this.storageId)}},j5t=rde});function yon(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function gon(r){return yon(r).split(".").slice(-2).join(".")}function bon(){return Math.floor(Math.random()*K5t.length)}function von(){return K5t[bon()]}function won(r){return gon(r)===fon}function V5t(r){return won(r)?von():r}var fon,mon,K5t,G5t=ce(()=>{d();p();fon="walletconnect.org",mon="abcdefghijklmnopqrstuvwxyz0123456789",K5t=mon.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var nde,$5t,Y5t=ce(()=>{d();p();$2();Z0();W5t();H5t();z5t();G5t();nde=class{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 U5t,this._clientMeta=OU()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new j5t(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...YT,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(ile);e.connectorOpts.bridge&&(this.bridge=V5t(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new F5t({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;let t=Ele(e);this._key=t}get key(){return this._key?_le(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=QA()),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=OU()),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;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}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,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=QA(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(wU)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(ole);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(wU))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(HA);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=QA(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(HA);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),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(HA);let t=e&&e.message?e.message:Xue,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(J0);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(J0);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(J0);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(J0);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(J0);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(J0);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(ele);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(J0);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return Cle(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(cg(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(tle)}rejectRequest(e){if(Q2(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(rle)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:Zle(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(nle);return{id:typeof e.id>"u"?qle():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(ale);let t={id:e.id,jsonrpc:"2.0"};if(Q2(e)){let n=Fle(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(cg(e))return Object.assign(Object.assign({},t),e);throw new Error(vU)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),JA(G2)),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:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.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 n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}cg(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}cg(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(vU))})})}_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,t)=>{let{request:n}=t.params[0];if(Ple()&&this._signingMethods.includes(n.method)){let a=YA(G2);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.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(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=Yle(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(sle)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):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");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},$5t=nde});function ade(r){return J5t.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var J5t,Q5t=ce(()=>{d();p();J5t=mn($T())});var xon,ide,sde,UU,_on,Ton,HU,ode,Eon,cde=ce(()=>{d();p();xon=0,ide=1,sde=16,UU=32,_on=64,Ton=128,HU=256,ode=512,Eon=1024});var ZA,jU,km,ude,Z2,lde,dde,Con,Ion,kon,Aon,Son,Pon,Ron,Mon,Non,Z5t=ce(()=>{d();p();cde();ZA=256,jU=256,km="AES-CBC",ude=`SHA-${ZA}`,Z2="HMAC",lde="SHA-256",dde="SHA-512",Con=`aes-${ZA}-cbc`,Ion=`sha${jU}`,kon="sha256",Aon="sha512",Son="ripemd160",Pon=1,Ron=32,Mon=16,Non=32});var Bon,Don,X5t=ce(()=>{d();p();Bon="hex",Don="utf8"});var Oon,ext=ce(()=>{d();p();Oon="Bad MAC"});var pde,hde,fde,mde,txt=ce(()=>{d();p();pde="encrypt",hde="decrypt",fde="sign",mde="verify"});var yde=ce(()=>{d();p();Z5t();X5t();ext();cde();txt()});function Lon(r){return r===km?{length:ZA,name:km}:{hash:{name:ude},name:Z2}}function qon(r){return r===km?[pde,hde]:[fde,mde]}async function zU(r,e=km){return ug.getSubtleCrypto().importKey("raw",r,Lon(e),!0,qon(e))}async function rxt(r,e,t){let n=ug.getSubtleCrypto(),a=await zU(e,km),i=await n.encrypt({iv:r,name:km},a,t);return new Uint8Array(i)}async function nxt(r,e,t){let n=ug.getSubtleCrypto(),a=await zU(e,km),i=await n.decrypt({iv:r,name:km},a,t);return new Uint8Array(i)}async function gde(r,e){let t=ug.getSubtleCrypto(),n=await zU(r,Z2),a=await t.sign({length:jU,name:Z2},n,e);return new Uint8Array(a)}async function bde(r,e){let t=ug.getSubtleCrypto(),n=await zU(r,Z2),a=await t.sign({length:512,name:Z2},n,e);return new Uint8Array(a)}async function axt(r){let t=await ug.getSubtleCrypto().digest({name:lde},r);return new Uint8Array(t)}async function ixt(r){let t=await ug.getSubtleCrypto().digest({name:dde},r);return new Uint8Array(t)}var ug,KU=ce(()=>{d();p();ug=mn($T());yde()});function vde(r,e,t){return rxt(r,e,t)}function wde(r,e,t){return nxt(r,e,t)}var sxt=ce(()=>{d();p();KU()});var ql={};var oxt=ce(()=>{d();p();gr(ql,mn($T()))});var Fon,cxt,uxt=ce(()=>{d();p();Fon=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],cxt={pad(r){let e=Fon[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var lxt=ce(()=>{d();p()});function dxt(r,e){if(!r)throw new Error(e||"Assertion failed")}function XA(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{d();p()});var _o={};cr(_o,{assert:()=>dxt,isConstantTime:()=>XA,pkcs7:()=>cxt});var xde=ce(()=>{d();p();oxt();gr(_o,ql);uxt();lxt();pxt()});async function VU(r,e){return await gde(r,e)}async function Won(r,e,t){let n=await gde(r,e);return XA(n,t)}async function Uon(r,e){return await bde(r,e)}async function Hon(r,e,t){let n=await bde(r,e);return XA(n,t)}var hxt=ce(()=>{d();p();KU();xde()});async function jon(r){return await axt(r)}async function zon(r){return await ixt(r)}async function Kon(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var fxt=ce(()=>{d();p();KU()});var Op={};cr(Op,{AES_BROWSER_ALGO:()=>km,AES_LENGTH:()=>ZA,AES_NODE_ALGO:()=>Con,DECRYPT_OP:()=>hde,ENCRYPT_OP:()=>pde,ERROR_BAD_MAC:()=>Oon,HEX_ENC:()=>Bon,HMAC_BROWSER:()=>Z2,HMAC_BROWSER_ALGO:()=>ude,HMAC_LENGTH:()=>jU,HMAC_NODE_ALGO:()=>Ion,IV_LENGTH:()=>Mon,KEY_LENGTH:()=>Ron,LENGTH_0:()=>xon,LENGTH_1:()=>ide,LENGTH_1024:()=>Eon,LENGTH_128:()=>Ton,LENGTH_16:()=>sde,LENGTH_256:()=>HU,LENGTH_32:()=>UU,LENGTH_512:()=>ode,LENGTH_64:()=>_on,MAC_LENGTH:()=>Non,PREFIX_LENGTH:()=>Pon,RIPEMD160_NODE_ALGO:()=>Son,SHA256_BROWSER_ALGO:()=>lde,SHA256_NODE_ALGO:()=>kon,SHA512_BROWSER_ALGO:()=>dde,SHA512_NODE_ALGO:()=>Aon,SIGN_OP:()=>fde,UTF8_ENC:()=>Don,VERIFY_OP:()=>mde,aesCbcDecrypt:()=>wde,aesCbcEncrypt:()=>vde,assert:()=>dxt,hmacSha256Sign:()=>VU,hmacSha256Verify:()=>Won,hmacSha512Sign:()=>Uon,hmacSha512Verify:()=>Hon,isConstantTime:()=>XA,pkcs7:()=>cxt,randomBytes:()=>ade,ripemd160:()=>Kon,sha256:()=>jon,sha512:()=>zon});var mxt=ce(()=>{d();p();Q5t();sxt();hxt();fxt();xde();gr(Op,_o);yde()});var _de={};cr(_de,{decrypt:()=>Gon,encrypt:()=>Von,generateKey:()=>yxt,verifyHmac:()=>gxt});async function yxt(r){let e=(r||256)/8,t=ade(e);return Tle(sg(t))}async function gxt(r,e){let t=Cm(r.data),n=Cm(r.iv),a=Cm(r.hmac),i=Em(a,!1),s=wle(t,n),o=await VU(e,s),c=Em(o,!1);return og(i)===og(c)}async function Von(r,e,t){let n=ig(KA(e)),a=t||await yxt(128),i=ig(KA(a)),s=Em(i,!1),o=JSON.stringify(r),c=SU(o),u=await vde(i,n,c),l=Em(u,!1),h=wle(u,i),f=await VU(n,h),m=Em(f,!1);return{data:l,hmac:m,iv:s}}async function Gon(r,e){let t=ig(KA(e));if(!t)throw new Error("Missing key: required for decryption");if(!await gxt(r,t))return null;let a=Cm(r.data),i=Cm(r.iv),s=await wde(i,t,a),o=IU(s),c;try{c=JSON.parse(o)}catch{return null}return c}var bxt=ce(()=>{d();p();mxt();zA();Z0()});var Ede={};cr(Ede,{default:()=>$on});var Tde,$on,Cde=ce(()=>{d();p();Y5t();bxt();Tde=class extends $5t{constructor(e,t){super({cryptoLib:_de,connectorOpts:e,pushServerOpts:t})}},$on=Tde});var wxt=_((Fya,vxt)=>{d();p();vxt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var lg=_(X2=>{d();p();var Ide,Yon=[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];X2.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};X2.getSymbolTotalCodewords=function(e){return Yon[e]};X2.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};X2.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Ide=e};X2.isKanjiModeEnabled=function(){return typeof Ide<"u"};X2.toSJIS=function(e){return Ide(e)}});var GU=_(Lp=>{d();p();Lp.L={bit:1};Lp.M={bit:0};Lp.Q={bit:3};Lp.H={bit:2};function Jon(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Lp.L;case"m":case"medium":return Lp.M;case"q":case"quartile":return Lp.Q;case"h":case"high":return Lp.H;default:throw new Error("Unknown EC Level: "+r)}}Lp.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Lp.from=function(e,t){if(Lp.isValid(e))return e;try{return Jon(e)}catch{return t}}});var Txt=_(($ya,_xt)=>{d();p();function xxt(){this.buffer=[],this.length=0}xxt.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};_xt.exports=xxt});var Cxt=_((Qya,Ext)=>{d();p();function eS(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}eS.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};eS.prototype.get=function(r,e){return this.data[r*this.size+e]};eS.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};eS.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};Ext.exports=eS});var Ixt=_($U=>{d();p();var Qon=lg().getSymbolSize;$U.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Qon(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{d();p();var Zon=lg().getSymbolSize,kxt=7;Axt.getPositions=function(e){let t=Zon(e);return[[0,0],[t-kxt,0],[0,t-kxt]]}});var Pxt=_(oi=>{d();p();oi.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var ew={N1:3,N2:3,N3:40,N4:10};oi.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};oi.from=function(e){return oi.isValid(e)?parseInt(e,10):void 0};oi.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=ew.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=ew.N1+(i-5)),o=l,i=1)}a>=5&&(n+=ew.N1+(a-5)),i>=5&&(n+=ew.N1+(i-5))}return n};oi.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*ew.N3};oi.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{d();p();var dg=GU(),YU=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],JU=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];kde.getBlocksCount=function(e,t){switch(t){case dg.L:return YU[(e-1)*4+0];case dg.M:return YU[(e-1)*4+1];case dg.Q:return YU[(e-1)*4+2];case dg.H:return YU[(e-1)*4+3];default:return}};kde.getTotalCodewordsCount=function(e,t){switch(t){case dg.L:return JU[(e-1)*4+0];case dg.M:return JU[(e-1)*4+1];case dg.Q:return JU[(e-1)*4+2];case dg.H:return JU[(e-1)*4+3];default:return}}});var Rxt=_(ZU=>{d();p();var tS=new Uint8Array(512),QU=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)tS[t]=e,QU[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)tS[t]=tS[t-255]})();ZU.log=function(e){if(e<1)throw new Error("log("+e+")");return QU[e]};ZU.exp=function(e){return tS[e]};ZU.mul=function(e,t){return e===0||t===0?0:tS[QU[e]+QU[t]]}});var Mxt=_(rS=>{d();p();var Sde=Rxt();rS.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{d();p();var Nxt=Mxt();function Pde(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}Pde.prototype.initialize=function(e){this.degree=e,this.genPoly=Nxt.generateECPolynomial(this.degree)};Pde.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Nxt.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};Bxt.exports=Pde});var Rde=_(Oxt=>{d();p();Oxt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var Mde=_(X0=>{d();p();var Lxt="[0-9]+",ecn="[A-Z $%*+\\-./:]+",nS="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";nS=nS.replace(/u/g,"\\u");var tcn="(?:(?![A-Z0-9 $%*+\\-./:]|"+nS+`)(?:.|[\r -]))+`;X0.KANJI=new RegExp(nS,"g");X0.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");X0.BYTE=new RegExp(tcn,"g");X0.NUMERIC=new RegExp(Lxt,"g");X0.ALPHANUMERIC=new RegExp(ecn,"g");var rcn=new RegExp("^"+nS+"$"),ncn=new RegExp("^"+Lxt+"$"),acn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");X0.testKanji=function(e){return rcn.test(e)};X0.testNumeric=function(e){return ncn.test(e)};X0.testAlphanumeric=function(e){return acn.test(e)}});var pg=_(eo=>{d();p();var icn=Rde(),Nde=Mde();eo.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};eo.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};eo.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};eo.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};eo.MIXED={bit:-1};eo.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!icn.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};eo.getBestModeForData=function(e){return Nde.testNumeric(e)?eo.NUMERIC:Nde.testAlphanumeric(e)?eo.ALPHANUMERIC:Nde.testKanji(e)?eo.KANJI:eo.BYTE};eo.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};eo.isValid=function(e){return e&&e.bit&&e.ccBits};function scn(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return eo.NUMERIC;case"alphanumeric":return eo.ALPHANUMERIC;case"kanji":return eo.KANJI;case"byte":return eo.BYTE;default:throw new Error("Unknown mode: "+r)}}eo.from=function(e,t){if(eo.isValid(e))return e;try{return scn(e)}catch{return t}}});var Hxt=_(tw=>{d();p();var XU=lg(),ocn=Ade(),qxt=GU(),hg=pg(),Bde=Rde(),Wxt=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,Fxt=XU.getBCHDigit(Wxt);function ccn(r,e,t){for(let n=1;n<=40;n++)if(e<=tw.getCapacity(n,t,r))return n}function Uxt(r,e){return hg.getCharCountIndicator(r,e)+4}function ucn(r,e){let t=0;return r.forEach(function(n){let a=Uxt(n.mode,e);t+=a+n.getBitsLength()}),t}function lcn(r,e){for(let t=1;t<=40;t++)if(ucn(r,t)<=tw.getCapacity(t,e,hg.MIXED))return t}tw.from=function(e,t){return Bde.isValid(e)?parseInt(e,10):t};tw.getCapacity=function(e,t,n){if(!Bde.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=hg.BYTE);let a=XU.getSymbolTotalCodewords(e),i=ocn.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===hg.MIXED)return s;let o=s-Uxt(n,e);switch(n){case hg.NUMERIC:return Math.floor(o/10*3);case hg.ALPHANUMERIC:return Math.floor(o/11*2);case hg.KANJI:return Math.floor(o/13);case hg.BYTE:default:return Math.floor(o/8)}};tw.getBestVersionForData=function(e,t){let n,a=qxt.from(t,qxt.M);if(Array.isArray(e)){if(e.length>1)return lcn(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return ccn(n.mode,n.getLength(),a)};tw.getEncodedBits=function(e){if(!Bde.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;XU.getBCHDigit(t)-Fxt>=0;)t^=Wxt<{d();p();var Dde=lg(),zxt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,dcn=1<<14|1<<12|1<<10|1<<4|1<<1,jxt=Dde.getBCHDigit(zxt);Kxt.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;Dde.getBCHDigit(a)-jxt>=0;)a^=zxt<{d();p();var pcn=pg();function XT(r){this.mode=pcn.NUMERIC,this.data=r.toString()}XT.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};XT.prototype.getLength=function(){return this.data.length};XT.prototype.getBitsLength=function(){return XT.getBitsLength(this.data.length)};XT.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};Gxt.exports=XT});var Jxt=_((F1a,Yxt)=>{d();p();var hcn=pg(),Ode=["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 e6(r){this.mode=hcn.ALPHANUMERIC,this.data=r}e6.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};e6.prototype.getLength=function(){return this.data.length};e6.prototype.getBitsLength=function(){return e6.getBitsLength(this.data.length)};e6.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Ode.indexOf(this.data[t])*45;n+=Ode.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Ode.indexOf(this.data[t]),6)};Yxt.exports=e6});var Zxt=_((H1a,Qxt)=>{"use strict";d();p();Qxt.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var e_t=_((K1a,Xxt)=>{d();p();var fcn=Zxt(),mcn=pg();function t6(r){this.mode=mcn.BYTE,typeof r=="string"&&(r=fcn(r)),this.data=new Uint8Array(r)}t6.getBitsLength=function(e){return e*8};t6.prototype.getLength=function(){return this.data.length};t6.prototype.getBitsLength=function(){return t6.getBitsLength(this.data.length)};t6.prototype.write=function(r){for(let e=0,t=this.data.length;e{d();p();var ycn=pg(),gcn=lg();function r6(r){this.mode=ycn.KANJI,this.data=r}r6.getBitsLength=function(e){return e*13};r6.prototype.getLength=function(){return this.data.length};r6.prototype.getBitsLength=function(){return r6.getBitsLength(this.data.length)};r6.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` -Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};t_t.exports=r6});var n_t=_((Q1a,Lde)=>{"use strict";d();p();var aS={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=aS.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,h,f,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(h=l[c],f=u+h,m=a[c],y=typeof a[c]>"u",(y||m>f)&&(a[c]=f,i.push(c,f),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=aS.single_source_shortest_paths(r,e,t);return aS.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=aS.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof Lde<"u"&&(Lde.exports=aS)});var d_t=_(n6=>{d();p();var Ma=pg(),s_t=$xt(),o_t=Jxt(),c_t=e_t(),u_t=r_t(),iS=Mde(),eH=lg(),bcn=n_t();function a_t(r){return unescape(encodeURIComponent(r)).length}function sS(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function l_t(r){let e=sS(iS.NUMERIC,Ma.NUMERIC,r),t=sS(iS.ALPHANUMERIC,Ma.ALPHANUMERIC,r),n,a;return eH.isKanjiModeEnabled()?(n=sS(iS.BYTE,Ma.BYTE,r),a=sS(iS.KANJI,Ma.KANJI,r)):(n=sS(iS.BYTE_KANJI,Ma.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function qde(r,e){switch(e){case Ma.NUMERIC:return s_t.getBitsLength(r);case Ma.ALPHANUMERIC:return o_t.getBitsLength(r);case Ma.KANJI:return u_t.getBitsLength(r);case Ma.BYTE:return c_t.getBitsLength(r)}}function vcn(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function wcn(r){let e=[];for(let t=0;t{d();p();var rH=lg(),Fde=GU(),_cn=Txt(),Tcn=Cxt(),Ecn=Ixt(),Ccn=Sxt(),Hde=Pxt(),jde=Ade(),Icn=Dxt(),tH=Hxt(),kcn=Vxt(),Acn=pg(),Wde=d_t();function Scn(r,e){let t=r.size,n=Ccn.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function Pcn(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function Ude(r,e,t){let n=r.size,a=kcn.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function Ncn(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function Bcn(r,e,t){let n=new _cn;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),Acn.getCharCountIndicator(c.mode,r)),c.write(n)});let a=rH.getSymbolTotalCodewords(r),i=jde.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c{"use strict";d();p();Object.defineProperty(qW,"__esModule",{value:!0});qW.StatusDotIcon=void 0;var ibt=(kc(),nt(Ol));function a$r(r){return(0,ibt.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},r),(0,ibt.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}qW.StatusDotIcon=a$r});var dbt=x((haa,lbt)=>{d();p();function obt(r){this.mode=yd.MODE_8BIT_BYTE,this.data=r,this.parsedData=[];for(var e=0,t=this.data.length;e65536?(n[0]=240|(a&1835008)>>>18,n[1]=128|(a&258048)>>>12,n[2]=128|(a&4032)>>>6,n[3]=128|a&63):a>2048?(n[0]=224|(a&61440)>>>12,n[1]=128|(a&4032)>>>6,n[2]=128|a&63):a>128?(n[0]=192|(a&1984)>>>6,n[1]=128|a&63):n[0]=a,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))}obt.prototype={getLength:function(r){return this.parsedData.length},write:function(r){for(var e=0,t=this.parsedData.length;e=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=Im.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(0<=t&&t<=6&&(n==0||n==6)||0<=n&&n<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=n&&n<=4?this.modules[r+t][e+n]=!0:this.modules[r+t][e+n]=!1)},getBestMaskPattern:function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var n=Zi.getLostPoint(this);(t==0||r>n)&&(r=n,e=t)}return e},createMovieClip:function(r,e,t){var n=r.createEmptyMovieClip(e,t),a=1;this.make();for(var i=0;i>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=n}for(var t=0;t<18;t++){var n=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=n}},setupTypeInfo:function(r,e){for(var t=this.errorCorrectLevel<<3|e,n=Zi.getBCHTypeInfo(t),a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<6?this.modules[a][8]=i:a<8?this.modules[a+1][8]=i:this.modules[this.moduleCount-15+a][8]=i}for(var a=0;a<15;a++){var i=!r&&(n>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=i:a<9?this.modules[8][15-a-1+1]=i:this.modules[8][15-a-1]=i}this.modules[this.moduleCount-8][8]=!r},mapData:function(r,e){for(var t=-1,n=this.moduleCount-1,a=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(s==6&&s--;;){for(var o=0;o<2;o++)if(this.modules[n][s-o]==null){var c=!1;i>>a&1)==1);var u=Zi.getMask(e,n,s-o);u&&(c=!c),this.modules[n][s-o]=c,a--,a==-1&&(i++,a=7)}if(n+=t,n<0||this.moduleCount<=n){n-=t,t=-t;break}}}};Im.PAD0=236;Im.PAD1=17;Im.createData=function(r,e,t){for(var n=Cm.getRSBlocks(r,e),a=new cbt,i=0;io*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+o*8+")");for(a.getLengthInBits()+4<=o*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=o*8||(a.put(Im.PAD0,8),a.getLengthInBits()>=o*8));)a.put(Im.PAD1,8);return Im.createBytes(a,n)};Im.createBytes=function(r,e){for(var t=0,n=0,a=0,i=new Array(e.length),s=new Array(e.length),o=0;o=0?m.get(y):0}}for(var E=0,l=0;l=0;)e^=Zi.G15<=0;)e^=Zi.G18<>>=1;return e},getPatternPosition:function(r){return Zi.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case ng.PATTERN000:return(e+t)%2==0;case ng.PATTERN001:return e%2==0;case ng.PATTERN010:return t%3==0;case ng.PATTERN011:return(e+t)%3==0;case ng.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case ng.PATTERN101:return e*t%2+e*t%3==0;case ng.PATTERN110:return(e*t%2+e*t%3)%2==0;case ng.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new qT([1],0),t=0;t5&&(t+=3+i-5)}for(var n=0;n=256;)r-=255;return ec.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(Qs=0;Qs<8;Qs++)ec.EXP_TABLE[Qs]=1<>>7-r%8&1)==1},put:function(r,e){for(var t=0;t>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Foe=[[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 ubt(r){var e=this;if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},typeof r=="string"&&(r={content:r}),r)for(var t in r)this.options[t]=r[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 n(u){switch(u){case"L":return ag.L;case"M":return ag.M;case"Q":return ag.Q;case"H":return ag.H;default:throw new Error("Unknwon error correction level: "+u)}}function a(u,l){for(var h=i(u),f=1,m=0,y=0,E=Foe.length;y<=E;y++){var I=Foe[y];if(!I)throw new Error("Content too long: expected "+m+" but got "+h);switch(l){case"L":m=I[0];break;case"M":m=I[1];break;case"Q":m=I[2];break;case"H":m=I[3];break;default:throw new Error("Unknwon error correction level: "+l)}if(h<=m)break;f++}if(f>Foe.length)throw new Error("Content too long");return f}function i(u){var l=encodeURI(u).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return l.length+(l.length!=u?3:0)}var s=this.options.content,o=a(s,this.options.ecl),c=n(this.options.ecl);this.qrcode=new Im(o,c),this.qrcode.addData(s),this.qrcode.make()}ubt.prototype.svg=function(r){var e=this.options||{},t=this.qrcode.modules;typeof r>"u"&&(r={container:e.container||"svg"});for(var n=typeof e.pretty<"u"?!!e.pretty:!0,a=n?" ":"",i=n?`\r +`:"",s=e.width,o=e.height,c=t.length,u=s/(c+2*e.padding),l=o/(c+2*e.padding),h=typeof e.join<"u"?!!e.join:!1,f=typeof e.swap<"u"?!!e.swap:!1,m=typeof e.xmlDeclaration<"u"?!!e.xmlDeclaration:!0,y=typeof e.predefined<"u"?!!e.predefined:!1,E=y?a+''+i:"",I=a+''+i,S="",L="",F=0;F'+i:S+=a+''+i}}h&&(S=a+'');let T="";if(this.options.image!==void 0&&this.options.image.svg){let A=s*this.options.image.width/100,v=o*this.options.image.height/100,k=s/2-A/2,O=o/2-v/2;T+=``,T+=this.options.image.svg+i,T+=""}var P="";switch(r.container){case"svg":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"svg-viewbox":m&&(P+=''+i),P+=''+i,P+=E+I+S,P+=T,P+="";break;case"g":P+=''+i,P+=E+I+S,P+=T,P+="";break;default:P+=(E+I+S+T).replace(/^\s+/,"");break}return P};lbt.exports=ubt});var hbt=x(FT=>{"use strict";d();p();var i$r=FT&&FT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(FT,"__esModule",{value:!0});FT.QRCode=void 0;var s$r=(kc(),nt(Ol)),pbt=(rg(),nt(LT)),o$r=i$r(dbt()),c$r=r=>{let[e,t]=(0,pbt.useState)("");return(0,pbt.useEffect)(()=>{var n,a;let i=new o$r.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:(n=r.width)!==null&&n!==void 0?n:256,height:(a=r.height)!==null&&a!==void 0?a:256,padding:0,image:r.image}),s=b.Buffer.from(i.svg(),"utf8").toString("base64");t(`data:image/svg+xml;base64,${s}`)}),e?(0,s$r.h)("img",{src:e,alt:"QR Code"}):null};FT.QRCode=c$r});var fbt=x(Woe=>{"use strict";d();p();Object.defineProperty(Woe,"__esModule",{value:!0});Woe.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 mbt=x(WT=>{"use strict";d();p();var u$r=WT&&WT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(WT,"__esModule",{value:!0});WT.Spinner=void 0;var FW=(kc(),nt(Ol)),l$r=u$r(fbt()),d$r=r=>{var e;let t=(e=r.size)!==null&&e!==void 0?e:64,n=r.color||"#000";return(0,FW.h)("div",{class:"-cbwsdk-spinner"},(0,FW.h)("style",null,l$r.default),(0,FW.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:t,height:t}},(0,FW.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))};WT.Spinner=d$r});var ybt=x(Uoe=>{"use strict";d();p();Object.defineProperty(Uoe,"__esModule",{value:!0});Uoe.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}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-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 Tbt=x(Dp=>{"use strict";d();p();var UT=Dp&&Dp.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Dp,"__esModule",{value:!0});Dp.CoinbaseAppSteps=Dp.CoinbaseWalletSteps=Dp.ConnectItem=Dp.ConnectContent=void 0;var Bp=UT(Hk()),rr=(kc(),nt(Ol)),gbt=(rg(),nt(LT)),p$r=Y0(),h$r=Qgt(),f$r=Xgt(),m$r=UT(ebt()),y$r=UT(tbt()),vbt=rbt(),g$r=UT(nbt()),b$r=UT(abt()),v$r=sbt(),w$r=hbt(),_$r=mbt(),x$r=UT(ybt()),bbt={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:y$r.default,steps:_bt},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:m$r.default,steps:xbt}},T$r=r=>{switch(r){case"coinbase-app":return g$r.default;case"coinbase-wallet-app":default:return b$r.default}},Hoe=r=>r==="light"?"#FFFFFF":"#0A0B0D";function E$r(r){let{theme:e}=r,[t,n]=(0,gbt.useState)("coinbase-wallet-app"),a=(0,gbt.useCallback)(u=>{n(u)},[]),i=(0,p$r.createQrUrl)(r.sessionId,r.sessionSecret,r.linkAPIUrl,r.isParentConnection,r.version,r.chainId),s=bbt[t];if(!t)return null;let o=s.steps,c=t==="coinbase-app";return(0,rr.h)("div",{"data-testid":"connect-content",class:(0,Bp.default)("-cbwsdk-connect-content",e)},(0,rr.h)("style",null,x$r.default),(0,rr.h)("div",{class:"-cbwsdk-connect-content-header"},(0,rr.h)("h2",{class:(0,Bp.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),r.onCancel&&(0,rr.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:r.onCancel},(0,rr.h)(f$r.CloseIcon,{fill:e==="light"?"#0A0B0D":"#FFFFFF"}))),(0,rr.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,rr.h)("div",null,Object.entries(bbt).map(([u,l])=>(0,rr.h)(wbt,{key:u,title:l.title,description:l.description,icon:l.icon,selected:t===u,onClick:()=>a(u),theme:e}))),c&&(0,rr.h)("div",{class:(0,Bp.default)("-cbwsdk-connect-content-update-app",e)},"Don\u2019t see a ",(0,rr.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,rr.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,rr.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,rr.h)(w$r.QRCode,{content:i,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:T$r(t),width:25,height:25}}),(0,rr.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:h$r.LIB_VERSION}),(0,rr.h)("input",{type:"hidden",value:i})),(0,rr.h)(o,{theme:e}),!r.isConnected&&(0,rr.h)("div",{"data-testid":"connecting-spinner",class:(0,Bp.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,rr.h)(_$r.Spinner,{size:36,color:e==="dark"?"#FFF":"#000"}),(0,rr.h)("p",null,"Connecting...")))))}Dp.ConnectContent=E$r;function wbt({title:r,description:e,icon:t,selected:n,theme:a,onClick:i}){return(0,rr.h)("div",{onClick:i,class:(0,Bp.default)("-cbwsdk-connect-item",a,{selected:n})},(0,rr.h)("div",null,(0,rr.h)("img",{src:t,alt:r})),(0,rr.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,rr.h)("h3",{class:"-cbwsdk-connect-item-title"},r),(0,rr.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}Dp.ConnectItem=wbt;function _bt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"Scan")," "),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(vbt.QRCodeIcon,{fill:Hoe(r)})))))}Dp.CoinbaseWalletSteps=_bt;function xbt({theme:r}){return(0,rr.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,rr.h)("li",{class:(0,Bp.default)("-cbwsdk-wallet-steps-item",r)},(0,rr.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,rr.h)("span",null,"Tap ",(0,rr.h)("strong",null,"More")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(v$r.StatusDotIcon,{fill:Hoe(r)})),(0,rr.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,rr.h)("strong",null,"Scan")),(0,rr.h)("span",{class:(0,Bp.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",r)},(0,rr.h)(vbt.QRCodeIcon,{fill:Hoe(r)})))))}Dp.CoinbaseAppSteps=xbt});var Cbt=x(WW=>{"use strict";d();p();Object.defineProperty(WW,"__esModule",{value:!0});WW.ArrowLeftIcon=void 0;var Ebt=(kc(),nt(Ol));function C$r(r){return(0,Ebt.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},r),(0,Ebt.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"}))}WW.ArrowLeftIcon=C$r});var Ibt=x(UW=>{"use strict";d();p();Object.defineProperty(UW,"__esModule",{value:!0});UW.LaptopIcon=void 0;var joe=(kc(),nt(Ol));function I$r(r){return(0,joe.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,joe.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,joe.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"}))}UW.LaptopIcon=I$r});var Abt=x(HW=>{"use strict";d();p();Object.defineProperty(HW,"__esModule",{value:!0});HW.SafeIcon=void 0;var kbt=(kc(),nt(Ol));function k$r(r){return(0,kbt.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},r),(0,kbt.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"}))}HW.SafeIcon=k$r});var Sbt=x(zoe=>{"use strict";d();p();Object.defineProperty(zoe,"__esModule",{value:!0});zoe.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 Rbt=x(HT=>{"use strict";d();p();var Pbt=HT&&HT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(HT,"__esModule",{value:!0});HT.TryExtensionContent=void 0;var L2=Pbt(Hk()),Zs=(kc(),nt(Ol)),Koe=(rg(),nt(LT)),A$r=Cbt(),S$r=Ibt(),P$r=Abt(),R$r=Pbt(Sbt());function M$r({theme:r}){let[e,t]=(0,Koe.useState)(!1),n=(0,Koe.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),a=(0,Koe.useCallback)(()=>{e?window.location.reload():(n(),t(!0))},[n,e]);return(0,Zs.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension",r)},(0,Zs.h)("style",null,R$r.default),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("h3",{class:(0,L2.default)("-cbwsdk-try-extension-heading",r)},"Or try the Coinbase Wallet browser extension"),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,Zs.h)("button",{class:(0,L2.default)("-cbwsdk-try-extension-cta",r),onClick:a},e?"Refresh":"Install"),(0,Zs.h)("div",null,!e&&(0,Zs.h)(A$r.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:r==="light"?"#0052FF":"#588AF5"})))),(0,Zs.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,Zs.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(S$r.LaptopIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Connect with dapps with just one click on your desktop browser")),(0,Zs.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,Zs.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,Zs.h)("span",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-icon",r)},(0,Zs.h)(P$r.SafeIcon,{fill:r==="light"?"#0A0B0D":"#FFFFFF"}))),(0,Zs.h)("div",{class:(0,L2.default)("-cbwsdk-try-extension-list-item-copy",r)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}HT.TryExtensionContent=M$r});var Mbt=x(Goe=>{"use strict";d();p();Object.defineProperty(Goe,"__esModule",{value:!0});Goe.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 Bbt=x(jT=>{"use strict";d();p();var Nbt=jT&&jT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(jT,"__esModule",{value:!0});jT.ConnectDialog=void 0;var Voe=Nbt(Hk()),q2=(kc(),nt(Ol)),$oe=(rg(),nt(LT)),N$r=Tbt(),B$r=Rbt(),D$r=Nbt(Mbt()),O$r=r=>{let{isOpen:e,darkMode:t}=r,[n,a]=(0,$oe.useState)(!e),[i,s]=(0,$oe.useState)(!e);(0,$oe.useEffect)(()=>{let c=[window.setTimeout(()=>{s(!e)},10)];return e?a(!1):c.push(window.setTimeout(()=>{a(!0)},360)),()=>{c.forEach(window.clearTimeout)}},[r.isOpen]);let o=t?"dark":"light";return(0,q2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,q2.h)("style",null,D$r.default),(0,q2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-backdrop",o,i&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,q2.h)("div",{class:"-cbwsdk-connect-dialog"},(0,q2.h)("div",{class:(0,Voe.default)("-cbwsdk-connect-dialog-box",i&&"-cbwsdk-connect-dialog-box-hidden")},r.connectDisabled?null:(0,q2.h)(N$r.ConnectContent,{theme:o,version:r.version,sessionId:r.sessionId,sessionSecret:r.sessionSecret,linkAPIUrl:r.linkAPIUrl,isConnected:r.isConnected,isParentConnection:r.isParentConnection,chainId:r.chainId,onCancel:r.onCancel}),(0,q2.h)(B$r.TryExtensionContent,{theme:o}))))};jT.ConnectDialog=O$r});var Obt=x(jW=>{"use strict";d();p();Object.defineProperty(jW,"__esModule",{value:!0});jW.LinkFlow=void 0;var Yoe=(kc(),nt(Ol)),Dbt=Uk(),L$r=Bbt(),Joe=class{constructor(e){this.extensionUI$=new Dbt.BehaviorSubject({}),this.subscriptions=new Dbt.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(t=>{this.isConnected!==t&&(this.isConnected=t,this.render())})),this.subscriptions.add(this.chainId$.subscribe(t=>{this.chainId!==t&&(this.chainId=t,this.render())}))}detach(){var e;!this.root||(this.subscriptions.unsubscribe(),(0,Yoe.render)(null,this.root),(e=this.root.parentElement)===null||e===void 0||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{!this.root||(0,Yoe.render)((0,Yoe.h)(L$r.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}};jW.LinkFlow=Joe});var Lbt=x(Qoe=>{"use strict";d();p();Object.defineProperty(Qoe,"__esModule",{value:!0});Qoe.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}"});var Fbt=x(Op=>{"use strict";d();p();var qbt=Op&&Op.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Op,"__esModule",{value:!0});Op.SnackbarInstance=Op.SnackbarContainer=Op.Snackbar=void 0;var zW=qbt(Hk()),Xs=(kc(),nt(Ol)),Zoe=(rg(),nt(LT)),q$r=qbt(Lbt()),F$r="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=";function W$r(r){switch(r){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+";case"coinbase-wallet-app":default:return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}var Xoe=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){!this.root||(0,Xs.render)((0,Xs.h)("div",null,(0,Xs.h)(Op.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,t])=>(0,Xs.h)(Op.SnackbarInstance,Object.assign({},t,{key:e}))))),this.root)}};Op.Snackbar=Xoe;var U$r=r=>(0,Xs.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-container")},(0,Xs.h)("style",null,q$r.default),(0,Xs.h)("div",{class:"-cbwsdk-snackbar"},r.children));Op.SnackbarContainer=U$r;var H$r=({autoExpand:r,message:e,menuItems:t,appSrc:n})=>{let[a,i]=(0,Zoe.useState)(!0),[s,o]=(0,Zoe.useState)(r??!1);(0,Zoe.useEffect)(()=>{let u=[window.setTimeout(()=>{i(!1)},1),window.setTimeout(()=>{o(!0)},1e4)];return()=>{u.forEach(window.clearTimeout)}});let c=()=>{o(!s)};return(0,Xs.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",s&&"-cbwsdk-snackbar-instance-expanded")},(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:c},(0,Xs.h)("img",{src:W$r(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,Xs.h)("div",{class:"-gear-container"},!s&&(0,Xs.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,Xs.h)("img",{src:F$r,class:"-gear-icon",title:"Expand"}))),t&&t.length>0&&(0,Xs.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},t.map((u,l)=>(0,Xs.h)("div",{class:(0,zW.default)("-cbwsdk-snackbar-instance-menu-item",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:u.onClick,key:l},(0,Xs.h)("svg",{width:u.svgWidth,height:u.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,Xs.h)("path",{"fill-rule":u.defaultFillRule,"clip-rule":u.defaultClipRule,d:u.path,fill:"#AAAAAA"})),(0,Xs.h)("span",{class:(0,zW.default)("-cbwsdk-snackbar-instance-menu-item-info",u.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},u.info)))))};Op.SnackbarInstance=H$r});var Wbt=x(ece=>{"use strict";d();p();Object.defineProperty(ece,"__esModule",{value:!0});ece.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 Ubt=x(zT=>{"use strict";d();p();var j$r=zT&&zT.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(zT,"__esModule",{value:!0});zT.injectCssReset=void 0;var z$r=j$r(Wbt());function K$r(){let r=document.createElement("style");r.type="text/css",r.appendChild(document.createTextNode(z$r.default)),document.documentElement.appendChild(r)}zT.injectCssReset=K$r});var Hbt=x(KW=>{"use strict";d();p();Object.defineProperty(KW,"__esModule",{value:!0});KW.WalletSDKUI=void 0;var G$r=Obt(),V$r=Fbt(),$$r=Ubt(),tce=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new V$r.Snackbar({darkMode:e.darkMode}),this.linkFlow=new G$r.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,$$r.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return e.isUnlinkedErrorState?t={autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,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:e.onResetConnection}]}:t={message:"Confirm on phone",appSrc:this.appSrc,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:e.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:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return(e=this.standalone)!==null&&e!==void 0?e:!1}};KW.WalletSDKUI=tce});var zbt=x(GW=>{"use strict";d();p();Object.defineProperty(GW,"__esModule",{value:!0});var KT;(function(r){r.typeOfFunction="function",r.boolTrue=!0})(KT||(KT={}));function jbt(r,e,t){if(!t||typeof t.value!==KT.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:KT.boolTrue,get:function(){var n=t.value.bind(this);return Object.defineProperty(this,e,{value:n,configurable:KT.boolTrue,writable:KT.boolTrue}),n}}}GW.bind=jbt;GW.default=jbt});var nce=x(Kk=>{"use strict";d();p();var Y$r=Kk&&Kk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Kk,"__esModule",{value:!0});var rce=Qi();function J$r(r){return function(t){return t.lift(new Q$r(r))}}Kk.audit=J$r;var Q$r=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new Z$r(e,this.durationSelector))},r}(),Z$r=function(r){Y$r(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=void 0;try{var a=this.durationSelector;n=a(t)}catch(s){return this.destination.error(s)}var i=rce.innerSubscribe(n,new rce.SimpleInnerSubscriber(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}},e.prototype.clearThrottle=function(){var t=this,n=t.value,a=t.hasValue,i=t.throttled;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),a&&(this.value=void 0,this.hasValue=!1,this.destination.next(n))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(rce.SimpleOuterSubscriber)});var Kbt=x(ace=>{"use strict";d();p();Object.defineProperty(ace,"__esModule",{value:!0});var X$r=Zu(),eYr=nce(),tYr=Aoe();function rYr(r,e){return e===void 0&&(e=X$r.async),eYr.audit(function(){return tYr.timer(r,e)})}ace.auditTime=rYr});var Gbt=x(Gk=>{"use strict";d();p();var nYr=Gk&&Gk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Gk,"__esModule",{value:!0});var ice=Qi();function aYr(r){return function(t){return t.lift(new iYr(r))}}Gk.buffer=aYr;var iYr=function(){function r(e){this.closingNotifier=e}return r.prototype.call=function(e,t){return t.subscribe(new sYr(e,this.closingNotifier))},r}(),sYr=function(r){nYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.buffer=[],a.add(ice.innerSubscribe(n,new ice.SimpleInnerSubscriber(a))),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(ice.SimpleOuterSubscriber)});var Ybt=x(Vk=>{"use strict";d();p();var Vbt=Vk&&Vk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Vk,"__esModule",{value:!0});var $bt=tr();function oYr(r,e){return e===void 0&&(e=null),function(n){return n.lift(new cYr(r,e))}}Vk.bufferCount=oYr;var cYr=function(){function r(e,t){this.bufferSize=e,this.startBufferEvery=t,!t||e===t?this.subscriberClass=uYr:this.subscriberClass=lYr}return r.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},r}(),uYr=function(r){Vbt(e,r);function e(t,n){var a=r.call(this,t)||this;return a.bufferSize=n,a.buffer=[],a}return e.prototype._next=function(t){var n=this.buffer;n.push(t),n.length==this.bufferSize&&(this.destination.next(n),this.buffer=[])},e.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),r.prototype._complete.call(this)},e}($bt.Subscriber),lYr=function(r){Vbt(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=a,i.buffers=[],i.count=0,i}return e.prototype._next=function(t){var n=this,a=n.bufferSize,i=n.startBufferEvery,s=n.buffers,o=n.count;this.count++,o%i===0&&s.push([]);for(var c=s.length;c--;){var u=s[c];u.push(t),u.length===a&&(s.splice(c,1),this.destination.next(u))}},e.prototype._complete=function(){for(var t=this,n=t.buffers,a=t.destination;n.length>0;){var i=n.shift();i.length>0&&a.next(i)}r.prototype._complete.call(this)},e}($bt.Subscriber)});var Zbt=x($k=>{"use strict";d();p();var dYr=$k&&$k.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($k,"__esModule",{value:!0});var pYr=Zu(),hYr=tr(),fYr=Zh();function mYr(r){var e=arguments.length,t=pYr.async;fYr.isScheduler(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],e--);var n=null;e>=2&&(n=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),function(s){return s.lift(new yYr(r,n,a,t))}}$k.bufferTime=mYr;var yYr=function(){function r(e,t,n,a){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new bYr(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},r}(),gYr=function(){function r(){this.buffer=[]}return r}(),bYr=function(r){dYr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=a,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var c=o.openContext();if(o.timespanOnly=a==null||a<0,o.timespanOnly){var u={subscriber:o,context:c,bufferTimeSpan:n};o.add(c.closeAction=s.schedule(Jbt,n,u))}else{var l={subscriber:o,context:c},h={bufferTimeSpan:n,bufferCreationInterval:a,subscriber:o,scheduler:s};o.add(c.closeAction=s.schedule(Qbt,n,l)),o.add(s.schedule(vYr,a,h))}return o}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i,s=0;s0;){var i=n.shift();a.next(i.buffer)}r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var n=t.closeAction;if(n.unsubscribe(),this.remove(n),!this.closed&&this.timespanOnly){t=this.openContext();var a=this.bufferTimeSpan,i={subscriber:this,context:t,bufferTimeSpan:a};this.add(t.closeAction=this.scheduler.schedule(Jbt,a,i))}},e.prototype.openContext=function(){var t=new gYr;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var n=this.contexts,a=n?n.indexOf(t):-1;a>=0&&n.splice(n.indexOf(t),1)},e}(hYr.Subscriber);function Jbt(r){var e=r.subscriber,t=r.context;t&&e.closeContext(t),e.closed||(r.context=e.openContext(),r.context.closeAction=this.schedule(r,r.bufferTimeSpan))}function vYr(r){var e=r.bufferCreationInterval,t=r.bufferTimeSpan,n=r.subscriber,a=r.scheduler,i=n.openContext(),s=this;n.closed||(n.add(i.closeAction=a.schedule(Qbt,t,{subscriber:n,context:i})),s.schedule(r,e))}function Qbt(r){var e=r.subscriber,t=r.context;e.closeContext(t)}});var evt=x(Yk=>{"use strict";d();p();var wYr=Yk&&Yk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Yk,"__esModule",{value:!0});var _Yr=xo(),Xbt=X1(),xYr=Z1();function TYr(r,e){return function(n){return n.lift(new EYr(r,e))}}Yk.bufferToggle=TYr;var EYr=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new CYr(e,this.openings,this.closingSelector))},r}(),CYr=function(r){wYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.closingSelector=a,i.contexts=[],i.add(Xbt.subscribeToResult(i,n)),i}return e.prototype._next=function(t){for(var n=this.contexts,a=n.length,i=0;i0;){var a=n.shift();a.subscription.unsubscribe(),a.buffer=null,a.subscription=null}this.contexts=null,r.prototype._error.call(this,t)},e.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,r.prototype._complete.call(this)},e.prototype.notifyNext=function(t,n){t?this.closeBuffer(t):this.openBuffer(n)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var n=this.closingSelector,a=n.call(this,t);a&&this.trySubscribe(a)}catch(i){this._error(i)}},e.prototype.closeBuffer=function(t){var n=this.contexts;if(n&&t){var a=t.buffer,i=t.subscription;this.destination.next(a),n.splice(n.indexOf(t),1),this.remove(i),i.unsubscribe()}},e.prototype.trySubscribe=function(t){var n=this.contexts,a=[],i=new _Yr.Subscription,s={buffer:a,subscription:i};n.push(s);var o=Xbt.subscribeToResult(this,t,s);!o||o.closed?this.closeBuffer(s):(o.context=s,this.add(o),i.add(o))},e}(xYr.OuterSubscriber)});var tvt=x(Jk=>{"use strict";d();p();var IYr=Jk&&Jk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Jk,"__esModule",{value:!0});var kYr=xo(),sce=Qi();function AYr(r){return function(e){return e.lift(new SYr(r))}}Jk.bufferWhen=AYr;var SYr=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new PYr(e,this.closingSelector))},r}(),PYr=function(r){IYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.closingSelector=n,a.subscribing=!1,a.openBuffer(),a}return e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),r.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];var a;try{var i=this.closingSelector;a=i()}catch(s){return this.error(s)}t=new kYr.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(sce.innerSubscribe(a,new sce.SimpleInnerSubscriber(this))),this.subscribing=!1},e}(sce.SimpleOuterSubscriber)});var rvt=x(Qk=>{"use strict";d();p();var RYr=Qk&&Qk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Qk,"__esModule",{value:!0});var oce=Qi();function MYr(r){return function(t){var n=new NYr(r),a=t.lift(n);return n.caught=a}}Qk.catchError=MYr;var NYr=function(){function r(e){this.selector=e}return r.prototype.call=function(e,t){return t.subscribe(new BYr(e,this.selector,this.caught))},r}(),BYr=function(r){RYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.selector=n,i.caught=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(s){r.prototype.error.call(this,s);return}this._unsubscribeAndRecycle();var a=new oce.SimpleInnerSubscriber(this);this.add(a);var i=oce.innerSubscribe(n,a);i!==a&&this.add(i)}},e}(oce.SimpleOuterSubscriber)});var nvt=x(cce=>{"use strict";d();p();Object.defineProperty(cce,"__esModule",{value:!0});var DYr=gW();function OYr(r){return function(e){return e.lift(new DYr.CombineLatestOperator(r))}}cce.combineAll=OYr});var avt=x(uce=>{"use strict";d();p();Object.defineProperty(uce,"__esModule",{value:!0});var LYr=Qu(),qYr=gW(),FYr=Xh();function WYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(lce,"__esModule",{value:!0});var UYr=Lk();function HYr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(dce,"__esModule",{value:!0});var jYr=Ok();function zYr(r,e){return jYr.mergeMap(r,e,1)}dce.concatMap=zYr});var svt=x(hce=>{"use strict";d();p();Object.defineProperty(hce,"__esModule",{value:!0});var KYr=pce();function GYr(r,e){return KYr.concatMap(function(){return r},e)}hce.concatMapTo=GYr});var ovt=x(Zk=>{"use strict";d();p();var VYr=Zk&&Zk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Zk,"__esModule",{value:!0});var $Yr=tr();function YYr(r){return function(e){return e.lift(new JYr(r,e))}}Zk.count=YYr;var JYr=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new QYr(e,this.predicate,this.source))},r}(),QYr=function(r){VYr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.count=0,i.index=0,i}return e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var n;try{n=this.predicate(t,this.index++,this.source)}catch(a){this.destination.error(a);return}n&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}($Yr.Subscriber)});var cvt=x(Xk=>{"use strict";d();p();var ZYr=Xk&&Xk.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(Xk,"__esModule",{value:!0});var fce=Qi();function XYr(r){return function(e){return e.lift(new eJr(r))}}Xk.debounce=XYr;var eJr=function(){function r(e){this.durationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new tJr(e,this.durationSelector))},r}(),tJr=function(r){ZYr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.durationSelector=n,a.hasValue=!1,a}return e.prototype._next=function(t){try{var n=this.durationSelector.call(this,t);n&&this._tryNext(t,n)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,n){var a=this.durationSubscription;this.value=t,this.hasValue=!0,a&&(a.unsubscribe(),this.remove(a)),a=fce.innerSubscribe(n,new fce.SimpleInnerSubscriber(this)),a&&!a.closed&&this.add(this.durationSubscription=a)},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var t=this.value,n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,r.prototype._next.call(this,t)}},e}(fce.SimpleOuterSubscriber)});var uvt=x(eA=>{"use strict";d();p();var rJr=eA&&eA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(eA,"__esModule",{value:!0});var nJr=tr(),aJr=Zu();function iJr(r,e){return e===void 0&&(e=aJr.async),function(t){return t.lift(new sJr(r,e))}}eA.debounceTime=iJr;var sJr=function(){function r(e,t){this.dueTime=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new oJr(e,this.dueTime,this.scheduler))},r}(),oJr=function(r){rJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.dueTime=n,i.scheduler=a,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(cJr,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(nJr.Subscriber);function cJr(r){r.debouncedNext()}});var GT=x(tA=>{"use strict";d();p();var uJr=tA&&tA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(tA,"__esModule",{value:!0});var lJr=tr();function dJr(r){return r===void 0&&(r=null),function(e){return e.lift(new pJr(r))}}tA.defaultIfEmpty=dJr;var pJr=function(){function r(e){this.defaultValue=e}return r.prototype.call=function(e,t){return t.subscribe(new hJr(e,this.defaultValue))},r}(),hJr=function(r){uJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.defaultValue=n,a.isEmpty=!0,a}return e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(lJr.Subscriber)});var yce=x(mce=>{"use strict";d();p();Object.defineProperty(mce,"__esModule",{value:!0});function fJr(r){return r instanceof Date&&!isNaN(+r)}mce.isDate=fJr});var dvt=x(rA=>{"use strict";d();p();var mJr=rA&&rA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(rA,"__esModule",{value:!0});var yJr=Zu(),gJr=yce(),bJr=tr(),lvt=xk();function vJr(r,e){e===void 0&&(e=yJr.async);var t=gJr.isDate(r),n=t?+r-e.now():Math.abs(r);return function(a){return a.lift(new wJr(n,e))}}rA.delay=vJr;var wJr=function(){function r(e,t){this.delay=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new _Jr(e,this.delay,this.scheduler))},r}(),_Jr=function(r){mJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.delay=n,i.scheduler=a,i.queue=[],i.active=!1,i.errored=!1,i}return e.dispatch=function(t){for(var n=t.source,a=n.queue,i=t.scheduler,s=t.destination;a.length>0&&a[0].time-i.now()<=0;)a.shift().notification.observe(s);if(a.length>0){var o=Math.max(0,a[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),n.active=!1},e.prototype._schedule=function(t){this.active=!0;var n=this.destination;n.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(this.errored!==!0){var n=this.scheduler,a=new xJr(n.now()+this.delay,t);this.queue.push(a),this.active===!1&&this._schedule(n)}},e.prototype._next=function(t){this.scheduleNotification(lvt.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(lvt.Notification.createComplete()),this.unsubscribe()},e}(bJr.Subscriber),xJr=function(){function r(e,t){this.time=e,this.notification=t}return r}()});var hvt=x(nA=>{"use strict";d();p();var gce=nA&&nA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(nA,"__esModule",{value:!0});var TJr=tr(),EJr=nn(),CJr=Z1(),IJr=X1();function kJr(r,e){return e?function(t){return new SJr(t,e).lift(new pvt(r))}:function(t){return t.lift(new pvt(r))}}nA.delayWhen=kJr;var pvt=function(){function r(e){this.delayDurationSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new AJr(e,this.delayDurationSelector))},r}(),AJr=function(r){gce(e,r);function e(t,n){var a=r.call(this,t)||this;return a.delayDurationSelector=n,a.completed=!1,a.delayNotifierSubscriptions=[],a.index=0,a}return e.prototype.notifyNext=function(t,n,a,i,s){this.destination.next(t),this.removeSubscription(s),this.tryComplete()},e.prototype.notifyError=function(t,n){this._error(t)},e.prototype.notifyComplete=function(t){var n=this.removeSubscription(t);n&&this.destination.next(n),this.tryComplete()},e.prototype._next=function(t){var n=this.index++;try{var a=this.delayDurationSelector(t,n);a&&this.tryDelay(a,t)}catch(i){this.destination.error(i)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var n=this.delayNotifierSubscriptions.indexOf(t);return n!==-1&&this.delayNotifierSubscriptions.splice(n,1),t.outerValue},e.prototype.tryDelay=function(t,n){var a=IJr.subscribeToResult(this,t,n);if(a&&!a.closed){var i=this.destination;i.add(a),this.delayNotifierSubscriptions.push(a)}},e.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},e}(CJr.OuterSubscriber),SJr=function(r){gce(e,r);function e(t,n){var a=r.call(this)||this;return a.source=t,a.subscriptionDelay=n,a}return e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new PJr(t,this.source))},e}(EJr.Observable),PJr=function(r){gce(e,r);function e(t,n){var a=r.call(this)||this;return a.parent=t,a.source=n,a.sourceSubscribed=!1,a}return e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(TJr.Subscriber)});var fvt=x(aA=>{"use strict";d();p();var RJr=aA&&aA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(aA,"__esModule",{value:!0});var MJr=tr();function NJr(){return function(e){return e.lift(new BJr)}}aA.dematerialize=NJr;var BJr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new DJr(e))},r}(),DJr=function(r){RJr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){t.observe(this.destination)},e}(MJr.Subscriber)});var yvt=x(VT=>{"use strict";d();p();var OJr=VT&&VT.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(VT,"__esModule",{value:!0});var bce=Qi();function LJr(r,e){return function(t){return t.lift(new qJr(r,e))}}VT.distinct=LJr;var qJr=function(){function r(e,t){this.keySelector=e,this.flushes=t}return r.prototype.call=function(e,t){return t.subscribe(new mvt(e,this.keySelector,this.flushes))},r}(),mvt=function(r){OJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=n,i.values=new Set,a&&i.add(bce.innerSubscribe(a,new bce.SimpleInnerSubscriber(i))),i}return e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var n,a=this.destination;try{n=this.keySelector(t)}catch(i){a.error(i);return}this._finalizeNext(n,t)},e.prototype._finalizeNext=function(t,n){var a=this.values;a.has(t)||(a.add(t),this.destination.next(n))},e}(bce.SimpleOuterSubscriber);VT.DistinctSubscriber=mvt});var vce=x(iA=>{"use strict";d();p();var FJr=iA&&iA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(iA,"__esModule",{value:!0});var WJr=tr();function UJr(r,e){return function(t){return t.lift(new HJr(r,e))}}iA.distinctUntilChanged=UJr;var HJr=function(){function r(e,t){this.compare=e,this.keySelector=t}return r.prototype.call=function(e,t){return t.subscribe(new jJr(e,this.compare,this.keySelector))},r}(),jJr=function(r){FJr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.keySelector=a,i.hasKey=!1,typeof n=="function"&&(i.compare=n),i}return e.prototype.compare=function(t,n){return t===n},e.prototype._next=function(t){var n;try{var a=this.keySelector;n=a?a(t):t}catch(o){return this.destination.error(o)}var i=!1;if(this.hasKey)try{var s=this.compare;i=s(this.key,n)}catch(o){return this.destination.error(o)}else this.hasKey=!0;i||(this.key=n,this.destination.next(t))},e}(WJr.Subscriber)});var gvt=x(wce=>{"use strict";d();p();Object.defineProperty(wce,"__esModule",{value:!0});var zJr=vce();function KJr(r,e){return zJr.distinctUntilChanged(function(t,n){return e?e(t[r],n[r]):t[r]===n[r]})}wce.distinctUntilKeyChanged=KJr});var oA=x(sA=>{"use strict";d();p();var GJr=sA&&sA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(sA,"__esModule",{value:!0});var VJr=PT(),$Jr=tr();function YJr(r){return r===void 0&&(r=ZJr),function(e){return e.lift(new JJr(r))}}sA.throwIfEmpty=YJr;var JJr=function(){function r(e){this.errorFactory=e}return r.prototype.call=function(e,t){return t.subscribe(new QJr(e,this.errorFactory))},r}(),QJr=function(r){GJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.errorFactory=n,a.hasValue=!1,a}return e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(n){t=n}this.destination.error(t)},e}($Jr.Subscriber);function ZJr(){return new VJr.EmptyError}});var VW=x(cA=>{"use strict";d();p();var XJr=cA&&cA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(cA,"__esModule",{value:!0});var eQr=tr(),tQr=ST(),rQr=Qh();function nQr(r){return function(e){return r===0?rQr.empty():e.lift(new aQr(r))}}cA.take=nQr;var aQr=function(){function r(e){if(this.total=e,this.total<0)throw new tQr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new iQr(e,this.total))},r}(),iQr=function(r){XJr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){var n=this.total,a=++this.count;a<=n&&(this.destination.next(t),a===n&&(this.destination.complete(),this.unsubscribe()))},e}(eQr.Subscriber)});var vvt=x(_ce=>{"use strict";d();p();Object.defineProperty(_ce,"__esModule",{value:!0});var bvt=ST(),sQr=M2(),oQr=oA(),cQr=GT(),uQr=VW();function lQr(r,e){if(r<0)throw new bvt.ArgumentOutOfRangeError;var t=arguments.length>=2;return function(n){return n.pipe(sQr.filter(function(a,i){return i===r}),uQr.take(1),t?cQr.defaultIfEmpty(e):oQr.throwIfEmpty(function(){return new bvt.ArgumentOutOfRangeError}))}}_ce.elementAt=lQr});var wvt=x(xce=>{"use strict";d();p();Object.defineProperty(xce,"__esModule",{value:!0});var dQr=Lk(),pQr=wk();function hQr(){for(var r=[],e=0;e{"use strict";d();p();var fQr=uA&&uA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(uA,"__esModule",{value:!0});var mQr=tr();function yQr(r,e){return function(t){return t.lift(new gQr(r,e,t))}}uA.every=yQr;var gQr=function(){function r(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return r.prototype.call=function(e,t){return t.subscribe(new bQr(e,this.predicate,this.thisArg,this.source))},r}(),bQr=function(r){fQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.predicate=n,s.thisArg=a,s.source=i,s.index=0,s.thisArg=a||s,s}return e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(a){this.destination.error(a);return}n||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(mQr.Subscriber)});var xvt=x(lA=>{"use strict";d();p();var vQr=lA&&lA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(lA,"__esModule",{value:!0});var Tce=Qi();function wQr(){return function(r){return r.lift(new _Qr)}}lA.exhaust=wQr;var _Qr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new xQr(e))},r}(),xQr=function(r){vQr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Tce.innerSubscribe(t,new Tce.SimpleInnerSubscriber(this))))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Tce.SimpleOuterSubscriber)});var Evt=x(dA=>{"use strict";d();p();var TQr=dA&&dA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(dA,"__esModule",{value:!0});var EQr=md(),CQr=Xh(),Ece=Qi();function Tvt(r,e){return e?function(t){return t.pipe(Tvt(function(n,a){return CQr.from(r(n,a)).pipe(EQr.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new IQr(r))}}dA.exhaustMap=Tvt;var IQr=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new kQr(e,this.project))},r}(),kQr=function(r){TQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.hasSubscription=!1,a.hasCompleted=!1,a.index=0,a}return e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this.hasSubscription=!0,this._innerSub(n)},e.prototype._innerSub=function(t){var n=new Ece.SimpleInnerSubscriber(this),a=this.destination;a.add(n);var i=Ece.innerSubscribe(t,n);i!==n&&a.add(i)},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(Ece.SimpleOuterSubscriber)});var kvt=x(F2=>{"use strict";d();p();var AQr=F2&&F2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(F2,"__esModule",{value:!0});var Cce=Qi();function SQr(r,e,t){return e===void 0&&(e=Number.POSITIVE_INFINITY),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(n){return n.lift(new Cvt(r,e,t))}}F2.expand=SQr;var Cvt=function(){function r(e,t,n){this.project=e,this.concurrent=t,this.scheduler=n}return r.prototype.call=function(e,t){return t.subscribe(new Ivt(e,this.project,this.concurrent,this.scheduler))},r}();F2.ExpandOperator=Cvt;var Ivt=function(r){AQr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.project=n,s.concurrent=a,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,a0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},e}(Cce.SimpleOuterSubscriber);F2.ExpandSubscriber=Ivt});var Avt=x(pA=>{"use strict";d();p();var PQr=pA&&pA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(pA,"__esModule",{value:!0});var RQr=tr(),MQr=xo();function NQr(r){return function(e){return e.lift(new BQr(r))}}pA.finalize=NQr;var BQr=function(){function r(e){this.callback=e}return r.prototype.call=function(e,t){return t.subscribe(new DQr(e,this.callback))},r}(),DQr=function(r){PQr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.add(new MQr.Subscription(n)),a}return e}(RQr.Subscriber)});var Ice=x(W2=>{"use strict";d();p();var OQr=W2&&W2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(W2,"__esModule",{value:!0});var LQr=tr();function qQr(r,e){if(typeof r!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Svt(r,t,!1,e))}}W2.find=qQr;var Svt=function(){function r(e,t,n,a){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=a}return r.prototype.call=function(e,t){return t.subscribe(new Pvt(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},r}();W2.FindValueOperator=Svt;var Pvt=function(r){OQr(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.predicate=n,o.source=a,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete(),this.unsubscribe()},e.prototype._next=function(t){var n=this,a=n.predicate,i=n.thisArg,s=this.index++;try{var o=a.call(i||this,t,s,this.source);o&&this.notifyComplete(this.yieldIndex?s:t)}catch(c){this.destination.error(c)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(LQr.Subscriber);W2.FindValueSubscriber=Pvt});var Rvt=x(kce=>{"use strict";d();p();Object.defineProperty(kce,"__esModule",{value:!0});var FQr=Ice();function WQr(r,e){return function(t){return t.lift(new FQr.FindValueOperator(r,t,!0,e))}}kce.findIndex=WQr});var Mvt=x(Ace=>{"use strict";d();p();Object.defineProperty(Ace,"__esModule",{value:!0});var UQr=PT(),HQr=M2(),jQr=VW(),zQr=GT(),KQr=oA(),GQr=J1();function VQr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?HQr.filter(function(a,i){return r(a,i,n)}):GQr.identity,jQr.take(1),t?zQr.defaultIfEmpty(e):KQr.throwIfEmpty(function(){return new UQr.EmptyError}))}}Ace.first=VQr});var Nvt=x(hA=>{"use strict";d();p();var $Qr=hA&&hA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(hA,"__esModule",{value:!0});var YQr=tr();function JQr(){return function(e){return e.lift(new QQr)}}hA.ignoreElements=JQr;var QQr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new ZQr(e))},r}(),ZQr=function(r){$Qr(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype._next=function(t){},e}(YQr.Subscriber)});var Bvt=x(fA=>{"use strict";d();p();var XQr=fA&&fA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(fA,"__esModule",{value:!0});var eZr=tr();function tZr(){return function(r){return r.lift(new rZr)}}fA.isEmpty=tZr;var rZr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new nZr(e))},r}(),nZr=function(r){XQr(e,r);function e(t){return r.call(this,t)||this}return e.prototype.notifyComplete=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(eZr.Subscriber)});var $W=x(mA=>{"use strict";d();p();var aZr=mA&&mA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(mA,"__esModule",{value:!0});var iZr=tr(),sZr=ST(),oZr=Qh();function cZr(r){return function(t){return r===0?oZr.empty():t.lift(new uZr(r))}}mA.takeLast=cZr;var uZr=function(){function r(e){if(this.total=e,this.total<0)throw new sZr.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return t.subscribe(new lZr(e,this.total))},r}(),lZr=function(r){aZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.ring=new Array,a.count=0,a}return e.prototype._next=function(t){var n=this.ring,a=this.total,i=this.count++;if(n.length0)for(var a=this.count>=this.total?this.total:this.count,i=this.ring,s=0;s{"use strict";d();p();Object.defineProperty(Sce,"__esModule",{value:!0});var dZr=PT(),pZr=M2(),hZr=$W(),fZr=oA(),mZr=GT(),yZr=J1();function gZr(r,e){var t=arguments.length>=2;return function(n){return n.pipe(r?pZr.filter(function(a,i){return r(a,i,n)}):yZr.identity,hZr.takeLast(1),t?mZr.defaultIfEmpty(e):fZr.throwIfEmpty(function(){return new dZr.EmptyError}))}}Sce.last=gZr});var Ovt=x(yA=>{"use strict";d();p();var bZr=yA&&yA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(yA,"__esModule",{value:!0});var vZr=tr();function wZr(r){return function(e){return e.lift(new _Zr(r))}}yA.mapTo=wZr;var _Zr=function(){function r(e){this.value=e}return r.prototype.call=function(e,t){return t.subscribe(new xZr(e,this.value))},r}(),xZr=function(r){bZr(e,r);function e(t,n){var a=r.call(this,t)||this;return a.value=n,a}return e.prototype._next=function(t){this.destination.next(this.value)},e}(vZr.Subscriber)});var Lvt=x(gA=>{"use strict";d();p();var TZr=gA&&gA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(gA,"__esModule",{value:!0});var EZr=tr(),Pce=xk();function CZr(){return function(e){return e.lift(new IZr)}}gA.materialize=CZr;var IZr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new kZr(e))},r}(),kZr=function(r){TZr(e,r);function e(t){return r.call(this,t)||this}return e.prototype._next=function(t){this.destination.next(Pce.Notification.createNext(t))},e.prototype._error=function(t){var n=this.destination;n.next(Pce.Notification.createError(t)),n.complete()},e.prototype._complete=function(){var t=this.destination;t.next(Pce.Notification.createComplete()),t.complete()},e}(EZr.Subscriber)});var YW=x(bA=>{"use strict";d();p();var AZr=bA&&bA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(bA,"__esModule",{value:!0});var SZr=tr();function PZr(r,e){var t=!1;return arguments.length>=2&&(t=!0),function(a){return a.lift(new RZr(r,e,t))}}bA.scan=PZr;var RZr=function(){function r(e,t,n){n===void 0&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return r.prototype.call=function(e,t){return t.subscribe(new MZr(e,this.accumulator,this.seed,this.hasSeed))},r}(),MZr=function(r){AZr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s._seed=a,s.hasSeed=i,s.index=0,s}return Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},e.prototype._tryNext=function(t){var n=this.index++,a;try{a=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=a,this.destination.next(a)},e}(SZr.Subscriber)});var vA=x(Rce=>{"use strict";d();p();Object.defineProperty(Rce,"__esModule",{value:!0});var qvt=YW(),Fvt=$W(),NZr=GT(),Wvt=oW();function BZr(r,e){return arguments.length>=2?function(n){return Wvt.pipe(qvt.scan(r,e),Fvt.takeLast(1),NZr.defaultIfEmpty(e))(n)}:function(n){return Wvt.pipe(qvt.scan(function(a,i,s){return r(a,i,s+1)}),Fvt.takeLast(1))(n)}}Rce.reduce=BZr});var Uvt=x(Mce=>{"use strict";d();p();Object.defineProperty(Mce,"__esModule",{value:!0});var DZr=vA();function OZr(r){var e=typeof r=="function"?function(t,n){return r(t,n)>0?t:n}:function(t,n){return t>n?t:n};return DZr.reduce(e)}Mce.max=OZr});var Hvt=x(Nce=>{"use strict";d();p();Object.defineProperty(Nce,"__esModule",{value:!0});var LZr=voe();function qZr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Bce,"__esModule",{value:!0});var jvt=Ok();function FZr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof e=="function"?jvt.mergeMap(function(){return r},e,t):(typeof e=="number"&&(t=e),jvt.mergeMap(function(){return r},t))}Bce.mergeMapTo=FZr});var Vvt=x(U2=>{"use strict";d();p();var WZr=U2&&U2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(U2,"__esModule",{value:!0});var Dce=Qi();function UZr(r,e,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(n){return n.lift(new Kvt(r,e,t))}}U2.mergeScan=UZr;var Kvt=function(){function r(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return r.prototype.call=function(e,t){return t.subscribe(new Gvt(e,this.accumulator,this.seed,this.concurrent))},r}();U2.MergeScanOperator=Kvt;var Gvt=function(r){WZr(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.accumulator=n,s.acc=a,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return e.prototype._next=function(t){if(this.active0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},e}(Dce.SimpleOuterSubscriber);U2.MergeScanSubscriber=Gvt});var $vt=x(Oce=>{"use strict";d();p();Object.defineProperty(Oce,"__esModule",{value:!0});var HZr=vA();function jZr(r){var e=typeof r=="function"?function(t,n){return r(t,n)<0?t:n}:function(t,n){return t{"use strict";d();p();Object.defineProperty(JW,"__esModule",{value:!0});var zZr=yse();function KZr(r,e){return function(n){var a;if(typeof r=="function"?a=r:a=function(){return r},typeof e=="function")return n.lift(new Yvt(a,e));var i=Object.create(n,zZr.connectableObservableDescriptor);return i.source=n,i.subjectFactory=a,i}}JW.multicast=KZr;var Yvt=function(){function r(e,t){this.subjectFactory=e,this.selector=t}return r.prototype.call=function(e,t){var n=this.selector,a=this.subjectFactory(),i=n(a).subscribe(e);return i.add(t.subscribe(a)),i},r}();JW.MulticastOperator=Yvt});var Zvt=x($T=>{"use strict";d();p();var GZr=$T&&$T.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty($T,"__esModule",{value:!0});var VZr=Xh(),Jvt=Qu(),Lce=Qi();function $Zr(){for(var r=[],e=0;e{"use strict";d();p();var QZr=wA&&wA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(wA,"__esModule",{value:!0});var ZZr=tr();function XZr(){return function(r){return r.lift(new eXr)}}wA.pairwise=XZr;var eXr=function(){function r(){}return r.prototype.call=function(e,t){return t.subscribe(new tXr(e))},r}(),tXr=function(r){QZr(e,r);function e(t){var n=r.call(this,t)||this;return n.hasPrev=!1,n}return e.prototype._next=function(t){var n;this.hasPrev?n=[this.prev,t]:this.hasPrev=!0,this.prev=t,n&&this.destination.next(n)},e}(ZZr.Subscriber)});var t2t=x(qce=>{"use strict";d();p();Object.defineProperty(qce,"__esModule",{value:!0});var rXr=Eoe(),e2t=M2();function nXr(r,e){return function(t){return[e2t.filter(r,e)(t),e2t.filter(rXr.not(r,e))(t)]}}qce.partition=nXr});var r2t=x(Fce=>{"use strict";d();p();Object.defineProperty(Fce,"__esModule",{value:!0});var aXr=md();function iXr(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(Wce,"__esModule",{value:!0});var n2t=Iu(),a2t=H2();function oXr(r){return r?a2t.multicast(function(){return new n2t.Subject},r):a2t.multicast(new n2t.Subject)}Wce.publish=oXr});var s2t=x(Uce=>{"use strict";d();p();Object.defineProperty(Uce,"__esModule",{value:!0});var cXr=vse(),uXr=H2();function lXr(r){return function(e){return uXr.multicast(new cXr.BehaviorSubject(r))(e)}}Uce.publishBehavior=lXr});var o2t=x(Hce=>{"use strict";d();p();Object.defineProperty(Hce,"__esModule",{value:!0});var dXr=Ck(),pXr=H2();function hXr(){return function(r){return pXr.multicast(new dXr.AsyncSubject)(r)}}Hce.publishLast=hXr});var c2t=x(jce=>{"use strict";d();p();Object.defineProperty(jce,"__esModule",{value:!0});var fXr=hW(),mXr=H2();function yXr(r,e,t,n){t&&typeof t!="function"&&(n=t);var a=typeof t=="function"?t:void 0,i=new fXr.ReplaySubject(r,e,n);return function(s){return mXr.multicast(function(){return i},a)(s)}}jce.publishReplay=yXr});var u2t=x(zce=>{"use strict";d();p();Object.defineProperty(zce,"__esModule",{value:!0});var gXr=Qu(),bXr=Ioe();function vXr(){for(var r=[],e=0;e{"use strict";d();p();var wXr=_A&&_A.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(_A,"__esModule",{value:!0});var _Xr=tr(),xXr=Qh();function TXr(r){return r===void 0&&(r=-1),function(e){return r===0?xXr.empty():r<0?e.lift(new l2t(-1,e)):e.lift(new l2t(r-1,e))}}_A.repeat=TXr;var l2t=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new EXr(e,this.count,this.source))},r}(),EXr=function(r){wXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.complete=function(){if(!this.isStopped){var t=this,n=t.source,a=t.count;if(a===0)return r.prototype.complete.call(this);a>-1&&(this.count=a-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(_Xr.Subscriber)});var p2t=x(xA=>{"use strict";d();p();var CXr=xA&&xA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(xA,"__esModule",{value:!0});var IXr=Iu(),Kce=Qi();function kXr(r){return function(e){return e.lift(new AXr(r))}}xA.repeatWhen=kXr;var AXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new SXr(e,this.notifier,t))},r}(),SXr=function(r){CXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i.sourceIsBeingSubscribedTo=!0,i}return e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return r.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return r.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this,n=t.notifications,a=t.retriesSubscription;n&&(n.unsubscribe(),this.notifications=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,r.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},e.prototype.subscribeToRetries=function(){this.notifications=new IXr.Subject;var t;try{var n=this.notifier;t=n(this.notifications)}catch{return r.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Kce.innerSubscribe(t,new Kce.SimpleInnerSubscriber(this))},e}(Kce.SimpleOuterSubscriber)});var h2t=x(TA=>{"use strict";d();p();var PXr=TA&&TA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(TA,"__esModule",{value:!0});var RXr=tr();function MXr(r){return r===void 0&&(r=-1),function(e){return e.lift(new NXr(r,e))}}TA.retry=MXr;var NXr=function(){function r(e,t){this.count=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new BXr(e,this.count,this.source))},r}(),BXr=function(r){PXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.count=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this,a=n.source,i=n.count;if(i===0)return r.prototype.error.call(this,t);i>-1&&(this.count=i-1),a.subscribe(this._unsubscribeAndRecycle())}},e}(RXr.Subscriber)});var f2t=x(EA=>{"use strict";d();p();var DXr=EA&&EA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(EA,"__esModule",{value:!0});var OXr=Iu(),Gce=Qi();function LXr(r){return function(e){return e.lift(new qXr(r,e))}}EA.retryWhen=LXr;var qXr=function(){function r(e,t){this.notifier=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new FXr(e,this.notifier,this.source))},r}(),FXr=function(r){DXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.notifier=n,i.source=a,i}return e.prototype.error=function(t){if(!this.isStopped){var n=this.errors,a=this.retries,i=this.retriesSubscription;if(a)this.errors=void 0,this.retriesSubscription=void 0;else{n=new OXr.Subject;try{var s=this.notifier;a=s(n)}catch(o){return r.prototype.error.call(this,o)}i=Gce.innerSubscribe(a,new Gce.SimpleInnerSubscriber(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=a,this.retriesSubscription=i,n.next(t)}},e.prototype._unsubscribe=function(){var t=this,n=t.errors,a=t.retriesSubscription;n&&(n.unsubscribe(),this.errors=void 0),a&&(a.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(Gce.SimpleOuterSubscriber)});var m2t=x(CA=>{"use strict";d();p();var WXr=CA&&CA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(CA,"__esModule",{value:!0});var Vce=Qi();function UXr(r){return function(e){return e.lift(new HXr(r))}}CA.sample=UXr;var HXr=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new jXr(e),a=t.subscribe(n);return a.add(Vce.innerSubscribe(this.notifier,new Vce.SimpleInnerSubscriber(n))),a},r}(),jXr=function(r){WXr(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasValue=!1,t}return e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(Vce.SimpleOuterSubscriber)});var y2t=x(IA=>{"use strict";d();p();var zXr=IA&&IA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(IA,"__esModule",{value:!0});var KXr=tr(),GXr=Zu();function VXr(r,e){return e===void 0&&(e=GXr.async),function(t){return t.lift(new $Xr(r,e))}}IA.sampleTime=VXr;var $Xr=function(){function r(e,t){this.period=e,this.scheduler=t}return r.prototype.call=function(e,t){return t.subscribe(new YXr(e,this.period,this.scheduler))},r}(),YXr=function(r){zXr(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.period=n,i.scheduler=a,i.hasValue=!1,i.add(a.schedule(JXr,n,{subscriber:i,period:n})),i}return e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(KXr.Subscriber);function JXr(r){var e=r.subscriber,t=r.period;e.notifyNext(),this.schedule(r,t)}});var _2t=x(j2=>{"use strict";d();p();var g2t=j2&&j2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(j2,"__esModule",{value:!0});var b2t=tr();function QXr(r,e){return function(t){return t.lift(new v2t(r,e))}}j2.sequenceEqual=QXr;var v2t=function(){function r(e,t){this.compareTo=e,this.comparator=t}return r.prototype.call=function(e,t){return t.subscribe(new w2t(e,this.compareTo,this.comparator))},r}();j2.SequenceEqualOperator=v2t;var w2t=function(r){g2t(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.compareTo=n,i.comparator=a,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new ZXr(t,i))),i}return e.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this,n=t._a,a=t._b,i=t.comparator;n.length>0&&a.length>0;){var s=n.shift(),o=a.shift(),c=!1;try{c=i?i(s,o):s===o}catch(u){this.destination.error(u)}c||this.emit(!1)}},e.prototype.emit=function(t){var n=this.destination;n.next(t),n.complete()},e.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},e}(b2t.Subscriber);j2.SequenceEqualSubscriber=w2t;var ZXr=function(r){g2t(e,r);function e(t,n){var a=r.call(this,t)||this;return a.parent=n,a}return e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(b2t.Subscriber)});var x2t=x($ce=>{"use strict";d();p();Object.defineProperty($ce,"__esModule",{value:!0});var XXr=H2(),een=uW(),ten=Iu();function ren(){return new ten.Subject}function nen(){return function(r){return een.refCount()(XXr.multicast(ren)(r))}}$ce.share=nen});var T2t=x(Yce=>{"use strict";d();p();Object.defineProperty(Yce,"__esModule",{value:!0});var aen=hW();function ien(r,e,t){var n;return r&&typeof r=="object"?n=r:n={bufferSize:r,windowTime:e,refCount:!1,scheduler:t},function(a){return a.lift(sen(n))}}Yce.shareReplay=ien;function sen(r){var e=r.bufferSize,t=e===void 0?Number.POSITIVE_INFINITY:e,n=r.windowTime,a=n===void 0?Number.POSITIVE_INFINITY:n,i=r.refCount,s=r.scheduler,o,c=0,u,l=!1,h=!1;return function(m){c++;var y;!o||l?(l=!1,o=new aen.ReplaySubject(t,a,s),y=o.subscribe(this),u=m.subscribe({next:function(E){o.next(E)},error:function(E){l=!0,o.error(E)},complete:function(){h=!0,u=void 0,o.complete()}}),h&&(u=void 0)):y=o.subscribe(this),this.add(function(){c--,y.unsubscribe(),y=void 0,u&&!h&&i&&c===0&&(u.unsubscribe(),u=void 0,o=void 0)})}}});var E2t=x(kA=>{"use strict";d();p();var oen=kA&&kA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(kA,"__esModule",{value:!0});var cen=tr(),uen=PT();function len(r){return function(e){return e.lift(new den(r,e))}}kA.single=len;var den=function(){function r(e,t){this.predicate=e,this.source=t}return r.prototype.call=function(e,t){return t.subscribe(new pen(e,this.predicate,this.source))},r}(),pen=function(r){oen(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.source=a,i.seenValue=!1,i.index=0,i}return e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var n=this.index++;this.predicate?this.tryNext(t,n):this.applySingleValue(t)},e.prototype.tryNext=function(t,n){try{this.predicate(t,n,this.source)&&this.applySingleValue(t)}catch(a){this.destination.error(a)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new uen.EmptyError)},e}(cen.Subscriber)});var C2t=x(AA=>{"use strict";d();p();var hen=AA&&AA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(AA,"__esModule",{value:!0});var fen=tr();function men(r){return function(e){return e.lift(new yen(r))}}AA.skip=men;var yen=function(){function r(e){this.total=e}return r.prototype.call=function(e,t){return t.subscribe(new gen(e,this.total))},r}(),gen=function(r){hen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.total=n,a.count=0,a}return e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(fen.Subscriber)});var k2t=x(SA=>{"use strict";d();p();var ben=SA&&SA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(SA,"__esModule",{value:!0});var I2t=tr(),ven=ST();function wen(r){return function(e){return e.lift(new _en(r))}}SA.skipLast=wen;var _en=function(){function r(e){if(this._skipCount=e,this._skipCount<0)throw new ven.ArgumentOutOfRangeError}return r.prototype.call=function(e,t){return this._skipCount===0?t.subscribe(new I2t.Subscriber(e)):t.subscribe(new xen(e,this._skipCount))},r}(),xen=function(r){ben(e,r);function e(t,n){var a=r.call(this,t)||this;return a._skipCount=n,a._count=0,a._ring=new Array(n),a}return e.prototype._next=function(t){var n=this._skipCount,a=this._count++;if(a{"use strict";d();p();var Ten=PA&&PA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(PA,"__esModule",{value:!0});var Jce=Qi();function Een(r){return function(e){return e.lift(new Cen(r))}}PA.skipUntil=Een;var Cen=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){return t.subscribe(new Ien(e,this.notifier))},r}(),Ien=function(r){Ten(e,r);function e(t,n){var a=r.call(this,t)||this;a.hasValue=!1;var i=new Jce.SimpleInnerSubscriber(a);a.add(i),a.innerSubscription=i;var s=Jce.innerSubscribe(n,i);return s!==i&&(a.add(s),a.innerSubscription=s),a}return e.prototype._next=function(t){this.hasValue&&r.prototype._next.call(this,t)},e.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},e.prototype.notifyComplete=function(){},e}(Jce.SimpleOuterSubscriber)});var S2t=x(RA=>{"use strict";d();p();var ken=RA&&RA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(RA,"__esModule",{value:!0});var Aen=tr();function Sen(r){return function(e){return e.lift(new Pen(r))}}RA.skipWhile=Sen;var Pen=function(){function r(e){this.predicate=e}return r.prototype.call=function(e,t){return t.subscribe(new Ren(e,this.predicate))},r}(),Ren=function(r){ken(e,r);function e(t,n){var a=r.call(this,t)||this;return a.predicate=n,a.skipping=!0,a.index=0,a}return e.prototype._next=function(t){var n=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||n.next(t)},e.prototype.tryCallPredicate=function(t){try{var n=this.predicate(t,this.index++);this.skipping=Boolean(n)}catch(a){this.destination.error(a)}},e}(Aen.Subscriber)});var R2t=x(Qce=>{"use strict";d();p();Object.defineProperty(Qce,"__esModule",{value:!0});var P2t=Lk(),Men=Zh();function Nen(){for(var r=[],e=0;e{"use strict";d();p();var Ben=MA&&MA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(MA,"__esModule",{value:!0});var Den=nn(),Zce=Mse(),Oen=qk(),Len=function(r){Ben(e,r);function e(t,n,a){n===void 0&&(n=0),a===void 0&&(a=Zce.asap);var i=r.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=a,(!Oen.isNumeric(n)||n<0)&&(i.delayTime=0),(!a||typeof a.schedule!="function")&&(i.scheduler=Zce.asap),i}return e.create=function(t,n,a){return n===void 0&&(n=0),a===void 0&&(a=Zce.asap),new e(t,n,a)},e.dispatch=function(t){var n=t.source,a=t.subscriber;return this.add(n.subscribe(a))},e.prototype._subscribe=function(t){var n=this.delayTime,a=this.source,i=this.scheduler;return i.schedule(e.dispatch,n,{source:a,subscriber:t})},e}(Den.Observable);MA.SubscribeOnObservable=Len});var N2t=x(Xce=>{"use strict";d();p();Object.defineProperty(Xce,"__esModule",{value:!0});var qen=M2t();function Fen(r,e){return e===void 0&&(e=0),function(n){return n.lift(new Wen(r,e))}}Xce.subscribeOn=Fen;var Wen=function(){function r(e,t){this.scheduler=e,this.delay=t}return r.prototype.call=function(e,t){return new qen.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},r}()});var QW=x(NA=>{"use strict";d();p();var Uen=NA&&NA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(NA,"__esModule",{value:!0});var Hen=md(),jen=Xh(),eue=Qi();function B2t(r,e){return typeof e=="function"?function(t){return t.pipe(B2t(function(n,a){return jen.from(r(n,a)).pipe(Hen.map(function(i,s){return e(n,i,a,s)}))}))}:function(t){return t.lift(new zen(r))}}NA.switchMap=B2t;var zen=function(){function r(e){this.project=e}return r.prototype.call=function(e,t){return t.subscribe(new Ken(e,this.project))},r}(),Ken=function(r){Uen(e,r);function e(t,n){var a=r.call(this,t)||this;return a.project=n,a.index=0,a}return e.prototype._next=function(t){var n,a=this.index++;try{n=this.project(t,a)}catch(i){this.destination.error(i);return}this._innerSub(n)},e.prototype._innerSub=function(t){var n=this.innerSubscription;n&&n.unsubscribe();var a=new eue.SimpleInnerSubscriber(this),i=this.destination;i.add(a),this.innerSubscription=eue.innerSubscribe(t,a),this.innerSubscription!==a&&i.add(this.innerSubscription)},e.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&r.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=void 0},e.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&r.prototype._complete.call(this)},e.prototype.notifyNext=function(t){this.destination.next(t)},e}(eue.SimpleOuterSubscriber)});var D2t=x(tue=>{"use strict";d();p();Object.defineProperty(tue,"__esModule",{value:!0});var Gen=QW(),Ven=J1();function $en(){return Gen.switchMap(Ven.identity)}tue.switchAll=$en});var L2t=x(rue=>{"use strict";d();p();Object.defineProperty(rue,"__esModule",{value:!0});var O2t=QW();function Yen(r,e){return e?O2t.switchMap(function(){return r},e):O2t.switchMap(function(){return r})}rue.switchMapTo=Yen});var q2t=x(BA=>{"use strict";d();p();var Jen=BA&&BA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(BA,"__esModule",{value:!0});var nue=Qi();function Qen(r){return function(e){return e.lift(new Zen(r))}}BA.takeUntil=Qen;var Zen=function(){function r(e){this.notifier=e}return r.prototype.call=function(e,t){var n=new Xen(e),a=nue.innerSubscribe(this.notifier,new nue.SimpleInnerSubscriber(n));return a&&!n.seenValue?(n.add(a),t.subscribe(n)):n},r}(),Xen=function(r){Jen(e,r);function e(t){var n=r.call(this,t)||this;return n.seenValue=!1,n}return e.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(nue.SimpleOuterSubscriber)});var F2t=x(DA=>{"use strict";d();p();var etn=DA&&DA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(DA,"__esModule",{value:!0});var ttn=tr();function rtn(r,e){return e===void 0&&(e=!1),function(t){return t.lift(new ntn(r,e))}}DA.takeWhile=rtn;var ntn=function(){function r(e,t){this.predicate=e,this.inclusive=t}return r.prototype.call=function(e,t){return t.subscribe(new atn(e,this.predicate,this.inclusive))},r}(),atn=function(r){etn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.predicate=n,i.inclusive=a,i.index=0,i}return e.prototype._next=function(t){var n=this.destination,a;try{a=this.predicate(t,this.index++)}catch(i){n.error(i);return}this.nextOrComplete(t,a)},e.prototype.nextOrComplete=function(t,n){var a=this.destination;Boolean(n)?a.next(t):(this.inclusive&&a.next(t),a.complete())},e}(ttn.Subscriber)});var W2t=x(OA=>{"use strict";d();p();var itn=OA&&OA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(OA,"__esModule",{value:!0});var stn=tr(),ig=yW(),otn=wT();function ctn(r,e,t){return function(a){return a.lift(new utn(r,e,t))}}OA.tap=ctn;var utn=function(){function r(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return r.prototype.call=function(e,t){return t.subscribe(new ltn(e,this.nextOrObserver,this.error,this.complete))},r}(),ltn=function(r){itn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s._tapNext=ig.noop,s._tapError=ig.noop,s._tapComplete=ig.noop,s._tapError=a||ig.noop,s._tapComplete=i||ig.noop,otn.isFunction(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||ig.noop,s._tapError=n.error||ig.noop,s._tapComplete=n.complete||ig.noop),s}return e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(n){this.destination.error(n);return}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},e}(stn.Subscriber)});var iue=x(z2=>{"use strict";d();p();var dtn=z2&&z2.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(z2,"__esModule",{value:!0});var aue=Qi();z2.defaultThrottleConfig={leading:!0,trailing:!1};function ptn(r,e){return e===void 0&&(e=z2.defaultThrottleConfig),function(t){return t.lift(new htn(r,!!e.leading,!!e.trailing))}}z2.throttle=ptn;var htn=function(){function r(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return r.prototype.call=function(e,t){return t.subscribe(new ftn(e,this.durationSelector,this.leading,this.trailing))},r}(),ftn=function(r){dtn(e,r);function e(t,n,a,i){var s=r.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=a,s._trailing=i,s._hasValue=!1,s}return e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this,n=t._hasValue,a=t._sendValue;n&&(this.destination.next(a),this.throttle(a)),this._hasValue=!1,this._sendValue=void 0},e.prototype.throttle=function(t){var n=this.tryDurationSelector(t);n&&this.add(this._throttled=aue.innerSubscribe(n,new aue.SimpleInnerSubscriber(this)))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(n){return this.destination.error(n),null}},e.prototype.throttlingDone=function(){var t=this,n=t._throttled,a=t._trailing;n&&n.unsubscribe(),this._throttled=void 0,a&&this.send()},e.prototype.notifyNext=function(){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(aue.SimpleOuterSubscriber)});var U2t=x(LA=>{"use strict";d();p();var mtn=LA&&LA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(LA,"__esModule",{value:!0});var ytn=tr(),gtn=Zu(),btn=iue();function vtn(r,e,t){return e===void 0&&(e=gtn.async),t===void 0&&(t=btn.defaultThrottleConfig),function(n){return n.lift(new wtn(r,e,t.leading,t.trailing))}}LA.throttleTime=vtn;var wtn=function(){function r(e,t,n,a){this.duration=e,this.scheduler=t,this.leading=n,this.trailing=a}return r.prototype.call=function(e,t){return t.subscribe(new _tn(e,this.duration,this.scheduler,this.leading,this.trailing))},r}(),_tn=function(r){mtn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.duration=n,o.scheduler=a,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(xtn,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(ytn.Subscriber);function xtn(r){var e=r.subscriber;e.clearThrottle()}});var j2t=x(ZW=>{"use strict";d();p();Object.defineProperty(ZW,"__esModule",{value:!0});var Ttn=Zu(),Etn=YW(),Ctn=_W(),Itn=md();function ktn(r){return r===void 0&&(r=Ttn.async),function(e){return Ctn.defer(function(){return e.pipe(Etn.scan(function(t,n){var a=t.current;return{value:n,current:r.now(),last:a}},{current:r.now(),value:void 0,last:void 0}),Itn.map(function(t){var n=t.current,a=t.last,i=t.value;return new H2t(i,n-a)}))})}}ZW.timeInterval=ktn;var H2t=function(){function r(e,t){this.value=e,this.interval=t}return r}();ZW.TimeInterval=H2t});var oue=x(qA=>{"use strict";d();p();var Atn=qA&&qA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(qA,"__esModule",{value:!0});var Stn=Zu(),Ptn=yce(),sue=Qi();function Rtn(r,e,t){return t===void 0&&(t=Stn.async),function(n){var a=Ptn.isDate(r),i=a?+r-t.now():Math.abs(r);return n.lift(new Mtn(i,a,e,t))}}qA.timeoutWith=Rtn;var Mtn=function(){function r(e,t,n,a){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new Ntn(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},r}(),Ntn=function(r){Atn(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=a,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return e.dispatchTimeout=function(t){var n=t.withObservable;t._unsubscribeAndRecycle(),t.add(sue.innerSubscribe(n,new sue.SimpleInnerSubscriber(t)))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),r.prototype._next.call(this,t)},e.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},e}(sue.SimpleOuterSubscriber)});var z2t=x(cue=>{"use strict";d();p();Object.defineProperty(cue,"__esModule",{value:!0});var Btn=Zu(),Dtn=qse(),Otn=oue(),Ltn=pW();function qtn(r,e){return e===void 0&&(e=Btn.async),Otn.timeoutWith(r,Ltn.throwError(new Dtn.TimeoutError),e)}cue.timeout=qtn});var G2t=x(XW=>{"use strict";d();p();Object.defineProperty(XW,"__esModule",{value:!0});var Ftn=Zu(),Wtn=md();function Utn(r){return r===void 0&&(r=Ftn.async),Wtn.map(function(e){return new K2t(e,r.now())})}XW.timestamp=Utn;var K2t=function(){function r(e,t){this.value=e,this.timestamp=t}return r}();XW.Timestamp=K2t});var V2t=x(uue=>{"use strict";d();p();Object.defineProperty(uue,"__esModule",{value:!0});var Htn=vA();function jtn(r,e,t){return t===0?[e]:(r.push(e),r)}function ztn(){return Htn.reduce(jtn,[])}uue.toArray=ztn});var Y2t=x(FA=>{"use strict";d();p();var Ktn=FA&&FA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(FA,"__esModule",{value:!0});var $2t=Iu(),lue=Qi();function Gtn(r){return function(t){return t.lift(new Vtn(r))}}FA.window=Gtn;var Vtn=function(){function r(e){this.windowBoundaries=e}return r.prototype.call=function(e,t){var n=new $tn(e),a=t.subscribe(n);return a.closed||n.add(lue.innerSubscribe(this.windowBoundaries,new lue.SimpleInnerSubscriber(n))),a},r}(),$tn=function(r){Ktn(e,r);function e(t){var n=r.call(this,t)||this;return n.window=new $2t.Subject,t.next(n.window),n}return e.prototype.notifyNext=function(){this.openWindow()},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var n=this.destination,a=this.window=new $2t.Subject;n.next(a)},e}(lue.SimpleOuterSubscriber)});var Q2t=x(WA=>{"use strict";d();p();var Ytn=WA&&WA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(WA,"__esModule",{value:!0});var Jtn=tr(),J2t=Iu();function Qtn(r,e){return e===void 0&&(e=0),function(n){return n.lift(new Ztn(r,e))}}WA.windowCount=Qtn;var Ztn=function(){function r(e,t){this.windowSize=e,this.startWindowEvery=t}return r.prototype.call=function(e,t){return t.subscribe(new Xtn(e,this.windowSize,this.startWindowEvery))},r}(),Xtn=function(r){Ytn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=a,i.windows=[new J2t.Subject],i.count=0,t.next(i.windows[0]),i}return e.prototype._next=function(t){for(var n=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,a=this.destination,i=this.windowSize,s=this.windows,o=s.length,c=0;c=0&&u%n===0&&!this.closed&&s.shift().complete(),++this.count%n===0&&!this.closed){var l=new J2t.Subject;s.push(l),a.next(l)}},e.prototype._error=function(t){var n=this.windows;if(n)for(;n.length>0&&!this.closed;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(Jtn.Subscriber)});var twt=x(UA=>{"use strict";d();p();var X2t=UA&&UA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(UA,"__esModule",{value:!0});var ern=Iu(),trn=Zu(),rrn=tr(),Z2t=qk(),due=Zh();function nrn(r){var e=trn.async,t=null,n=Number.POSITIVE_INFINITY;return due.isScheduler(arguments[3])&&(e=arguments[3]),due.isScheduler(arguments[2])?e=arguments[2]:Z2t.isNumeric(arguments[2])&&(n=Number(arguments[2])),due.isScheduler(arguments[1])?e=arguments[1]:Z2t.isNumeric(arguments[1])&&(t=Number(arguments[1])),function(i){return i.lift(new arn(r,t,n,e))}}UA.windowTime=nrn;var arn=function(){function r(e,t,n,a){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler=a}return r.prototype.call=function(e,t){return t.subscribe(new srn(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},r}(),irn=function(r){X2t(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return e.prototype.next=function(t){this._numberOfNextedValues++,r.prototype.next.call(this,t)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(ern.Subject),srn=function(r){X2t(e,r);function e(t,n,a,i,s){var o=r.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=a,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var c=o.openWindow();if(a!==null&&a>=0){var u={subscriber:o,window:c,context:null},l={windowTimeSpan:n,windowCreationInterval:a,subscriber:o,scheduler:s};o.add(s.schedule(ewt,n,u)),o.add(s.schedule(crn,a,l))}else{var h={subscriber:o,window:c,windowTimeSpan:n};o.add(s.schedule(orn,n,h))}return o}return e.prototype._next=function(t){for(var n=this.windows,a=n.length,i=0;i=this.maxWindowSize&&this.closeWindow(s))}},e.prototype._error=function(t){for(var n=this.windows;n.length>0;)n.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var n=t.shift();n.closed||n.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new irn;this.windows.push(t);var n=this.destination;return n.next(t),t},e.prototype.closeWindow=function(t){t.complete();var n=this.windows;n.splice(n.indexOf(t),1)},e}(rrn.Subscriber);function orn(r){var e=r.subscriber,t=r.windowTimeSpan,n=r.window;n&&e.closeWindow(n),r.window=e.openWindow(),this.schedule(r,t)}function crn(r){var e=r.windowTimeSpan,t=r.subscriber,n=r.scheduler,a=r.windowCreationInterval,i=t.openWindow(),s=this,o={action:s,subscription:null},c={subscriber:t,window:i,context:o};o.subscription=n.schedule(ewt,e,c),s.add(o.subscription),s.schedule(r,a)}function ewt(r){var e=r.subscriber,t=r.window,n=r.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),e.closeWindow(t)}});var nwt=x(HA=>{"use strict";d();p();var urn=HA&&HA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(HA,"__esModule",{value:!0});var lrn=Iu(),drn=xo(),prn=Z1(),rwt=X1();function hrn(r,e){return function(t){return t.lift(new frn(r,e))}}HA.windowToggle=hrn;var frn=function(){function r(e,t){this.openings=e,this.closingSelector=t}return r.prototype.call=function(e,t){return t.subscribe(new mrn(e,this.openings,this.closingSelector))},r}(),mrn=function(r){urn(e,r);function e(t,n,a){var i=r.call(this,t)||this;return i.openings=n,i.closingSelector=a,i.contexts=[],i.add(i.openSubscription=rwt.subscribeToResult(i,n,n)),i}return e.prototype._next=function(t){var n=this.contexts;if(n)for(var a=n.length,i=0;i{"use strict";d();p();var yrn=jA&&jA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(jA,"__esModule",{value:!0});var grn=Iu(),brn=Z1(),vrn=X1();function wrn(r){return function(t){return t.lift(new _rn(r))}}jA.windowWhen=wrn;var _rn=function(){function r(e){this.closingSelector=e}return r.prototype.call=function(e,t){return t.subscribe(new xrn(e,this.closingSelector))},r}(),xrn=function(r){yrn(e,r);function e(t,n){var a=r.call(this,t)||this;return a.destination=t,a.closingSelector=n,a.openWindow(),a}return e.prototype.notifyNext=function(t,n,a,i,s){this.openWindow(s)},e.prototype.notifyError=function(t){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var n=this.window;n&&n.complete();var a=this.window=new grn.Subject;this.destination.next(a);var i;try{var s=this.closingSelector;i=s()}catch(o){this.destination.error(o),this.window.error(o);return}this.add(this.closingNotification=vrn.subscribeToResult(this,i))},e}(brn.OuterSubscriber)});var iwt=x(zA=>{"use strict";d();p();var Trn=zA&&zA.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)a.hasOwnProperty(i)&&(n[i]=a[i])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(zA,"__esModule",{value:!0});var Ern=Z1(),Crn=X1();function Irn(){for(var r=[],e=0;e0){var s=i.indexOf(a);s!==-1&&i.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(this.toRespond.length===0){var n=[t].concat(this.values);this.project?this._tryProject(n):this.destination.next(n)}},e.prototype._tryProject=function(t){var n;try{n=this.project.apply(this,t)}catch(a){this.destination.error(a);return}this.destination.next(n)},e}(Ern.OuterSubscriber)});var swt=x(pue=>{"use strict";d();p();Object.defineProperty(pue,"__esModule",{value:!0});var Srn=IW();function Prn(){for(var r=[],e=0;e{"use strict";d();p();Object.defineProperty(hue,"__esModule",{value:!0});var Rrn=IW();function Mrn(r){return function(e){return e.lift(new Rrn.ZipOperator(r))}}hue.zipAll=Mrn});var eU=x(Se=>{"use strict";d();p();Object.defineProperty(Se,"__esModule",{value:!0});var Nrn=nce();Se.audit=Nrn.audit;var Brn=Kbt();Se.auditTime=Brn.auditTime;var Drn=Gbt();Se.buffer=Drn.buffer;var Orn=Ybt();Se.bufferCount=Orn.bufferCount;var Lrn=Zbt();Se.bufferTime=Lrn.bufferTime;var qrn=evt();Se.bufferToggle=qrn.bufferToggle;var Frn=tvt();Se.bufferWhen=Frn.bufferWhen;var Wrn=rvt();Se.catchError=Wrn.catchError;var Urn=nvt();Se.combineAll=Urn.combineAll;var Hrn=avt();Se.combineLatest=Hrn.combineLatest;var jrn=ivt();Se.concat=jrn.concat;var zrn=coe();Se.concatAll=zrn.concatAll;var Krn=pce();Se.concatMap=Krn.concatMap;var Grn=svt();Se.concatMapTo=Grn.concatMapTo;var Vrn=ovt();Se.count=Vrn.count;var $rn=cvt();Se.debounce=$rn.debounce;var Yrn=uvt();Se.debounceTime=Yrn.debounceTime;var Jrn=GT();Se.defaultIfEmpty=Jrn.defaultIfEmpty;var Qrn=dvt();Se.delay=Qrn.delay;var Zrn=hvt();Se.delayWhen=Zrn.delayWhen;var Xrn=fvt();Se.dematerialize=Xrn.dematerialize;var enn=yvt();Se.distinct=enn.distinct;var tnn=vce();Se.distinctUntilChanged=tnn.distinctUntilChanged;var rnn=gvt();Se.distinctUntilKeyChanged=rnn.distinctUntilKeyChanged;var nnn=vvt();Se.elementAt=nnn.elementAt;var ann=wvt();Se.endWith=ann.endWith;var inn=_vt();Se.every=inn.every;var snn=xvt();Se.exhaust=snn.exhaust;var onn=Evt();Se.exhaustMap=onn.exhaustMap;var cnn=kvt();Se.expand=cnn.expand;var unn=M2();Se.filter=unn.filter;var lnn=Avt();Se.finalize=lnn.finalize;var dnn=Ice();Se.find=dnn.find;var pnn=Rvt();Se.findIndex=pnn.findIndex;var hnn=Mvt();Se.first=hnn.first;var fnn=bse();Se.groupBy=fnn.groupBy;var mnn=Nvt();Se.ignoreElements=mnn.ignoreElements;var ynn=Bvt();Se.isEmpty=ynn.isEmpty;var gnn=Dvt();Se.last=gnn.last;var bnn=md();Se.map=bnn.map;var vnn=Ovt();Se.mapTo=vnn.mapTo;var wnn=Lvt();Se.materialize=wnn.materialize;var _nn=Uvt();Se.max=_nn.max;var xnn=Hvt();Se.merge=xnn.merge;var Tnn=wW();Se.mergeAll=Tnn.mergeAll;var cwt=Ok();Se.mergeMap=cwt.mergeMap;Se.flatMap=cwt.flatMap;var Enn=zvt();Se.mergeMapTo=Enn.mergeMapTo;var Cnn=Vvt();Se.mergeScan=Cnn.mergeScan;var Inn=$vt();Se.min=Inn.min;var knn=H2();Se.multicast=knn.multicast;var Ann=Rse();Se.observeOn=Ann.observeOn;var Snn=Zvt();Se.onErrorResumeNext=Snn.onErrorResumeNext;var Pnn=Xvt();Se.pairwise=Pnn.pairwise;var Rnn=t2t();Se.partition=Rnn.partition;var Mnn=r2t();Se.pluck=Mnn.pluck;var Nnn=i2t();Se.publish=Nnn.publish;var Bnn=s2t();Se.publishBehavior=Bnn.publishBehavior;var Dnn=o2t();Se.publishLast=Dnn.publishLast;var Onn=c2t();Se.publishReplay=Onn.publishReplay;var Lnn=u2t();Se.race=Lnn.race;var qnn=vA();Se.reduce=qnn.reduce;var Fnn=d2t();Se.repeat=Fnn.repeat;var Wnn=p2t();Se.repeatWhen=Wnn.repeatWhen;var Unn=h2t();Se.retry=Unn.retry;var Hnn=f2t();Se.retryWhen=Hnn.retryWhen;var jnn=uW();Se.refCount=jnn.refCount;var znn=m2t();Se.sample=znn.sample;var Knn=y2t();Se.sampleTime=Knn.sampleTime;var Gnn=YW();Se.scan=Gnn.scan;var Vnn=_2t();Se.sequenceEqual=Vnn.sequenceEqual;var $nn=x2t();Se.share=$nn.share;var Ynn=T2t();Se.shareReplay=Ynn.shareReplay;var Jnn=E2t();Se.single=Jnn.single;var Qnn=C2t();Se.skip=Qnn.skip;var Znn=k2t();Se.skipLast=Znn.skipLast;var Xnn=A2t();Se.skipUntil=Xnn.skipUntil;var ean=S2t();Se.skipWhile=ean.skipWhile;var tan=R2t();Se.startWith=tan.startWith;var ran=N2t();Se.subscribeOn=ran.subscribeOn;var nan=D2t();Se.switchAll=nan.switchAll;var aan=QW();Se.switchMap=aan.switchMap;var ian=L2t();Se.switchMapTo=ian.switchMapTo;var san=VW();Se.take=san.take;var oan=$W();Se.takeLast=oan.takeLast;var can=q2t();Se.takeUntil=can.takeUntil;var uan=F2t();Se.takeWhile=uan.takeWhile;var lan=W2t();Se.tap=lan.tap;var dan=iue();Se.throttle=dan.throttle;var pan=U2t();Se.throttleTime=pan.throttleTime;var han=oA();Se.throwIfEmpty=han.throwIfEmpty;var fan=j2t();Se.timeInterval=fan.timeInterval;var man=z2t();Se.timeout=man.timeout;var yan=oue();Se.timeoutWith=yan.timeoutWith;var gan=G2t();Se.timestamp=gan.timestamp;var ban=V2t();Se.toArray=ban.toArray;var van=Y2t();Se.window=van.window;var wan=Q2t();Se.windowCount=wan.windowCount;var _an=twt();Se.windowTime=_an.windowTime;var xan=nwt();Se.windowToggle=xan.windowToggle;var Tan=awt();Se.windowWhen=Tan.windowWhen;var Ean=iwt();Se.withLatestFrom=Ean.withLatestFrom;var Can=swt();Se.zip=Can.zip;var Ian=owt();Se.zipAll=Ian.zipAll});var uwt=x(Lp=>{"use strict";d();p();Object.defineProperty(Lp,"__esModule",{value:!0});Lp.ClientMessagePublishEvent=Lp.ClientMessageSetSessionConfig=Lp.ClientMessageGetSessionConfig=Lp.ClientMessageIsLinked=Lp.ClientMessageHostSession=void 0;function kan(r){return Object.assign({type:"HostSession"},r)}Lp.ClientMessageHostSession=kan;function Aan(r){return Object.assign({type:"IsLinked"},r)}Lp.ClientMessageIsLinked=Aan;function San(r){return Object.assign({type:"GetSessionConfig"},r)}Lp.ClientMessageGetSessionConfig=San;function Pan(r){return Object.assign({type:"SetSessionConfig"},r)}Lp.ClientMessageSetSessionConfig=Pan;function Ran(r){return Object.assign({type:"PublishEvent"},r)}Lp.ClientMessagePublishEvent=Ran});var dwt=x(K2=>{"use strict";d();p();Object.defineProperty(K2,"__esModule",{value:!0});K2.RxWebSocket=K2.ConnectionState=void 0;var YT=Uk(),lwt=eU(),JT;(function(r){r[r.DISCONNECTED=0]="DISCONNECTED",r[r.CONNECTING=1]="CONNECTING",r[r.CONNECTED=2]="CONNECTED"})(JT=K2.ConnectionState||(K2.ConnectionState={}));var fue=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new YT.BehaviorSubject(JT.DISCONNECTED),this.incomingDataSubject=new YT.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,YT.throwError)(new Error("webSocket object is not null")):new YT.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(n){e.error(n);return}this.connectionStateSubject.next(JT.CONNECTING),t.onclose=n=>{this.clearWebSocket(),e.error(new Error(`websocket error ${n.code}: ${n.reason}`)),this.connectionStateSubject.next(JT.DISCONNECTED)},t.onopen=n=>{e.next(),e.complete(),this.connectionStateSubject.next(JT.CONNECTED)},t.onmessage=n=>{this.incomingDataSubject.next(n.data)}}).pipe((0,lwt.take)(1))}disconnect(){let{webSocket:e}=this;if(!!e){this.clearWebSocket(),this.connectionStateSubject.next(JT.DISCONNECTED);try{e.close()}catch{}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,lwt.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch{return(0,YT.empty)()}return(0,YT.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;!e||(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}};K2.RxWebSocket=fue});var pwt=x(tU=>{"use strict";d();p();Object.defineProperty(tU,"__esModule",{value:!0});tU.isServerMessageFail=void 0;function Man(r){return r&&r.type==="Fail"&&typeof r.id=="number"&&typeof r.sessionId=="string"&&typeof r.error=="string"}tU.isServerMessageFail=Man});var fwt=x(nU=>{"use strict";d();p();Object.defineProperty(nU,"__esModule",{value:!0});nU.WalletSDKConnection=void 0;var ef=Uk(),Yr=eU(),KA=xF(),QT=VI(),GA=uwt(),VA=pF(),rU=dwt(),mue=pwt(),hwt=1e4,Nan=6e4,yue=class{constructor(e,t,n,a,i=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new ef.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,QT.IntNumber)(1),this.connectedSubject=new ef.BehaviorSubject(!1),this.linkedSubject=new ef.BehaviorSubject(!1),this.sessionConfigSubject=new ef.ReplaySubject(1);let s=new rU.RxWebSocket(n+"/rpc",i);this.ws=s,this.subscriptions.add(s.connectionState$.pipe((0,Yr.tap)(o=>{var c;return(c=this.diagnostic)===null||c===void 0?void 0:c.log(VA.EVENTS.CONNECTED_STATE_CHANGE,{state:o,sessionIdHash:KA.Session.hash(e)})}),(0,Yr.skip)(1),(0,Yr.filter)(o=>o===rU.ConnectionState.DISCONNECTED&&!this.destroyed),(0,Yr.delay)(5e3),(0,Yr.filter)(o=>!this.destroyed),(0,Yr.flatMap)(o=>s.connect()),(0,Yr.retry)()).subscribe()),this.subscriptions.add(s.connectionState$.pipe((0,Yr.skip)(2),(0,Yr.switchMap)(o=>(0,ef.iif)(()=>o===rU.ConnectionState.CONNECTED,this.authenticate().pipe((0,Yr.tap)(c=>this.sendIsLinked()),(0,Yr.tap)(c=>this.sendGetSessionConfig()),(0,Yr.map)(c=>!0)),(0,ef.of)(!1))),(0,Yr.distinctUntilChanged)(),(0,Yr.catchError)(o=>(0,ef.of)(!1))).subscribe(o=>this.connectedSubject.next(o))),this.subscriptions.add(s.connectionState$.pipe((0,Yr.skip)(1),(0,Yr.switchMap)(o=>(0,ef.iif)(()=>o===rU.ConnectionState.CONNECTED,(0,ef.timer)(0,hwt)))).subscribe(o=>o===0?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(s.incomingData$.pipe((0,Yr.filter)(o=>o==="h")).subscribe(o=>this.updateLastHeartbeat())),this.subscriptions.add(s.incomingJSONData$.pipe((0,Yr.filter)(o=>["IsLinkedOK","Linked"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(VA.EVENTS.LINKED,{sessionIdHash:KA.Session.hash(e),linked:u.linked,type:o.type,onlineGuests:u.onlineGuests}),this.linkedSubject.next(u.linked||u.onlineGuests>0)})),this.subscriptions.add(s.incomingJSONData$.pipe((0,Yr.filter)(o=>["GetSessionConfigOK","SessionConfigUpdated"].includes(o.type))).subscribe(o=>{var c;let u=o;(c=this.diagnostic)===null||c===void 0||c.log(VA.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:KA.Session.hash(e),metadata_keys:u&&u.metadata?Object.keys(u.metadata):void 0}),this.sessionConfigSubject.next({webhookId:u.webhookId,webhookUrl:u.webhookUrl,metadata:u.metadata})}))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");(e=this.diagnostic)===null||e===void 0||e.log(VA.EVENTS.STARTED_CONNECTING,{sessionIdHash:KA.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),(e=this.diagnostic)===null||e===void 0||e.log(VA.EVENTS.DISCONNECTED,{sessionIdHash:KA.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,Yr.filter)(e=>e),(0,Yr.take)(1),(0,Yr.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,Yr.filter)(e=>e),(0,Yr.take)(1),(0,Yr.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,Yr.filter)(e=>{if(e.type!=="Event")return!1;let t=e;return typeof t.sessionId=="string"&&typeof t.eventId=="string"&&typeof t.event=="string"&&typeof t.data=="string"}),(0,Yr.map)(e=>e))}setSessionMetadata(e,t){let n=(0,GA.ClientMessageSetSessionConfig)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,Yr.flatMap)(a=>this.makeRequest(n)),(0,Yr.map)(a=>{if((0,mue.isServerMessageFail)(a))throw new Error(a.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let a=(0,GA.ClientMessagePublishEvent)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,Yr.flatMap)(i=>this.makeRequest(a)),(0,Yr.map)(i=>{if((0,mue.isServerMessageFail)(i))throw new Error(i.error||"failed to publish event");return i.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>hwt*2){this.ws.disconnect();return}try{this.ws.sendData("h")}catch{}}makeRequest(e,t=Nan){let n=e.id;try{this.sendData(e)}catch(a){return(0,ef.throwError)(a)}return this.ws.incomingJSONData$.pipe((0,Yr.timeoutWith)(t,(0,ef.throwError)(new Error(`request ${n} timed out`))),(0,Yr.filter)(a=>a.id===n),(0,Yr.take)(1))}authenticate(){let e=(0,GA.ClientMessageHostSession)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,Yr.map)(t=>{if((0,mue.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,GA.ClientMessageIsLinked)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,GA.ClientMessageGetSessionConfig)({id:(0,QT.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}};nU.WalletSDKConnection=yue});var mwt=x(aU=>{"use strict";d();p();Object.defineProperty(aU,"__esModule",{value:!0});aU.WalletUIError=void 0;var G2=class extends Error{constructor(e,t){super(e),this.message=e,this.errorCode=t}};aU.WalletUIError=G2;G2.UserRejectedRequest=new G2("User rejected request");G2.SwitchEthereumChainUnsupportedChainId=new G2("Unsupported chainId",4902)});var ywt=x(ZT=>{"use strict";d();p();Object.defineProperty(ZT,"__esModule",{value:!0});ZT.decrypt=ZT.encrypt=void 0;var iU=Y0();async function Ban(r,e){if(e.length!==64)throw Error("secret must be 256 bits");let t=crypto.getRandomValues(new Uint8Array(12)),n=await crypto.subtle.importKey("raw",(0,iU.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=new TextEncoder,i=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:t},n,a.encode(r)),s=16,o=i.slice(i.byteLength-s),c=i.slice(0,i.byteLength-s),u=new Uint8Array(o),l=new Uint8Array(c),h=new Uint8Array([...t,...u,...l]);return(0,iU.uint8ArrayToHex)(h)}ZT.encrypt=Ban;function Dan(r,e){if(e.length!==64)throw Error("secret must be 256 bits");return new Promise((t,n)=>{(async function(){let a=await crypto.subtle.importKey("raw",(0,iU.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),i=(0,iU.hexStringToUint8Array)(r),s=i.slice(0,12),o=i.slice(12,28),c=i.slice(28),u=new Uint8Array([...c,...o]),l={name:"AES-GCM",iv:new Uint8Array(s)};try{let h=await window.crypto.subtle.decrypt(l,a,u),f=new TextDecoder;t(f.decode(h))}catch(h){n(h)}})()})}ZT.decrypt=Dan});var gue=x($A=>{"use strict";d();p();Object.defineProperty($A,"__esModule",{value:!0});$A.Web3Method=void 0;var Oan;(function(r){r.requestEthereumAccounts="requestEthereumAccounts",r.signEthereumMessage="signEthereumMessage",r.signEthereumTransaction="signEthereumTransaction",r.submitEthereumTransaction="submitEthereumTransaction",r.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",r.scanQRCode="scanQRCode",r.generic="generic",r.childRequestEthereumAccounts="childRequestEthereumAccounts",r.addEthereumChain="addEthereumChain",r.switchEthereumChain="switchEthereumChain",r.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",r.watchAsset="watchAsset",r.selectProvider="selectProvider"})(Oan=$A.Web3Method||($A.Web3Method={}))});var sU=x(YA=>{"use strict";d();p();Object.defineProperty(YA,"__esModule",{value:!0});YA.RelayMessageType=void 0;var Lan;(function(r){r.SESSION_ID_REQUEST="SESSION_ID_REQUEST",r.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",r.LINKED="LINKED",r.UNLINKED="UNLINKED",r.WEB3_REQUEST="WEB3_REQUEST",r.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",r.WEB3_RESPONSE="WEB3_RESPONSE"})(Lan=YA.RelayMessageType||(YA.RelayMessageType={}))});var gwt=x(oU=>{"use strict";d();p();Object.defineProperty(oU,"__esModule",{value:!0});oU.Web3RequestCanceledMessage=void 0;var qan=sU();function Fan(r){return{type:qan.RelayMessageType.WEB3_REQUEST_CANCELED,id:r}}oU.Web3RequestCanceledMessage=Fan});var bwt=x(cU=>{"use strict";d();p();Object.defineProperty(cU,"__esModule",{value:!0});cU.Web3RequestMessage=void 0;var Wan=sU();function Uan(r){return Object.assign({type:Wan.RelayMessageType.WEB3_REQUEST},r)}cU.Web3RequestMessage=Uan});var vwt=x(Ai=>{"use strict";d();p();Object.defineProperty(Ai,"__esModule",{value:!0});Ai.EthereumAddressFromSignedMessageResponse=Ai.SubmitEthereumTransactionResponse=Ai.SignEthereumTransactionResponse=Ai.SignEthereumMessageResponse=Ai.isRequestEthereumAccountsResponse=Ai.SelectProviderResponse=Ai.WatchAssetReponse=Ai.RequestEthereumAccountsResponse=Ai.SwitchEthereumChainResponse=Ai.AddEthereumChainResponse=Ai.ErrorResponse=void 0;var km=gue();function Han(r,e,t){return{method:r,errorMessage:e,errorCode:t}}Ai.ErrorResponse=Han;function jan(r){return{method:km.Web3Method.addEthereumChain,result:r}}Ai.AddEthereumChainResponse=jan;function zan(r){return{method:km.Web3Method.switchEthereumChain,result:r}}Ai.SwitchEthereumChainResponse=zan;function Kan(r){return{method:km.Web3Method.requestEthereumAccounts,result:r}}Ai.RequestEthereumAccountsResponse=Kan;function Gan(r){return{method:km.Web3Method.watchAsset,result:r}}Ai.WatchAssetReponse=Gan;function Van(r){return{method:km.Web3Method.selectProvider,result:r}}Ai.SelectProviderResponse=Van;function $an(r){return r&&r.method===km.Web3Method.requestEthereumAccounts}Ai.isRequestEthereumAccountsResponse=$an;function Yan(r){return{method:km.Web3Method.signEthereumMessage,result:r}}Ai.SignEthereumMessageResponse=Yan;function Jan(r){return{method:km.Web3Method.signEthereumTransaction,result:r}}Ai.SignEthereumTransactionResponse=Jan;function Qan(r){return{method:km.Web3Method.submitEthereumTransaction,result:r}}Ai.SubmitEthereumTransactionResponse=Qan;function Zan(r){return{method:km.Web3Method.ethereumAddressFromSignedMessage,result:r}}Ai.EthereumAddressFromSignedMessageResponse=Zan});var _wt=x(XT=>{"use strict";d();p();Object.defineProperty(XT,"__esModule",{value:!0});XT.isWeb3ResponseMessage=XT.Web3ResponseMessage=void 0;var wwt=sU();function Xan(r){return Object.assign({type:wwt.RelayMessageType.WEB3_RESPONSE},r)}XT.Web3ResponseMessage=Xan;function ein(r){return r&&r.type===wwt.RelayMessageType.WEB3_RESPONSE}XT.isWeb3ResponseMessage=ein});var Cwt=x(Ll=>{"use strict";d();p();var tin=Ll&&Ll.__createBinding||(Object.create?function(r,e,t,n){n===void 0&&(n=t),Object.defineProperty(r,n,{enumerable:!0,get:function(){return e[t]}})}:function(r,e,t,n){n===void 0&&(n=t),r[n]=e[t]}),rin=Ll&&Ll.__setModuleDefault||(Object.create?function(r,e){Object.defineProperty(r,"default",{enumerable:!0,value:e})}:function(r,e){r.default=e}),Twt=Ll&&Ll.__decorate||function(r,e,t,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var o=r.length-1;o>=0;o--)(s=r[o])&&(i=(a<3?s(i):a>3?s(e,t,i):s(e,t))||i);return a>3&&i&&Object.defineProperty(e,t,i),i},nin=Ll&&Ll.__importStar||function(r){if(r&&r.__esModule)return r;var e={};if(r!=null)for(var t in r)t!=="default"&&Object.prototype.hasOwnProperty.call(r,t)&&tin(e,r,t);return rin(e,r),e},ain=Ll&&Ll.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ll,"__esModule",{value:!0});Ll.WalletSDKRelay=void 0;var Ewt=ain(zbt()),xwt=lF(),e6=Uk(),To=eU(),ku=pF(),iin=fwt(),bue=mwt(),sin=VI(),Si=Y0(),sg=nin(ywt()),og=xF(),uU=aie(),tc=gue(),oin=gwt(),cin=bwt(),gd=vwt(),Xu=_wt(),bd=class extends uU.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new e6.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new e6.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:a,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=(t=e.reloadOnDisconnect)!==null&&t!==void 0?t:!0,this.ui=a}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(a=>{this.dappDefaultChain!==a&&(this.dappDefaultChain=a)}));let e=og.Session.load(this.storage)||new og.Session(this.storage).save(),t=new iin.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:a=>{this.onSessionConfigChanged(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,To.filter)(a=>a.event==="Web3Response")).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,To.skip)(1),(0,To.tap)(a=>{var i;this.isLinked=a;let s=this.storage.getItem(uU.LOCAL_STORAGE_ADDRESSES_KEY);if(a&&(this.session.linked=a),this.isUnlinkedErrorState=!1,s){let o=s.split(" "),c=this.storage.getItem("IsStandaloneSigning")==="true";if(o[0]!==""&&!a&&this.session.linked&&!c){this.isUnlinkedErrorState=!0;let u=this.getSessionIdHash();(i=this.diagnostic)===null||i===void 0||i.log(ku.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:u})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>!!a.metadata&&a.metadata.__destroyed==="1")).subscribe(()=>{var a;let i=t.isDestroyed;return(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:i,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.WalletUsername!==void 0)).pipe((0,To.mergeMap)(a=>sg.decrypt(a.metadata.WalletUsername,e.secret))).subscribe({next:a=>{this.storage.setItem(uU.WALLET_USER_NAME_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppVersion!==void 0)).pipe((0,To.mergeMap)(a=>sg.decrypt(a.metadata.AppVersion,e.secret))).subscribe({next:a=>{this.storage.setItem(uU.APP_VERSION_KEY,a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.ChainId!==void 0&&a.metadata.JsonRpcUrl!==void 0)).pipe((0,To.mergeMap)(a=>(0,e6.zip)(sg.decrypt(a.metadata.ChainId,e.secret),sg.decrypt(a.metadata.JsonRpcUrl,e.secret)))).pipe((0,To.distinctUntilChanged)()).subscribe({next:([a,i])=>{this.chainCallback&&this.chainCallback(a,i)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.EthereumAddress!==void 0)).pipe((0,To.mergeMap)(a=>sg.decrypt(a.metadata.EthereumAddress,e.secret))).subscribe({next:a=>{this.accountsCallback&&this.accountsCallback([a]),bd.accountRequestCallbackIds.size>0&&(Array.from(bd.accountRequestCallbackIds.values()).forEach(i=>{let s=(0,Xu.Web3ResponseMessage)({id:i,response:(0,gd.RequestEthereumAccountsResponse)([a])});this.invokeCallback(Object.assign(Object.assign({},s),{id:i}))}),bd.accountRequestCallbackIds.clear())},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,To.filter)(a=>a.metadata&&a.metadata.AppSrc!==void 0)).pipe((0,To.mergeMap)(a=>sg.decrypt(a.metadata.AppSrc,e.secret))).subscribe({next:a=>{this.ui.setAppSrc(a)},error:()=>{var a;(a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,To.timeout)(1e3),(0,To.catchError)(e=>(0,e6.of)(null))).subscribe(e=>{var t,n,a;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch{(t=this.diagnostic)===null||t===void 0||t.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}(n=this.diagnostic)===null||n===void 0||n.log(ku.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=og.Session.load(this.storage);if(s?.id===this._session.id?this.storage.clear():s&&((a=this.diagnostic)===null||a===void 0||a.log(ku.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:og.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0);let{session:o,ui:c,connection:u}=this.subscribe();this._session=o,this.connection=u,this.ui=c,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(ku.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,a){return this.sendRequest({method:tc.Web3Method.signEthereumMessage,params:{message:(0,Si.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:a||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:tc.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,Si.hexStringFromBuffer)(e,!0),signature:(0,Si.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:tc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Si.bigIntStringFromBN)(e.weiValue),data:(0,Si.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,Si.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:tc.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,Si.bigIntStringFromBN)(e.weiValue),data:(0,Si.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,Si.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,Si.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,Si.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,Si.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:tc.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,Si.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:tc.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,Si.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:tc.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,c=>{if(t?.(),c.errorMessage)return o(new Error(c.errorMessage));s(c)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:a}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let a=(0,cin.Web3RequestMessage)({id:e,request:t}),i=og.Session.load(this.storage);(n=this.diagnostic)===null||n===void 0||n.log(ku.EVENTS.WEB3_REQUEST,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?og.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",a,!0).subscribe({next:s=>{var o;(o=this.diagnostic)===null||o===void 0||o.log(ku.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:a.id,method:`relay::${a.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?og.Session.hash(i.id):"",isSessionMismatched:(i?.id!==this._session.id).toString()})},error:s=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a.id,response:{method:a.request.method,errorMessage:s.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,oin.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let a=this.session.secret;return new e6.Observable(i=>{sg.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),a).then(s=>{i.next(s),i.complete()})}).pipe((0,To.mergeMap)(i=>this.connection.publishEvent(e,i,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,e6.from)(sg.decrypt(e.data,this.session.secret)).pipe((0,To.map)(t=>JSON.parse(t))).subscribe({next:t=>{let n=(0,Xu.isWeb3ResponseMessage)(t)?t:null;!n||this.handleWeb3ResponseMessage(n)},error:()=>{var t;(t=this.diagnostic)===null||t===void 0||t.log(ku.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch{return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if((t=this.diagnostic)===null||t===void 0||t.log(ku.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,gd.isRequestEthereumAccountsResponse)(n)){bd.accountRequestCallbackIds.forEach(a=>this.invokeCallback(Object.assign(Object.assign({},e),{id:a}))),bd.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,a){this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:e,response:(0,gd.ErrorResponse)(t,(n??bue.WalletUIError.UserRejectedRequest).message,a)}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:tc.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=null,n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,s),t?.()};return{promise:new Promise((s,o)=>{var c;this.relayEventManager.callbacks.set(n,l=>{if(this.ui.hideRequestEthereumAccounts(),t?.(),l.errorMessage)return o(new Error(l.errorMessage));s(l)});let u=((c=window?.navigator)===null||c===void 0?void 0:c.userAgent)||null;if(u&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(u)){let l;try{(0,Si.isInIFrame)()&&window.top?l=window.top.location:l=window.location}catch{l=window.location}l.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(l.href)}`;return}if(this.ui.inlineAccountsResponse()){let l=h=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.RequestEthereumAccountsResponse)(h)}))};this.ui.requestEthereumAccounts({onCancel:a,onAccounts:l})}else{let l=xwt.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>a(l)})}bd.accountRequestCallbackIds.add(n),!this.ui.inlineAccountsResponse()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(n,e)}),cancel:a}}selectProvider(e){let t={method:tc.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,Si.randomBytesHex)(8),a=s=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,s)},i=new Promise((s,o)=>{this.relayEventManager.callbacks.set(n,l=>{if(l.errorMessage)return o(new Error(l.errorMessage));s(l)});let c=l=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.SelectProviderResponse)(sin.ProviderType.Unselected)}))},u=l=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:n,response:(0,gd.SelectProviderResponse)(l)}))};this.ui.selectProvider&&this.ui.selectProvider({onApprove:u,onCancel:c,providerOptions:e})});return{cancel:a,promise:i}}watchAsset(e,t,n,a,i,s){let o={method:tc.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:a,image:i},chainId:s}},c=null,u=(0,Si.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};this.ui.inlineWatchAsset()||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload}));let h=new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.WatchAssetReponse)(!1)}))},E=()=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:E,onCancel:y,type:e,address:t,symbol:n,decimals:a,image:i,chainId:s}),!this.ui.inlineWatchAsset()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)});return{cancel:l,promise:h}}addEthereumChain(e,t,n,a,i,s){let o={method:tc.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:a,chainName:i,iconUrls:n,nativeCurrency:s}},c=null,u=(0,Si.randomBytesHex)(8),l=f=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,o.method,f),c?.()};return this.ui.inlineAddEthereumChain(e)||(c=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((f,m)=>{this.relayEventManager.callbacks.set(u,I=>{if(c?.(),I.errorMessage)return m(new Error(I.errorMessage));f(I)});let y=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},E=I=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:u,response:(0,gd.AddEthereumChainResponse)({isApproved:!0,rpcUrl:I})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:y,onApprove:E,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),!this.ui.inlineAddEthereumChain(e)&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(u,o)}),cancel:l}}switchEthereumChain(e,t){let n={method:tc.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},a=(0,Si.randomBytesHex)(8),i=o=>{this.publishWeb3RequestCanceledEvent(a),this.handleErrorResponse(a,n.method,o)};return{promise:new Promise((o,c)=>{this.relayEventManager.callbacks.set(a,h=>{if(h.errorMessage&&h.errorCode)return c(xwt.ethErrors.provider.custom({code:h.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."}));if(h.errorMessage)return c(new Error(h.errorMessage));o(h)});let u=h=>{if(typeof h=="number"){let f=h;this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.ErrorResponse)(tc.Web3Method.switchEthereumChain,bue.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,f)}))}else h instanceof bue.WalletUIError?this.handleErrorResponse(a,tc.Web3Method.switchEthereumChain,h,h.errorCode):this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},l=h=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:a,response:(0,gd.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:h})}))};this.ui.switchEthereumChain({onCancel:u,onApprove:l,chainId:n.params.chainId,address:n.params.address}),!this.ui.inlineSwitchEthereumChain()&&!this.ui.isStandalone()&&this.publishWeb3RequestEvent(a,n)}),cancel:i}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return og.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=i=>{this.handleErrorResponse(e,t.method,i)},a=i=>{this.handleWeb3ResponseMessage((0,Xu.Web3ResponseMessage)({id:e,response:i}))};switch(t.method){case tc.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:a,onCancel:n});break;case tc.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case tc.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:a,onCancel:n});break;case tc.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:a});break;default:n();break}}onSessionConfigChanged(e){}};bd.accountRequestCallbackIds=new Set;Twt([Ewt.default],bd.prototype,"resetAndReload",null);Twt([Ewt.default],bd.prototype,"handleIncomingEvent",null);Ll.WalletSDKRelay=bd});var Iwt=x(lU=>{"use strict";d();p();Object.defineProperty(lU,"__esModule",{value:!0});lU.WalletSDKRelayEventManager=void 0;var uin=Y0(),vue=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,uin.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}};lU.WalletSDKRelayEventManager=vue});var kwt=x((Rda,lin)=>{lin.exports={name:"@coinbase/wallet-sdk",version:"3.6.4",description:"Coinbase Wallet JavaScript SDK",keywords:["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],main:"dist/index.js",types:"dist/index.d.ts",repository:"https://github.com/coinbase/coinbase-wallet-sdk.git",author:"Coinbase, Inc.",license:"Apache-2.0",scripts:{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start",prebuild:`rm -rf ./build && node -p "'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/version.ts`,build:"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL='http://localhost:3000'; yarn build","build:dev:watch":"nodemon -e 'ts,tsx,js,json,css,scss,svg' --ignore 'src/**/*-css.ts' --ignore 'src/**/*-svg.ts' --watch src/ --exec 'yarn build:dev'","build:prod":`yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak 's| "private": true,||g' build/npm/package.json && rm -f build/npm/package.json.bak`,"lint:types":"tsc --noEmit","lint:prettier":'prettier --check "{src,__tests__}/**/*.(js|ts|tsx)"',"lint:eslint":"eslint ./src --ext .ts,.tsx",lint:"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write",release:"./scripts/release.sh"},dependencies:{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1",buffer:"^6.0.3",clsx:"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0",keccak:"^3.0.1",preact:"^10.5.9",qs:"^6.10.3",rxjs:"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0",util:"^0.12.4"},devDependencies:{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1",browserify:"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2",eslint:"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0",jasmine:"3.8.0",jest:"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0",karma:"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1",nodemon:"^2.0.6",prettier:"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7",sass:"^1.50.0",svgo:"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0",tslib:"^2.0.3",typescript:"^4.1.3",watchify:"4.0.0",webpack:"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},engines:{node:">= 10.0.0"}}});var wue=x(dU=>{"use strict";d();p();Object.defineProperty(dU,"__esModule",{value:!0});dU.CoinbaseWalletSDK=void 0;var din=Zht(),pin=Xht(),hin=YF(),fin=Hbt(),min=Cwt(),yin=Iwt(),gin=Y0(),bin=g.env.LINK_API_URL||"https://www.walletlink.org",Awt=g.env.SDK_VERSION||kwt().version||"unknown",t6=class{constructor(e){var t,n,a;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let i=e.linkAPIUrl||bin,s;if(e.uiConstructor?s=e.uiConstructor:s=u=>new fin.WalletSDKUI(u),typeof e.overrideIsMetaMask>"u"?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=(t=e.overrideIsCoinbaseWallet)!==null&&t!==void 0?t:!0,this._overrideIsCoinbaseBrowser=(n=e.overrideIsCoinbaseBrowser)!==null&&n!==void 0?n:!1,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=(a=e.reloadOnDisconnect)!==null&&a!==void 0?a:!0;let o=new URL(i),c=`${o.protocol}//${o.host}`;this._storage=new pin.ScopedLocalStorage(`-walletlink:${c}`),this._storage.setItem("version",t6.VERSION),!(this.walletExtension||this.coinbaseBrowser)&&(this._relayEventManager=new yin.WalletSDKRelayEventManager,this._relay=new min.WalletSDKRelay({linkAPIUrl:i,version:Awt,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),!e.headlessMode&&this._relay.attachUI())}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),this._reloadOnDisconnect===!1&&typeof n.disableReloadOnDisconnect=="function"&&n.disableReloadOnDisconnect(),n;let a=this.coinbaseBrowser;if(a)return a;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new hin.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,gin.getFavicon)();let a=this.walletExtension;a?this.isCipherProvider(a)||a.setAppInfo(this._appName,this._appLogoUrl):(n=this._relay)===null||n===void 0||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():(e=this._relay)===null||e===void 0||e.resetAndReload()}getQrUrl(){var e,t;return(t=(e=this._relay)===null||e===void 0?void 0:e.getQRCodeUrl())!==null&&t!==void 0?t:null}getCoinbaseWalletLogo(e,t=240){return(0,din.walletLogo)(e,t)}get walletExtension(){var e;return(e=window.coinbaseWalletExtension)!==null&&e!==void 0?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=(e=window.ethereum)!==null&&e!==void 0?e:(t=window.top)===null||t===void 0?void 0:t.ethereum;return n&&"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch{return}}isCipherProvider(e){return typeof e.isCipher=="boolean"&&e.isCipher}};dU.CoinbaseWalletSDK=t6;t6.VERSION=Awt});var xue=x(V2=>{"use strict";d();p();Object.defineProperty(V2,"__esModule",{value:!0});V2.CoinbaseWalletProvider=V2.CoinbaseWalletSDK=void 0;var _ue=wue(),Swt=YF(),vin=wue();Object.defineProperty(V2,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return vin.CoinbaseWalletSDK}});var win=YF();Object.defineProperty(V2,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return win.CoinbaseWalletProvider}});V2.default=_ue.CoinbaseWalletSDK;typeof window<"u"&&(window.CoinbaseWalletSDK=_ue.CoinbaseWalletSDK,window.CoinbaseWalletProvider=Swt.CoinbaseWalletProvider,window.WalletLink=_ue.CoinbaseWalletSDK,window.WalletLinkProvider=Swt.CoinbaseWalletProvider)});var Nwt=x(Iue=>{"use strict";d();p();Object.defineProperty(Iue,"__esModule",{value:!0});var Tue=bm(),tf=vm(),r6=Zo(),Pwt=je(),pU=Xr(),$2=eT(),Rwt=tT();Yu();vt();Qe();function _in(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var n6=new WeakMap,JA=new WeakMap,Eue=new WeakSet,Cue=class extends $2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),Tue._classPrivateMethodInitSpec(this,Eue),r6._defineProperty(this,"id","coinbaseWallet"),r6._defineProperty(this,"name","Coinbase Wallet"),r6._defineProperty(this,"ready",!0),tf._classPrivateFieldInitSpec(this,n6,{writable:!0,value:void 0}),tf._classPrivateFieldInitSpec(this,JA,{writable:!0,value:void 0}),r6._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:pU.getAddress(a[0])})}),r6._defineProperty(this,"onChainChanged",a=>{let i=Rwt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),r6._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=pU.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new Pwt.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new $2.UserRejectedRequestError(t):t}}async disconnect(){if(!tf._classPrivateFieldGet(this,JA))return;let 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(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return pU.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return Rwt.normalizeChainId(e.chainId)}async getProvider(){if(!tf._classPrivateFieldGet(this,JA)){let e=(await Promise.resolve().then(function(){return _in(xue())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),tf._classPrivateFieldSet(this,n6,new e(this.options));let t=tf._classPrivateFieldGet(this,n6).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];tf._classPrivateFieldSet(this,JA,tf._classPrivateFieldGet(this,n6).makeWeb3Provider(i,a))}return tf._classPrivateFieldGet(this,JA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new Pwt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=pU.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new $2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw Tue._classPrivateMethodGet(this,Eue,Mwt).call(this,s)?new $2.UserRejectedRequestError(s):new $2.AddChainError}throw Tue._classPrivateMethodGet(this,Eue,Mwt).call(this,a)?new $2.UserRejectedRequestError(a):new $2.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!tf._classPrivateFieldGet(this,n6))throw new Error("Coinbase Wallet SDK not initialized");return tf._classPrivateFieldGet(this,n6).getQrUrl()}};function Mwt(r){return/(user rejected)/i.test(r.message)}Iue.CoinbaseWalletConnector=Cue});var Bwt=x(kue=>{"use strict";d();p();Object.defineProperty(kue,"__esModule",{value:!0});var hU=Zo(),xin=Qx(),Tin=Xx(),Ein=cc();Qe();bm();Yu();vt();z1();je();typeof window<"u"&&(window.Buffer=Ein.Buffer);var Y2=class extends Tin.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Y2.id,e),hU._defineProperty(this,"connector",void 0),hU._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return Nwt()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new xin.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};hU._defineProperty(Y2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});hU._defineProperty(Y2,"id","coinbaseWallet");kue.CoinbaseWallet=Y2});var rc=x(Dwt=>{"use strict";d();p();function Cin(r,e){if(typeof r!="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Iin(r){var e=Cin(r,"string");return typeof e=="symbol"?e:String(e)}function kin(r,e,t){return e=Iin(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}Dwt._defineProperty=kin});var a6=x(Sue=>{"use strict";d();p();var Ain=rc(),Sin=Qe();function Pin(r){return r&&r.__esModule?r:{default:r}}var Rin=Pin(Sin),fU=class extends Rin.default{},Aue=class extends fU{constructor(e){super(),Ain._defineProperty(this,"wagmiConnector",void 0),this.wagmiConnector=e}async connect(e){let t=e?.chainId;return this.setupTWConnectorListeners(),(await this.wagmiConnector.connect({chainId:t})).account}disconnect(){return this.wagmiConnector.removeAllListeners("connect"),this.wagmiConnector.removeAllListeners("change"),this.wagmiConnector.disconnect()}isConnected(){return this.wagmiConnector.isAuthorized()}getAddress(){return this.wagmiConnector.getAccount()}getSigner(){return this.wagmiConnector.getSigner()}getProvider(){return this.wagmiConnector.getProvider()}async switchChain(e){if(!this.wagmiConnector.switchChain)throw new Error("Switch chain not supported");await this.wagmiConnector.switchChain(e)}setupTWConnectorListeners(){this.wagmiConnector.addListener("connect",e=>{this.emit("connect",e)}),this.wagmiConnector.addListener("change",e=>{this.emit("change",e)}),this.wagmiConnector.addListener("disconnect",()=>{this.emit("disconnect")})}async setupListeners(){this.setupTWConnectorListeners(),await this.wagmiConnector.setupListeners()}updateChains(e){this.wagmiConnector.updateChains(e)}};Sue.TWConnector=fU;Sue.WagmiAdapter=Aue});var el=x(Owt=>{"use strict";d();p();function Min(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}Owt._checkPrivateRedeclaration=Min});var Am=x(Pue=>{"use strict";d();p();var Nin=el();function Bin(r,e){Nin._checkPrivateRedeclaration(r,e),e.add(r)}function Din(r,e,t){if(!e.has(r))throw new TypeError("attempted to get private field on non-instance");return t}Pue._classPrivateMethodGet=Din;Pue._classPrivateMethodInitSpec=Bin});var cg=x(mU=>{"use strict";d();p();Object.defineProperty(mU,"__esModule",{value:!0});var Lwt=rc(),i6=je(),Oin=Qe();function Lin(r){return r&&r.__esModule?r:{default:r}}var qin=Lin(Oin);function Fin(r){return`https://${r}.rpc.thirdweb.com`}var Win=["function isValidSignature(bytes32 _message, bytes _signature) public view returns (bytes4)"],Uin="0x1626ba7e";async function qwt(r,e,t,n){let a=new i6.providers.JsonRpcProvider(Fin(n)),i=new i6.Contract(t,Win,a),s=i6.utils.hashMessage(r);try{return await i.isValidSignature(s,e)===Uin}catch{return!1}}var Rue=class extends qin.default{constructor(){super(...arguments),Lwt._defineProperty(this,"type","evm"),Lwt._defineProperty(this,"signerPromise",void 0)}async getAddress(){return(await this.getCachedSigner()).getAddress()}async getChainId(){return(await this.getCachedSigner()).getChainId()}async signMessage(e){return await(await this.getCachedSigner()).signMessage(e)}async verifySignature(e,t,n,a){let i=i6.utils.hashMessage(e),s=i6.utils.arrayify(i);if(i6.utils.recoverAddress(s,t)===n)return!0;if(a!==void 0)try{return await qwt(e,t,n,a||1)}catch{}return!1}async getCachedSigner(){return this.signerPromise?this.signerPromise:(this.signerPromise=this.getSigner().catch(()=>{throw this.signerPromise=void 0,new Error("Unable to get a signer!")}),this.signerPromise)}};mU.AbstractWallet=Rue;mU.checkContractWalletSignature=qwt});var s6=x(QA=>{"use strict";d();p();var Fwt=Am(),J2=rc(),ql=vt(),Hin=cg(),Mue="__TW__",yU=class{constructor(e){J2._defineProperty(this,"name",void 0),this.name=e}getItem(e){return new Promise(t=>{t(localStorage.getItem(`${Mue}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{localStorage.setItem(`${Mue}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{localStorage.removeItem(`${Mue}/${this.name}/${e}`),t()})}};function Nue(r){return new yU(r)}var za=function(r){return r[r.Mainnet=1]="Mainnet",r[r.Goerli=5]="Goerli",r[r.Polygon=137]="Polygon",r[r.Mumbai=80001]="Mumbai",r[r.Fantom=250]="Fantom",r[r.FantomTestnet=4002]="FantomTestnet",r[r.Avalanche=43114]="Avalanche",r[r.AvalancheFujiTestnet=43113]="AvalancheFujiTestnet",r[r.Optimism=10]="Optimism",r[r.OptimismGoerli=420]="OptimismGoerli",r[r.Arbitrum=42161]="Arbitrum",r[r.ArbitrumGoerli=421613]="ArbitrumGoerli",r[r.BinanceSmartChainMainnet=56]="BinanceSmartChainMainnet",r[r.BinanceSmartChainTestnet=97]="BinanceSmartChainTestnet",r}({});za.Mainnet,za.Goerli,za.Polygon,za.Mumbai,za.Fantom,za.FantomTestnet,za.Avalanche,za.AvalancheFujiTestnet,za.Optimism,za.OptimismGoerli,za.Arbitrum,za.ArbitrumGoerli,za.BinanceSmartChainMainnet,za.BinanceSmartChainTestnet;var jin={[za.Mainnet]:ql.Ethereum,[za.Goerli]:ql.Goerli,[za.Polygon]:ql.Polygon,[za.Mumbai]:ql.Mumbai,[za.Avalanche]:ql.Avalanche,[za.AvalancheFujiTestnet]:ql.AvalancheFuji,[za.Fantom]:ql.Fantom,[za.FantomTestnet]:ql.FantomTestnet,[za.Arbitrum]:ql.Arbitrum,[za.ArbitrumGoerli]:ql.ArbitrumGoerli,[za.Optimism]:ql.Optimism,[za.OptimismGoerli]:ql.OptimismGoerli,[za.BinanceSmartChainMainnet]:ql.Binance,[za.BinanceSmartChainTestnet]:ql.BinanceTestnet},Uwt=Object.values(jin),Wwt=new WeakSet,gU=class extends Hin.AbstractWallet{getMeta(){return this.constructor.meta}constructor(e,t){super(),Fwt._classPrivateMethodInitSpec(this,Wwt),J2._defineProperty(this,"walletId",void 0),J2._defineProperty(this,"coordinatorStorage",void 0),J2._defineProperty(this,"walletStorage",void 0),J2._defineProperty(this,"chains",void 0),J2._defineProperty(this,"options",void 0),this.walletId=e,this.options=t,this.chains=t.chains||Uwt,this.coordinatorStorage=t.coordinatorStorage||Nue("coordinator"),this.walletStorage=t.walletStorage||Nue(this.walletId)}async autoConnect(){if(await this.coordinatorStorage.getItem("lastConnectedWallet")!==this.walletId)return;let t=await this.walletStorage.getItem("lastConnectedParams"),n;try{n=JSON.parse(t)}catch{n=void 0}return await this.connect(n)}async connect(e){let t=await this.getConnector();Fwt._classPrivateMethodGet(this,Wwt,zin).call(this,t);let n=async()=>{if(e?.saveParams!==!1)try{await this.walletStorage.setItem("lastConnectedParams",JSON.stringify(e)),await this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId)}catch(i){console.error(i)}};if(await t.isConnected()){let i=await t.getAddress();return t.setupListeners(),await n(),e?.chainId&&await t.switchChain(e?.chainId),i}else{let i=await t.connect(e);return await n(),i}}async getSigner(){let e=await this.getConnector();if(!e)throw new Error("Wallet not connected");return await e.getSigner()}async onDisconnect(){await this.coordinatorStorage.getItem("lastConnectedWallet")===this.walletId&&await this.coordinatorStorage.removeItem("lastConnectedWallet")}async disconnect(){let e=await this.getConnector();e&&(await e.disconnect(),e.removeAllListeners(),await this.onDisconnect())}async switchChain(e){let t=await this.getConnector();if(!t)throw new Error("Wallet not connected");if(!t.switchChain)throw new Error("Wallet does not support switching chains");return await t.switchChain(e)}async updateChains(e){this.chains=e,(await this.getConnector()).updateChains(e)}};async function zin(r){r.on("connect",e=>{this.coordinatorStorage.setItem("lastConnectedWallet",this.walletId),this.emit("connect",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("change",e=>{this.emit("change",{address:e.account,chainId:e.chain?.id}),e.chain?.id&&this.walletStorage.setItem("lastConnectedChain",String(e.chain?.id))}),r.on("message",e=>{this.emit("message",e)}),r.on("disconnect",async()=>{await this.onDisconnect(),this.emit("disconnect")}),r.on("error",e=>this.emit("error",e))}J2._defineProperty(gU,"meta",void 0);QA.AbstractBrowserWallet=gU;QA.AsyncLocalStorage=yU;QA.createAsyncLocalStorage=Nue;QA.thirdwebChains=Uwt});var Sm=x(bU=>{"use strict";d();p();var Kin=el();function Gin(r,e,t){Kin._checkPrivateRedeclaration(r,e),e.set(r,t)}function Vin(r,e){return e.get?e.get.call(r):e.value}function Hwt(r,e,t){if(!e.has(r))throw new TypeError("attempted to "+t+" private field on non-instance");return e.get(r)}function $in(r,e){var t=Hwt(r,e,"get");return Vin(r,t)}function Yin(r,e,t){if(e.set)e.set.call(r,t);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=t}}function Jin(r,e,t){var n=Hwt(r,e,"set");return Yin(r,n,t),t}bU._classPrivateFieldGet=$in;bU._classPrivateFieldInitSpec=Gin;bU._classPrivateFieldSet=Jin});var o6=x(Z0=>{"use strict";d();p();var Au=rc(),Qin=vt(),Zin=Qe();function Xin(r){return r&&r.__esModule?r:{default:r}}var esn=Xin(Zin),Bue=class extends esn.default{constructor(e){let{chains:t=Qin.defaultChains,options:n}=e;super(),Au._defineProperty(this,"id",void 0),Au._defineProperty(this,"name",void 0),Au._defineProperty(this,"chains",void 0),Au._defineProperty(this,"options",void 0),Au._defineProperty(this,"ready",void 0),this.chains=t,this.options=n}getBlockExplorerUrls(e){let t=e.explorers?.map(n=>n.url)??[];return t.length>0?t:void 0}isChainUnsupported(e){return!this.chains.some(t=>t.chainId===e)}updateChains(e){this.chains=e}},vU=class extends Error{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!Number.isInteger(a))throw new Error('"code" must be an integer.');if(!e||typeof e!="string")throw new Error('"message" must be a nonempty string.');super(e),Au._defineProperty(this,"cause",void 0),Au._defineProperty(this,"code",void 0),Au._defineProperty(this,"data",void 0),this.cause=n,this.code=a,this.data=i}},ZA=class extends vU{constructor(e,t){let{cause:n,code:a,data:i}=t;if(!(Number.isInteger(a)&&a>=1e3&&a<=4999))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,{cause:n,code:a,data:i})}},Due=class extends Error{constructor(){super(...arguments),Au._defineProperty(this,"name","AddChainError"),Au._defineProperty(this,"message","Error adding chain")}},Oue=class extends Error{constructor(e){let{chainId:t,connectorId:n}=e;super(`Chain "${t}" not configured for connector "${n}".`),Au._defineProperty(this,"name","ChainNotConfigured")}},Lue=class extends Error{constructor(){super(...arguments),Au._defineProperty(this,"name","ConnectorNotFoundError"),Au._defineProperty(this,"message","Connector not found")}},que=class extends vU{constructor(e){super("Resource unavailable",{cause:e,code:-32002}),Au._defineProperty(this,"name","ResourceUnavailable")}},Fue=class extends ZA{constructor(e){super("Error switching chain",{cause:e,code:4902}),Au._defineProperty(this,"name","SwitchChainError")}},Wue=class extends ZA{constructor(e){super("User rejected request",{cause:e,code:4001}),Au._defineProperty(this,"name","UserRejectedRequestError")}};Z0.AddChainError=Due;Z0.ChainNotConfiguredError=Oue;Z0.Connector=Bue;Z0.ConnectorNotFoundError=Lue;Z0.ProviderRpcError=ZA;Z0.ResourceUnavailableError=que;Z0.SwitchChainError=Fue;Z0.UserRejectedRequestError=Wue});var c6=x(jwt=>{"use strict";d();p();function tsn(r){return typeof r=="string"?Number.parseInt(r,r.trim().substring(0,2)==="0x"?16:10):typeof r=="bigint"?Number(r):r}jwt.normalizeChainId=tsn});var Vwt=x(zue=>{"use strict";d();p();Object.defineProperty(zue,"__esModule",{value:!0});var Uue=Am(),rf=Sm(),u6=rc(),zwt=je(),wU=Xr(),Q2=o6(),Kwt=c6();el();vt();Qe();function rsn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var l6=new WeakMap,XA=new WeakMap,Hue=new WeakSet,jue=class extends Q2.Connector{constructor(e){let{chains:t,options:n}=e;super({chains:t,options:{reloadOnDisconnect:!1,...n}}),Uue._classPrivateMethodInitSpec(this,Hue),u6._defineProperty(this,"id","coinbaseWallet"),u6._defineProperty(this,"name","Coinbase Wallet"),u6._defineProperty(this,"ready",!0),rf._classPrivateFieldInitSpec(this,l6,{writable:!0,value:void 0}),rf._classPrivateFieldInitSpec(this,XA,{writable:!0,value:void 0}),u6._defineProperty(this,"onAccountsChanged",a=>{a.length===0?this.emit("disconnect"):this.emit("change",{account:wU.getAddress(a[0])})}),u6._defineProperty(this,"onChainChanged",a=>{let i=Kwt.normalizeChainId(a),s=this.isChainUnsupported(i);this.emit("change",{chain:{id:i,unsupported:s}})}),u6._defineProperty(this,"onDisconnect",()=>{this.emit("disconnect")})}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.enable(),a=wU.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e&&i!==e)try{i=(await this.switchChain(e)).chainId,s=this.isChainUnsupported(i)}catch(o){console.error(`Connected but failed to switch to desired chain ${e}`,o)}return{account:a,chain:{id:i,unsupported:s},provider:new zwt.providers.Web3Provider(t)}}catch(t){throw/(user closed modal|accounts received is empty)/i.test(t.message)?new Q2.UserRejectedRequestError(t):t}}async disconnect(){if(!rf._classPrivateFieldGet(this,XA))return;let 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(){let t=await(await this.getProvider()).request({method:"eth_accounts"});if(t.length===0)throw new Error("No accounts found");return wU.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return Kwt.normalizeChainId(e.chainId)}async getProvider(){if(!rf._classPrivateFieldGet(this,XA)){let e=(await Promise.resolve().then(function(){return rsn(xue())})).default;typeof e!="function"&&typeof e.default=="function"&&(e=e.default),rf._classPrivateFieldSet(this,l6,new e(this.options));let t=rf._classPrivateFieldGet(this,l6).walletExtension?.getChainId(),n=this.chains.find(s=>this.options.chainId?s.chainId===this.options.chainId:s.chainId===t)||this.chains[0],a=this.options.chainId||n?.chainId,i=this.options.jsonRpcUrl||n?.rpc[0];rf._classPrivateFieldSet(this,XA,rf._classPrivateFieldGet(this,l6).makeWeb3Provider(i,a))}return rf._classPrivateFieldGet(this,XA)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new zwt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=wU.hexValue(e);try{return await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],testnet:!1,chain:"ethereum",shortName:"eth"}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new Q2.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw Uue._classPrivateMethodGet(this,Hue,Gwt).call(this,s)?new Q2.UserRejectedRequestError(s):new Q2.AddChainError}throw Uue._classPrivateMethodGet(this,Hue,Gwt).call(this,a)?new Q2.UserRejectedRequestError(a):new Q2.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect)}async getQrCode(){if(await this.getProvider(),!rf._classPrivateFieldGet(this,l6))throw new Error("Coinbase Wallet SDK not initialized");return rf._classPrivateFieldGet(this,l6).getQrUrl()}};function Gwt(r){return/(user rejected)/i.test(r.message)}zue.CoinbaseWalletConnector=jue});var $wt=x(Kue=>{"use strict";d();p();Object.defineProperty(Kue,"__esModule",{value:!0});var _U=rc(),nsn=a6(),asn=s6(),isn=cc();Qe();Am();el();vt();cg();je();typeof window<"u"&&(window.Buffer=isn.Buffer);var Z2=class extends asn.AbstractBrowserWallet{get walletName(){return"Coinbase Wallet"}constructor(e){super(Z2.id,e),_U._defineProperty(this,"connector",void 0),_U._defineProperty(this,"coinbaseConnector",void 0)}async getConnector(){if(!this.connector){let{CoinbaseWalletConnector:e}=await Promise.resolve().then(function(){return Vwt()}),t=new e({chains:this.chains,options:{appName:this.options.dappMetadata.name,reloadOnDisconnect:!1,darkMode:this.options.theme==="dark",headlessMode:!0}});t.on("connect",()=>{}),this.coinbaseConnector=t,this.connector=new nsn.WagmiAdapter(t)}return this.connector}async getQrCode(){if(await this.getConnector(),!this.coinbaseConnector)throw new Error("Coinbase connector not initialized");return this.coinbaseConnector.getQrCode()}};_U._defineProperty(Z2,"meta",{iconURL:"ipfs://QmcJBHopbwfJcLqJpX2xEufSS84aLbF7bHavYhaXUcrLaH/coinbase.svg",name:"Coinbase Wallet"});_U._defineProperty(Z2,"id","coinbaseWallet");Kue.CoinbaseWallet=Z2});var Ywt=x((Tpa,Gue)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Gue.exports=Bwt():Gue.exports=$wt()});var Jwt=x(Jue=>{"use strict";d();p();Object.defineProperty(Jue,"__esModule",{value:!0});var Vue=vm(),ssn=z1();Yu();Zo();je();Qe();var $ue=new WeakMap,Yue=class extends ssn.AbstractWallet{constructor(e){super(),Vue._classPrivateFieldInitSpec(this,$ue,{writable:!0,value:void 0}),Vue._classPrivateFieldSet(this,$ue,e)}async getSigner(){return Vue._classPrivateFieldGet(this,$ue)}};Jue.EthersWallet=Yue});var Qwt=x(ele=>{"use strict";d();p();Object.defineProperty(ele,"__esModule",{value:!0});var Que=Sm(),osn=cg();el();rc();je();Qe();var Zue=new WeakMap,Xue=class extends osn.AbstractWallet{constructor(e){super(),Que._classPrivateFieldInitSpec(this,Zue,{writable:!0,value:void 0}),Que._classPrivateFieldSet(this,Zue,e)}async getSigner(){return Que._classPrivateFieldGet(this,Zue)}};ele.EthersWallet=Xue});var Zwt=x((Mpa,tle)=>{"use strict";d();p();g.env.NODE_ENV==="production"?tle.exports=Jwt():tle.exports=Qwt()});var rle=x(Xwt=>{"use strict";d();p();function csn(r){return typeof r<"u"&&"ethereum"in r}Xwt.assertWindowEthereum=csn});var sle=x(ile=>{"use strict";d();p();Object.defineProperty(ile,"__esModule",{value:!0});var X2=vm(),ug=Zo(),eS=je(),usn=rle(),vd=eT(),e5t=tT();Yu();vt();Qe();function lsn(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var nle=new WeakMap,xU=new WeakMap,ale=class extends vd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(usn.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),ug._defineProperty(this,"id",void 0),ug._defineProperty(this,"name",void 0),ug._defineProperty(this,"ready",void 0),X2._classPrivateFieldInitSpec(this,nle,{writable:!0,value:void 0}),X2._classPrivateFieldInitSpec(this,xU,{writable:!0,value:void 0}),ug._defineProperty(this,"connectorStorage",void 0),ug._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),ug._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:eS.utils.getAddress(i[0])})}),ug._defineProperty(this,"onChainChanged",i=>{let s=e5t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),ug._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&X2._classPrivateFieldGet(this,xU)){X2._classPrivateFieldSet(this,xU,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=lsn(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new vd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=eS.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new vd.UserRejectedRequestError(t):t.code===-32002?new vd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new vd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return eS.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new vd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(e5t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&X2._classPrivateFieldSet(this,nle,e),X2._classPrivateFieldGet(this,nle)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new eS.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new vd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&X2._classPrivateFieldSet(this,xU,!0);let t=await this.getProvider();if(!t)throw new vd.ConnectorNotFoundError;let n=eS.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new vd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new vd.UserRejectedRequestError(a):new vd.AddChainError}throw this.isUserRejectedRequestError(a)?new vd.UserRejectedRequestError(a):new vd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};ile.InjectedConnector=ale});var r5t=x(cle=>{"use strict";d();p();Object.defineProperty(cle,"__esModule",{value:!0});var ole=Zo(),t5t=Xx(),dsn=Qx();bm();Yu();vt();z1();je();Qe();var d6=class extends t5t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(d6.id,e),ole._defineProperty(this,"connector",void 0),ole._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||t5t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return sle()});this.connector=new dsn.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};ole._defineProperty(d6,"id","injected");cle.InjectedWallet=d6});var ule=x(n5t=>{"use strict";d();p();function psn(r){return typeof r<"u"&&"ethereum"in r}n5t.assertWindowEthereum=psn});var hle=x(ple=>{"use strict";d();p();Object.defineProperty(ple,"__esModule",{value:!0});var ew=Sm(),lg=rc(),tS=je(),hsn=ule(),wd=o6(),a5t=c6();el();vt();Qe();function fsn(r){if(!r)return"Injected";let e=t=>{if(t.isAvalanche)return"Core Wallet";if(t.isBitKeep)return"BitKeep";if(t.isBraveWallet)return"Brave Wallet";if(t.isCoinbaseWallet)return"Coinbase Wallet";if(t.isExodus)return"Exodus";if(t.isFrame)return"Frame";if(t.isKuCoinWallet)return"KuCoin Wallet";if(t.isMathWallet)return"MathWallet";if(t.isOneInchIOSWallet||t.isOneInchAndroidWallet)return"1inch Wallet";if(t.isOpera)return"Opera";if(t.isPortal)return"Ripio Portal";if(t.isTally)return"Tally";if(t.isTokenPocket)return"TokenPocket";if(t.isTokenary)return"Tokenary";if(t.isTrust||t.isTrustWallet)return"Trust Wallet";if(t.isMetaMask)return"MetaMask"};if(r.providers?.length){let t=new Set,n=1;for(let i of r.providers){let s=e(i);s||(s=`Unknown Wallet #${n}`,n+=1),t.add(s)}let a=[...t];return a.length?a:a[0]??"Injected"}return e(r)??"Injected"}var lle=new WeakMap,TU=new WeakMap,dle=class extends wd.Connector{constructor(e){let n={...{shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider:()=>{if(hsn.assertWindowEthereum(window))return window.ethereum}},...e.options};super({chains:e.chains,options:n}),lg._defineProperty(this,"id",void 0),lg._defineProperty(this,"name",void 0),lg._defineProperty(this,"ready",void 0),ew._classPrivateFieldInitSpec(this,lle,{writable:!0,value:void 0}),ew._classPrivateFieldInitSpec(this,TU,{writable:!0,value:void 0}),lg._defineProperty(this,"connectorStorage",void 0),lg._defineProperty(this,"shimDisconnectKey","injected.shimDisconnect"),lg._defineProperty(this,"onAccountsChanged",async i=>{i.length===0?await this.onDisconnect():this.emit("change",{account:tS.utils.getAddress(i[0])})}),lg._defineProperty(this,"onChainChanged",i=>{let s=a5t.normalizeChainId(i),o=this.isChainUnsupported(s);this.emit("change",{chain:{id:s,unsupported:o}})}),lg._defineProperty(this,"onDisconnect",async()=>{if(this.options.shimChainChangedDisconnect&&ew._classPrivateFieldGet(this,TU)){ew._classPrivateFieldSet(this,TU,!1);return}this.emit("disconnect"),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey)});let a=n.getProvider();if(typeof n.name=="string")this.name=n.name;else if(a){let i=fsn(a);n.name?this.name=n.name(i):typeof i=="string"?this.name=i:this.name=i[0]}else this.name="Injected";this.id="injected",this.ready=!!a,this.connectorStorage=e.connectorStorage}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new wd.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=await t.request({method:"eth_requestAccounts"}),a=tS.utils.getAddress(n[0]),i=await this.getChainId(),s=this.isChainUnsupported(i);if(e.chainId&&i!==e.chainId)try{await this.switchChain(e.chainId),i=e.chainId,s=this.isChainUnsupported(e.chainId)}catch(c){console.error(`Could not switch to chain id: ${e.chainId}`,c)}this.options.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let o={account:a,chain:{id:i,unsupported:s},provider:t};return this.emit("connect",o),o}catch(t){throw this.isUserRejectedRequestError(t)?new wd.UserRejectedRequestError(t):t.code===-32002?new wd.ResourceUnavailableError(t):t}}async disconnect(){let e=await this.getProvider();!e?.removeListener||(e.removeListener("accountsChanged",this.onAccountsChanged),e.removeListener("chainChanged",this.onChainChanged),e.removeListener("disconnect",this.onDisconnect),this.options.shimDisconnect&&await this.connectorStorage.removeItem(this.shimDisconnectKey))}async getAccount(){let e=await this.getProvider();if(!e)throw new wd.ConnectorNotFoundError;let t=await e.request({method:"eth_accounts"});return tS.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();if(!e)throw new wd.ConnectorNotFoundError;return e.request({method:"eth_chainId"}).then(a5t.normalizeChainId)}async getProvider(){let e=this.options.getProvider();return e&&ew._classPrivateFieldSet(this,lle,e),ew._classPrivateFieldGet(this,lle)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider(),this.getAccount()]);return new tS.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{if(this.options.shimDisconnect&&!Boolean(await this.connectorStorage.getItem(this.shimDisconnectKey)))return!1;if(!await this.getProvider())throw new wd.ConnectorNotFoundError;return!!await this.getAccount()}catch{return!1}}async switchChain(e){this.options.shimChainChangedDisconnect&&ew._classPrivateFieldSet(this,TU,!0);let t=await this.getProvider();if(!t)throw new wd.ConnectorNotFoundError;let n=tS.utils.hexValue(e);try{await t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]});let a=this.chains.find(i=>i.chainId===e);return a||{chainId:e,name:`Chain ${n}`,slug:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],chain:"",shortName:"",testnet:!0}}catch(a){let i=this.chains.find(s=>s.chainId===e);if(!i)throw new wd.ChainNotConfiguredError({chainId:e,connectorId:this.id});if(a.code===4902||a?.data?.originalError?.code===4902)try{return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:i.name,nativeCurrency:i.nativeCurrency,rpcUrls:i.rpc,blockExplorerUrls:this.getBlockExplorerUrls(i)}]}),i}catch(s){throw this.isUserRejectedRequestError(s)?new wd.UserRejectedRequestError(a):new wd.AddChainError}throw this.isUserRejectedRequestError(a)?new wd.UserRejectedRequestError(a):new wd.SwitchChainError(a)}}async setupListeners(){let e=await this.getProvider();e.on&&(e.on("accountsChanged",this.onAccountsChanged),e.on("chainChanged",this.onChainChanged),e.on("disconnect",this.onDisconnect))}isUserRejectedRequestError(e){return e.code===4001}};ple.InjectedConnector=dle});var s5t=x(mle=>{"use strict";d();p();Object.defineProperty(mle,"__esModule",{value:!0});var fle=rc(),i5t=s6(),msn=a6();Am();el();vt();cg();je();Qe();var p6=class extends i5t.AbstractBrowserWallet{get walletName(){return"Injected Wallet"}constructor(e){super(p6.id,e),fle._defineProperty(this,"connector",void 0),fle._defineProperty(this,"connectorStorage",void 0),this.connectorStorage=e.connectorStorage||i5t.createAsyncLocalStorage("connector")}async getConnector(){if(!this.connector){let{InjectedConnector:e}=await Promise.resolve().then(function(){return hle()});this.connector=new msn.WagmiAdapter(new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}}))}return this.connector}};fle._defineProperty(p6,"id","injected");mle.InjectedWallet=p6});var o5t=x((Xpa,yle)=>{"use strict";d();p();g.env.NODE_ENV==="production"?yle.exports=r5t():yle.exports=s5t()});var c5t=x(wle=>{"use strict";d();p();Object.defineProperty(wle,"__esModule",{value:!0});var gle=vm(),ysn=Zo(),EU=eT(),gsn=sle(),bsn=je(),vsn=rle();Yu();vt();Qe();tT();var ble=new WeakMap,vle=class extends gsn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&vsn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),ysn._defineProperty(this,"id","metaMask"),gle._classPrivateFieldInitSpec(this,ble,{writable:!0,value:void 0}),gle._classPrivateFieldSet(this,ble,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new EU.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(gle._classPrivateFieldGet(this,ble)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new EU.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=bsn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new EU.UserRejectedRequestError(t):t.code===-32002?new EU.ResourceUnavailableError(t):t}}};wle.MetaMaskConnector=vle});var u5t=ce(()=>{d();p()});var tw,_le=ce(()=>{d();p();tw=class{}});var CU,rS,h6,l5t=ce(()=>{d();p();_le();CU=class extends tw{constructor(e){super()}},rS=class extends tw{constructor(){super()}},h6=class extends rS{constructor(e){super()}}});var d5t=ce(()=>{d();p()});var xle={};cr(xle,{IBaseJsonRpcProvider:()=>rS,IEvents:()=>tw,IJsonRpcConnection:()=>CU,IJsonRpcProvider:()=>h6});var IU=ce(()=>{d();p();u5t();_le();l5t();d5t()});var p5t,h5t,f5t,m5t,kU,nS,Tle,AU,dg,aS,SU=ce(()=>{d();p();p5t="PARSE_ERROR",h5t="INVALID_REQUEST",f5t="METHOD_NOT_FOUND",m5t="INVALID_PARAMS",kU="INTERNAL_ERROR",nS="SERVER_ERROR",Tle=[-32700,-32600,-32601,-32602,-32603],AU=[-32e3,-32099],dg={[p5t]:{code:-32700,message:"Parse error"},[h5t]:{code:-32600,message:"Invalid Request"},[f5t]:{code:-32601,message:"Method not found"},[m5t]:{code:-32602,message:"Invalid params"},[kU]:{code:-32603,message:"Internal error"},[nS]:{code:-32e3,message:"Server error"}},aS=nS});function wsn(r){return r<=AU[0]&&r>=AU[1]}function PU(r){return Tle.includes(r)}function y5t(r){return typeof r=="number"}function RU(r){return Object.keys(dg).includes(r)?dg[r]:dg[aS]}function MU(r){let e=Object.values(dg).find(t=>t.code===r);return e||dg[aS]}function _sn(r){if(typeof r.error.code>"u")return{valid:!1,error:"Missing code for JSON-RPC error"};if(typeof r.error.message>"u")return{valid:!1,error:"Missing message for JSON-RPC error"};if(!y5t(r.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${r.error.code}`};if(PU(r.error.code)){let e=MU(r.error.code);if(e.message!==dg[aS].message&&r.error.message===e.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${r.error.code}`}}return{valid:!0}}function iS(r,e,t){return r.message.includes("getaddrinfo ENOTFOUND")||r.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${e}`):r}var Ele=ce(()=>{d();p();SU()});var _d=x((Sha,BU)=>{d();p();var g5t,b5t,v5t,w5t,_5t,x5t,T5t,E5t,C5t,NU,Cle,I5t,k5t,f6,A5t,S5t,P5t,R5t,M5t,N5t,B5t,D5t,O5t;(function(r){var e=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){r(t(e,t(n)))}):typeof BU=="object"&&typeof BU.exports=="object"?r(t(e,t(BU.exports))):r(t(e));function t(n,a){return n!==e&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,s){return n[i]=a?a(i,s):s}}})(function(r){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])};g5t=function(t,n){e(t,n);function a(){this.constructor=t}t.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)},b5t=Object.assign||function(t){for(var n,a=1,i=arguments.length;a=0;u--)(c=t[u])&&(o=(s<3?c(o):s>3?c(n,a,o):c(n,a))||o);return s>3&&o&&Object.defineProperty(n,a,o),o},_5t=function(t,n){return function(a,i){n(a,i,t)}},x5t=function(t,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,n)},T5t=function(t,n,a,i){function s(o){return o instanceof a?o:new a(function(c){c(o)})}return new(a||(a=Promise))(function(o,c){function u(f){try{h(i.next(f))}catch(m){c(m)}}function l(f){try{h(i.throw(f))}catch(m){c(m)}}function h(f){f.done?o(f.value):s(f.value).then(u,l)}h((i=i.apply(t,n||[])).next())})},E5t=function(t,n){var a={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,s,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(h){return function(f){return l([h,f])}}function l(h){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,s&&(o=h[0]&2?s.return:h[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,h[1])).done)return o;switch(s=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return a.label++,{value:h[1],done:!1};case 5:a.label++,s=h[1],h=[0];continue;case 7:h=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){a=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},Cle=function(t,n){var a=typeof Symbol=="function"&&t[Symbol.iterator];if(!a)return t;var i=a.call(t),s,o=[],c;try{for(;(n===void 0||n-- >0)&&!(s=i.next()).done;)o.push(s.value)}catch(u){c={error:u}}finally{try{s&&!s.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}return o},I5t=function(){for(var t=[],n=0;n1||u(y,E)})})}function u(y,E){try{l(i[y](E))}catch(I){m(o[0][3],I)}}function l(y){y.value instanceof f6?Promise.resolve(y.value.v).then(h,f):m(o[0][2],y)}function h(y){u("next",y)}function f(y){u("throw",y)}function m(y,E){y(E),o.shift(),o.length&&u(o[0][0],o[0][1])}},S5t=function(t){var n,a;return n={},i("next"),i("throw",function(s){throw s}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(s,o){n[s]=t[s]?function(c){return(a=!a)?{value:f6(t[s](c)),done:s==="return"}:o?o(c):c}:o}},P5t=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],a;return n?n.call(t):(t=typeof NU=="function"?NU(t):t[Symbol.iterator](),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(o){a[o]=t[o]&&function(c){return new Promise(function(u,l){c=t[o](c),s(u,l,c.done,c.value)})}}function s(o,c,u,l){Promise.resolve(l).then(function(h){o({value:h,done:u})},c)}},R5t=function(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t},M5t=function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var a in t)Object.hasOwnProperty.call(t,a)&&(n[a]=t[a]);return n.default=t,n},N5t=function(t){return t&&t.__esModule?t:{default:t}},B5t=function(t,n){if(!n.has(t))throw new TypeError("attempted to get private field on non-instance");return n.get(t)},D5t=function(t,n,a){if(!n.has(t))throw new TypeError("attempted to set private field on non-instance");return n.set(t,a),a},r("__extends",g5t),r("__assign",b5t),r("__rest",v5t),r("__decorate",w5t),r("__param",_5t),r("__metadata",x5t),r("__awaiter",T5t),r("__generator",E5t),r("__exportStar",C5t),r("__createBinding",O5t),r("__values",NU),r("__read",Cle),r("__spread",I5t),r("__spreadArrays",k5t),r("__await",f6),r("__asyncGenerator",A5t),r("__asyncDelegator",S5t),r("__asyncValues",P5t),r("__makeTemplateObject",R5t),r("__importStar",M5t),r("__importDefault",N5t),r("__classPrivateFieldGet",B5t),r("__classPrivateFieldSet",D5t)})});var q5t=x(pg=>{"use strict";d();p();Object.defineProperty(pg,"__esModule",{value:!0});pg.isBrowserCryptoAvailable=pg.getSubtleCrypto=pg.getBrowerCrypto=void 0;function Ile(){return(global===null||global===void 0?void 0:global.crypto)||(global===null||global===void 0?void 0:global.msCrypto)||{}}pg.getBrowerCrypto=Ile;function L5t(){let r=Ile();return r.subtle||r.webkitSubtle}pg.getSubtleCrypto=L5t;function xsn(){return!!Ile()&&!!L5t()}pg.isBrowserCryptoAvailable=xsn});var U5t=x(hg=>{"use strict";d();p();Object.defineProperty(hg,"__esModule",{value:!0});hg.isBrowser=hg.isNode=hg.isReactNative=void 0;function F5t(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}hg.isReactNative=F5t;function W5t(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}hg.isNode=W5t;function Tsn(){return!F5t()&&!W5t()}hg.isBrowser=Tsn});var m6=x(DU=>{"use strict";d();p();Object.defineProperty(DU,"__esModule",{value:!0});var H5t=_d();H5t.__exportStar(q5t(),DU);H5t.__exportStar(U5t(),DU)});var eo={};cr(eo,{isNodeJs:()=>z5t});var j5t,z5t,K5t=ce(()=>{d();p();j5t=on(m6());gr(eo,on(m6()));z5t=j5t.isNode});function OU(){let r=Date.now()*Math.pow(10,3),e=Math.floor(Math.random()*Math.pow(10,3));return r+e}function kle(r,e,t){return{id:t||OU(),jsonrpc:"2.0",method:r,params:e}}function Esn(r,e){return{id:r,jsonrpc:"2.0",result:e}}function sS(r,e,t){return{id:r,jsonrpc:"2.0",error:G5t(e,t)}}function G5t(r,e){return typeof r>"u"?RU(kU):(typeof r=="string"&&(r=Object.assign(Object.assign({},RU(nS)),{message:r})),typeof e<"u"&&(r.data=e),PU(r.code)&&(r=MU(r.code)),r)}var V5t=ce(()=>{d();p();Ele();SU()});function Csn(r){return r.includes("*")?qU(r):!/\W/g.test(r)}function LU(r){return r==="*"}function qU(r){return LU(r)?!0:!(!r.includes("*")||r.split("*").length!==2||r.split("*").filter(e=>e.trim()==="").length!==1)}function Isn(r){return!LU(r)&&qU(r)&&!r.split("*")[0].trim()}function ksn(r){return!LU(r)&&qU(r)&&!r.split("*")[1].trim()}var $5t=ce(()=>{d();p()});var Y5t=ce(()=>{d();p();IU()});function Psn(r){let e=r.match(new RegExp(/^\w+:/,"gi"));if(!(!e||!e.length))return e[0]}function J5t(r,e){let t=Psn(r);return typeof t>"u"?!1:new RegExp(e).test(t)}function FU(r){return J5t(r,Asn)}function WU(r){return J5t(r,Ssn)}function Ale(r){return new RegExp("wss?://localhost(:d{2,5})?").test(r)}var Asn,Ssn,Q5t=ce(()=>{d();p();Asn="^https?:",Ssn="^wss?:"});function Sle(r){return typeof r=="object"&&"id"in r&&"jsonrpc"in r&&r.jsonrpc==="2.0"}function Rsn(r){return Sle(r)&&"method"in r}function Ple(r){return Sle(r)&&(Z5t(r)||UU(r))}function Z5t(r){return"result"in r}function UU(r){return"error"in r}function Msn(r){return"error"in r&&r.valid===!1}var X5t=ce(()=>{d();p()});var to={};cr(to,{DEFAULT_ERROR:()=>aS,IBaseJsonRpcProvider:()=>rS,IEvents:()=>tw,IJsonRpcConnection:()=>CU,IJsonRpcProvider:()=>h6,INTERNAL_ERROR:()=>kU,INVALID_PARAMS:()=>m5t,INVALID_REQUEST:()=>h5t,METHOD_NOT_FOUND:()=>f5t,PARSE_ERROR:()=>p5t,RESERVED_ERROR_CODES:()=>Tle,SERVER_ERROR:()=>nS,SERVER_ERROR_CODE_RANGE:()=>AU,STANDARD_ERROR_MAP:()=>dg,formatErrorMessage:()=>G5t,formatJsonRpcError:()=>sS,formatJsonRpcRequest:()=>kle,formatJsonRpcResult:()=>Esn,getError:()=>RU,getErrorByCode:()=>MU,isHttpUrl:()=>FU,isJsonRpcError:()=>UU,isJsonRpcPayload:()=>Sle,isJsonRpcRequest:()=>Rsn,isJsonRpcResponse:()=>Ple,isJsonRpcResult:()=>Z5t,isJsonRpcValidationInvalid:()=>Msn,isLocalhostUrl:()=>Ale,isNodeJs:()=>z5t,isReservedErrorCode:()=>PU,isServerErrorCode:()=>wsn,isValidDefaultRoute:()=>LU,isValidErrorCode:()=>y5t,isValidLeadingWildcardRoute:()=>Isn,isValidRoute:()=>Csn,isValidTrailingWildcardRoute:()=>ksn,isValidWildcardRoute:()=>qU,isWsUrl:()=>WU,parseConnectionError:()=>iS,payloadId:()=>OU,validateJsonRpcError:()=>_sn});var X0=ce(()=>{d();p();SU();Ele();K5t();gr(to,eo);V5t();$5t();Y5t();Q5t();X5t()});var e3t=ce(()=>{d();p()});var oS,ey,Rle,Mle,Nle,Ble,Dle,Ole,Lle,HU,qle,Fle,jU,t3t=ce(()=>{d();p();oS="Session currently connected",ey="Session currently disconnected",Rle="Session Rejected",Mle="Missing JSON RPC response",Nle='JSON-RPC success response must include "result" field',Ble='JSON-RPC error response must include "error" field',Dle='JSON RPC request must have valid "method" value',Ole='JSON RPC request must have valid "id" value',Lle="Missing one of the required parameters: bridge / uri / session",HU="JSON RPC response format is invalid",qle="URI format is invalid",Fle="QRCode Modal not provided",jU="User close QRCode Modal"});var zU,Nsn,r3t=ce(()=>{d();p();zU=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],Nsn=zU});var n3t,y6,a3t,Bsn,Dsn,i3t=ce(()=>{d();p();n3t=["wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],y6=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign",...n3t],a3t=["eth_accounts","eth_chainId","net_version"],Bsn=y6,Dsn=a3t});var rw,Osn,s3t=ce(()=>{d();p();rw="WALLETCONNECT_DEEPLINK_CHOICE",Osn=rw});var KU,Lsn,o3t=ce(()=>{d();p();KU={1:"mainnet",3:"ropsten",4:"rinkeby",5:"goerli",42:"kovan"},Lsn=KU});var c3t=ce(()=>{d();p();t3t();r3t();i3t();s3t();o3t()});var u3t=ce(()=>{d();p()});var Wle,l3t=ce(()=>{d();p();Wle=class{}});var d3t=ce(()=>{d();p()});var p3t=ce(()=>{d();p()});var h3t=ce(()=>{d();p()});var f3t=ce(()=>{d();p()});var m3t=ce(()=>{d();p()});var y3t=ce(()=>{d();p()});var g3t=ce(()=>{d();p()});var Ule={};cr(Ule,{ERROR_INVALID_RESPONSE:()=>HU,ERROR_INVALID_URI:()=>qle,ERROR_MISSING_ERROR:()=>Ble,ERROR_MISSING_ID:()=>Ole,ERROR_MISSING_JSON_RPC:()=>Mle,ERROR_MISSING_METHOD:()=>Dle,ERROR_MISSING_REQUIRED:()=>Lle,ERROR_MISSING_RESULT:()=>Nle,ERROR_QRCODE_MODAL_NOT_PROVIDED:()=>Fle,ERROR_QRCODE_MODAL_USER_CLOSED:()=>jU,ERROR_SESSION_CONNECTED:()=>oS,ERROR_SESSION_DISCONNECTED:()=>ey,ERROR_SESSION_REJECTED:()=>Rle,IEvents:()=>Wle,INFURA_NETWORKS:()=>KU,MOBILE_LINK_CHOICE_KEY:()=>rw,RESERVED_EVENTS:()=>zU,SIGNING_METHODS:()=>y6,STATE_METHODS:()=>a3t,WALLET_METHODS:()=>n3t,infuraNetworks:()=>Lsn,mobileLinkChoiceKey:()=>Osn,reservedEvents:()=>Nsn,signingMethods:()=>Bsn,stateMethods:()=>Dsn});var nw=ce(()=>{d();p();e3t();c3t();u3t();l3t();d3t();p3t();h3t();f3t();m3t();y3t();g3t()});var jle=x((_ma,w3t)=>{d();p();w3t.exports=Hle;Hle.strict=b3t;Hle.loose=v3t;var qsn=Object.prototype.toString,Fsn={"[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 Hle(r){return b3t(r)||v3t(r)}function b3t(r){return r instanceof Int8Array||r instanceof Int16Array||r instanceof Int32Array||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Uint16Array||r instanceof Uint32Array||r instanceof Float32Array||r instanceof Float64Array}function v3t(r){return Fsn[qsn.call(r)]}});var x3t=x((Ema,_3t)=>{d();p();var Wsn=jle().strict;_3t.exports=function(e){if(Wsn(e)){var t=b.Buffer.from(e.buffer);return e.byteLength!==e.buffer.byteLength&&(t=t.slice(e.byteOffset,e.byteOffset+e.byteLength)),t}else return b.Buffer.from(e)}});function fg(r){return new Uint8Array(r)}function VU(r,e=!1){let t=r.toString(zle);return e?g6(t):t}function $U(r){return r.toString(Kle)}function Gle(r){return r.readUIntBE(0,r.length)}function mg(r){return(0,E3t.default)(r)}function Pm(r,e=!1){return VU(mg(r),e)}function YU(r){return $U(mg(r))}function Vle(r){return Gle(mg(r))}function JU(r){return b.Buffer.from(yg(r),zle)}function Rm(r){return fg(JU(r))}function C3t(r){return $U(JU(r))}function I3t(r){return Vle(Rm(r))}function QU(r){return b.Buffer.from(r,Kle)}function ZU(r){return fg(QU(r))}function k3t(r,e=!1){return VU(QU(r),e)}function A3t(r){let e=parseInt(r,10);return eon(Xsn(e),"Number can only safely store up to 53 bits"),e}function S3t(r){return Gsn($le(r))}function P3t(r){return Yle($le(r))}function R3t(r,e){return Vsn($le(r),e)}function M3t(r){return`${r}`}function $le(r){let e=(r>>>0).toString(2);return Xle(e)}function Gsn(r){return mg(Yle(r))}function Yle(r){return new Uint8Array(Jsn(r).map(e=>parseInt(e,2)))}function Vsn(r,e){return Pm(Yle(r),e)}function $sn(r){return!(typeof r!="string"||!new RegExp(/^[01]+$/).test(r)||r.length%8!==0)}function Jle(r,e){return!(typeof r!="string"||!r.match(/^0x[0-9A-Fa-f]*$/)||e&&r.length!==2+2*e)}function cS(r){return b.Buffer.isBuffer(r)}function XU(r){return T3t.default.strict(r)&&!cS(r)}function Qle(r){return!XU(r)&&!cS(r)&&typeof r.byteLength<"u"}function N3t(r){return cS(r)?Hsn:XU(r)?zsn:Qle(r)?Ksn:Array.isArray(r)?jsn:typeof r}function B3t(r){return $sn(r)?Usn:Jle(r)?zle:Kle}function D3t(...r){return b.Buffer.concat(r)}function Zle(...r){let e=[];return r.forEach(t=>e=e.concat(Array.from(t))),new Uint8Array([...e])}function Ysn(r,e=8){let t=r%e;return t?(r-t)/e*e+e:r}function Jsn(r,e=8){let t=Xle(r).match(new RegExp(`.{${e}}`,"gi"));return Array.from(t||[])}function Xle(r,e=8,t=GU){return Qsn(r,Ysn(r.length,e),t)}function Qsn(r,e,t=GU){return ton(r,e,!0,t)}function yg(r){return r.replace(/^0x/,"")}function g6(r){return r.startsWith("0x")?r:`0x${r}`}function O3t(r){return r=yg(r),r=Xle(r,2),r&&(r=g6(r)),r}function L3t(r){let e=r.startsWith("0x");return r=yg(r),r=r.startsWith(GU)?r.substring(1):r,e?g6(r):r}function Zsn(r){return typeof r>"u"}function Xsn(r){return!Zsn(r)}function eon(r,e){if(!r)throw new Error(e)}function ton(r,e,t,n=GU){let a=e-r.length,i=r;if(a>0){let s=n.repeat(a);i=t?s+r:r+s}return i}var T3t,E3t,zle,Kle,Usn,Hsn,jsn,zsn,Ksn,GU,uS=ce(()=>{d();p();T3t=on(jle()),E3t=on(x3t()),zle="hex",Kle="utf8",Usn="binary",Hsn="buffer",jsn="array",zsn="typed-array",Ksn="array-buffer",GU="0"});function lS(r){return mg(new Uint8Array(r))}function ron(r){return YU(new Uint8Array(r))}function ede(r,e){return Pm(new Uint8Array(r),!e)}function non(r){return Vle(new Uint8Array(r))}function aon(...r){return Rm(r.map(e=>Pm(new Uint8Array(e))).join("")).buffer}function tde(r){return fg(r).buffer}function ion(r){return $U(r)}function son(r,e){return VU(r,!e)}function oon(r){return Gle(r)}function con(...r){return D3t(...r)}function uon(r){return ZU(r).buffer}function lon(r){return QU(r)}function don(r,e){return k3t(r,!e)}function pon(r){return A3t(r)}function hon(r){return JU(r)}function rde(r){return Rm(r).buffer}function fon(r){return C3t(r)}function mon(r){return I3t(r)}function yon(r){return S3t(r)}function gon(r){return P3t(r).buffer}function bon(r){return M3t(r)}function nde(r,e){return R3t(Number(r),!e)}var q3t=ce(()=>{d();p();uS()});var ide=x(Pi=>{"use strict";d();p();var F3t=Pi&&Pi.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new G3t:typeof navigator<"u"?ade(navigator.userAgent):Y3t()}Pi.detect=xon;function V3t(r){return r!==""&&_on.reduce(function(e,t){var n=t[0],a=t[1];if(e)return e;var i=a.exec(r);return!!i&&[n,i]},!1)}function Ton(r){var e=V3t(r);return e?e[0]:null}Pi.browserName=Ton;function ade(r){var e=V3t(r);if(!e)return null;var t=e[0],n=e[1];if(t==="searchbot")return new K3t;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length{"use strict";d();p();Object.defineProperty(si,"__esModule",{value:!0});si.getLocalStorage=si.getLocalStorageOrThrow=si.getCrypto=si.getCryptoOrThrow=si.getLocation=si.getLocationOrThrow=si.getNavigator=si.getNavigatorOrThrow=si.getDocument=si.getDocumentOrThrow=si.getFromWindowOrThrow=si.getFromWindow=void 0;function aw(r){let e;return typeof window<"u"&&typeof window[r]<"u"&&(e=window[r]),e}si.getFromWindow=aw;function b6(r){let e=aw(r);if(!e)throw new Error(`${r} is not defined in Window`);return e}si.getFromWindowOrThrow=b6;function Con(){return b6("document")}si.getDocumentOrThrow=Con;function Ion(){return aw("document")}si.getDocument=Ion;function kon(){return b6("navigator")}si.getNavigatorOrThrow=kon;function Aon(){return aw("navigator")}si.getNavigator=Aon;function Son(){return b6("location")}si.getLocationOrThrow=Son;function Pon(){return aw("location")}si.getLocation=Pon;function Ron(){return b6("crypto")}si.getCryptoOrThrow=Ron;function Mon(){return aw("crypto")}si.getCrypto=Mon;function Non(){return b6("localStorage")}si.getLocalStorageOrThrow=Non;function Bon(){return aw("localStorage")}si.getLocalStorage=Bon});var Ri,Don,Oon,Lon,qon,Fon,sde,Won,ode,Uon,Hon,jon,dS,rH=ce(()=>{d();p();Ri=on(tH()),Don=Ri.getFromWindow,Oon=Ri.getFromWindowOrThrow,Lon=Ri.getDocumentOrThrow,qon=Ri.getDocument,Fon=Ri.getNavigatorOrThrow,sde=Ri.getNavigator,Won=Ri.getLocationOrThrow,ode=Ri.getLocation,Uon=Ri.getCryptoOrThrow,Hon=Ri.getCrypto,jon=Ri.getLocalStorageOrThrow,dS=Ri.getLocalStorage});function pS(r){return(0,J3t.detect)(r)}function nH(){let r=pS();return r&&r.os?r.os:void 0}function Q3t(){let r=nH();return r?r.toLowerCase().includes("android"):!1}function Z3t(){let r=nH();return r?r.toLowerCase().includes("ios")||r.toLowerCase().includes("mac")&&navigator.maxTouchPoints>1:!1}function cde(){return nH()?Q3t()||Z3t():!1}function X3t(){let r=pS();return r&&r.name?r.name.toLowerCase()==="node":!1}function ude(){return!X3t()&&!!sde()}var J3t,e_t=ce(()=>{d();p();J3t=on(ide());rH()});var lde={};cr(lde,{safeJsonParse:()=>ty,safeJsonStringify:()=>Mm});function ty(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}function Mm(r){return typeof r=="string"?r:JSON.stringify(r)}var v6=ce(()=>{d();p()});var dde,pde,hde=ce(()=>{d();p();v6();dde=ty,pde=Mm});function hS(r,e){let t=pde(e),n=dS();n&&n.setItem(r,t)}function fS(r){let e=null,t=null,n=dS();return n&&(t=n.getItem(r)),e=t&&dde(t),e}function mS(r){let e=dS();e&&e.removeItem(r)}var fde=ce(()=>{d();p();hde();rH()});var mde=x(aH=>{"use strict";d();p();Object.defineProperty(aH,"__esModule",{value:!0});aH.getWindowMetadata=void 0;var t_t=tH();function zon(){let r,e;try{r=t_t.getDocumentOrThrow(),e=t_t.getLocationOrThrow()}catch{return null}function t(){let h=r.getElementsByTagName("link"),f=[];for(let m=0;m-1){let I=y.getAttribute("href");if(I)if(I.toLowerCase().indexOf("https:")===-1&&I.toLowerCase().indexOf("http:")===-1&&I.indexOf("//")!==0){let S=e.protocol+"//"+e.host;if(I.indexOf("/")===0)S+=I;else{let L=e.pathname.split("/");L.pop();let F=L.join("/");S+=F+"/"+I}f.push(S)}else if(I.indexOf("//")===0){let S=e.protocol+I;f.push(S)}else f.push(I)}}return f}function n(...h){let f=r.getElementsByTagName("meta");for(let m=0;my.getAttribute(I)).filter(I=>I?h.includes(I):!1);if(E.length&&E){let I=y.getAttribute("content");if(I)return I}}return""}function a(){let h=n("name","og:site_name","og:title","twitter:title");return h||(h=r.title),h}function i(){return n("description","og:description","twitter:description","keywords")}let s=a(),o=i(),c=e.origin,u=t();return{description:o,url:c,icons:u,name:s}}aH.getWindowMetadata=zon});function iH(){return r_t.getWindowMetadata()}var r_t,n_t=ce(()=>{d();p();r_t=on(mde())});function Kon(r){return O3t(r)}function Gon(r){return g6(r)}function Von(r){return yg(r)}function $on(r){return L3t(g6(r))}function yS(){return((e,t)=>{for(t=e="";e++<36;t+=e*51&52?(e^15?8^Math.random()*(e^20?16:4):4).toString(16):"-");return t})()}function Yon(){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 a_t(r,e){let t,n=KU[r];return n&&(t=`https://${n}.infura.io/v3/${e}`),t}function Jon(r,e){let t,n=a_t(r,e.infuraId);return e.custom&&e.custom[r]?t=e.custom[r]:n&&(t=n),t}var yde,i_t=ce(()=>{d();p();uS();X0();nw();yde=OU});function Qon(r,e){let t=encodeURIComponent(r);return e.universalLink?`${e.universalLink}/wc?uri=${t}`:e.deepLink?`${e.deepLink}${e.deepLink.endsWith(":")?"//":"/"}wc?uri=${t}`:""}function Zon(r){let e=r.href.split("?")[0];hS(rw,Object.assign(Object.assign({},r),{href:e}))}function s_t(r,e){return r.filter(t=>t.name.toLowerCase().includes(e.toLowerCase()))[0]}function Xon(r,e){let t=r;return e&&(t=e.map(n=>s_t(r,n)).filter(Boolean)),t}var o_t=ce(()=>{d();p();nw();fde()});function ecn(r,e){return async(...n)=>new Promise((a,i)=>{let s=(o,c)=>{(o===null||typeof o>"u")&&i(o),a(c)};r.apply(e,[...n,s])})}function gde(r){let e=r.message||"Failed or Rejected Request",t=-32e3;if(r&&!r.code)switch(e){case"Parse error":t=-32700;break;case"Invalid request":t=-32600;break;case"Method not found":t=-32601;break;case"Invalid params":t=-32602;break;case"Internal error":t=-32603;break;default:t=-32e3;break}let n={code:t,message:e};return r.data&&(n.data=r.data),n}var c_t=ce(()=>{d();p()});function tcn(){return u_t+"/api/v2/wallets"}function rcn(){return u_t+"/api/v2/dapps"}function l_t(r,e="mobile"){var t;return{name:r.name||"",shortName:r.metadata.shortName||"",color:r.metadata.colors.primary||"",logo:(t=r.image_url.sm)!==null&&t!==void 0?t:"",universalLink:r[e].universal||"",deepLink:r[e].native||""}}function ncn(r,e="mobile"){return Object.values(r).filter(t=>!!t[e].universal||!!t[e].native).map(t=>l_t(t,e))}var u_t,d_t=ce(()=>{d();p();u_t="https://registry.walletconnect.com"});var bde=x((x0a,p_t)=>{"use strict";d();p();p_t.exports=r=>encodeURIComponent(r).replace(/[!'()*]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)});var wde=x((C0a,y_t)=>{"use strict";d();p();var m_t="%[a-f0-9]{2}",h_t=new RegExp("("+m_t+")|([^%]+?)","gi"),f_t=new RegExp("("+m_t+")+","gi");function vde(r,e){try{return[decodeURIComponent(r.join(""))]}catch{}if(r.length===1)return r;e=e||1;var t=r.slice(0,e),n=r.slice(e);return Array.prototype.concat.call([],vde(t),vde(n))}function acn(r){try{return decodeURIComponent(r)}catch{for(var e=r.match(h_t)||[],t=1;t{"use strict";d();p();g_t.exports=(r,e)=>{if(!(typeof r=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[r];let t=r.indexOf(e);return t===-1?[r]:[r.slice(0,t),r.slice(t+e.length)]}});var xde=x((R0a,b_t)=>{"use strict";d();p();b_t.exports=function(r,e){for(var t={},n=Object.keys(r),a=Array.isArray(e),i=0;i{"use strict";d();p();var scn=bde(),ocn=wde(),w_t=_de(),ccn=xde(),ucn=r=>r==null;function lcn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Ac(e,r),"[",a,"]"].join("")]:[...t,[Ac(e,r),"[",Ac(a,r),"]=",Ac(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Ac(e,r),"[]"].join("")]:[...t,[Ac(e,r),"[]=",Ac(n,r)].join("")];case"comma":case"separator":return e=>(t,n)=>n==null||n.length===0?t:t.length===0?[[Ac(e,r),"=",Ac(n,r)].join("")]:[[t,Ac(n,r)].join(r.arrayFormatSeparator)];default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Ac(e,r)]:[...t,[Ac(e,r),"=",Ac(n,r)].join("")]}}function dcn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&iw(n,r).includes(r.arrayFormatSeparator);n=s?iw(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>iw(c,r)):n===null?n:iw(n,r);a[t]=o};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function __t(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Ac(r,e){return e.encode?e.strict?scn(r):encodeURIComponent(r):r}function iw(r,e){return e.decode?ocn(r):r}function x_t(r){return Array.isArray(r)?r.sort():typeof r=="object"?x_t(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function T_t(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function pcn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function E_t(r){r=T_t(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function v_t(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function C_t(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),__t(e.arrayFormatSeparator);let t=dcn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=w_t(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator"].includes(e.arrayFormat)?s:iw(s,e),t(iw(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=v_t(i[s],e);else n[a]=v_t(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=x_t(s):a[i]=s,a},Object.create(null))}Fl.extract=E_t;Fl.parse=C_t;Fl.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),__t(e.arrayFormatSeparator);let t=s=>e.skipNull&&ucn(r[s])||e.skipEmptyString&&r[s]==="",n=lcn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Ac(s,e):Array.isArray(o)?o.reduce(n(s),[]).join("&"):Ac(s,e)+"="+Ac(o,e)}).filter(s=>s.length>0).join("&")};Fl.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=w_t(r,"#");return Object.assign({url:t.split("?")[0]||"",query:C_t(E_t(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:iw(n,e)}:{})};Fl.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0},e);let t=T_t(r.url).split("?")[0]||"",n=Fl.extract(r.url),a=Fl.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Fl.stringify(i,e);s&&(s=`?${s}`);let o=pcn(r.url);return r.fragmentIdentifier&&(o=`#${Ac(r.fragmentIdentifier,e)}`),`${t}${s}${o}`};Fl.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0},t);let{url:n,query:a,fragmentIdentifier:i}=Fl.parseUrl(r,t);return Fl.stringifyUrl({url:n,query:ccn(a,e),fragmentIdentifier:i},t)};Fl.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Fl.pick(r,n,t)}});function Tde(r){let e=r.indexOf("?")!==-1?r.indexOf("?"):void 0;return typeof e<"u"?r.substr(e):""}function Ede(r,e){let t=oH(r);return t=Object.assign(Object.assign({},t),e),r=k_t(t),r}function oH(r){return sH.parse(r)}function k_t(r){return sH.stringify(r)}var sH,Cde=ce(()=>{d();p();sH=on(I_t())});function Ide(r){return typeof r.bridge<"u"}function kde(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t);function i(h){let f="@",m=h.split(f);return{handshakeTopic:m[0],version:parseInt(m[1],10)}}let s=i(a),o=typeof t<"u"?r.substr(t):"";function c(h){let f=oH(h);return{key:f.key||"",bridge:f.bridge||""}}let u=c(o);return Object.assign(Object.assign({protocol:n},s),u)}var A_t=ce(()=>{d();p();Cde()});function hcn(r){return r===""||typeof r=="string"&&r.trim()===""}function fcn(r){return!(r&&r.length)}function mcn(r){return cS(r)}function ycn(r){return XU(r)}function gcn(r){return Qle(r)}function bcn(r){return N3t(r)}function vcn(r){return B3t(r)}function wcn(r,e){return Jle(r,e)}function _cn(r){return typeof r.params=="object"}function Ade(r){return typeof r.method<"u"}function gg(r){return typeof r.result<"u"}function sw(r){return typeof r.error<"u"}function cH(r){return typeof r.event<"u"}function Sde(r){return zU.includes(r)||r.startsWith("wc_")}function Pde(r){return r.method.startsWith("wc_")?!0:!y6.includes(r.method)}var S_t=ce(()=>{d();p();uS();nw()});var uH={};cr(uH,{addHexPrefix:()=>Gon,appendToQueryString:()=>Ede,concatArrayBuffers:()=>aon,concatBuffers:()=>con,convertArrayBufferToBuffer:()=>lS,convertArrayBufferToHex:()=>ede,convertArrayBufferToNumber:()=>non,convertArrayBufferToUtf8:()=>ron,convertBufferToArrayBuffer:()=>tde,convertBufferToHex:()=>son,convertBufferToNumber:()=>oon,convertBufferToUtf8:()=>ion,convertHexToArrayBuffer:()=>rde,convertHexToBuffer:()=>hon,convertHexToNumber:()=>mon,convertHexToUtf8:()=>fon,convertNumberToArrayBuffer:()=>gon,convertNumberToBuffer:()=>yon,convertNumberToHex:()=>nde,convertNumberToUtf8:()=>bon,convertUtf8ToArrayBuffer:()=>uon,convertUtf8ToBuffer:()=>lon,convertUtf8ToHex:()=>don,convertUtf8ToNumber:()=>pon,detectEnv:()=>pS,detectOS:()=>nH,formatIOSMobile:()=>Qon,formatMobileRegistry:()=>ncn,formatMobileRegistryEntry:()=>l_t,formatQueryString:()=>k_t,formatRpcError:()=>gde,getClientMeta:()=>iH,getCrypto:()=>Hon,getCryptoOrThrow:()=>Uon,getDappRegistryUrl:()=>rcn,getDocument:()=>qon,getDocumentOrThrow:()=>Lon,getEncoding:()=>vcn,getFromWindow:()=>Don,getFromWindowOrThrow:()=>Oon,getInfuraRpcUrl:()=>a_t,getLocal:()=>fS,getLocalStorage:()=>dS,getLocalStorageOrThrow:()=>jon,getLocation:()=>ode,getLocationOrThrow:()=>Won,getMobileLinkRegistry:()=>Xon,getMobileRegistryEntry:()=>s_t,getNavigator:()=>sde,getNavigatorOrThrow:()=>Fon,getQueryString:()=>Tde,getRpcUrl:()=>Jon,getType:()=>bcn,getWalletRegistryUrl:()=>tcn,isAndroid:()=>Q3t,isArrayBuffer:()=>gcn,isBrowser:()=>ude,isBuffer:()=>mcn,isEmptyArray:()=>fcn,isEmptyString:()=>hcn,isHexString:()=>wcn,isIOS:()=>Z3t,isInternalEvent:()=>cH,isJsonRpcRequest:()=>Ade,isJsonRpcResponseError:()=>sw,isJsonRpcResponseSuccess:()=>gg,isJsonRpcSubscription:()=>_cn,isMobile:()=>cde,isNode:()=>X3t,isReservedEvent:()=>Sde,isSilentPayload:()=>Pde,isTypedArray:()=>ycn,isWalletConnectSession:()=>Ide,logDeprecationWarning:()=>Yon,parseQueryString:()=>oH,parseWalletConnectUri:()=>kde,payloadId:()=>yde,promisify:()=>ecn,removeHexLeadingZeros:()=>$on,removeHexPrefix:()=>Von,removeLocal:()=>mS,safeJsonParse:()=>dde,safeJsonStringify:()=>pde,sanitizeHex:()=>Kon,saveMobileLinkInfo:()=>Zon,setLocal:()=>hS,uuid:()=>yS});var ry=ce(()=>{d();p();q3t();e_t();hde();fde();n_t();i_t();o_t();c_t();d_t();A_t();Cde();S_t();rH()});var Rde,P_t,R_t=ce(()=>{d();p();Rde=class{constructor(){this._eventEmitters=[],typeof window<"u"&&typeof window.addEventListener<"u"&&(window.addEventListener("online",()=>this.trigger("online")),window.addEventListener("offline",()=>this.trigger("offline")))}on(e,t){this._eventEmitters.push({event:e,callback:t})}trigger(e){let t=[];e&&(t=this._eventEmitters.filter(n=>n.event===e)),t.forEach(n=>{n.callback()})}},P_t=Rde});var N_t=x((pya,M_t)=>{"use strict";d();p();M_t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});function Tcn(r,e,t){var n,a;let s=(r.startsWith("https")?r.replace("https","wss"):r.startsWith("http")?r.replace("http","ws"):r).split("?"),o=ude()?{protocol:e,version:t,env:"browser",host:((n=ode())===null||n===void 0?void 0:n.host)||""}:{protocol:e,version:t,env:((a=pS())===null||a===void 0?void 0:a.name)||""},c=Ede(Tde(s[1]||""),o);return s[0]+"?"+c}var xcn,Mde,B_t,D_t=ce(()=>{d();p();ry();R_t();xcn=typeof global.WebSocket<"u"?global.WebSocket:N_t(),Mde=class{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 P_t,!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,t,n){if(!t||typeof t!="string")throw new Error("Missing or invalid topic field");this._socketSend({topic:t,type:"pub",payload:e,silent:!!n})}subscribe(e){this._socketSend({topic:e,type:"sub",payload:"",silent:!0})}on(e,t){this._events.push({event:e,callback:t})}_socketCreate(){if(this._nextSocket)return;let e=Tcn(this._url,this._protocol,this._version);if(this._nextSocket=new xcn(e),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),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){let t=JSON.stringify(e);this._socket&&this._socket.readyState===1?this._socket.send(t):(this._setToQueue(e),this._socketCreate())}async _socketReceive(e){let t;try{t=JSON.parse(e.data)}catch{return}if(this._socketSend({topic:t.topic,type:"ack",payload:"",silent:!0}),this._socket&&this._socket.readyState===1){let n=this._events.filter(a=>a.event==="message");n&&n.length&&n.forEach(a=>a.callback(t))}}_socketError(e){let t=this._events.filter(n=>n.event==="error");t&&t.length&&t.forEach(n=>n.callback(e))}_queueSubscriptions(){this._subscriptions.forEach(t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0})),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(e){this._queue.push(e)}_pushQueue(){this._queue.forEach(t=>this._socketSend(t)),this._queue=[]}};B_t=Mde});var Nde,O_t,L_t=ce(()=>{d();p();ry();Nde=class{constructor(){this._eventEmitters=[]}subscribe(e){this._eventEmitters.push(e)}unsubscribe(e){this._eventEmitters=this._eventEmitters.filter(t=>t.event!==e)}trigger(e){let t=[],n;Ade(e)?n=e.method:gg(e)||sw(e)?n=`response:${e.id}`:cH(e)?n=e.event:n="",n&&(t=this._eventEmitters.filter(a=>a.event===n)),(!t||!t.length)&&!Sde(n)&&!cH(n)&&(t=this._eventEmitters.filter(a=>a.event==="call_request")),t.forEach(a=>{if(sw(e)){let i=new Error(e.error.message);a.callback(i,null)}else a.callback(null,e)})}},O_t=Nde});var Bde,q_t,F_t=ce(()=>{d();p();ry();Bde=class{constructor(e="walletconnect"){this.storageId=e}getSession(){let e=null,t=fS(this.storageId);return t&&Ide(t)&&(e=t),e}setSession(e){return hS(this.storageId,e),e}removeSession(){mS(this.storageId)}},q_t=Bde});function Icn(r){let e=r.indexOf("//")>-1?r.split("/")[2]:r.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}function kcn(r){return Icn(r).split(".").slice(-2).join(".")}function Acn(){return Math.floor(Math.random()*W_t.length)}function Scn(){return W_t[Acn()]}function Pcn(r){return kcn(r)===Ecn}function U_t(r){return Pcn(r)?Scn():r}var Ecn,Ccn,W_t,H_t=ce(()=>{d();p();Ecn="walletconnect.org",Ccn="abcdefghijklmnopqrstuvwxyz0123456789",W_t=Ccn.split("").map(r=>`https://${r}.bridge.walletconnect.org`)});var Dde,j_t,z_t=ce(()=>{d();p();nw();ry();D_t();L_t();F_t();H_t();Dde=class{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 O_t,this._clientMeta=iH()||e.connectorOpts.clientMeta||null,this._cryptoLib=e.cryptoLib,this._sessionStorage=e.sessionStorage||new q_t(e.connectorOpts.storageId),this._qrcodeModal=e.connectorOpts.qrcodeModal,this._qrcodeModalOptions=e.connectorOpts.qrcodeModalOptions,this._signingMethods=[...y6,...e.connectorOpts.signingMethods||[]],!e.connectorOpts.bridge&&!e.connectorOpts.uri&&!e.connectorOpts.session)throw new Error(Lle);e.connectorOpts.bridge&&(this.bridge=U_t(e.connectorOpts.bridge)),e.connectorOpts.uri&&(this.uri=e.connectorOpts.uri);let t=e.connectorOpts.session||this._getStorageSession();t&&(this.session=t),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=e.transport||new B_t({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;let t=rde(e);this._key=t}get key(){return this._key?ede(this._key,!0):""}set clientId(e){!e||(this._clientId=e)}get clientId(){let e=this._clientId;return e||(e=this._clientId=yS()),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=iH()),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;let{handshakeTopic:t,bridge:n,key:a}=this._parseUri(e);this.handshakeTopic=t,this.bridge=n,this.key=a}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,t){let n={event:e,callback:t};this._eventManager.subscribe(n)}off(e){this._eventManager.unsubscribe(e)}async createInstantRequest(e){this._key=await this._generateKey();let t=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(e)}]});this.handshakeId=t.id,this.handshakeTopic=yS(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",()=>{throw new Error(jU)});let n=()=>{this.killSession()};try{let a=await this._sendCallRequest(t);return a&&n(),a}catch(a){throw n(),a}}async connect(e){if(!this._qrcodeModal)throw new Error(Fle);return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(e),new Promise(async(t,n)=>{this.on("modal_closed",()=>n(new Error(jU))),this.on("connect",(a,i)=>{if(a)return n(a);t(i.params[0])})}))}async createSession(e){if(this._connected)throw new Error(oS);if(this.pending)return;this._key=await this._generateKey();let t=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:e&&e.chainId?e.chainId:null}]});this.handshakeId=t.id,this.handshakeTopic=yS(),this._sendSessionRequest(t,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(e){if(this._connected)throw new Error(oS);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},n={id:this.handshakeId,jsonrpc:"2.0",result:t};this._sendResponse(n),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(oS);let t=e&&e.message?e.message:Rle,n=this._formatResponse({id:this.handshakeId,error:{message:t}});this._sendResponse(n),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:t}]}),this._removeStorageSession()}updateSession(e){if(!this._connected)throw new Error(ey);this.chainId=e.chainId,this.accounts=e.accounts,this.networkId=e.networkId||0,this.rpcUrl=e.rpcUrl||"";let t={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},n=this._formatRequest({method:"wc_sessionUpdate",params:[t]});this._sendSessionRequest(n,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(e){let t=e?e.message:"Session Disconnected",n={approved:!1,chainId:null,networkId:null,accounts:null},a=this._formatRequest({method:"wc_sessionUpdate",params:[n]});await this._sendRequest(a),this._handleSessionDisconnect(t)}async sendTransaction(e){if(!this._connected)throw new Error(ey);let t=e,n=this._formatRequest({method:"eth_sendTransaction",params:[t]});return await this._sendCallRequest(n)}async signTransaction(e){if(!this._connected)throw new Error(ey);let t=e,n=this._formatRequest({method:"eth_signTransaction",params:[t]});return await this._sendCallRequest(n)}async signMessage(e){if(!this._connected)throw new Error(ey);let t=this._formatRequest({method:"eth_sign",params:e});return await this._sendCallRequest(t)}async signPersonalMessage(e){if(!this._connected)throw new Error(ey);let t=this._formatRequest({method:"personal_sign",params:e});return await this._sendCallRequest(t)}async signTypedData(e){if(!this._connected)throw new Error(ey);let t=this._formatRequest({method:"eth_signTypedData",params:e});return await this._sendCallRequest(t)}async updateChain(e){if(!this._connected)throw new Error("Session currently disconnected");let t=this._formatRequest({method:"wallet_updateChain",params:[e]});return await this._sendCallRequest(t)}unsafeSend(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),new Promise((n,a)=>{this._subscribeToResponse(e.id,(i,s)=>{if(i){a(i);return}if(!s)throw new Error(Mle);n(s)})})}async sendCustomRequest(e,t){if(!this._connected)throw new Error(ey);switch(e.method){case"eth_accounts":return this.accounts;case"eth_chainId":return nde(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":e.params;break;case"personal_sign":e.params;break;default:break}let n=this._formatRequest(e);return await this._sendCallRequest(n,t)}approveRequest(e){if(gg(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(Nle)}rejectRequest(e){if(sw(e)){let t=this._formatResponse(e);this._sendResponse(t)}else throw new Error(Ble)}transportClose(){this._transport.close()}async _sendRequest(e,t){let n=this._formatRequest(e),a=await this._encrypt(n),i=typeof t?.topic<"u"?t.topic:this.peerId,s=JSON.stringify(a),o=typeof t?.forcePushNotification<"u"?!t.forcePushNotification:Pde(n);this._transport.send(s,i,o)}async _sendResponse(e){let t=await this._encrypt(e),n=this.peerId,a=JSON.stringify(t),i=!0;this._transport.send(a,n,i)}async _sendSessionRequest(e,t,n){this._sendRequest(e,n),this._subscribeToSessionResponse(e.id,t)}_sendCallRequest(e,t){return this._sendRequest(e,t),this._eventManager.trigger({event:"call_request_sent",params:[{request:e,options:t}]}),this._subscribeToCallResponse(e.id)}_formatRequest(e){if(typeof e.method>"u")throw new Error(Dle);return{id:typeof e.id>"u"?yde():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(Ole);let t={id:e.id,jsonrpc:"2.0"};if(sw(e)){let n=gde(e.error);return Object.assign(Object.assign(Object.assign({},t),e),{error:n})}else if(gg(e))return Object.assign(Object.assign({},t),e);throw new Error(HU)}_handleSessionDisconnect(e){let t=e||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),mS(rw)),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:t}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(e,t){t?t.approved?(this._connected?(t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,t.chainId&&(this.chainId=t.chainId),t.accounts&&(this.accounts=t.accounts),t.peerId&&!this.peerId&&(this.peerId=t.peerId),t.peerMeta&&!this.peerMeta&&(this.peerMeta=t.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 n;try{n=JSON.parse(e.payload)}catch{return}let a=await this._decrypt(n);a&&this._eventManager.trigger(a)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(e,t){this.on(`response:${e}`,t)}_subscribeToSessionResponse(e,t){this._subscribeToResponse(e,(n,a)=>{if(n){this._handleSessionResponse(n.message);return}gg(a)?this._handleSessionResponse(t,a.result):a.error&&a.error.message?this._handleSessionResponse(a.error.message):this._handleSessionResponse(t)})}_subscribeToCallResponse(e){return new Promise((t,n)=>{this._subscribeToResponse(e,(a,i)=>{if(a){n(a);return}gg(i)?t(i.result):i.error&&i.error.message?n(i.error):n(new Error(HU))})})}_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,t)=>{let{request:n}=t.params[0];if(cde()&&this._signingMethods.includes(n.method)){let a=fS(rw);a&&(window.location.href=a.href)}}),this.on("wc_sessionRequest",(e,t)=>{e&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:e.toString()}]}),this.handshakeId=t.id,this.peerId=t.params[0].peerId,this.peerMeta=t.params[0].peerMeta;let n=Object.assign(Object.assign({},t),{method:"session_request"});this._eventManager.trigger(n)}),this.on("wc_sessionUpdate",(e,t)=>{e&&this._handleSessionResponse(e.message),this._handleSessionResponse("Session disconnected",t.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(){let e=this.protocol,t=this.handshakeTopic,n=this.version,a=encodeURIComponent(this.bridge),i=this.key;return`${e}:${t}@${n}?bridge=${a}&key=${i}`}_parseUri(e){let t=kde(e);if(t.protocol===this.protocol){if(!t.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");let n=t.handshakeTopic;if(!t.bridge)throw Error("Invalid or missing bridge url parameter value");let a=decodeURIComponent(t.bridge);if(!t.key)throw Error("Invalid or missing key parameter value");let i=t.key;return{handshakeTopic:n,bridge:a,key:i}}else throw new Error(qle)}async _generateKey(){return this._cryptoLib?await this._cryptoLib.generateKey():null}async _encrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.encrypt(e,t):null}async _decrypt(e){let t=this._key;return this._cryptoLib&&t?await this._cryptoLib.decrypt(e,t):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");let t={bridge:this.bridge,topic:this.clientId,type:e.type,token:e.token,peerName:"",language:e.language||""};this.on("connect",async(n,a)=>{if(n)throw n;if(e.peerMeta){let i=a.params[0].peerMeta.name;t.peerName=i}try{if(!(await(await fetch(`${e.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(t)})).json()).success)throw Error("Failed to register in Push Server")}catch{throw Error("Failed to register in Push Server")}})}},j_t=Dde});function Ode(r){return K_t.getBrowerCrypto().getRandomValues(new Uint8Array(r))}var K_t,G_t=ce(()=>{d();p();K_t=on(m6())});var Rcn,Lde,qde,lH,Mcn,Ncn,dH,Fde,Bcn,Wde=ce(()=>{d();p();Rcn=0,Lde=1,qde=16,lH=32,Mcn=64,Ncn=128,dH=256,Fde=512,Bcn=1024});var gS,pH,Nm,Ude,ow,Hde,jde,Dcn,Ocn,Lcn,qcn,Fcn,Wcn,Ucn,Hcn,jcn,V_t=ce(()=>{d();p();Wde();gS=256,pH=256,Nm="AES-CBC",Ude=`SHA-${gS}`,ow="HMAC",Hde="SHA-256",jde="SHA-512",Dcn=`aes-${gS}-cbc`,Ocn=`sha${pH}`,Lcn="sha256",qcn="sha512",Fcn="ripemd160",Wcn=1,Ucn=32,Hcn=16,jcn=32});var zcn,Kcn,$_t=ce(()=>{d();p();zcn="hex",Kcn="utf8"});var Gcn,Y_t=ce(()=>{d();p();Gcn="Bad MAC"});var zde,Kde,Gde,Vde,J_t=ce(()=>{d();p();zde="encrypt",Kde="decrypt",Gde="sign",Vde="verify"});var $de=ce(()=>{d();p();V_t();$_t();Y_t();Wde();J_t()});function Vcn(r){return r===Nm?{length:gS,name:Nm}:{hash:{name:Ude},name:ow}}function $cn(r){return r===Nm?[zde,Kde]:[Gde,Vde]}async function hH(r,e=Nm){return bg.getSubtleCrypto().importKey("raw",r,Vcn(e),!0,$cn(e))}async function Q_t(r,e,t){let n=bg.getSubtleCrypto(),a=await hH(e,Nm),i=await n.encrypt({iv:r,name:Nm},a,t);return new Uint8Array(i)}async function Z_t(r,e,t){let n=bg.getSubtleCrypto(),a=await hH(e,Nm),i=await n.decrypt({iv:r,name:Nm},a,t);return new Uint8Array(i)}async function Yde(r,e){let t=bg.getSubtleCrypto(),n=await hH(r,ow),a=await t.sign({length:pH,name:ow},n,e);return new Uint8Array(a)}async function Jde(r,e){let t=bg.getSubtleCrypto(),n=await hH(r,ow),a=await t.sign({length:512,name:ow},n,e);return new Uint8Array(a)}async function X_t(r){let t=await bg.getSubtleCrypto().digest({name:Hde},r);return new Uint8Array(t)}async function ext(r){let t=await bg.getSubtleCrypto().digest({name:jde},r);return new Uint8Array(t)}var bg,fH=ce(()=>{d();p();bg=on(m6());$de()});function Qde(r,e,t){return Q_t(r,e,t)}function Zde(r,e,t){return Z_t(r,e,t)}var txt=ce(()=>{d();p();fH()});var Wl={};var rxt=ce(()=>{d();p();gr(Wl,on(m6()))});var Ycn,nxt,axt=ce(()=>{d();p();Ycn=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]],nxt={pad(r){let e=Ycn[r.byteLength%16||0],t=new Uint8Array(r.byteLength+e.length);return t.set(r),t.set(e,r.byteLength),t},unpad(r){return r.subarray(0,r.byteLength-r[r.byteLength-1])}}});var ixt=ce(()=>{d();p()});function sxt(r,e){if(!r)throw new Error(e||"Assertion failed")}function bS(r,e){if(r.length!==e.length)return!1;let t=0;for(let n=0;n{d();p()});var Eo={};cr(Eo,{assert:()=>sxt,isConstantTime:()=>bS,pkcs7:()=>nxt});var Xde=ce(()=>{d();p();rxt();gr(Eo,Wl);axt();ixt();oxt()});async function mH(r,e){return await Yde(r,e)}async function Jcn(r,e,t){let n=await Yde(r,e);return bS(n,t)}async function Qcn(r,e){return await Jde(r,e)}async function Zcn(r,e,t){let n=await Jde(r,e);return bS(n,t)}var cxt=ce(()=>{d();p();fH();Xde()});async function Xcn(r){return await X_t(r)}async function eun(r){return await ext(r)}async function tun(r){throw new Error("Not supported for Browser async methods, use sync instead!")}var uxt=ce(()=>{d();p();fH()});var qp={};cr(qp,{AES_BROWSER_ALGO:()=>Nm,AES_LENGTH:()=>gS,AES_NODE_ALGO:()=>Dcn,DECRYPT_OP:()=>Kde,ENCRYPT_OP:()=>zde,ERROR_BAD_MAC:()=>Gcn,HEX_ENC:()=>zcn,HMAC_BROWSER:()=>ow,HMAC_BROWSER_ALGO:()=>Ude,HMAC_LENGTH:()=>pH,HMAC_NODE_ALGO:()=>Ocn,IV_LENGTH:()=>Hcn,KEY_LENGTH:()=>Ucn,LENGTH_0:()=>Rcn,LENGTH_1:()=>Lde,LENGTH_1024:()=>Bcn,LENGTH_128:()=>Ncn,LENGTH_16:()=>qde,LENGTH_256:()=>dH,LENGTH_32:()=>lH,LENGTH_512:()=>Fde,LENGTH_64:()=>Mcn,MAC_LENGTH:()=>jcn,PREFIX_LENGTH:()=>Wcn,RIPEMD160_NODE_ALGO:()=>Fcn,SHA256_BROWSER_ALGO:()=>Hde,SHA256_NODE_ALGO:()=>Lcn,SHA512_BROWSER_ALGO:()=>jde,SHA512_NODE_ALGO:()=>qcn,SIGN_OP:()=>Gde,UTF8_ENC:()=>Kcn,VERIFY_OP:()=>Vde,aesCbcDecrypt:()=>Zde,aesCbcEncrypt:()=>Qde,assert:()=>sxt,hmacSha256Sign:()=>mH,hmacSha256Verify:()=>Jcn,hmacSha512Sign:()=>Qcn,hmacSha512Verify:()=>Zcn,isConstantTime:()=>bS,pkcs7:()=>nxt,randomBytes:()=>Ode,ripemd160:()=>tun,sha256:()=>Xcn,sha512:()=>eun});var lxt=ce(()=>{d();p();G_t();txt();cxt();uxt();Xde();gr(qp,Eo);$de()});var epe={};cr(epe,{decrypt:()=>nun,encrypt:()=>run,generateKey:()=>dxt,verifyHmac:()=>pxt});async function dxt(r){let e=(r||256)/8,t=Ode(e);return tde(mg(t))}async function pxt(r,e){let t=Rm(r.data),n=Rm(r.iv),a=Rm(r.hmac),i=Pm(a,!1),s=Zle(t,n),o=await mH(e,s),c=Pm(o,!1);return yg(i)===yg(c)}async function run(r,e,t){let n=fg(lS(e)),a=t||await dxt(128),i=fg(lS(a)),s=Pm(i,!1),o=JSON.stringify(r),c=ZU(o),u=await Qde(i,n,c),l=Pm(u,!1),h=Zle(u,i),f=await mH(n,h),m=Pm(f,!1);return{data:l,hmac:m,iv:s}}async function nun(r,e){let t=fg(lS(e));if(!t)throw new Error("Missing key: required for decryption");if(!await pxt(r,t))return null;let a=Rm(r.data),i=Rm(r.iv),s=await Zde(i,t,a),o=YU(s),c;try{c=JSON.parse(o)}catch{return null}return c}var hxt=ce(()=>{d();p();lxt();uS();ry()});var rpe={};cr(rpe,{default:()=>aun});var tpe,aun,npe=ce(()=>{d();p();z_t();hxt();tpe=class extends j_t{constructor(e,t){super({cryptoLib:epe,connectorOpts:e,pushServerOpts:t})}},aun=tpe});var mxt=x((oga,fxt)=>{d();p();fxt.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var vg=x(cw=>{d();p();var ape,iun=[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];cw.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};cw.getSymbolTotalCodewords=function(e){return iun[e]};cw.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};cw.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ape=e};cw.isKanjiModeEnabled=function(){return typeof ape<"u"};cw.toSJIS=function(e){return ape(e)}});var yH=x(Fp=>{d();p();Fp.L={bit:1};Fp.M={bit:0};Fp.Q={bit:3};Fp.H={bit:2};function sun(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return Fp.L;case"m":case"medium":return Fp.M;case"q":case"quartile":return Fp.Q;case"h":case"high":return Fp.H;default:throw new Error("Unknown EC Level: "+r)}}Fp.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};Fp.from=function(e,t){if(Fp.isValid(e))return e;try{return sun(e)}catch{return t}}});var bxt=x((yga,gxt)=>{d();p();function yxt(){this.buffer=[],this.length=0}yxt.prototype={get:function(r){let e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let t=0;t>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};gxt.exports=yxt});var wxt=x((vga,vxt)=>{d();p();function vS(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}vS.prototype.set=function(r,e,t,n){let a=r*this.size+e;this.data[a]=t,n&&(this.reservedBit[a]=!0)};vS.prototype.get=function(r,e){return this.data[r*this.size+e]};vS.prototype.xor=function(r,e,t){this.data[r*this.size+e]^=t};vS.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};vxt.exports=vS});var _xt=x(gH=>{d();p();var oun=vg().getSymbolSize;gH.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=oun(e),a=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let s=1;s{d();p();var cun=vg().getSymbolSize,xxt=7;Txt.getPositions=function(e){let t=cun(e);return[[0,0],[t-xxt,0],[0,t-xxt]]}});var Cxt=x(oi=>{d();p();oi.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var uw={N1:3,N2:3,N3:40,N4:10};oi.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};oi.from=function(e){return oi.isValid(e)?parseInt(e,10):void 0};oi.getPenaltyN1=function(e){let t=e.size,n=0,a=0,i=0,s=null,o=null;for(let c=0;c=5&&(n+=uw.N1+(a-5)),s=l,a=1),l=e.get(u,c),l===o?i++:(i>=5&&(n+=uw.N1+(i-5)),o=l,i=1)}a>=5&&(n+=uw.N1+(a-5)),i>=5&&(n+=uw.N1+(i-5))}return n};oi.getPenaltyN2=function(e){let t=e.size,n=0;for(let a=0;a=10&&(a===1488||a===93)&&n++,i=i<<1&2047|e.get(o,s),o>=10&&(i===1488||i===93)&&n++}return n*uw.N3};oi.getPenaltyN4=function(e){let t=0,n=e.data.length;for(let i=0;i{d();p();var wg=yH(),bH=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],vH=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ipe.getBlocksCount=function(e,t){switch(t){case wg.L:return bH[(e-1)*4+0];case wg.M:return bH[(e-1)*4+1];case wg.Q:return bH[(e-1)*4+2];case wg.H:return bH[(e-1)*4+3];default:return}};ipe.getTotalCodewordsCount=function(e,t){switch(t){case wg.L:return vH[(e-1)*4+0];case wg.M:return vH[(e-1)*4+1];case wg.Q:return vH[(e-1)*4+2];case wg.H:return vH[(e-1)*4+3];default:return}}});var Ixt=x(_H=>{d();p();var wS=new Uint8Array(512),wH=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)wS[t]=e,wH[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)wS[t]=wS[t-255]})();_H.log=function(e){if(e<1)throw new Error("log("+e+")");return wH[e]};_H.exp=function(e){return wS[e]};_H.mul=function(e,t){return e===0||t===0?0:wS[wH[e]+wH[t]]}});var kxt=x(_S=>{d();p();var ope=Ixt();_S.mul=function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let a=0;a=0;){let a=n[0];for(let s=0;s{d();p();var Axt=kxt();function cpe(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}cpe.prototype.initialize=function(e){this.degree=e,this.genPoly=Axt.generateECPolynomial(this.degree)};cpe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let n=Axt.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){let i=new Uint8Array(this.degree);return i.set(n,a),i}return n};Sxt.exports=cpe});var upe=x(Rxt=>{d();p();Rxt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var lpe=x(ny=>{d();p();var Mxt="[0-9]+",lun="[A-Z $%*+\\-./:]+",xS="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";xS=xS.replace(/u/g,"\\u");var dun="(?:(?![A-Z0-9 $%*+\\-./:]|"+xS+`)(?:.|[\r +]))+`;ny.KANJI=new RegExp(xS,"g");ny.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");ny.BYTE=new RegExp(dun,"g");ny.NUMERIC=new RegExp(Mxt,"g");ny.ALPHANUMERIC=new RegExp(lun,"g");var pun=new RegExp("^"+xS+"$"),hun=new RegExp("^"+Mxt+"$"),fun=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");ny.testKanji=function(e){return pun.test(e)};ny.testNumeric=function(e){return hun.test(e)};ny.testAlphanumeric=function(e){return fun.test(e)}});var _g=x(ro=>{d();p();var mun=upe(),dpe=lpe();ro.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]};ro.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]};ro.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]};ro.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]};ro.MIXED={bit:-1};ro.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!mun.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};ro.getBestModeForData=function(e){return dpe.testNumeric(e)?ro.NUMERIC:dpe.testAlphanumeric(e)?ro.ALPHANUMERIC:dpe.testKanji(e)?ro.KANJI:ro.BYTE};ro.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};ro.isValid=function(e){return e&&e.bit&&e.ccBits};function yun(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return ro.NUMERIC;case"alphanumeric":return ro.ALPHANUMERIC;case"kanji":return ro.KANJI;case"byte":return ro.BYTE;default:throw new Error("Unknown mode: "+r)}}ro.from=function(e,t){if(ro.isValid(e))return e;try{return yun(e)}catch{return t}}});var Lxt=x(lw=>{d();p();var xH=vg(),gun=spe(),Nxt=yH(),xg=_g(),ppe=upe(),Dxt=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,Bxt=xH.getBCHDigit(Dxt);function bun(r,e,t){for(let n=1;n<=40;n++)if(e<=lw.getCapacity(n,t,r))return n}function Oxt(r,e){return xg.getCharCountIndicator(r,e)+4}function vun(r,e){let t=0;return r.forEach(function(n){let a=Oxt(n.mode,e);t+=a+n.getBitsLength()}),t}function wun(r,e){for(let t=1;t<=40;t++)if(vun(r,t)<=lw.getCapacity(t,e,xg.MIXED))return t}lw.from=function(e,t){return ppe.isValid(e)?parseInt(e,10):t};lw.getCapacity=function(e,t,n){if(!ppe.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=xg.BYTE);let a=xH.getSymbolTotalCodewords(e),i=gun.getTotalCodewordsCount(e,t),s=(a-i)*8;if(n===xg.MIXED)return s;let o=s-Oxt(n,e);switch(n){case xg.NUMERIC:return Math.floor(o/10*3);case xg.ALPHANUMERIC:return Math.floor(o/11*2);case xg.KANJI:return Math.floor(o/13);case xg.BYTE:default:return Math.floor(o/8)}};lw.getBestVersionForData=function(e,t){let n,a=Nxt.from(t,Nxt.M);if(Array.isArray(e)){if(e.length>1)return wun(e,a);if(e.length===0)return 1;n=e[0]}else n=e;return bun(n.mode,n.getLength(),a)};lw.getEncodedBits=function(e){if(!ppe.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;xH.getBCHDigit(t)-Bxt>=0;)t^=Dxt<{d();p();var hpe=vg(),Fxt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,_un=1<<14|1<<12|1<<10|1<<4|1<<1,qxt=hpe.getBCHDigit(Fxt);Wxt.getEncodedBits=function(e,t){let n=e.bit<<3|t,a=n<<10;for(;hpe.getBCHDigit(a)-qxt>=0;)a^=Fxt<{d();p();var xun=_g();function w6(r){this.mode=xun.NUMERIC,this.data=r.toString()}w6.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};w6.prototype.getLength=function(){return this.data.length};w6.prototype.getBitsLength=function(){return w6.getBitsLength(this.data.length)};w6.prototype.write=function(e){let t,n,a;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),a=parseInt(n,10),e.put(a,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),a=parseInt(n,10),e.put(a,i*3+1))};Hxt.exports=w6});var Kxt=x((oba,zxt)=>{d();p();var Tun=_g(),fpe=["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 _6(r){this.mode=Tun.ALPHANUMERIC,this.data=r}_6.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};_6.prototype.getLength=function(){return this.data.length};_6.prototype.getBitsLength=function(){return _6.getBitsLength(this.data.length)};_6.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=fpe.indexOf(this.data[t])*45;n+=fpe.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(fpe.indexOf(this.data[t]),6)};zxt.exports=_6});var Vxt=x((lba,Gxt)=>{"use strict";d();p();Gxt.exports=function(e){for(var t=[],n=e.length,a=0;a=55296&&i<=56319&&n>a+1){var s=e.charCodeAt(a+1);s>=56320&&s<=57343&&(i=(i-55296)*1024+s-56320+65536,a+=1)}if(i<128){t.push(i);continue}if(i<2048){t.push(i>>6|192),t.push(i&63|128);continue}if(i<55296||i>=57344&&i<65536){t.push(i>>12|224),t.push(i>>6&63|128),t.push(i&63|128);continue}if(i>=65536&&i<=1114111){t.push(i>>18|240),t.push(i>>12&63|128),t.push(i>>6&63|128),t.push(i&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}});var Yxt=x((hba,$xt)=>{d();p();var Eun=Vxt(),Cun=_g();function x6(r){this.mode=Cun.BYTE,typeof r=="string"&&(r=Eun(r)),this.data=new Uint8Array(r)}x6.getBitsLength=function(e){return e*8};x6.prototype.getLength=function(){return this.data.length};x6.prototype.getBitsLength=function(){return x6.getBitsLength(this.data.length)};x6.prototype.write=function(r){for(let e=0,t=this.data.length;e{d();p();var Iun=_g(),kun=vg();function T6(r){this.mode=Iun.KANJI,this.data=r}T6.getBitsLength=function(e){return e*13};T6.prototype.getLength=function(){return this.data.length};T6.prototype.getBitsLength=function(){return T6.getBitsLength(this.data.length)};T6.prototype.write=function(r){let e;for(e=0;e=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+` +Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),r.put(t,13)}};Jxt.exports=T6});var Zxt=x((vba,mpe)=>{"use strict";d();p();var TS={single_source_shortest_paths:function(r,e,t){var n={},a={};a[e]=0;var i=TS.PriorityQueue.make();i.push(e,0);for(var s,o,c,u,l,h,f,m,y;!i.empty();){s=i.pop(),o=s.value,u=s.cost,l=r[o]||{};for(c in l)l.hasOwnProperty(c)&&(h=l[c],f=u+h,m=a[c],y=typeof a[c]>"u",(y||m>f)&&(a[c]=f,i.push(c,f),n[c]=o))}if(typeof t<"u"&&typeof a[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},extract_shortest_path_from_predecessor_list:function(r,e){for(var t=[],n=e,a;n;)t.push(n),a=r[n],n=r[n];return t.reverse(),t},find_path:function(r,e,t){var n=TS.single_source_shortest_paths(r,e,t);return TS.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(r){var e=TS.PriorityQueue,t={},n;r=r||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=r.sorter||e.default_sorter,t},default_sorter:function(r,e){return r.cost-e.cost},push:function(r,e){var t={value:r,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof mpe<"u"&&(mpe.exports=TS)});var sTt=x(E6=>{d();p();var Ma=_g(),tTt=jxt(),rTt=Kxt(),nTt=Yxt(),aTt=Qxt(),ES=lpe(),TH=vg(),Aun=Zxt();function Xxt(r){return unescape(encodeURIComponent(r)).length}function CS(r,e,t){let n=[],a;for(;(a=r.exec(t))!==null;)n.push({data:a[0],index:a.index,mode:e,length:a[0].length});return n}function iTt(r){let e=CS(ES.NUMERIC,Ma.NUMERIC,r),t=CS(ES.ALPHANUMERIC,Ma.ALPHANUMERIC,r),n,a;return TH.isKanjiModeEnabled()?(n=CS(ES.BYTE,Ma.BYTE,r),a=CS(ES.KANJI,Ma.KANJI,r)):(n=CS(ES.BYTE_KANJI,Ma.BYTE,r),a=[]),e.concat(t,n,a).sort(function(s,o){return s.index-o.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function ype(r,e){switch(e){case Ma.NUMERIC:return tTt.getBitsLength(r);case Ma.ALPHANUMERIC:return rTt.getBitsLength(r);case Ma.KANJI:return aTt.getBitsLength(r);case Ma.BYTE:return nTt.getBitsLength(r)}}function Sun(r){return r.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function Pun(r){let e=[];for(let t=0;t{d();p();var CH=vg(),gpe=yH(),Mun=bxt(),Nun=wxt(),Bun=_xt(),Dun=Ext(),wpe=Cxt(),_pe=spe(),Oun=Pxt(),EH=Lxt(),Lun=Uxt(),qun=_g(),bpe=sTt();function Fun(r,e){let t=r.size,n=Dun.getPositions(e);for(let a=0;a=0&&o<=6&&(c===0||c===6)||c>=0&&c<=6&&(o===0||o===6)||o>=2&&o<=4&&c>=2&&c<=4?r.set(i+o,s+c,!0,!0):r.set(i+o,s+c,!1,!0))}}function Wun(r){let e=r.size;for(let t=8;t>o&1)===1,r.set(a,i,s,!0),r.set(i,a,s,!0)}function vpe(r,e,t){let n=r.size,a=Lun.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(a>>i&1)===1,i<6?r.set(i,8,s,!0):i<8?r.set(i+1,8,s,!0):r.set(n-15+i,8,s,!0),i<8?r.set(8,n-i-1,s,!0):i<9?r.set(8,15-i-1+1,s,!0):r.set(8,15-i-1,s,!0);r.set(n-8,8,1,!0)}function jun(r,e){let t=r.size,n=-1,a=t-1,i=7,s=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let c=0;c<2;c++)if(!r.isReserved(a,o-c)){let u=!1;s>>i&1)===1),r.set(a,o-c,u),i--,i===-1&&(s++,i=7)}if(a+=n,a<0||t<=a){a-=n,n=-n;break}}}function zun(r,e,t){let n=new Mun;t.forEach(function(c){n.put(c.mode.bit,4),n.put(c.getLength(),qun.getCharCountIndicator(c.mode,r)),c.write(n)});let a=CH.getSymbolTotalCodewords(r),i=_pe.getTotalCodewordsCount(r,e),s=(a-i)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let o=(s-n.getLengthInBits())/8;for(let c=0;c=7&&Mcn(c,e),Ncn(c,s),isNaN(n)&&(n=Hde.getBestMask(c,Ude.bind(null,c,t))),Hde.applyMask(n,c),Ude(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}p_t.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Fde.M,a,i;return typeof t<"u"&&(n=Fde.from(t.errorCorrectionLevel,Fde.M),a=tH.from(t.version),i=Hde.from(t.maskPattern),t.toSJISFunc&&rH.setToSJISFunction(t.toSJISFunc)),Ocn(e,a,n,i)}});var zde=_(rw=>{d();p();function f_t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}rw.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:f_t(e.color.dark||"#000000ff"),light:f_t(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};rw.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};rw.getImageWidth=function(e,t){let n=rw.getScale(e,t);return Math.floor((e+t.margin*2)*n)};rw.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=rw.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&h>=c&&l{d();p();var Kde=zde();function Lcn(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function qcn(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}nH.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=qcn()),a=Kde.getOptions(a);let s=Kde.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return Kde.qrToImageData(c.data,e,a),Lcn(o,i,s),o.putImageData(c,0,0),i};nH.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=nH.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var b_t=_(g_t=>{d();p();var Fcn=zde();function y_t(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Vde(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function Wcn(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?Vde("M",c+t,.5+u+t):Vde("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',f=''+c+u+` -`;return typeof n=="function"&&n(null,f),f}});var Yde=_(oS=>{d();p();var Ucn=wxt(),Gde=h_t(),v_t=m_t(),Hcn=b_t();function $de(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!Ucn())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=Gde.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=Gde.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}oS.create=Gde.create;oS.toCanvas=$de.bind(null,v_t.render);oS.toDataURL=$de.bind(null,v_t.renderToDataURL);oS.toString=$de.bind(null,function(r,e,t){return Hcn.render(r,t)})});var x_t=_((bga,w_t)=>{d();p();w_t.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";d();p();var jcn=x_t(),__t={"text/plain":"Text","text/html":"Url",default:"Text"},zcn="Copy to clipboard: #{key}, Enter";function Kcn(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function Vcn(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=jcn(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=__t[e.format]||__t.default;window.clipboardData.setData(h,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=Kcn("message"in e?e.message:zcn),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}T_t.exports=Vcn});var aTt={};cr(aTt,{Children:()=>L_t,Component:()=>Rl,Fragment:()=>Rp,PureComponent:()=>aH,StrictMode:()=>X_t,Suspense:()=>cS,SuspenseList:()=>a6,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>V_t,cloneElement:()=>$_t,createContext:()=>qI,createElement:()=>hd,createFactory:()=>G_t,createPortal:()=>H_t,createRef:()=>LI,default:()=>sun,findDOMNode:()=>J_t,flushSync:()=>Z_t,forwardRef:()=>O_t,hydrate:()=>K_t,isValidElement:()=>Xde,lazy:()=>U_t,memo:()=>D_t,render:()=>z_t,startTransition:()=>epe,unmountComponentAtNode:()=>Y_t,unstable_batchedUpdates:()=>Q_t,useCallback:()=>uW,useContext:()=>lW,useDebugValue:()=>dW,useDeferredValue:()=>eTt,useEffect:()=>Tk,useErrorBoundary:()=>ngt,useId:()=>pW,useImperativeHandle:()=>cW,useInsertionEffect:()=>rTt,useLayoutEffect:()=>k2,useMemo:()=>gT,useReducer:()=>_k,useRef:()=>oW,useState:()=>yT,useSyncExternalStore:()=>nTt,useTransition:()=>tTt,version:()=>iun});function B_t(r,e){for(var t in e)r[t]=e[t];return r}function Qde(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function Jde(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function aH(r){this.props=r}function D_t(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:Qde(this.props,a)}function n(a){return this.shouldComponentUpdate=t,hd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function O_t(r){function e(t){var n=B_t({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=Gcn,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function q_t(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=B_t({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return q_t(n,e,t)})),r}function F_t(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return F_t(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function cS(){this.__u=0,this.t=null,this.__b=null}function W_t(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function U_t(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return hd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function a6(){this.u=null,this.o=null}function Ycn(r){return this.getChildContext=function(){return r.context},r.children}function Jcn(r){var e=this,t=r.i;e.componentWillUnmount=function(){v2(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),v2(hd(Ycn,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function H_t(r,e){var t=hd(Jcn,{__v:r,i:e});return t.containerInfo=e,t}function z_t(r,e,t){return e.__k==null&&(e.textContent=""),v2(r,e),typeof t=="function"&&t(),r?r.__c:null}function K_t(r,e,t){return RF(r,e),typeof t=="function"&&t(),r?r.__c:null}function run(){}function nun(){return this.cancelBubble}function aun(){return this.defaultPrevented}function G_t(r){return hd.bind(null,r)}function Xde(r){return!!r&&r.$$typeof===j_t}function $_t(r){return Xde(r)?mie.apply(null,arguments):r}function Y_t(r){return!!r.__k&&(v2(null,r),!0)}function J_t(r){return r&&(r.base||r.nodeType===1&&r)||null}function epe(r){r()}function eTt(r){return r}function tTt(){return[!1,epe]}function nTt(r,e){var t=e(),n=yT({h:{__:t,v:e}}),a=n[0].h,i=n[1];return k2(function(){a.__=t,a.v=e,Jde(a.__,e())||i({h:a})},[r,t,e]),Tk(function(){return Jde(a.__,a.v())||i({h:a}),r(function(){Jde(a.__,a.v())||i({h:a})})},[r]),t}var C_t,Gcn,I_t,L_t,$cn,k_t,A_t,j_t,Qcn,Zcn,Xcn,eun,tun,S_t,Zde,P_t,R_t,M_t,N_t,V_t,iun,Q_t,Z_t,X_t,rTt,sun,iTt=ce(()=>{d();p();Tc();Tc();G1();G1();(aH.prototype=new Rl).isPureReactComponent=!0,aH.prototype.shouldComponentUpdate=function(r,e){return Qde(this.props,r)||Qde(this.state,e)};C_t=nt.__b;nt.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),C_t&&C_t(r)};Gcn=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;I_t=function(r,e){return r==null?null:$h($h(r).map(e))},L_t={map:I_t,forEach:I_t,count:function(r){return r?$h(r).length:0},only:function(r){var e=$h(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:$h},$cn=nt.__e;nt.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}$cn(r,e,t,n)};k_t=nt.unmount;nt.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),k_t&&k_t(r)},(cS.prototype=new Rl).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=W_t(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=F_t(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},cS.prototype.componentWillUnmount=function(){this.t=[]},cS.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=q_t(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&hd(Rp,null,r.fallback);return a&&(a.__h=null),[hd(Rp,null,e.__a?null:r.children),a]};A_t=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{d();p();function cTt(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var Qu=(Z0(),rt(WU)),uTt=cTt(Yde()),oun=cTt(E_t()),je=(iTt(),rt(aTt));function cun(r){uTt.toString(r,{type:"terminal"}).then(console.log)}var uun=`:root { +`);let s=zun(e,t,a),o=CH.getSymbolSize(e),c=new Nun(o);return Fun(c,e),Wun(c),Uun(c,e),vpe(c,t,0),e>=7&&Hun(c,e),jun(c,s),isNaN(n)&&(n=wpe.getBestMask(c,vpe.bind(null,c,t))),wpe.applyMask(n,c),vpe(c,t,n),{modules:c,version:e,errorCorrectionLevel:t,maskPattern:n,segments:a}}oTt.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=gpe.M,a,i;return typeof t<"u"&&(n=gpe.from(t.errorCorrectionLevel,gpe.M),a=EH.from(t.version),i=wpe.from(t.maskPattern),t.toSJISFunc&&CH.setToSJISFunction(t.toSJISFunc)),Gun(e,a,n,i)}});var xpe=x(dw=>{d();p();function uTt(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let e=r.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+r);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}dw.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:n,scale:n?4:a,margin:t,color:{dark:uTt(e.color.dark||"#000000ff"),light:uTt(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}};dw.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale};dw.getImageWidth=function(e,t){let n=dw.getScale(e,t);return Math.floor((e+t.margin*2)*n)};dw.qrToImageData=function(e,t,n){let a=t.modules.size,i=t.modules.data,s=dw.getScale(a,n),o=Math.floor((a+n.margin*2)*s),c=n.margin*s,u=[n.color.light,n.color.dark];for(let l=0;l=c&&h>=c&&l{d();p();var Tpe=xpe();function Vun(r,e,t){r.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}function $un(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}IH.render=function(e,t,n){let a=n,i=t;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),t||(i=$un()),a=Tpe.getOptions(a);let s=Tpe.getImageWidth(e.modules.size,a),o=i.getContext("2d"),c=o.createImageData(s,s);return Tpe.qrToImageData(c.data,e,a),Vun(o,i,s),o.putImageData(c,0,0),i};IH.renderToDataURL=function(e,t,n){let a=n;typeof a>"u"&&(!t||!t.getContext)&&(a=t,t=void 0),a||(a={});let i=IH.render(e,t,a),s=a.type||"image/png",o=a.rendererOpts||{};return i.toDataURL(s,o.quality)}});var hTt=x(pTt=>{d();p();var Yun=xpe();function dTt(r,e){let t=r.a/255,n=e+'="'+r.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}function Epe(r,e,t){let n=r+e;return typeof t<"u"&&(n+=" "+t),n}function Jun(r,e,t){let n="",a=0,i=!1,s=0;for(let o=0;o0&&c>0&&r[o-1]||(n+=i?Epe("M",c+t,.5+u+t):Epe("m",a,0),a=0,i=!1),c+1':"",u="',l='viewBox="0 0 '+o+" "+o+'"',f=''+c+u+` +`;return typeof n=="function"&&n(null,f),f}});var kpe=x(IS=>{d();p();var Qun=mxt(),Cpe=cTt(),fTt=lTt(),Zun=hTt();function Ipe(r,e,t,n,a){let i=[].slice.call(arguments,1),s=i.length,o=typeof i[s-1]=="function";if(!o&&!Qun())throw new Error("Callback required as last argument");if(o){if(s<2)throw new Error("Too few arguments provided");s===2?(a=t,t=e,e=n=void 0):s===3&&(e.getContext&&typeof a>"u"?(a=n,n=void 0):(a=n,n=t,t=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(t=e,e=n=void 0):s===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(c,u){try{let l=Cpe.create(t,n);c(r(l,e,n))}catch(l){u(l)}})}try{let c=Cpe.create(t,n);a(null,r(c,e,n))}catch(c){a(c)}}IS.create=Cpe.create;IS.toCanvas=Ipe.bind(null,fTt.render);IS.toDataURL=Ipe.bind(null,fTt.renderToDataURL);IS.toString=Ipe.bind(null,function(r,e,t){return Zun.render(r,t)})});var yTt=x((Wba,mTt)=>{d();p();mTt.exports=function(){var r=document.getSelection();if(!r.rangeCount)return function(){};for(var e=document.activeElement,t=[],n=0;n{"use strict";d();p();var Xun=yTt(),gTt={"text/plain":"Text","text/html":"Url",default:"Text"},eln="Copy to clipboard: #{key}, Enter";function tln(r){var e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return r.replace(/#{\s*key\s*}/g,e)}function rln(r,e){var t,n,a,i,s,o,c=!1;e||(e={}),t=e.debug||!1;try{a=Xun(),i=document.createRange(),s=document.getSelection(),o=document.createElement("span"),o.textContent=r,o.ariaHidden="true",o.style.all="unset",o.style.position="fixed",o.style.top=0,o.style.clip="rect(0, 0, 0, 0)",o.style.whiteSpace="pre",o.style.webkitUserSelect="text",o.style.MozUserSelect="text",o.style.msUserSelect="text",o.style.userSelect="text",o.addEventListener("copy",function(l){if(l.stopPropagation(),e.format)if(l.preventDefault(),typeof l.clipboardData>"u"){t&&console.warn("unable to use e.clipboardData"),t&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=gTt[e.format]||gTt.default;window.clipboardData.setData(h,r)}else l.clipboardData.clearData(),l.clipboardData.setData(e.format,r);e.onCopy&&(l.preventDefault(),e.onCopy(l.clipboardData))}),document.body.appendChild(o),i.selectNodeContents(o),s.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(l){t&&console.error("unable to copy using execCommand: ",l),t&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",r),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(h){t&&console.error("unable to copy using clipboardData: ",h),t&&console.error("falling back to prompt"),n=tln("message"in e?e.message:eln),window.prompt(n,r)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(i):s.removeAllRanges()),o&&document.body.removeChild(o),a()}return c}bTt.exports=rln});var XTt={};cr(XTt,{Children:()=>MTt,Component:()=>Dl,Fragment:()=>Np,PureComponent:()=>kH,StrictMode:()=>$Tt,Suspense:()=>kS,SuspenseList:()=>C6,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>UTt,cloneElement:()=>jTt,createContext:()=>ik,createElement:()=>fd,createFactory:()=>HTt,createPortal:()=>LTt,createRef:()=>ak,default:()=>yln,findDOMNode:()=>KTt,flushSync:()=>VTt,forwardRef:()=>RTt,hydrate:()=>WTt,isValidElement:()=>Rpe,lazy:()=>OTt,memo:()=>PTt,render:()=>FTt,startTransition:()=>Mpe,unmountComponentAtNode:()=>zTt,unstable_batchedUpdates:()=>GTt,useCallback:()=>RW,useContext:()=>MW,useDebugValue:()=>NW,useDeferredValue:()=>YTt,useEffect:()=>zk,useErrorBoundary:()=>Ygt,useId:()=>BW,useImperativeHandle:()=>PW,useInsertionEffect:()=>QTt,useLayoutEffect:()=>O2,useMemo:()=>OT,useReducer:()=>jk,useRef:()=>SW,useState:()=>DT,useSyncExternalStore:()=>ZTt,useTransition:()=>JTt,version:()=>mln});function STt(r,e){for(var t in e)r[t]=e[t];return r}function Spe(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&r[n]!==e[n])return!0;return!1}function Ape(r,e){return r===e&&(r!==0||1/r==1/e)||r!=r&&e!=e}function kH(r){this.props=r}function PTt(r,e){function t(a){var i=this.props.ref,s=i==a.ref;return!s&&i&&(i.call?i(null):i.current=null),e?!e(this.props,a)||!s:Spe(this.props,a)}function n(a){return this.shouldComponentUpdate=t,fd(r,a)}return n.displayName="Memo("+(r.displayName||r.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function RTt(r){function e(t){var n=STt({},t);return delete n.ref,r(n,t.ref||null)}return e.$$typeof=nln,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}function NTt(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),r.__c.__H=null),(r=STt({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(n){return NTt(n,e,t)})),r}function BTt(r,e,t){return r&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(n){return BTt(n,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.insertBefore(r.__e,r.__d),r.__c.__e=!0,r.__c.__P=t)),r}function kS(){this.__u=0,this.t=null,this.__b=null}function DTt(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function OTt(r){var e,t,n;function a(i){if(e||(e=r()).then(function(s){t=s.default||s},function(s){n=s}),n)throw n;if(!t)throw e;return fd(t,i)}return a.displayName="Lazy",a.__f=!0,a}function C6(){this.u=null,this.o=null}function iln(r){return this.getChildContext=function(){return r.context},r.children}function sln(r){var e=this,t=r.i;e.componentWillUnmount=function(){A2(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),r.__v?(e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,a){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),A2(fd(iln,{context:e.context},r.__v),e.l)):e.l&&e.componentWillUnmount()}function LTt(r,e){var t=fd(sln,{__v:r,i:e});return t.containerInfo=e,t}function FTt(r,e,t){return e.__k==null&&(e.textContent=""),A2(r,e),typeof t=="function"&&t(),r?r.__c:null}function WTt(r,e,t){return XF(r,e),typeof t=="function"&&t(),r?r.__c:null}function pln(){}function hln(){return this.cancelBubble}function fln(){return this.defaultPrevented}function HTt(r){return fd.bind(null,r)}function Rpe(r){return!!r&&r.$$typeof===qTt}function jTt(r){return Rpe(r)?zie.apply(null,arguments):r}function zTt(r){return!!r.__k&&(A2(null,r),!0)}function KTt(r){return r&&(r.base||r.nodeType===1&&r)||null}function Mpe(r){r()}function YTt(r){return r}function JTt(){return[!1,Mpe]}function ZTt(r,e){var t=e(),n=DT({h:{__:t,v:e}}),a=n[0].h,i=n[1];return O2(function(){a.__=t,a.v=e,Ape(a.__,e())||i({h:a})},[r,t,e]),zk(function(){return Ape(a.__,a.v())||i({h:a}),r(function(){Ape(a.__,a.v())||i({h:a})})},[r]),t}var wTt,nln,_Tt,MTt,aln,xTt,TTt,qTt,oln,cln,uln,lln,dln,ETt,Ppe,CTt,ITt,kTt,ATt,UTt,mln,GTt,VTt,$Tt,QTt,yln,e6t=ce(()=>{d();p();kc();kc();rg();rg();(kH.prototype=new Dl).isPureReactComponent=!0,kH.prototype.shouldComponentUpdate=function(r,e){return Spe(this.props,r)||Spe(this.state,e)};wTt=at.__b;at.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),wTt&&wTt(r)};nln=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;_Tt=function(r,e){return r==null?null:Jh(Jh(r).map(e))},MTt={map:_Tt,forEach:_Tt,count:function(r){return r?Jh(r).length:0},only:function(r){var e=Jh(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:Jh},aln=at.__e;at.__e=function(r,e,t,n){if(r.then){for(var a,i=e;i=i.__;)if((a=i.__c)&&a.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),a.__c(r,e)}aln(r,e,t,n)};xTt=at.unmount;at.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&r.__h===!0&&(r.type=null),xTt&&xTt(r)},(kS.prototype=new Dl).__c=function(r,e){var t=e.__c,n=this;n.t==null&&(n.t=[]),n.t.push(t);var a=DTt(n.__v),i=!1,s=function(){i||(i=!0,t.__R=null,a?a(o):o())};t.__R=s;var o=function(){if(!--n.__u){if(n.state.__a){var u=n.state.__a;n.__v.__k[0]=BTt(u,u.__c.__P,u.__c.__O)}var l;for(n.setState({__a:n.__b=null});l=n.t.pop();)l.forceUpdate()}},c=e.__h===!0;n.__u++||c||n.setState({__a:n.__b=n.__v.__k[0]}),r.then(s,s)},kS.prototype.componentWillUnmount=function(){this.t=[]},kS.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=NTt(this.__b,t,n.__O=n.__P)}this.__b=null}var a=e.__a&&fd(Np,null,r.fallback);return a&&(a.__h=null),[fd(Np,null,e.__a?null:r.children),a]};TTt=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]{d();p();function n6t(r){return r&&typeof r=="object"&&"default"in r?r.default:r}var tl=(ry(),nt(uH)),a6t=n6t(kpe()),gln=n6t(vTt()),ze=(e6t(),nt(XTt));function bln(r){a6t.toString(r,{type:"terminal"}).then(console.log)}var vln=`:root { --animation-duration: 300ms; } @@ -785,20 +785,20 @@ Minimum version required to store current data is: `+i+`. margin: 0; margin-bottom: 8px; } -`,Pga=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",Rga=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function lun(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var dun="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",pun="WalletConnect",hun=300,fun="rgb(64, 153, 255)",lTt="walletconnect-wrapper",sTt="walletconnect-style-sheet",dTt="walletconnect-qrcode-modal",mun="walletconnect-qrcode-close",pTt="walletconnect-qrcode-text",yun="walletconnect-connect-button";function gun(r){return je.createElement("div",{className:"walletconnect-modal__header"},je.createElement("img",{src:dun,className:"walletconnect-modal__headerLogo"}),je.createElement("p",null,pun),je.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},je.createElement("div",{id:mun,className:"walletconnect-modal__close__icon"},je.createElement("div",{className:"walletconnect-modal__close__line1"}),je.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function bun(r){return je.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:yun+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var vun="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 wun(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return je.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},je.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),je.createElement("div",{className:"walletconnect-modal__base__row__right"},je.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),je.createElement("img",{src:vun,className:"walletconnect-modal__base__row__right__caret"})))}function xun(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return je.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},je.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),je.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var _un=5,tpe=12;function Tun(r){var e=Qu.isAndroid(),t=je.useState(""),n=t[0],a=t[1],i=je.useState(""),s=i[0],o=i[1],c=je.useState(1),u=c[0],l=c[1],h=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,f=r.errorMessage,m=s||h.length>_un,y=Math.ceil(h.length/tpe),E=[(u-1)*tpe+1,u*tpe],I=h.length?h.filter(function(W,G){return G+1>=E[0]&&G+1<=E[1]}):[],S=!e&&y>1,L=void 0;function F(W){a(W.target.value),clearTimeout(L),W.target.value?L=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return je.createElement("div",null,je.createElement("p",{id:pTt,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&je.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:F}),je.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&h.length?"__wrap":"")},e?je.createElement(bun,{name:r.text.connect,color:fun,href:r.uri,onClick:je.useCallback(function(){Qu.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):I.length?I.map(function(W){var G=W.color,K=W.name,H=W.shortName,V=W.logo,J=Qu.formatIOSMobile(r.uri,W),q=je.useCallback(function(){Qu.saveMobileLinkInfo({name:K,href:J})},[I]);return m?je.createElement(xun,{color:G,href:J,name:H||K,logo:V,onClick:q}):je.createElement(wun,{color:G,href:J,name:K,logo:V,onClick:q})}):je.createElement(je.Fragment,null,je.createElement("p",null,f.length?r.errorMessage:!!r.links.length&&!h.length?r.text.no_wallets_found:r.text.loading))),S&&je.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,G){var K=G+1,H=u===K;return je.createElement("a",{style:{margin:"auto 10px",fontWeight:H?"bold":"normal"},onClick:function(){return l(K)}},K)})))}function Eun(r){var e=!!r.message.trim();return je.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var Cun=function(r){try{var e="";return Promise.resolve(uTt.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||je.useEffect(function(){var P=function(){try{if(e)return Promise.resolve();s(!0);var A=lun(function(){var v=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:Qu.getWalletRegistryUrl();return Promise.resolve(fetch(v)).then(function(k){return Promise.resolve(k.json()).then(function(O){var D=O.listings,B=t?"mobile":"desktop",x=Qu.getMobileLinkRegistry(Qu.formatMobileRegistry(D,B),n);s(!1),u(!0),J(x.length?"":r.text.no_supported_wallets),K(x);var N=x.length===1;N&&(I(Qu.formatIOSMobile(r.uri,x[0])),f(!0)),F(N)})})},function(v){s(!1),u(!0),J(r.text.something_went_wrong),console.error(v)});return Promise.resolve(A&&A.then?A.then(function(){}):void 0)}catch(v){return Promise.reject(v)}};P()})};q();var T=t?h:!h;return je.createElement("div",{id:dTt,className:"walletconnect-qrcode__base animated fadeIn"},je.createElement("div",{className:"walletconnect-modal__base"},je.createElement(gun,{onClose:r.onClose}),L&&h?je.createElement("div",{className:"walletconnect-modal__single_wallet"},je.createElement("a",{onClick:function(){return Qu.saveMobileLinkInfo({name:G[0].name,href:E})},href:E,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(L?G[0].name:"")+" \u203A")):e||i||!i&&G.length?je.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(T?" right__selected":"")},je.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?je.createElement(je.Fragment,null,je.createElement("a",{onClick:function(){return f(!1),q()}},r.text.mobile),je.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode)):je.createElement(je.Fragment,null,je.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode),je.createElement("a",{onClick:function(){return f(!1),q()}},r.text.desktop))):null,je.createElement("div",null,h||!e&&!i&&!G.length?je.createElement(Iun,Object.assign({},m)):je.createElement(Tun,Object.assign({},m,{links:G,errorMessage:V})))))}var Aun={choose_preferred_wallet:"W\xE4hle 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\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},Sun={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"},Pun={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Run={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",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\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},Mun={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},Nun={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",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\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},Bun={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},Dun={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},oTt={de:Aun,en:Sun,es:Pun,fr:Run,ko:Mun,pt:Nun,zh:Bun,fa:Dun};function Oun(){var r=Qu.getDocumentOrThrow(),e=r.getElementById(sTt);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",sTt),t.innerText=uun,r.head.appendChild(t)}function Lun(){var r=Qu.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",lTt),r.body.appendChild(e),e}function hTt(){var r=Qu.getDocumentOrThrow(),e=r.getElementById(dTt);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById(lTt);t&&r.body.removeChild(t)},hun))}function qun(r){return function(){hTt(),r&&r()}}function Fun(){var r=Qu.getNavigatorOrThrow().language.split("-")[0]||"en";return oTt[r]||oTt.en}function Wun(r,e,t){Oun();var n=Lun();je.render(je.createElement(kun,{text:Fun(),uri:r,onClose:qun(e),qrcodeModalOptions:t}),n)}function Uun(){hTt()}var fTt=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function Hun(r,e,t){console.log(r),fTt()?cun(r):Wun(r,e,t)}function jun(){fTt()||Uun()}var zun={open:Hun,close:jun};mTt.exports=zun});var bTt,npe,Kun,Vun,yTt,gTt,iH,vTt,ape=ce(()=>{d();p();bTt=mn(Mu()),npe=mn(tn());ZT();Y0();Kun={Accept:"application/json","Content-Type":"application/json"},Vun="POST",yTt={headers:Kun,method:Vun},gTt=10,iH=class{constructor(e){if(this.url=e,this.events=new bTt.EventEmitter,this.isAvailable=!1,this.registering=!1,!yU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=Im(e),i=await(await(0,npe.default)(this.url,Object.assign(Object.assign({},yTt),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!yU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=Im({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,npe.default)(e,Object.assign(Object.assign({},yTt),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?Q0(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=UA(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return WA(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>gTt&&this.events.setMaxListeners(gTt)}},vTt=iH});var sH={};cr(sH,{HttpConnection:()=>iH,default:()=>Gun});var Gun,oH=ce(()=>{d();p();ape();ape();Gun=vTt});var wTt,cH,xTt,ipe=ce(()=>{d();p();wTt=mn(Mu());Y0();cH=class extends VT{constructor(e){super(e),this.events=new wTt.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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(Yue(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{bU(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Zue(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.hasRegisteredEventListeners=!0)}},xTt=cH});var uS={};cr(uS,{JsonRpcProvider:()=>cH,default:()=>$un});var $un,lS=ce(()=>{d();p();ipe();ipe();$un=xTt});var ITt=_(CTt=>{"use strict";d();p();var wd=yu(),Yun=(nU(),rt(zue)),_Tt=(Y0(),rt(Xs)),Jun=(Cde(),rt(Ede)),Qun=rpe(),Zun=it(),Xun=(oH(),rt(sH)),TTt=(lS(),rt(uS)),eln=($2(),rt(ule)),tln=(Z0(),rt(WU));function cpe(r){return r&&r.__esModule?r:{default:r}}var rln=cpe(Jun),nln=cpe(Qun),ETt=cpe(Zun),spe=class extends Yun.IJsonRpcConnection{constructor(e){super(),wd._defineProperty(this,"events",new ETt.default),wd._defineProperty(this,"accounts",[]),wd._defineProperty(this,"chainId",1),wd._defineProperty(this,"pending",!1),wd._defineProperty(this,"wc",void 0),wd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),wd._defineProperty(this,"qrcode",!0),wd._defineProperty(this,"qrcodeModalOptions",void 0),wd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),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(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",_Tt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?nln.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new rln.default(t),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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}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(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.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,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?_Tt.formatJsonRpcError(e.id,e.error.message):e}},aln=spe,ope=class{constructor(e){wd._defineProperty(this,"events",new ETt.default),wd._defineProperty(this,"rpc",void 0),wd._defineProperty(this,"signer",void 0),wd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new TTt.JsonRpcProvider(new aln(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),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(){return(this.http?.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(eln.SIGNING_METHODS.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)}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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}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.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=tln.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new TTt.JsonRpcProvider(new Xun.HttpConnection(t))}};CTt.default=ope});var PTt=_(ppe=>{"use strict";d();p();Object.defineProperty(ppe,"__esModule",{value:!0});var uH=U0(),Oa=D1(),tf=yu(),i6=Ge(),dS=O_(),kTt=gI();pd();Pt();it();var upe="last-used-chain-id",lpe="last-session",Ms=new WeakMap,fg=new WeakMap,ATt=new WeakSet,STt=new WeakSet,dpe=class extends dS.Connector{constructor(e){super(e),uH._classPrivateMethodInitSpec(this,STt),uH._classPrivateMethodInitSpec(this,ATt),tf._defineProperty(this,"id","walletConnectV1"),tf._defineProperty(this,"name","WalletConnectV1"),tf._defineProperty(this,"ready",!0),Oa._classPrivateFieldInitSpec(this,Ms,{writable:!0,value:void 0}),Oa._classPrivateFieldInitSpec(this,fg,{writable:!0,value:void 0}),tf._defineProperty(this,"walletName",void 0),tf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),tf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),tf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),tf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),tf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:i6.utils.getAddress(t[0])})}),tf._defineProperty(this,"onChainChanged",t=>{let n=kTt.normalizeChainId(t),a=this.isChainUnsupported(n);Oa._classPrivateFieldGet(this,fg).setItem(upe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),tf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Oa._classPrivateFieldGet(this,fg).removeItem(upe),Oa._classPrivateFieldGet(this,fg).removeItem(lpe),uH._classPrivateMethodGet(this,STt,sln).call(this),this.emit("disconnect")}),Oa._classPrivateFieldSet(this,fg,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Oa._classPrivateFieldGet(this,fg).getItem(upe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=i6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return uH._classPrivateMethodGet(this,ATt,iln).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new i6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new dS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return i6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return kTt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Oa._classPrivateFieldGet(this,Ms)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return ITt()})).default,i=await Oa._classPrivateFieldGet(this,fg).getItem(lpe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Oa._classPrivateFieldSet(this,Ms,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Oa._classPrivateFieldGet(this,Ms)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new i6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=i6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new dS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new dS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new dS.SwitchChainError(a)}}async setupListeners(){!Oa._classPrivateFieldGet(this,Ms)||(Oa._classPrivateFieldGet(this,Ms).on("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ms).on("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ms).on("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ms).on("message",this.onMessage),Oa._classPrivateFieldGet(this,Ms).on("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ms).on("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ms).on("call_request_sent",this.onRequestSent))}};async function iln(){let r=Oa._classPrivateFieldGet(this,Ms)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Oa._classPrivateFieldGet(this,fg).setItem(lpe,e)}function sln(){!Oa._classPrivateFieldGet(this,Ms)||(Oa._classPrivateFieldGet(this,Ms).removeListener("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Ms).removeListener("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Ms).removeListener("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Ms).removeListener("message",this.onMessage),Oa._classPrivateFieldGet(this,Ms).removeListener("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Ms).removeListener("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Ms).removeListener("call_request_sent",this.onRequestSent))}ppe.WalletConnectV1Connector=dpe});var MTt=_(hpe=>{"use strict";d();p();Object.defineProperty(hpe,"__esModule",{value:!0});var s6=yu(),RTt=fI(),oln=mI();it();U0();pd();Pt();l2();Ge();var nw=class extends oln.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(nw.id,e),s6._defineProperty(this,"connector",void 0),s6._defineProperty(this,"connectorStorage",void 0),s6._defineProperty(this,"isInjected",void 0),s6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage,this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return hwt()});if(this.isInjected){let t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new RTt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:t}=await Promise.resolve().then(function(){return PTt()}),n=new t({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=n,this.connector=new RTt.WagmiAdapter(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};s6._defineProperty(nw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});s6._defineProperty(nw,"id","metamask");hpe.MetaMask=nw});var NTt=_(gpe=>{"use strict";d();p();Object.defineProperty(gpe,"__esModule",{value:!0});var fpe=X1(),cln=Cu(),uln=Due(),lln=Ge(),lH=UT();bd();NA();Pt();it();function dln(r){return"ethereum"in window}var mpe=new WeakMap,ype=class extends uln.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&dln())return window.ethereum?.providers?window.ethereum.providers.find(a):a(window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),cln._defineProperty(this,"id","metaMask"),fpe._classPrivateFieldInitSpec(this,mpe,{writable:!0,value:void 0}),fpe._classPrivateFieldSet(this,mpe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new lH.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(fpe._classPrivateFieldGet(this,mpe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new lH.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=lln.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new lH.UserRejectedRequestError(t):t.code===-32002?new lH.ResourceUnavailableError(t):t}}};gpe.MetaMaskConnector=ype});var qTt=_(LTt=>{"use strict";d();p();var xd=Cu(),pln=(nU(),rt(zue)),BTt=(Y0(),rt(Xs)),hln=(Cde(),rt(Ede)),fln=rpe(),mln=it(),yln=(oH(),rt(sH)),DTt=(lS(),rt(uS)),gln=($2(),rt(ule)),bln=(Z0(),rt(WU));function wpe(r){return r&&r.__esModule?r:{default:r}}var vln=wpe(hln),wln=wpe(fln),OTt=wpe(mln),bpe=class extends pln.IJsonRpcConnection{constructor(e){super(),xd._defineProperty(this,"events",new OTt.default),xd._defineProperty(this,"accounts",[]),xd._defineProperty(this,"chainId",1),xd._defineProperty(this,"pending",!1),xd._defineProperty(this,"wc",void 0),xd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),xd._defineProperty(this,"qrcode",!0),xd._defineProperty(this,"qrcodeModalOptions",void 0),xd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),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(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",BTt.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?wln.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new vln.default(t),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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}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(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.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,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?BTt.formatJsonRpcError(e.id,e.error.message):e}},xln=bpe,vpe=class{constructor(e){xd._defineProperty(this,"events",new OTt.default),xd._defineProperty(this,"rpc",void 0),xd._defineProperty(this,"signer",void 0),xd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new DTt.JsonRpcProvider(new xln(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),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(){return(this.http?.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(gln.SIGNING_METHODS.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)}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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}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.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=bln.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new DTt.JsonRpcProvider(new yln.HttpConnection(t))}};LTt.default=vpe});var HTt=_(Epe=>{"use strict";d();p();Object.defineProperty(Epe,"__esModule",{value:!0});var dH=G0(),La=X1(),rf=Cu(),o6=Ge(),pS=UT(),FTt=NA();bd();Pt();it();var xpe="last-used-chain-id",_pe="last-session",Ns=new WeakMap,mg=new WeakMap,WTt=new WeakSet,UTt=new WeakSet,Tpe=class extends pS.Connector{constructor(e){super(e),dH._classPrivateMethodInitSpec(this,UTt),dH._classPrivateMethodInitSpec(this,WTt),rf._defineProperty(this,"id","walletConnectV1"),rf._defineProperty(this,"name","WalletConnectV1"),rf._defineProperty(this,"ready",!0),La._classPrivateFieldInitSpec(this,Ns,{writable:!0,value:void 0}),La._classPrivateFieldInitSpec(this,mg,{writable:!0,value:void 0}),rf._defineProperty(this,"walletName",void 0),rf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),rf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),rf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),rf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),rf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:o6.utils.getAddress(t[0])})}),rf._defineProperty(this,"onChainChanged",t=>{let n=FTt.normalizeChainId(t),a=this.isChainUnsupported(n);La._classPrivateFieldGet(this,mg).setItem(xpe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),rf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,La._classPrivateFieldGet(this,mg).removeItem(xpe),La._classPrivateFieldGet(this,mg).removeItem(_pe),dH._classPrivateMethodGet(this,UTt,Tln).call(this),this.emit("disconnect")}),La._classPrivateFieldSet(this,mg,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await La._classPrivateFieldGet(this,mg).getItem(xpe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=o6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return dH._classPrivateMethodGet(this,WTt,_ln).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new o6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new pS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return o6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return FTt.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!La._classPrivateFieldGet(this,Ns)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return qTt()})).default,i=await La._classPrivateFieldGet(this,mg).getItem(_pe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,La._classPrivateFieldSet(this,Ns,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return La._classPrivateFieldGet(this,Ns)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new o6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=o6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new pS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new pS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new pS.SwitchChainError(a)}}async setupListeners(){!La._classPrivateFieldGet(this,Ns)||(La._classPrivateFieldGet(this,Ns).on("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ns).on("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ns).on("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ns).on("message",this.onMessage),La._classPrivateFieldGet(this,Ns).on("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ns).on("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ns).on("call_request_sent",this.onRequestSent))}};async function _ln(){let r=La._classPrivateFieldGet(this,Ns)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);La._classPrivateFieldGet(this,mg).setItem(_pe,e)}function Tln(){!La._classPrivateFieldGet(this,Ns)||(La._classPrivateFieldGet(this,Ns).removeListener("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ns).removeListener("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ns).removeListener("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ns).removeListener("message",this.onMessage),La._classPrivateFieldGet(this,Ns).removeListener("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ns).removeListener("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ns).removeListener("call_request_sent",this.onRequestSent))}Epe.WalletConnectV1Connector=Tpe});var zTt=_(Cpe=>{"use strict";d();p();Object.defineProperty(Cpe,"__esModule",{value:!0});var c6=Cu(),jTt=PA(),Eln=RA();it();G0();bd();Pt();U2();Ge();var aw=class extends Eln.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(aw.id,e),c6._defineProperty(this,"connector",void 0),c6._defineProperty(this,"connectorStorage",void 0),c6._defineProperty(this,"isInjected",void 0),c6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage,this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return NTt()});if(this.isInjected){let t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new jTt.WagmiAdapter(t)}else{let{WalletConnectV1Connector:t}=await Promise.resolve().then(function(){return HTt()}),n=new t({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=n,this.connector=new jTt.WagmiAdapter(n)}}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};c6._defineProperty(aw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});c6._defineProperty(aw,"id","metamask");Cpe.MetaMask=aw});var KTt=_((vba,Ipe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Ipe.exports=MTt():Ipe.exports=zTt()});var VTt=_(_d=>{"use strict";d();p();Object.defineProperty(_d,"__esModule",{value:!0});function Cln(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}_d.mul=Math.imul||Cln;function Iln(r,e){return r+e|0}_d.add=Iln;function kln(r,e){return r-e|0}_d.sub=kln;function Aln(r,e){return r<>>32-e}_d.rotl=Aln;function Sln(r,e){return r<<32-e|r>>>e}_d.rotr=Sln;function Pln(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}_d.isInteger=Number.isInteger||Pln;_d.MAX_SAFE_INTEGER=9007199254740991;_d.isSafeInteger=function(r){return _d.isInteger(r)&&r>=-_d.MAX_SAFE_INTEGER&&r<=_d.MAX_SAFE_INTEGER}});var u6=_(Nr=>{"use strict";d();p();Object.defineProperty(Nr,"__esModule",{value:!0});var GTt=VTt();function Rln(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}Nr.readInt16BE=Rln;function Mln(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}Nr.readUint16BE=Mln;function Nln(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}Nr.readInt16LE=Nln;function Bln(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}Nr.readUint16LE=Bln;function $Tt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}Nr.writeUint16BE=$Tt;Nr.writeInt16BE=$Tt;function YTt(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}Nr.writeUint16LE=YTt;Nr.writeInt16LE=YTt;function kpe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}Nr.readInt32BE=kpe;function Ape(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}Nr.readUint32BE=Ape;function Spe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}Nr.readInt32LE=Spe;function Ppe(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}Nr.readUint32LE=Ppe;function pH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}Nr.writeUint32BE=pH;Nr.writeInt32BE=pH;function hH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}Nr.writeUint32LE=hH;Nr.writeInt32LE=hH;function Dln(r,e){e===void 0&&(e=0);var t=kpe(r,e),n=kpe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}Nr.readInt64BE=Dln;function Oln(r,e){e===void 0&&(e=0);var t=Ape(r,e),n=Ape(r,e+4);return t*4294967296+n}Nr.readUint64BE=Oln;function Lln(r,e){e===void 0&&(e=0);var t=Spe(r,e),n=Spe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}Nr.readInt64LE=Lln;function qln(r,e){e===void 0&&(e=0);var t=Ppe(r,e),n=Ppe(r,e+4);return n*4294967296+t}Nr.readUint64LE=qln;function JTt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),pH(r/4294967296>>>0,e,t),pH(r>>>0,e,t+4),e}Nr.writeUint64BE=JTt;Nr.writeInt64BE=JTt;function QTt(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),hH(r>>>0,e,t),hH(r/4294967296>>>0,e,t+4),e}Nr.writeUint64LE=QTt;Nr.writeInt64LE=QTt;function Fln(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}Nr.readUintBE=Fln;function Wln(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}Nr.writeUintBE=Uln;function Hln(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!GTt.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";d();p();Object.defineProperty(Rpe,"__esModule",{value:!0});function Qln(r){for(var e=0;e{"use strict";d();p();Object.defineProperty(fH,"__esModule",{value:!0});var ku=u6(),Mpe=qp(),Zln=20;function Xln(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],h=t[19]<<24|t[18]<<16|t[17]<<8|t[16],f=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],E=e[3]<<24|e[2]<<16|e[1]<<8|e[0],I=e[7]<<24|e[6]<<16|e[5]<<8|e[4],S=e[11]<<24|e[10]<<16|e[9]<<8|e[8],L=e[15]<<24|e[14]<<16|e[13]<<8|e[12],F=n,W=a,G=i,K=s,H=o,V=c,J=u,q=l,T=h,P=f,A=m,v=y,k=E,O=I,D=S,B=L,x=0;x>>32-16|k<<16,T=T+k|0,H^=T,H=H>>>32-12|H<<12,W=W+V|0,O^=W,O=O>>>32-16|O<<16,P=P+O|0,V^=P,V=V>>>32-12|V<<12,G=G+J|0,D^=G,D=D>>>32-16|D<<16,A=A+D|0,J^=A,J=J>>>32-12|J<<12,K=K+q|0,B^=K,B=B>>>32-16|B<<16,v=v+B|0,q^=v,q=q>>>32-12|q<<12,G=G+J|0,D^=G,D=D>>>32-8|D<<8,A=A+D|0,J^=A,J=J>>>32-7|J<<7,K=K+q|0,B^=K,B=B>>>32-8|B<<8,v=v+B|0,q^=v,q=q>>>32-7|q<<7,W=W+V|0,O^=W,O=O>>>32-8|O<<8,P=P+O|0,V^=P,V=V>>>32-7|V<<7,F=F+H|0,k^=F,k=k>>>32-8|k<<8,T=T+k|0,H^=T,H=H>>>32-7|H<<7,F=F+V|0,B^=F,B=B>>>32-16|B<<16,A=A+B|0,V^=A,V=V>>>32-12|V<<12,W=W+J|0,k^=W,k=k>>>32-16|k<<16,v=v+k|0,J^=v,J=J>>>32-12|J<<12,G=G+q|0,O^=G,O=O>>>32-16|O<<16,T=T+O|0,q^=T,q=q>>>32-12|q<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,P=P+D|0,H^=P,H=H>>>32-12|H<<12,G=G+q|0,O^=G,O=O>>>32-8|O<<8,T=T+O|0,q^=T,q=q>>>32-7|q<<7,K=K+H|0,D^=K,D=D>>>32-8|D<<8,P=P+D|0,H^=P,H=H>>>32-7|H<<7,W=W+J|0,k^=W,k=k>>>32-8|k<<8,v=v+k|0,J^=v,J=J>>>32-7|J<<7,F=F+V|0,B^=F,B=B>>>32-8|B<<8,A=A+B|0,V^=A,V=V>>>32-7|V<<7;ku.writeUint32LE(F+n|0,r,0),ku.writeUint32LE(W+a|0,r,4),ku.writeUint32LE(G+i|0,r,8),ku.writeUint32LE(K+s|0,r,12),ku.writeUint32LE(H+o|0,r,16),ku.writeUint32LE(V+c|0,r,20),ku.writeUint32LE(J+u|0,r,24),ku.writeUint32LE(q+l|0,r,28),ku.writeUint32LE(T+h|0,r,32),ku.writeUint32LE(P+f|0,r,36),ku.writeUint32LE(A+m|0,r,40),ku.writeUint32LE(v+y|0,r,44),ku.writeUint32LE(k+E|0,r,48),ku.writeUint32LE(O+I|0,r,52),ku.writeUint32LE(D+S|0,r,56),ku.writeUint32LE(B+L|0,r,60)}function ZTt(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var mH=_(l6=>{"use strict";d();p();Object.defineProperty(l6,"__esModule",{value:!0});function rdn(r,e,t){return~(r-1)&e|r-1&t}l6.select=rdn;function ndn(r,e){return(r|0)-(e|0)-1>>>31&1}l6.lessOrEqual=ndn;function e6t(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}l6.compare=e6t;function adn(r,e){return r.length===0||e.length===0?!1:e6t(r,e)!==0}l6.equal=adn});var r6t=_(ey=>{"use strict";d();p();Object.defineProperty(ey,"__esModule",{value:!0});var idn=mH(),yH=qp();ey.DIGEST_LENGTH=16;var t6t=function(){function r(e){this.digestLength=ey.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 t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],h=this._h[6],f=this._h[7],m=this._h[8],y=this._h[9],E=this._r[0],I=this._r[1],S=this._r[2],L=this._r[3],F=this._r[4],W=this._r[5],G=this._r[6],K=this._r[7],H=this._r[8],V=this._r[9];n>=16;){var J=e[t+0]|e[t+1]<<8;i+=J&8191;var q=e[t+2]|e[t+3]<<8;s+=(J>>>13|q<<3)&8191;var T=e[t+4]|e[t+5]<<8;o+=(q>>>10|T<<6)&8191;var P=e[t+6]|e[t+7]<<8;c+=(T>>>7|P<<9)&8191;var A=e[t+8]|e[t+9]<<8;u+=(P>>>4|A<<12)&8191,l+=A>>>1&8191;var v=e[t+10]|e[t+11]<<8;h+=(A>>>14|v<<2)&8191;var k=e[t+12]|e[t+13]<<8;f+=(v>>>11|k<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(k>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,B=D;B+=i*E,B+=s*(5*V),B+=o*(5*H),B+=c*(5*K),B+=u*(5*G),D=B>>>13,B&=8191,B+=l*(5*W),B+=h*(5*F),B+=f*(5*L),B+=m*(5*S),B+=y*(5*I),D+=B>>>13,B&=8191;var x=D;x+=i*I,x+=s*E,x+=o*(5*V),x+=c*(5*H),x+=u*(5*K),D=x>>>13,x&=8191,x+=l*(5*G),x+=h*(5*W),x+=f*(5*F),x+=m*(5*L),x+=y*(5*S),D+=x>>>13,x&=8191;var N=D;N+=i*S,N+=s*I,N+=o*E,N+=c*(5*V),N+=u*(5*H),D=N>>>13,N&=8191,N+=l*(5*K),N+=h*(5*G),N+=f*(5*W),N+=m*(5*F),N+=y*(5*L),D+=N>>>13,N&=8191;var U=D;U+=i*L,U+=s*S,U+=o*I,U+=c*E,U+=u*(5*V),D=U>>>13,U&=8191,U+=l*(5*H),U+=h*(5*K),U+=f*(5*G),U+=m*(5*W),U+=y*(5*F),D+=U>>>13,U&=8191;var C=D;C+=i*F,C+=s*L,C+=o*S,C+=c*I,C+=u*E,D=C>>>13,C&=8191,C+=l*(5*V),C+=h*(5*H),C+=f*(5*K),C+=m*(5*G),C+=y*(5*W),D+=C>>>13,C&=8191;var z=D;z+=i*W,z+=s*F,z+=o*L,z+=c*S,z+=u*I,D=z>>>13,z&=8191,z+=l*E,z+=h*(5*V),z+=f*(5*H),z+=m*(5*K),z+=y*(5*G),D+=z>>>13,z&=8191;var ee=D;ee+=i*G,ee+=s*W,ee+=o*F,ee+=c*L,ee+=u*S,D=ee>>>13,ee&=8191,ee+=l*I,ee+=h*E,ee+=f*(5*V),ee+=m*(5*H),ee+=y*(5*K),D+=ee>>>13,ee&=8191;var j=D;j+=i*K,j+=s*G,j+=o*W,j+=c*F,j+=u*L,D=j>>>13,j&=8191,j+=l*S,j+=h*I,j+=f*E,j+=m*(5*V),j+=y*(5*H),D+=j>>>13,j&=8191;var X=D;X+=i*H,X+=s*K,X+=o*G,X+=c*W,X+=u*F,D=X>>>13,X&=8191,X+=l*L,X+=h*S,X+=f*I,X+=m*E,X+=y*(5*V),D+=X>>>13,X&=8191;var ie=D;ie+=i*V,ie+=s*H,ie+=o*K,ie+=c*G,ie+=u*W,D=ie>>>13,ie&=8191,ie+=l*F,ie+=h*L,ie+=f*S,ie+=m*I,ie+=y*E,D+=ie>>>13,ie&=8191,D=(D<<2)+D|0,D=D+B|0,B=D&8191,D=D>>>13,x+=D,i=B,s=x,o=N,c=U,u=C,l=z,h=ee,f=j,m=X,y=ie,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=h,this._h[7]=f,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];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,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";d();p();Object.defineProperty(ty,"__esModule",{value:!0});var gH=XTt(),cdn=r6t(),hS=qp(),n6t=u6(),udn=mH();ty.KEY_LENGTH=32;ty.NONCE_LENGTH=12;ty.TAG_LENGTH=16;var a6t=new Uint8Array(16),ldn=function(){function r(e){if(this.nonceLength=ty.NONCE_LENGTH,this.tagLength=ty.TAG_LENGTH,e.length!==ty.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);gH.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return gH.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),hS.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(a6t.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(a6t.subarray(n.length%16));var s=new Uint8Array(8);a&&n6t.writeUint64LE(a.length,s),i.update(s),n6t.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";d();p();Object.defineProperty(Npe,"__esModule",{value:!0});function ddn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}Npe.isSerializableHash=ddn});var c6t=_(fS=>{"use strict";d();p();Object.defineProperty(fS,"__esModule",{value:!0});var Am=s6t(),pdn=mH(),hdn=qp(),o6t=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";d();p();Object.defineProperty(Bpe,"__esModule",{value:!0});var u6t=c6t(),l6t=qp(),mdn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=u6t.hmac(this._hash,n,t);this._hmac=new u6t.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&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},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();Object.defineProperty(bH,"__esModule",{value:!0});bH.BrowserRandomSource=void 0;var p6t=65536,Dpe=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";d();p();Object.defineProperty(vH,"__esModule",{value:!0});vH.NodeRandomSource=void 0;var ydn=qp(),Ope=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof yye<"u"){let e=a$();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";d();p();Object.defineProperty(wH,"__esModule",{value:!0});wH.SystemRandomSource=void 0;var gdn=h6t(),bdn=f6t(),Lpe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new gdn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new bdn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};wH.SystemRandomSource=Lpe});var mS=_(Au=>{"use strict";d();p();Object.defineProperty(Au,"__esModule",{value:!0});Au.randomStringForEntropy=Au.randomString=Au.randomUint32=Au.randomBytes=Au.defaultRandomSource=void 0;var vdn=m6t(),wdn=u6(),y6t=qp();Au.defaultRandomSource=new vdn.SystemRandomSource;function qpe(r,e=Au.defaultRandomSource){return e.randomBytes(r)}Au.randomBytes=qpe;function xdn(r=Au.defaultRandomSource){let e=qpe(4,r),t=(0,wdn.readUint32LE)(e);return(0,y6t.wipe)(e),t}Au.randomUint32=xdn;var g6t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function b6t(r,e=g6t,t=Au.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=qpe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";d();p();Object.defineProperty(yg,"__esModule",{value:!0});var _H=u6(),xH=qp();yg.DIGEST_LENGTH=32;yg.BLOCK_SIZE=64;var v6t=function(){function r(){this.digestLength=yg.DIGEST_LENGTH,this.blockSize=yg.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){xH.wipe(this._buffer),xH.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(Fpe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=Fpe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){xH.wipe(e.state),e.buffer&&xH.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();yg.SHA256=v6t;var Tdn=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 Fpe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],h=e[6],f=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=_H.readUint32BE(t,y)}for(var m=16;m<64;m++){var E=r[m-2],I=(E>>>17|E<<32-17)^(E>>>19|E<<32-19)^E>>>10;E=r[m-15];var S=(E>>>7|E<<32-7)^(E>>>18|E<<32-18)^E>>>3;r[m]=(I+r[m-7]|0)+(S+r[m-16]|0)}for(var m=0;m<64;m++){var I=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&h)|0)+(f+(Tdn[m]+r[m]|0)|0)|0,S=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;f=h,h=l,l=u,u=c+I|0,c=o,o=s,s=i,i=I+S|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=h,e[7]+=f,n+=64,a-=64}return n}function Edn(r){var e=new v6t;e.update(r);var t=e.digest();return e.clean(),t}yg.hash=Edn});var E6t=_(ms=>{"use strict";d();p();Object.defineProperty(ms,"__esModule",{value:!0});ms.sharedKey=ms.generateKeyPair=ms.generateKeyPairFromSeed=ms.scalarMultBase=ms.scalarMult=ms.SHARED_KEY_LENGTH=ms.SECRET_KEY_LENGTH=ms.PUBLIC_KEY_LENGTH=void 0;var Cdn=mS(),Idn=qp();ms.PUBLIC_KEY_LENGTH=32;ms.SECRET_KEY_LENGTH=32;ms.SHARED_KEY_LENGTH=32;function Sm(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,yS(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function Sdn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function TH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function EH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function ry(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,F=0,W=0,G=0,K=0,H=0,V=0,J=0,q=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],ze=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*ze,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,F+=n*ze,W+=n*ve,G+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,F+=n*me,W+=n*ze,G+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,F+=n*ge,W+=n*me,G+=n*ze,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,G+=n*me,K+=n*ze,H+=n*ve,V+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,G+=n*ge,K+=n*me,H+=n*ze,V+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,F+=n*ue,W+=n*he,G+=n*ke,K+=n*ge,H+=n*me,V+=n*ze,J+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,F+=n*ie,W+=n*ue,G+=n*he,K+=n*ke,H+=n*ge,V+=n*me,J+=n*ze,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,F+=n*X,W+=n*ie,G+=n*ue,K+=n*he,H+=n*ke,V+=n*ge,J+=n*me,q+=n*ze,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,F+=n*j,W+=n*X,G+=n*ie,K+=n*ue,H+=n*he,V+=n*ke,J+=n*ge,q+=n*me,T+=n*ze,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,F+=n*ee,W+=n*j,G+=n*X,K+=n*ie,H+=n*ue,V+=n*he,J+=n*ke,q+=n*ge,T+=n*me,P+=n*ze,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,F+=n*z,W+=n*ee,G+=n*j,K+=n*X,H+=n*ie,V+=n*ue,J+=n*he,q+=n*ke,T+=n*ge,P+=n*me,A+=n*ze,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,F+=n*C,W+=n*z,G+=n*ee,K+=n*j,H+=n*X,V+=n*ie,J+=n*ue,q+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*ze,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*C,G+=n*z,K+=n*ee,H+=n*j,V+=n*X,J+=n*ie,q+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*ze,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,G+=n*C,K+=n*z,H+=n*ee,V+=n*j,J+=n*X,q+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*ze,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,G+=n*U,K+=n*C,H+=n*z,V+=n*ee,J+=n*j,q+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*ze,B+=n*ve,x+=n*Ae,i+=38*G,s+=38*K,o+=38*H,c+=38*V,u+=38*J,l+=38*q,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=F,r[15]=W}function gS(r,e){ry(r,e,e)}function Pdn(r,e){let t=Sm();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)gS(t,t),n!==2&&n!==4&&ry(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function Upe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=Sm(),i=Sm(),s=Sm(),o=Sm(),c=Sm(),u=Sm();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,Sdn(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;yS(a,i,y),yS(s,o,y),TH(c,a,s),EH(a,a,s),TH(s,i,o),EH(i,i,o),gS(o,c),gS(u,a),ry(a,s,a),ry(s,i,c),TH(c,a,s),EH(a,a,s),gS(i,a),EH(s,o,u),ry(a,s,kdn),TH(a,a,o),ry(s,s,a),ry(a,o,u),ry(o,i,n),gS(i,c),yS(a,i,y),yS(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),h=n.subarray(16);Pdn(l,l),ry(h,h,l);let f=new Uint8Array(32);return Adn(f,h),f}ms.scalarMult=Upe;function _6t(r){return Upe(r,x6t)}ms.scalarMultBase=_6t;function T6t(r){if(r.length!==ms.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ms.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:_6t(e),secretKey:e}}ms.generateKeyPairFromSeed=T6t;function Rdn(r){let e=(0,Cdn.randomBytes)(32,r),t=T6t(e);return(0,Idn.wipe)(e),t}ms.generateKeyPair=Rdn;function Mdn(r,e,t=!1){if(r.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=Upe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{d();p()});function k6t(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=ex(r.length);for(let n=0;n{d();p();AN();d4()});var S6t={};cr(S6t,{compare:()=>C6t,concat:()=>h4,equals:()=>KQ,fromString:()=>wh,toString:()=>Xf,xor:()=>k6t});var P6t=ce(()=>{d();p();I6t();uv();qN();cv();tx();A6t()});var R6t=_(CH=>{"use strict";d();p();Object.defineProperty(CH,"__esModule",{value:!0});CH.delay=void 0;function Ndn(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}CH.delay=Ndn});var M6t=_(d6=>{"use strict";d();p();Object.defineProperty(d6,"__esModule",{value:!0});d6.ONE_THOUSAND=d6.ONE_HUNDRED=void 0;d6.ONE_HUNDRED=100;d6.ONE_THOUSAND=1e3});var N6t=_(He=>{"use strict";d();p();Object.defineProperty(He,"__esModule",{value:!0});He.ONE_YEAR=He.FOUR_WEEKS=He.THREE_WEEKS=He.TWO_WEEKS=He.ONE_WEEK=He.THIRTY_DAYS=He.SEVEN_DAYS=He.FIVE_DAYS=He.THREE_DAYS=He.ONE_DAY=He.TWENTY_FOUR_HOURS=He.TWELVE_HOURS=He.SIX_HOURS=He.THREE_HOURS=He.ONE_HOUR=He.SIXTY_MINUTES=He.THIRTY_MINUTES=He.TEN_MINUTES=He.FIVE_MINUTES=He.ONE_MINUTE=He.SIXTY_SECONDS=He.THIRTY_SECONDS=He.TEN_SECONDS=He.FIVE_SECONDS=He.ONE_SECOND=void 0;He.ONE_SECOND=1;He.FIVE_SECONDS=5;He.TEN_SECONDS=10;He.THIRTY_SECONDS=30;He.SIXTY_SECONDS=60;He.ONE_MINUTE=He.SIXTY_SECONDS;He.FIVE_MINUTES=He.ONE_MINUTE*5;He.TEN_MINUTES=He.ONE_MINUTE*10;He.THIRTY_MINUTES=He.ONE_MINUTE*30;He.SIXTY_MINUTES=He.ONE_MINUTE*60;He.ONE_HOUR=He.SIXTY_MINUTES;He.THREE_HOURS=He.ONE_HOUR*3;He.SIX_HOURS=He.ONE_HOUR*6;He.TWELVE_HOURS=He.ONE_HOUR*12;He.TWENTY_FOUR_HOURS=He.ONE_HOUR*24;He.ONE_DAY=He.TWENTY_FOUR_HOURS;He.THREE_DAYS=He.ONE_DAY*3;He.FIVE_DAYS=He.ONE_DAY*5;He.SEVEN_DAYS=He.ONE_DAY*7;He.THIRTY_DAYS=He.ONE_DAY*30;He.ONE_WEEK=He.SEVEN_DAYS;He.TWO_WEEKS=He.ONE_WEEK*2;He.THREE_WEEKS=He.ONE_WEEK*3;He.FOUR_WEEKS=He.ONE_WEEK*4;He.ONE_YEAR=He.ONE_DAY*365});var Hpe=_(IH=>{"use strict";d();p();Object.defineProperty(IH,"__esModule",{value:!0});var B6t=vd();B6t.__exportStar(M6t(),IH);B6t.__exportStar(N6t(),IH)});var O6t=_(p6=>{"use strict";d();p();Object.defineProperty(p6,"__esModule",{value:!0});p6.fromMiliseconds=p6.toMiliseconds=void 0;var D6t=Hpe();function Bdn(r){return r*D6t.ONE_THOUSAND}p6.toMiliseconds=Bdn;function Ddn(r){return Math.floor(r/D6t.ONE_THOUSAND)}p6.fromMiliseconds=Ddn});var q6t=_(kH=>{"use strict";d();p();Object.defineProperty(kH,"__esModule",{value:!0});var L6t=vd();L6t.__exportStar(R6t(),kH);L6t.__exportStar(O6t(),kH)});var F6t=_(bS=>{"use strict";d();p();Object.defineProperty(bS,"__esModule",{value:!0});bS.Watch=void 0;var AH=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};bS.Watch=AH;bS.default=AH});var W6t=_(SH=>{"use strict";d();p();Object.defineProperty(SH,"__esModule",{value:!0});SH.IWatch=void 0;var jpe=class{};SH.IWatch=jpe});var U6t=_(zpe=>{"use strict";d();p();Object.defineProperty(zpe,"__esModule",{value:!0});var Odn=vd();Odn.__exportStar(W6t(),zpe)});var iw=_(h6=>{"use strict";d();p();Object.defineProperty(h6,"__esModule",{value:!0});var PH=vd();PH.__exportStar(q6t(),h6);PH.__exportStar(F6t(),h6);PH.__exportStar(U6t(),h6);PH.__exportStar(Hpe(),h6)});var Y6t=_(Fl=>{"use strict";d();p();var Ldn=Wle(),qdn=Hle(),j6t=jle(),Fdn=zle(),Wdn=r=>r==null,Kpe=Symbol("encodeFragmentIdentifier");function Udn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[",a,"]"].join("")]:[...t,[Bs(e,r),"[",Bs(a,r),"]=",Bs(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),"[]"].join("")]:[...t,[Bs(e,r),"[]=",Bs(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Bs(e,r),":list="].join("")]:[...t,[Bs(e,r),":list=",Bs(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Bs(t,r),e,Bs(a,r)].join("")]:[[n,Bs(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Bs(e,r)]:[...t,[Bs(e,r),"=",Bs(n,r)].join("")]}}function Hdn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&ny(n,r).includes(r.arrayFormatSeparator);n=s?ny(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>ny(c,r)):n===null?n:ny(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&ny(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>ny(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function z6t(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Bs(r,e){return e.encode?e.strict?Ldn(r):encodeURIComponent(r):r}function ny(r,e){return e.decode?qdn(r):r}function K6t(r){return Array.isArray(r)?r.sort():typeof r=="object"?K6t(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function V6t(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function jdn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function G6t(r){r=V6t(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function H6t(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function $6t(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),z6t(e.arrayFormatSeparator);let t=Hdn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=j6t(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:ny(s,e),t(ny(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=H6t(i[s],e);else n[a]=H6t(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=K6t(s):a[i]=s,a},Object.create(null))}Fl.extract=G6t;Fl.parse=$6t;Fl.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),z6t(e.arrayFormatSeparator);let t=s=>e.skipNull&&Wdn(r[s])||e.skipEmptyString&&r[s]==="",n=Udn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Bs(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?Bs(s,e)+"[]":o.reduce(n(s),[]).join("&"):Bs(s,e)+"="+Bs(o,e)}).filter(s=>s.length>0).join("&")};Fl.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=j6t(r,"#");return Object.assign({url:t.split("?")[0]||"",query:$6t(G6t(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:ny(n,e)}:{})};Fl.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[Kpe]:!0},e);let t=V6t(r.url).split("?")[0]||"",n=Fl.extract(r.url),a=Fl.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Fl.stringify(i,e);s&&(s=`?${s}`);let o=jdn(r.url);return r.fragmentIdentifier&&(o=`#${e[Kpe]?Bs(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};Fl.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[Kpe]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=Fl.parseUrl(r,t);return Fl.stringifyUrl({url:n,query:Fdn(a,e),fragmentIdentifier:i},t)};Fl.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Fl.pick(r,n,t)}});var J6t=ce(()=>{d();p()});function gg(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function zdn(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function Kdn(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function Vdn(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function vS(r,e,t){return(!t.length?Kdn(r,e.length):Vdn(r,e.length))?zdn(r,e):!1}function wS(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var Vpe=ce(()=>{d();p()});function Gdn(r){return RH(r.method)&&MH(r.params)}function RH(r){return wS(r,"subscribe")}function MH(r){return vS(r,["topic"],[])}function $dn(r){return NH(r.method)&&BH(r.params)}function NH(r){return wS(r,"publish")}function BH(r){return vS(r,["message","topic","ttl"],["prompt","tag"])}function Ydn(r){return DH(r.method)&&OH(r.params)}function DH(r){return wS(r,"unsubscribe")}function OH(r){return vS(r,["id","topic"],[])}function Jdn(r){return LH(r.method)&&qH(r.params)}function LH(r){return wS(r,"subscription")}function qH(r){return vS(r,["id","data"],[])}var Gpe=ce(()=>{d();p();Vpe()});function Qdn(r){if(!RH(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!MH(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return gg(e,"topic"),e}function Zdn(r){if(!NH(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!BH(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return gg(e,"topic"),gg(e,"message"),gg(e,"ttl","number"),e}function Xdn(r){if(!DH(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!OH(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return gg(e,"id"),e}function epn(r){if(!LH(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!qH(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return gg(e,"id"),gg(e,"data"),e}var Q6t=ce(()=>{d();p();Vpe();Gpe()});var tpn,Z6t=ce(()=>{d();p();tpn={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var X6t={};cr(X6t,{RELAY_JSONRPC:()=>tpn,isPublishMethod:()=>NH,isPublishParams:()=>BH,isPublishRequest:()=>$dn,isSubscribeMethod:()=>RH,isSubscribeParams:()=>MH,isSubscribeRequest:()=>Gdn,isSubscriptionMethod:()=>LH,isSubscriptionParams:()=>qH,isSubscriptionRequest:()=>Jdn,isUnsubscribeMethod:()=>DH,isUnsubscribeParams:()=>OH,isUnsubscribeRequest:()=>Ydn,parsePublishRequest:()=>Zdn,parseSubscribeRequest:()=>Qdn,parseSubscriptionRequest:()=>epn,parseUnsubscribeRequest:()=>Xdn});var eEt=ce(()=>{d();p();J6t();Q6t();Z6t();Gpe()});var ES=_(we=>{"use strict";d();p();Object.defineProperty(we,"__esModule",{value:!0});var cEt=i6t(),rpn=d6t(),uEt=mS(),Jpe=w6t(),npn=E6t(),Mi=(P6t(),rt(S6t)),apn=kle(),m6=iw(),xS=MU(),ipn=Lle(),spn=Y6t(),opn=(eEt(),rt(X6t));function lEt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var dEt=lEt(npn),FH=lEt(spn),HH=":";function pEt(r){let[e,t]=r.split(HH);return{namespace:e,reference:t}}function hEt(r){let{namespace:e,reference:t}=r;return[e,t].join(HH)}function Qpe(r){let[e,t,n]=r.split(HH);return{namespace:e,reference:t,address:n}}function fEt(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join(HH)}function Zpe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function mEt(r){let{address:e}=Qpe(r);return e}function yEt(r){let{namespace:e,reference:t}=Qpe(r);return hEt({namespace:e,reference:t})}function cpn(r,e){let{namespace:t,reference:n}=pEt(e);return fEt({namespace:t,reference:n,address:r})}function upn(r){return Zpe(r,mEt)}function gEt(r){return Zpe(r,yEt)}function lpn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function dpn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...gEt(a.accounts))}),t}function ppn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...jH(n,a))}),t}function jH(r,e){return r.includes(":")?[r]:e.chains||[]}var zH=r=>r?.split(":"),bEt=r=>{let e=r&&zH(r);if(e)return e[3]},hpn=r=>{let e=r&&zH(r);if(e)return e[2]+":"+e[3]},vEt=r=>{let e=r&&zH(r);if(e)return e.pop()},fpn=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=vEt(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${bEt(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: +`,Zba=typeof Symbol<"u"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator",Xba=typeof Symbol<"u"?Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")):"@@asyncIterator";function wln(r,e){try{var t=r()}catch(n){return e(n)}return t&&t.then?t.then(void 0,e):t}var _ln="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",xln="WalletConnect",Tln=300,Eln="rgb(64, 153, 255)",i6t="walletconnect-wrapper",t6t="walletconnect-style-sheet",s6t="walletconnect-qrcode-modal",Cln="walletconnect-qrcode-close",o6t="walletconnect-qrcode-text",Iln="walletconnect-connect-button";function kln(r){return ze.createElement("div",{className:"walletconnect-modal__header"},ze.createElement("img",{src:_ln,className:"walletconnect-modal__headerLogo"}),ze.createElement("p",null,xln),ze.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:r.onClose},ze.createElement("div",{id:Cln,className:"walletconnect-modal__close__icon"},ze.createElement("div",{className:"walletconnect-modal__close__line1"}),ze.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function Aln(r){return ze.createElement("a",{className:"walletconnect-connect__button",href:r.href,id:Iln+"-"+r.name,onClick:r.onClick,rel:"noopener noreferrer",style:{backgroundColor:r.color},target:"_blank"},r.name)}var Sln="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 Pln(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick;return ze.createElement("a",{className:"walletconnect-modal__base__row",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("h3",{className:"walletconnect-modal__base__row__h3"},n),ze.createElement("div",{className:"walletconnect-modal__base__row__right"},ze.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("img",{src:Sln,className:"walletconnect-modal__base__row__right__caret"})))}function Rln(r){var e=r.color,t=r.href,n=r.name,a=r.logo,i=r.onClick,s=window.innerWidth<768?(n.length>8?2.5:2.7)+"vw":"inherit";return ze.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:t,onClick:i,rel:"noopener noreferrer",target:"_blank"},ze.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+a+"') "+e,backgroundSize:"100%"}}),ze.createElement("div",{style:{fontSize:s},className:"walletconnect-connect__button__text"},n))}var Mln=5,Npe=12;function Nln(r){var e=tl.isAndroid(),t=ze.useState(""),n=t[0],a=t[1],i=ze.useState(""),s=i[0],o=i[1],c=ze.useState(1),u=c[0],l=c[1],h=s?r.links.filter(function(W){return W.name.toLowerCase().includes(s.toLowerCase())}):r.links,f=r.errorMessage,m=s||h.length>Mln,y=Math.ceil(h.length/Npe),E=[(u-1)*Npe+1,u*Npe],I=h.length?h.filter(function(W,V){return V+1>=E[0]&&V+1<=E[1]}):[],S=!e&&y>1,L=void 0;function F(W){a(W.target.value),clearTimeout(L),W.target.value?L=setTimeout(function(){o(W.target.value),l(1)},1e3):(a(""),o(""),l(1))}return ze.createElement("div",null,ze.createElement("p",{id:o6t,className:"walletconnect-qrcode__text"},e?r.text.connect_mobile_wallet:r.text.choose_preferred_wallet),!e&&ze.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:n,onChange:F}),ze.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(e?"__android":m&&h.length?"__wrap":"")},e?ze.createElement(Aln,{name:r.text.connect,color:Eln,href:r.uri,onClick:ze.useCallback(function(){tl.saveMobileLinkInfo({name:"Unknown",href:r.uri})},[])}):I.length?I.map(function(W){var V=W.color,K=W.name,H=W.shortName,G=W.logo,J=tl.formatIOSMobile(r.uri,W),q=ze.useCallback(function(){tl.saveMobileLinkInfo({name:K,href:J})},[I]);return m?ze.createElement(Rln,{color:V,href:J,name:H||K,logo:G,onClick:q}):ze.createElement(Pln,{color:V,href:J,name:K,logo:G,onClick:q})}):ze.createElement(ze.Fragment,null,ze.createElement("p",null,f.length?r.errorMessage:!!r.links.length&&!h.length?r.text.no_wallets_found:r.text.loading))),S&&ze.createElement("div",{className:"walletconnect-modal__footer"},Array(y).fill(0).map(function(W,V){var K=V+1,H=u===K;return ze.createElement("a",{style:{margin:"auto 10px",fontWeight:H?"bold":"normal"},onClick:function(){return l(K)}},K)})))}function Bln(r){var e=!!r.message.trim();return ze.createElement("div",{className:"walletconnect-qrcode__notification"+(e?" notification__show":"")},r.message)}var Dln=function(r){try{var e="";return Promise.resolve(a6t.toString(r,{margin:0,type:"svg"})).then(function(t){return typeof t=="string"&&(e=t.replace("0||ze.useEffect(function(){var P=function(){try{if(e)return Promise.resolve();s(!0);var A=wln(function(){var v=r.qrcodeModalOptions&&r.qrcodeModalOptions.registryUrl?r.qrcodeModalOptions.registryUrl:tl.getWalletRegistryUrl();return Promise.resolve(fetch(v)).then(function(k){return Promise.resolve(k.json()).then(function(O){var D=O.listings,B=t?"mobile":"desktop",_=tl.getMobileLinkRegistry(tl.formatMobileRegistry(D,B),n);s(!1),u(!0),J(_.length?"":r.text.no_supported_wallets),K(_);var N=_.length===1;N&&(I(tl.formatIOSMobile(r.uri,_[0])),f(!0)),F(N)})})},function(v){s(!1),u(!0),J(r.text.something_went_wrong),console.error(v)});return Promise.resolve(A&&A.then?A.then(function(){}):void 0)}catch(v){return Promise.reject(v)}};P()})};q();var T=t?h:!h;return ze.createElement("div",{id:s6t,className:"walletconnect-qrcode__base animated fadeIn"},ze.createElement("div",{className:"walletconnect-modal__base"},ze.createElement(kln,{onClose:r.onClose}),L&&h?ze.createElement("div",{className:"walletconnect-modal__single_wallet"},ze.createElement("a",{onClick:function(){return tl.saveMobileLinkInfo({name:V[0].name,href:E})},href:E,rel:"noopener noreferrer",target:"_blank"},r.text.connect_with+" "+(L?V[0].name:"")+" \u203A")):e||i||!i&&V.length?ze.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(T?" right__selected":"")},ze.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),t?ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.mobile),ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode)):ze.createElement(ze.Fragment,null,ze.createElement("a",{onClick:function(){return f(!0)}},r.text.qrcode),ze.createElement("a",{onClick:function(){return f(!1),q()}},r.text.desktop))):null,ze.createElement("div",null,h||!e&&!i&&!V.length?ze.createElement(Oln,Object.assign({},m)):ze.createElement(Nln,Object.assign({},m,{links:V,errorMessage:G})))))}var qln={choose_preferred_wallet:"W\xE4hle 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\xFCtzten Wallet",no_wallets_found:"keine Wallet gefunden"},Fln={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"},Wln={choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xF3vil",scan_qrcode_with_wallet:"Escanea el c\xF3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xF3 mal",no_supported_wallets:"Todav\xEDa no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},Uln={choose_preferred_wallet:"Choisissez votre portefeuille pr\xE9f\xE9r\xE9",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\xE9!",connect_with:"Connectez-vous \xE0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xE9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xE9"},Hln={choose_preferred_wallet:"\uC6D0\uD558\uB294 \uC9C0\uAC11\uC744 \uC120\uD0DD\uD558\uC138\uC694",connect_mobile_wallet:"\uBAA8\uBC14\uC77C \uC9C0\uAC11\uACFC \uC5F0\uACB0",scan_qrcode_with_wallet:"WalletConnect \uC9C0\uC6D0 \uC9C0\uAC11\uC5D0\uC11C QR\uCF54\uB4DC\uB97C \uC2A4\uCE94\uD558\uC138\uC694",connect:"\uC5F0\uACB0",qrcode:"QR \uCF54\uB4DC",mobile:"\uBAA8\uBC14\uC77C",desktop:"\uB370\uC2A4\uD06C\uD0D1",copy_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC",copied_to_clipboard:"\uD074\uB9BD\uBCF4\uB4DC\uC5D0 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4!",connect_with:"\uC640 \uC5F0\uACB0\uD558\uB2E4",loading:"\uB85C\uB4DC \uC911...",something_went_wrong:"\uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC2B5\uB2C8\uB2E4.",no_supported_wallets:"\uC544\uC9C1 \uC9C0\uC6D0\uB418\uB294 \uC9C0\uAC11\uC774 \uC5C6\uC2B5\uB2C8\uB2E4",no_wallets_found:"\uC9C0\uAC11\uC744 \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4"},jln={choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xE0 carteira m\xF3vel",scan_qrcode_with_wallet:"Ler o c\xF3digo QR com uma carteira compat\xEDvel com WalletConnect",connect:"Conectar",qrcode:"C\xF3digo QR",mobile:"M\xF3vel",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\xE3o h\xE1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zln={choose_preferred_wallet:"\u9009\u62E9\u4F60\u7684\u94B1\u5305",connect_mobile_wallet:"\u8FDE\u63A5\u81F3\u79FB\u52A8\u7AEF\u94B1\u5305",scan_qrcode_with_wallet:"\u4F7F\u7528\u517C\u5BB9 WalletConnect \u7684\u94B1\u5305\u626B\u63CF\u4E8C\u7EF4\u7801",connect:"\u8FDE\u63A5",qrcode:"\u4E8C\u7EF4\u7801",mobile:"\u79FB\u52A8",desktop:"\u684C\u9762",copy_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F",copied_to_clipboard:"\u590D\u5236\u5230\u526A\u8D34\u677F\u6210\u529F\uFF01",connect_with:"\u901A\u8FC7\u4EE5\u4E0B\u65B9\u5F0F\u8FDE\u63A5",loading:"\u6B63\u5728\u52A0\u8F7D...",something_went_wrong:"\u51FA\u4E86\u95EE\u9898",no_supported_wallets:"\u76EE\u524D\u8FD8\u6CA1\u6709\u652F\u6301\u7684\u94B1\u5305",no_wallets_found:"\u6CA1\u6709\u627E\u5230\u94B1\u5305"},Kln={choose_preferred_wallet:"\u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0631\u062F \u0646\u0638\u0631 \u062E\u0648\u062F \u0631\u0627 \u0627\u0646\u062A\u062E\u0627\u0628 \u06A9\u0646\u06CC\u062F",connect_mobile_wallet:"\u0628\u0647 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0645\u0648\u0628\u0627\u06CC\u0644 \u0648\u0635\u0644 \u0634\u0648\u06CC\u062F",scan_qrcode_with_wallet:"\u06A9\u062F QR \u0631\u0627 \u0628\u0627 \u06CC\u06A9 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u0633\u0627\u0632\u06AF\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06A9\u0646 \u06A9\u0646\u06CC\u062F",connect:"\u0627\u062A\u0635\u0627\u0644",qrcode:"\u06A9\u062F QR",mobile:"\u0633\u06CC\u0627\u0631",desktop:"\u062F\u0633\u06A9\u062A\u0627\u067E",copy_to_clipboard:"\u06A9\u067E\u06CC \u0628\u0647 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F",copied_to_clipboard:"\u062F\u0631 \u06A9\u0644\u06CC\u067E \u0628\u0648\u0631\u062F \u06A9\u067E\u06CC \u0634\u062F!",connect_with:"\u0627\u0631\u062A\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC",something_went_wrong:"\u0645\u0634\u06A9\u0644\u06CC \u067E\u06CC\u0634 \u0622\u0645\u062F",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644 \u067E\u0634\u062A\u06CC\u0628\u0627\u0646\u06CC \u0634\u062F\u0647 \u0627\u06CC \u0648\u062C\u0648\u062F \u0646\u062F\u0627\u0631\u062F",no_wallets_found:"\u0647\u06CC\u0686 \u06A9\u06CC\u0641 \u067E\u0648\u0644\u06CC \u067E\u06CC\u062F\u0627 \u0646\u0634\u062F"},r6t={de:qln,en:Fln,es:Wln,fr:Uln,ko:Hln,pt:jln,zh:zln,fa:Kln};function Gln(){var r=tl.getDocumentOrThrow(),e=r.getElementById(t6t);e&&r.head.removeChild(e);var t=r.createElement("style");t.setAttribute("id",t6t),t.innerText=vln,r.head.appendChild(t)}function Vln(){var r=tl.getDocumentOrThrow(),e=r.createElement("div");return e.setAttribute("id",i6t),r.body.appendChild(e),e}function c6t(){var r=tl.getDocumentOrThrow(),e=r.getElementById(s6t);e&&(e.className=e.className.replace("fadeIn","fadeOut"),setTimeout(function(){var t=r.getElementById(i6t);t&&r.body.removeChild(t)},Tln))}function $ln(r){return function(){c6t(),r&&r()}}function Yln(){var r=tl.getNavigatorOrThrow().language.split("-")[0]||"en";return r6t[r]||r6t.en}function Jln(r,e,t){Gln();var n=Vln();ze.render(ze.createElement(Lln,{text:Yln(),uri:r,onClose:$ln(e),qrcodeModalOptions:t}),n)}function Qln(){c6t()}var u6t=function(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"};function Zln(r,e,t){console.log(r),u6t()?bln(r):Jln(r,e,t)}function Xln(){u6t()||Qln()}var edn={open:Zln,close:Xln};l6t.exports=edn});var h6t,Dpe,tdn,rdn,d6t,p6t,AH,f6t,Ope=ce(()=>{d();p();h6t=on(Bu()),Dpe=on(tn());v6();X0();tdn={Accept:"application/json","Content-Type":"application/json"},rdn="POST",d6t={headers:tdn,method:rdn},p6t=10,AH=class{constructor(e){if(this.url=e,this.events=new h6t.EventEmitter,this.isAvailable=!1,this.registering=!1,!FU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);this.url=e}get connected(){return this.isAvailable}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}async send(e,t){this.isAvailable||await this.register();try{let n=Mm(e),i=await(await(0,Dpe.default)(this.url,Object.assign(Object.assign({},d6t),{body:n}))).json();this.onPayload({data:i})}catch(n){this.onError(e.id,n)}}async register(e=this.url){if(!FU(e))throw new Error(`Provided URL is not compatible with HTTP connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.isAvailable>"u")return a(new Error("HTTP connection is missing or invalid"));n()})})}this.url=e,this.registering=!0;try{let t=Mm({id:1,jsonrpc:"2.0",method:"test",params:[]});await(0,Dpe.default)(e,Object.assign(Object.assign({},d6t),{body:t})),this.onOpen()}catch(t){let n=this.parseError(t);throw this.events.emit("register_error",n),this.onClose(),n}}onOpen(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}onClose(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?ty(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=sS(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return iS(e,t,"HTTP")}resetMaxListeners(){this.events.getMaxListeners()>p6t&&this.events.setMaxListeners(p6t)}},f6t=AH});var SH={};cr(SH,{HttpConnection:()=>AH,default:()=>ndn});var ndn,PH=ce(()=>{d();p();Ope();Ope();ndn=f6t});var m6t,RH,y6t,Lpe=ce(()=>{d();p();m6t=on(Bu());X0();RH=class extends h6{constructor(e){super(e),this.events=new m6t.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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async request(e,t){return this.requestStrict(kle(e.method,e.params||[]),t)}async requestStrict(e,t){return new Promise(async(n,a)=>{if(!this.connection.connected)try{await this.open()}catch(i){a(i)}this.events.on(`${e.id}`,i=>{UU(i)?a(i.error):n(i.result)});try{await this.connection.send(e,t)}catch(i){a(i)}})}setConnection(e=this.connection){return e}onPayload(e){this.events.emit("payload",e),Ple(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.hasRegisteredEventListeners=!0)}},y6t=RH});var AS={};cr(AS,{JsonRpcProvider:()=>RH,default:()=>adn});var adn,SS=ce(()=>{d();p();Lpe();Lpe();adn=y6t});var _6t=x(w6t=>{"use strict";d();p();var xd=Zo(),idn=(IU(),nt(xle)),g6t=(X0(),nt(to)),sdn=(npe(),nt(rpe)),odn=Bpe(),cdn=Qe(),udn=(PH(),nt(SH)),b6t=(SS(),nt(AS)),ldn=(nw(),nt(Ule)),ddn=(ry(),nt(uH));function Wpe(r){return r&&r.__esModule?r:{default:r}}var pdn=Wpe(sdn),hdn=Wpe(odn),v6t=Wpe(cdn),qpe=class extends idn.IJsonRpcConnection{constructor(e){super(),xd._defineProperty(this,"events",new v6t.default),xd._defineProperty(this,"accounts",[]),xd._defineProperty(this,"chainId",1),xd._defineProperty(this,"pending",!1),xd._defineProperty(this,"wc",void 0),xd._defineProperty(this,"bridge","https://bridge.walletconnect.org"),xd._defineProperty(this,"qrcode",!0),xd._defineProperty(this,"qrcodeModalOptions",void 0),xd._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),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(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",g6t.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?hdn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new pdn.default(t),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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}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(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.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,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?g6t.formatJsonRpcError(e.id,e.error.message):e}},fdn=qpe,Fpe=class{constructor(e){xd._defineProperty(this,"events",new v6t.default),xd._defineProperty(this,"rpc",void 0),xd._defineProperty(this,"signer",void 0),xd._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new b6t.JsonRpcProvider(new fdn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),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(){return(this.http?.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(ldn.SIGNING_METHODS.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)}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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}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.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=ddn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new b6t.JsonRpcProvider(new udn.HttpConnection(t))}};w6t.default=Fpe});var C6t=x(zpe=>{"use strict";d();p();Object.defineProperty(zpe,"__esModule",{value:!0});var MH=bm(),Oa=vm(),nf=Zo(),I6=je(),PS=eT(),x6t=tT();Yu();vt();Qe();var Upe="last-used-chain-id",Hpe="last-session",Bs=new WeakMap,Tg=new WeakMap,T6t=new WeakSet,E6t=new WeakSet,jpe=class extends PS.Connector{constructor(e){super(e),MH._classPrivateMethodInitSpec(this,E6t),MH._classPrivateMethodInitSpec(this,T6t),nf._defineProperty(this,"id","walletConnectV1"),nf._defineProperty(this,"name","WalletConnectV1"),nf._defineProperty(this,"ready",!0),Oa._classPrivateFieldInitSpec(this,Bs,{writable:!0,value:void 0}),Oa._classPrivateFieldInitSpec(this,Tg,{writable:!0,value:void 0}),nf._defineProperty(this,"walletName",void 0),nf._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),nf._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),nf._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),nf._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),nf._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:I6.utils.getAddress(t[0])})}),nf._defineProperty(this,"onChainChanged",t=>{let n=x6t.normalizeChainId(t),a=this.isChainUnsupported(n);Oa._classPrivateFieldGet(this,Tg).setItem(Upe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),nf._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,Oa._classPrivateFieldGet(this,Tg).removeItem(Upe),Oa._classPrivateFieldGet(this,Tg).removeItem(Hpe),MH._classPrivateMethodGet(this,E6t,ydn).call(this),this.emit("disconnect")}),Oa._classPrivateFieldSet(this,Tg,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await Oa._classPrivateFieldGet(this,Tg).getItem(Upe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=I6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return MH._classPrivateMethodGet(this,T6t,mdn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new I6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new PS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return I6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return x6t.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!Oa._classPrivateFieldGet(this,Bs)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return _6t()})).default,i=await Oa._classPrivateFieldGet(this,Tg).getItem(Hpe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,Oa._classPrivateFieldSet(this,Bs,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return Oa._classPrivateFieldGet(this,Bs)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new I6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=I6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new PS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new PS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new PS.SwitchChainError(a)}}async setupListeners(){!Oa._classPrivateFieldGet(this,Bs)||(Oa._classPrivateFieldGet(this,Bs).on("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Bs).on("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Bs).on("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Bs).on("message",this.onMessage),Oa._classPrivateFieldGet(this,Bs).on("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Bs).on("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Bs).on("call_request_sent",this.onRequestSent))}};async function mdn(){let r=Oa._classPrivateFieldGet(this,Bs)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);Oa._classPrivateFieldGet(this,Tg).setItem(Hpe,e)}function ydn(){!Oa._classPrivateFieldGet(this,Bs)||(Oa._classPrivateFieldGet(this,Bs).removeListener("accountsChanged",this.onAccountsChanged),Oa._classPrivateFieldGet(this,Bs).removeListener("chainChanged",this.onChainChanged),Oa._classPrivateFieldGet(this,Bs).removeListener("disconnect",this.onDisconnect),Oa._classPrivateFieldGet(this,Bs).removeListener("message",this.onMessage),Oa._classPrivateFieldGet(this,Bs).removeListener("switchChain",this.onSwitchChain),Oa._classPrivateFieldGet(this,Bs).removeListener("display_uri",this.onDisplayUri),Oa._classPrivateFieldGet(this,Bs).removeListener("call_request_sent",this.onRequestSent))}zpe.WalletConnectV1Connector=jpe});var A6t=x(Kpe=>{"use strict";d();p();Object.defineProperty(Kpe,"__esModule",{value:!0});var k6=Zo(),I6t=Xx(),k6t=Qx();bm();Yu();vt();z1();je();Qe();var pw=class extends I6t.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(pw.id,e),k6._defineProperty(this,"connector",void 0),k6._defineProperty(this,"connectorStorage",void 0),k6._defineProperty(this,"isInjected",void 0),k6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage||I6t.createAsyncLocalStorage("connector"),this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return c5t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new k6t.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return C6t()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=t,this.connector=new k6t.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};k6._defineProperty(pw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});k6._defineProperty(pw,"id","metamask");Kpe.MetaMask=pw});var S6t=x(Ype=>{"use strict";d();p();Object.defineProperty(Ype,"__esModule",{value:!0});var Gpe=Sm(),gdn=rc(),NH=o6(),bdn=hle(),vdn=je(),wdn=ule();el();vt();Qe();c6();var Vpe=new WeakMap,$pe=class extends bdn.InjectedConnector{constructor(e){let n={...{name:"MetaMask",shimDisconnect:!0,shimChainChangedDisconnect:!0,getProvider(){function a(i){if(!!i?.isMetaMask&&!(i.isBraveWallet&&!i._events&&!i._state)&&!i.isAvalanche&&!i.isKuCoinWallet&&!i.isPortal&&!i.isTokenPocket&&!i.isTokenary)return i}if(!(typeof window>"u")&&wdn.assertWindowEthereum(globalThis.window))return globalThis.window.ethereum?.providers?globalThis.window.ethereum.providers.find(a):a(globalThis.window.ethereum)}},...e.options};super({chains:e.chains,options:n,connectorStorage:e.connectorStorage}),gdn._defineProperty(this,"id","metaMask"),Gpe._classPrivateFieldInitSpec(this,Vpe,{writable:!0,value:void 0}),Gpe._classPrivateFieldSet(this,Vpe,n.UNSTABLE_shimOnConnectSelectAccount)}async connect(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=await this.getProvider();if(!t)throw new NH.ConnectorNotFoundError;this.setupListeners(),this.emit("message",{type:"connecting"});let n=null;if(Gpe._classPrivateFieldGet(this,Vpe)&&this.options?.shimDisconnect&&!Boolean(this.connectorStorage.getItem(this.shimDisconnectKey))&&(n=await this.getAccount().catch(()=>null),!!n))try{await t.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]})}catch(c){if(this.isUserRejectedRequestError(c))throw new NH.UserRejectedRequestError(c)}if(!n){let o=await t.request({method:"eth_requestAccounts"});n=vdn.utils.getAddress(o[0])}let a=await this.getChainId(),i=this.isChainUnsupported(a);if(e.chainId&&a!==e.chainId)try{await this.switchChain(e.chainId),a=e.chainId,i=this.isChainUnsupported(e.chainId)}catch(o){console.error(`Could not switch to chain id : ${e.chainId}`,o)}this.options?.shimDisconnect&&await this.connectorStorage.setItem(this.shimDisconnectKey,"true");let s={chain:{id:a,unsupported:i},provider:t,account:n};return this.emit("connect",s),s}catch(t){throw this.isUserRejectedRequestError(t)?new NH.UserRejectedRequestError(t):t.code===-32002?new NH.ResourceUnavailableError(t):t}}};Ype.MetaMaskConnector=$pe});var B6t=x(N6t=>{"use strict";d();p();var Td=rc(),_dn=(IU(),nt(xle)),P6t=(X0(),nt(to)),xdn=(npe(),nt(rpe)),Tdn=Bpe(),Edn=Qe(),Cdn=(PH(),nt(SH)),R6t=(SS(),nt(AS)),Idn=(nw(),nt(Ule)),kdn=(ry(),nt(uH));function Zpe(r){return r&&r.__esModule?r:{default:r}}var Adn=Zpe(xdn),Sdn=Zpe(Tdn),M6t=Zpe(Edn),Jpe=class extends _dn.IJsonRpcConnection{constructor(e){super(),Td._defineProperty(this,"events",new M6t.default),Td._defineProperty(this,"accounts",[]),Td._defineProperty(this,"chainId",1),Td._defineProperty(this,"pending",!1),Td._defineProperty(this,"wc",void 0),Td._defineProperty(this,"bridge","https://bridge.walletconnect.org"),Td._defineProperty(this,"qrcode",!0),Td._defineProperty(this,"qrcodeModalOptions",void 0),Td._defineProperty(this,"opts",void 0),this.opts=e,this.chainId=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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e){if(this.connected){this.onOpen();return}return new Promise((t,n)=>{this.on("error",a=>{n(a)}),this.on("open",()=>{t()}),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(t=>this.events.emit("payload",t)).catch(t=>this.events.emit("payload",P6t.formatJsonRpcError(e.id,t.message)))}async sendAsync(e){console.log("sendAsync",e)}register(e){if(this.wc)return this.wc;this.opts=e||this.opts,this.bridge=e?.connector?e.connector.bridge:e?.bridge||"https://bridge.walletconnect.org",this.qrcode=typeof e?.qrcode>"u"||e.qrcode!==!1,this.chainId=typeof e?.chainId<"u"?e.chainId:this.chainId,this.qrcodeModalOptions=e?.qrcodeModalOptions;let t={bridge:this.bridge,qrcodeModal:this.qrcode?Sdn.default:void 0,qrcodeModalOptions:this.qrcodeModalOptions,storageId:e?.storageId,signingMethods:e?.signingMethods,clientMeta:e?.clientMeta,session:e?.session};if(this.wc=typeof e?.connector<"u"?e.connector:new Adn.default(t),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){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Failed or Rejected Request",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:-32e3,a={id:e.id,jsonrpc:e.jsonrpc,error:{code:n,message:t}};return this.events.emit("payload",a),a}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(t=>this.events.emit("error",t)))}registerConnectorEvents(){this.wc=this.register(this.opts),this.wc.on("connect",e=>{if(e){this.events.emit("error",e);return}this.accounts=this.wc?.accounts||[],this.chainId=this.wc?.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,t)=>{let{accounts:n,chainId:a}=t.params[0];(!this.accounts||n&&this.accounts!==n)&&(this.accounts=n,this.events.emit("accountsChanged",n)),(!this.chainId||a&&this.chainId!==a)&&(this.chainId=a,this.events.emit("chainChanged",a))})}async sendPayload(e){this.wc=this.register(this.opts);try{let t=await this.wc.unsafeSend(e);return this.sanitizeResponse(t)}catch(t){return this.onError(e,t.message)}}sanitizeResponse(e){return typeof e.error<"u"&&typeof e.error.code>"u"?P6t.formatJsonRpcError(e.id,e.error.message):e}},Pdn=Jpe,Qpe=class{constructor(e){Td._defineProperty(this,"events",new M6t.default),Td._defineProperty(this,"rpc",void 0),Td._defineProperty(this,"signer",void 0),Td._defineProperty(this,"http",void 0),this.rpc={infuraId:e?.infuraId,custom:e?.rpc},this.signer=new R6t.JsonRpcProvider(new Pdn(e));let t=this.signer.connection.chainId||e?.chainId||1;this.http=this.setHttpProvider(t),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(){return(this.http?.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(Idn.SIGNING_METHODS.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)}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,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}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.connector.on("display_uri",(e,t)=>{console.log("legacy.onDisplayUri",e,t),this.events.emit("display_uri",e,t)}),this.connector.on("call_request_sent",(e,t)=>{console.log("legacy.call_request_sent",e,t),this.events.emit("call_request_sent",e,t)}),this.signer.on("disconnect",()=>{this.events.emit("disconnect")})}setHttpProvider(e){let t=kdn.getRpcUrl(e,this.rpc);return typeof t>"u"?void 0:new R6t.JsonRpcProvider(new Cdn.HttpConnection(t))}};N6t.default=Qpe});var q6t=x(rhe=>{"use strict";d();p();Object.defineProperty(rhe,"__esModule",{value:!0});var BH=Am(),La=Sm(),af=rc(),A6=je(),RS=o6(),D6t=c6();el();vt();Qe();var Xpe="last-used-chain-id",ehe="last-session",Ds=new WeakMap,Eg=new WeakMap,O6t=new WeakSet,L6t=new WeakSet,the=class extends RS.Connector{constructor(e){super(e),BH._classPrivateMethodInitSpec(this,L6t),BH._classPrivateMethodInitSpec(this,O6t),af._defineProperty(this,"id","walletConnectV1"),af._defineProperty(this,"name","WalletConnectV1"),af._defineProperty(this,"ready",!0),La._classPrivateFieldInitSpec(this,Ds,{writable:!0,value:void 0}),La._classPrivateFieldInitSpec(this,Eg,{writable:!0,value:void 0}),af._defineProperty(this,"walletName",void 0),af._defineProperty(this,"onSwitchChain",()=>{this.emit("message",{type:"switch_chain"})}),af._defineProperty(this,"onDisplayUri",async(t,n)=>{t&&this.emit("message",{data:t,type:"display_uri_error"}),this.emit("message",{data:n.params[0],type:"display_uri"})}),af._defineProperty(this,"onRequestSent",(t,n)=>{t&&this.emit("message",{data:t,type:"request"}),this.emit("message",{data:n.params[0],type:"request"})}),af._defineProperty(this,"onMessage",t=>{this.emit("message",t)}),af._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:A6.utils.getAddress(t[0])})}),af._defineProperty(this,"onChainChanged",t=>{let n=D6t.normalizeChainId(t),a=this.isChainUnsupported(n);La._classPrivateFieldGet(this,Eg).setItem(Xpe,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),af._defineProperty(this,"onDisconnect",async()=>{this.walletName=void 0,La._classPrivateFieldGet(this,Eg).removeItem(Xpe),La._classPrivateFieldGet(this,Eg).removeItem(ehe),BH._classPrivateMethodGet(this,L6t,Mdn).call(this),this.emit("disconnect")}),La._classPrivateFieldSet(this,Eg,e.storage)}async connect(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let t=e;if(!t){let c=await La._classPrivateFieldGet(this,Eg).getItem(Xpe),u=c?parseInt(c):void 0;u&&!this.isChainUnsupported(u)&&(t=u)}let n=await this.getProvider({chainId:t,create:!0});this.setupListeners(),setTimeout(()=>this.emit("message",{type:"connecting"}),0);let a=await n.enable(),i=A6.utils.getAddress(a[0]),s=await this.getChainId(),o=this.isChainUnsupported(s);if(this.walletName=n.connector?.peerMeta?.name??"",e)try{await this.switchChain(e),s=e,o=this.isChainUnsupported(s)}catch(c){console.error(`could not switch to desired chain id: ${e} `,c)}return BH._classPrivateMethodGet(this,O6t,Rdn).call(this),this.emit("connect",{account:i,chain:{id:s,unsupported:o},provider:n}),{account:i,chain:{id:s,unsupported:o},provider:new A6.providers.Web3Provider(n)}}catch(t){throw/user closed modal/i.test(t.message)?new RS.UserRejectedRequestError(t):t}}async disconnect(){await(await this.getProvider()).disconnect()}async getAccount(){let t=(await this.getProvider()).accounts;return A6.utils.getAddress(t[0])}async getChainId(){let e=await this.getProvider();return D6t.normalizeChainId(e.chainId)}async getProvider(){let{chainId:e,create:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!La._classPrivateFieldGet(this,Ds)||e||t){let n=this.options?.infuraId?{}:this.chains.reduce((o,c)=>({...o,[c.chainId]:c.rpc[0]}),{}),a=(await Promise.resolve().then(function(){return B6t()})).default,i=await La._classPrivateFieldGet(this,Eg).getItem(ehe),s=i?JSON.parse(i):void 0;this.walletName=s?.peerMeta?.name||void 0,La._classPrivateFieldSet(this,Ds,new a({...this.options,chainId:e,rpc:{...n,...this.options?.rpc},session:s||void 0}))}return La._classPrivateFieldGet(this,Ds)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new A6.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{return!!await this.getAccount()}catch{return!1}}async switchChain(e){let t=await this.getProvider(),n=A6.utils.hexValue(e);try{return await Promise.race([t.request({method:"wallet_switchEthereumChain",params:[{chainId:n}]}),new Promise(a=>this.on("change",i=>{let{chain:s}=i;s?.id===e&&a(e)}))]),this.chains.find(a=>a.chainId===e)??{chainId:e,name:`Chain ${n}`,network:`${n}`,nativeCurrency:{name:"Ether",decimals:18,symbol:"ETH"},rpc:[""],shortName:"eth",chain:"ETH",slug:"ethereum",testnet:!1}}catch(a){let i=typeof a=="string"?a:a?.message;if(/user rejected request/i.test(i))throw new RS.UserRejectedRequestError(a);let s=this.chains.find(o=>o.chainId===e);if(!s)throw new RS.SwitchChainError(`Chain ${e} is not added in the list of supported chains`);if(console.log({chain:s}),/Unrecognized chain ID/i.test(i)){this.emit("message",{type:"add_chain"});let o=this.getBlockExplorerUrls(s);return await t.request({method:"wallet_addEthereumChain",params:[{chainId:n,chainName:s.name,nativeCurrency:s.nativeCurrency,rpcUrls:s.rpc,blockExplorerUrls:o}]}),s}else throw new RS.SwitchChainError(a)}}async setupListeners(){!La._classPrivateFieldGet(this,Ds)||(La._classPrivateFieldGet(this,Ds).on("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ds).on("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ds).on("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ds).on("message",this.onMessage),La._classPrivateFieldGet(this,Ds).on("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ds).on("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ds).on("call_request_sent",this.onRequestSent))}};async function Rdn(){let r=La._classPrivateFieldGet(this,Ds)?.connector.session;this.walletName=r?.peerMeta?.name||"";let e=JSON.stringify(r);La._classPrivateFieldGet(this,Eg).setItem(ehe,e)}function Mdn(){!La._classPrivateFieldGet(this,Ds)||(La._classPrivateFieldGet(this,Ds).removeListener("accountsChanged",this.onAccountsChanged),La._classPrivateFieldGet(this,Ds).removeListener("chainChanged",this.onChainChanged),La._classPrivateFieldGet(this,Ds).removeListener("disconnect",this.onDisconnect),La._classPrivateFieldGet(this,Ds).removeListener("message",this.onMessage),La._classPrivateFieldGet(this,Ds).removeListener("switchChain",this.onSwitchChain),La._classPrivateFieldGet(this,Ds).removeListener("display_uri",this.onDisplayUri),La._classPrivateFieldGet(this,Ds).removeListener("call_request_sent",this.onRequestSent))}rhe.WalletConnectV1Connector=the});var U6t=x(nhe=>{"use strict";d();p();Object.defineProperty(nhe,"__esModule",{value:!0});var S6=rc(),F6t=s6(),W6t=a6();Am();el();vt();cg();je();Qe();var hw=class extends F6t.AbstractBrowserWallet{get walletName(){return"MetaMask"}constructor(e){super(hw.id,e),S6._defineProperty(this,"connector",void 0),S6._defineProperty(this,"connectorStorage",void 0),S6._defineProperty(this,"isInjected",void 0),S6._defineProperty(this,"walletConnectConnector",void 0),this.connectorStorage=e.connectorStorage||F6t.createAsyncLocalStorage("connector"),this.isInjected=e.isInjected||!1}async getConnector(){if(!this.connector)if(this.isInjected){let{MetaMaskConnector:e}=await Promise.resolve().then(function(){return S6t()}),t=new e({chains:this.chains,connectorStorage:this.connectorStorage,options:{shimDisconnect:!0}});this.connector=new W6t.WagmiAdapter(t)}else{let{WalletConnectV1Connector:e}=await Promise.resolve().then(function(){return q6t()}),t=new e({chains:this.chains,storage:this.connectorStorage,options:{clientMeta:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[]},qrcode:!1}});this.walletConnectConnector=t,this.connector=new W6t.WagmiAdapter(t)}return this.connector}async connectWithQrCode(e){await this.getConnector();let t=this.walletConnectConnector;if(!t)throw new Error("WalletConnect connector not found");let n=await t.getProvider();n.connector.on("display_uri",(a,i)=>{e.onQrCodeUri(i.params[0])}),await n.enable(),this.connect({chainId:e.chainId}).then(e.onConnected)}};S6._defineProperty(hw,"meta",{name:"Metamask",iconURL:"ipfs://QmZZHcw7zcXursywnLDAyY6Hfxzqop5GKgwoq8NB9jjrkN/metamask.svg"});S6._defineProperty(hw,"id","metamask");nhe.MetaMask=hw});var H6t=x((Uva,ahe)=>{"use strict";d();p();g.env.NODE_ENV==="production"?ahe.exports=A6t():ahe.exports=U6t()});var j6t=x(Ed=>{"use strict";d();p();Object.defineProperty(Ed,"__esModule",{value:!0});function Ndn(r,e){var t=r>>>16&65535,n=r&65535,a=e>>>16&65535,i=e&65535;return n*i+(t*i+n*a<<16>>>0)|0}Ed.mul=Math.imul||Ndn;function Bdn(r,e){return r+e|0}Ed.add=Bdn;function Ddn(r,e){return r-e|0}Ed.sub=Ddn;function Odn(r,e){return r<>>32-e}Ed.rotl=Odn;function Ldn(r,e){return r<<32-e|r>>>e}Ed.rotr=Ldn;function qdn(r){return typeof r=="number"&&isFinite(r)&&Math.floor(r)===r}Ed.isInteger=Number.isInteger||qdn;Ed.MAX_SAFE_INTEGER=9007199254740991;Ed.isSafeInteger=function(r){return Ed.isInteger(r)&&r>=-Ed.MAX_SAFE_INTEGER&&r<=Ed.MAX_SAFE_INTEGER}});var P6=x(Nr=>{"use strict";d();p();Object.defineProperty(Nr,"__esModule",{value:!0});var z6t=j6t();function Fdn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])<<16>>16}Nr.readInt16BE=Fdn;function Wdn(r,e){return e===void 0&&(e=0),(r[e+0]<<8|r[e+1])>>>0}Nr.readUint16BE=Wdn;function Udn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])<<16>>16}Nr.readInt16LE=Udn;function Hdn(r,e){return e===void 0&&(e=0),(r[e+1]<<8|r[e])>>>0}Nr.readUint16LE=Hdn;function K6t(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>8,e[t+1]=r>>>0,e}Nr.writeUint16BE=K6t;Nr.writeInt16BE=K6t;function G6t(r,e,t){return e===void 0&&(e=new Uint8Array(2)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e}Nr.writeUint16LE=G6t;Nr.writeInt16LE=G6t;function ihe(r,e){return e===void 0&&(e=0),r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]}Nr.readInt32BE=ihe;function she(r,e){return e===void 0&&(e=0),(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])>>>0}Nr.readUint32BE=she;function ohe(r,e){return e===void 0&&(e=0),r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]}Nr.readInt32LE=ohe;function che(r,e){return e===void 0&&(e=0),(r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e])>>>0}Nr.readUint32LE=che;function DH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>24,e[t+1]=r>>>16,e[t+2]=r>>>8,e[t+3]=r>>>0,e}Nr.writeUint32BE=DH;Nr.writeInt32BE=DH;function OH(r,e,t){return e===void 0&&(e=new Uint8Array(4)),t===void 0&&(t=0),e[t+0]=r>>>0,e[t+1]=r>>>8,e[t+2]=r>>>16,e[t+3]=r>>>24,e}Nr.writeUint32LE=OH;Nr.writeInt32LE=OH;function jdn(r,e){e===void 0&&(e=0);var t=ihe(r,e),n=ihe(r,e+4);return t*4294967296+n-(n>>31)*4294967296}Nr.readInt64BE=jdn;function zdn(r,e){e===void 0&&(e=0);var t=she(r,e),n=she(r,e+4);return t*4294967296+n}Nr.readUint64BE=zdn;function Kdn(r,e){e===void 0&&(e=0);var t=ohe(r,e),n=ohe(r,e+4);return n*4294967296+t-(t>>31)*4294967296}Nr.readInt64LE=Kdn;function Gdn(r,e){e===void 0&&(e=0);var t=che(r,e),n=che(r,e+4);return n*4294967296+t}Nr.readUint64LE=Gdn;function V6t(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),DH(r/4294967296>>>0,e,t),DH(r>>>0,e,t+4),e}Nr.writeUint64BE=V6t;Nr.writeInt64BE=V6t;function $6t(r,e,t){return e===void 0&&(e=new Uint8Array(8)),t===void 0&&(t=0),OH(r>>>0,e,t),OH(r/4294967296>>>0,e,t+4),e}Nr.writeUint64LE=$6t;Nr.writeInt64LE=$6t;function Vdn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintBE: array is too short for the given bitLength");for(var n=0,a=1,i=r/8+t-1;i>=t;i--)n+=e[i]*a,a*=256;return n}Nr.readUintBE=Vdn;function $dn(r,e,t){if(t===void 0&&(t=0),r%8!==0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(r/8>e.length-t)throw new Error("readUintLE: array is too short for the given bitLength");for(var n=0,a=1,i=t;i=n;i--)t[i]=e/a&255,a*=256;return t}Nr.writeUintBE=Ydn;function Jdn(r,e,t,n){if(t===void 0&&(t=new Uint8Array(r/8)),n===void 0&&(n=0),r%8!==0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!z6t.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var a=1,i=n;i{"use strict";d();p();Object.defineProperty(uhe,"__esModule",{value:!0});function ipn(r){for(var e=0;e{"use strict";d();p();Object.defineProperty(LH,"__esModule",{value:!0});var Su=P6(),lhe=Wp(),spn=20;function opn(r,e,t){for(var n=1634760805,a=857760878,i=2036477234,s=1797285236,o=t[3]<<24|t[2]<<16|t[1]<<8|t[0],c=t[7]<<24|t[6]<<16|t[5]<<8|t[4],u=t[11]<<24|t[10]<<16|t[9]<<8|t[8],l=t[15]<<24|t[14]<<16|t[13]<<8|t[12],h=t[19]<<24|t[18]<<16|t[17]<<8|t[16],f=t[23]<<24|t[22]<<16|t[21]<<8|t[20],m=t[27]<<24|t[26]<<16|t[25]<<8|t[24],y=t[31]<<24|t[30]<<16|t[29]<<8|t[28],E=e[3]<<24|e[2]<<16|e[1]<<8|e[0],I=e[7]<<24|e[6]<<16|e[5]<<8|e[4],S=e[11]<<24|e[10]<<16|e[9]<<8|e[8],L=e[15]<<24|e[14]<<16|e[13]<<8|e[12],F=n,W=a,V=i,K=s,H=o,G=c,J=u,q=l,T=h,P=f,A=m,v=y,k=E,O=I,D=S,B=L,_=0;_>>32-16|k<<16,T=T+k|0,H^=T,H=H>>>32-12|H<<12,W=W+G|0,O^=W,O=O>>>32-16|O<<16,P=P+O|0,G^=P,G=G>>>32-12|G<<12,V=V+J|0,D^=V,D=D>>>32-16|D<<16,A=A+D|0,J^=A,J=J>>>32-12|J<<12,K=K+q|0,B^=K,B=B>>>32-16|B<<16,v=v+B|0,q^=v,q=q>>>32-12|q<<12,V=V+J|0,D^=V,D=D>>>32-8|D<<8,A=A+D|0,J^=A,J=J>>>32-7|J<<7,K=K+q|0,B^=K,B=B>>>32-8|B<<8,v=v+B|0,q^=v,q=q>>>32-7|q<<7,W=W+G|0,O^=W,O=O>>>32-8|O<<8,P=P+O|0,G^=P,G=G>>>32-7|G<<7,F=F+H|0,k^=F,k=k>>>32-8|k<<8,T=T+k|0,H^=T,H=H>>>32-7|H<<7,F=F+G|0,B^=F,B=B>>>32-16|B<<16,A=A+B|0,G^=A,G=G>>>32-12|G<<12,W=W+J|0,k^=W,k=k>>>32-16|k<<16,v=v+k|0,J^=v,J=J>>>32-12|J<<12,V=V+q|0,O^=V,O=O>>>32-16|O<<16,T=T+O|0,q^=T,q=q>>>32-12|q<<12,K=K+H|0,D^=K,D=D>>>32-16|D<<16,P=P+D|0,H^=P,H=H>>>32-12|H<<12,V=V+q|0,O^=V,O=O>>>32-8|O<<8,T=T+O|0,q^=T,q=q>>>32-7|q<<7,K=K+H|0,D^=K,D=D>>>32-8|D<<8,P=P+D|0,H^=P,H=H>>>32-7|H<<7,W=W+J|0,k^=W,k=k>>>32-8|k<<8,v=v+k|0,J^=v,J=J>>>32-7|J<<7,F=F+G|0,B^=F,B=B>>>32-8|B<<8,A=A+B|0,G^=A,G=G>>>32-7|G<<7;Su.writeUint32LE(F+n|0,r,0),Su.writeUint32LE(W+a|0,r,4),Su.writeUint32LE(V+i|0,r,8),Su.writeUint32LE(K+s|0,r,12),Su.writeUint32LE(H+o|0,r,16),Su.writeUint32LE(G+c|0,r,20),Su.writeUint32LE(J+u|0,r,24),Su.writeUint32LE(q+l|0,r,28),Su.writeUint32LE(T+h|0,r,32),Su.writeUint32LE(P+f|0,r,36),Su.writeUint32LE(A+m|0,r,40),Su.writeUint32LE(v+y|0,r,44),Su.writeUint32LE(k+E|0,r,48),Su.writeUint32LE(O+I|0,r,52),Su.writeUint32LE(D+S|0,r,56),Su.writeUint32LE(B+L|0,r,60)}function Y6t(r,e,t,n,a){if(a===void 0&&(a=0),r.length!==32)throw new Error("ChaCha: key size must be 32 bytes");if(n.length>>=8,e++;if(n>0)throw new Error("ChaCha: counter overflow")}});var qH=x(R6=>{"use strict";d();p();Object.defineProperty(R6,"__esModule",{value:!0});function lpn(r,e,t){return~(r-1)&e|r-1&t}R6.select=lpn;function dpn(r,e){return(r|0)-(e|0)-1>>>31&1}R6.lessOrEqual=dpn;function Q6t(r,e){if(r.length!==e.length)return 0;for(var t=0,n=0;n>>8}R6.compare=Q6t;function ppn(r,e){return r.length===0||e.length===0?!1:Q6t(r,e)!==0}R6.equal=ppn});var X6t=x(ay=>{"use strict";d();p();Object.defineProperty(ay,"__esModule",{value:!0});var hpn=qH(),FH=Wp();ay.DIGEST_LENGTH=16;var Z6t=function(){function r(e){this.digestLength=ay.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 t=e[0]|e[1]<<8;this._r[0]=t&8191;var n=e[2]|e[3]<<8;this._r[1]=(t>>>13|n<<3)&8191;var a=e[4]|e[5]<<8;this._r[2]=(n>>>10|a<<6)&7939;var i=e[6]|e[7]<<8;this._r[3]=(a>>>7|i<<9)&8191;var s=e[8]|e[9]<<8;this._r[4]=(i>>>4|s<<12)&255,this._r[5]=s>>>1&8190;var o=e[10]|e[11]<<8;this._r[6]=(s>>>14|o<<2)&8191;var c=e[12]|e[13]<<8;this._r[7]=(o>>>11|c<<5)&8065;var u=e[14]|e[15]<<8;this._r[8]=(c>>>8|u<<8)&8191,this._r[9]=u>>>5&127,this._pad[0]=e[16]|e[17]<<8,this._pad[1]=e[18]|e[19]<<8,this._pad[2]=e[20]|e[21]<<8,this._pad[3]=e[22]|e[23]<<8,this._pad[4]=e[24]|e[25]<<8,this._pad[5]=e[26]|e[27]<<8,this._pad[6]=e[28]|e[29]<<8,this._pad[7]=e[30]|e[31]<<8}return r.prototype._blocks=function(e,t,n){for(var a=this._fin?0:2048,i=this._h[0],s=this._h[1],o=this._h[2],c=this._h[3],u=this._h[4],l=this._h[5],h=this._h[6],f=this._h[7],m=this._h[8],y=this._h[9],E=this._r[0],I=this._r[1],S=this._r[2],L=this._r[3],F=this._r[4],W=this._r[5],V=this._r[6],K=this._r[7],H=this._r[8],G=this._r[9];n>=16;){var J=e[t+0]|e[t+1]<<8;i+=J&8191;var q=e[t+2]|e[t+3]<<8;s+=(J>>>13|q<<3)&8191;var T=e[t+4]|e[t+5]<<8;o+=(q>>>10|T<<6)&8191;var P=e[t+6]|e[t+7]<<8;c+=(T>>>7|P<<9)&8191;var A=e[t+8]|e[t+9]<<8;u+=(P>>>4|A<<12)&8191,l+=A>>>1&8191;var v=e[t+10]|e[t+11]<<8;h+=(A>>>14|v<<2)&8191;var k=e[t+12]|e[t+13]<<8;f+=(v>>>11|k<<5)&8191;var O=e[t+14]|e[t+15]<<8;m+=(k>>>8|O<<8)&8191,y+=O>>>5|a;var D=0,B=D;B+=i*E,B+=s*(5*G),B+=o*(5*H),B+=c*(5*K),B+=u*(5*V),D=B>>>13,B&=8191,B+=l*(5*W),B+=h*(5*F),B+=f*(5*L),B+=m*(5*S),B+=y*(5*I),D+=B>>>13,B&=8191;var _=D;_+=i*I,_+=s*E,_+=o*(5*G),_+=c*(5*H),_+=u*(5*K),D=_>>>13,_&=8191,_+=l*(5*V),_+=h*(5*W),_+=f*(5*F),_+=m*(5*L),_+=y*(5*S),D+=_>>>13,_&=8191;var N=D;N+=i*S,N+=s*I,N+=o*E,N+=c*(5*G),N+=u*(5*H),D=N>>>13,N&=8191,N+=l*(5*K),N+=h*(5*V),N+=f*(5*W),N+=m*(5*F),N+=y*(5*L),D+=N>>>13,N&=8191;var U=D;U+=i*L,U+=s*S,U+=o*I,U+=c*E,U+=u*(5*G),D=U>>>13,U&=8191,U+=l*(5*H),U+=h*(5*K),U+=f*(5*V),U+=m*(5*W),U+=y*(5*F),D+=U>>>13,U&=8191;var C=D;C+=i*F,C+=s*L,C+=o*S,C+=c*I,C+=u*E,D=C>>>13,C&=8191,C+=l*(5*G),C+=h*(5*H),C+=f*(5*K),C+=m*(5*V),C+=y*(5*W),D+=C>>>13,C&=8191;var z=D;z+=i*W,z+=s*F,z+=o*L,z+=c*S,z+=u*I,D=z>>>13,z&=8191,z+=l*E,z+=h*(5*G),z+=f*(5*H),z+=m*(5*K),z+=y*(5*V),D+=z>>>13,z&=8191;var ee=D;ee+=i*V,ee+=s*W,ee+=o*F,ee+=c*L,ee+=u*S,D=ee>>>13,ee&=8191,ee+=l*I,ee+=h*E,ee+=f*(5*G),ee+=m*(5*H),ee+=y*(5*K),D+=ee>>>13,ee&=8191;var j=D;j+=i*K,j+=s*V,j+=o*W,j+=c*F,j+=u*L,D=j>>>13,j&=8191,j+=l*S,j+=h*I,j+=f*E,j+=m*(5*G),j+=y*(5*H),D+=j>>>13,j&=8191;var X=D;X+=i*H,X+=s*K,X+=o*V,X+=c*W,X+=u*F,D=X>>>13,X&=8191,X+=l*L,X+=h*S,X+=f*I,X+=m*E,X+=y*(5*G),D+=X>>>13,X&=8191;var ie=D;ie+=i*G,ie+=s*H,ie+=o*K,ie+=c*V,ie+=u*W,D=ie>>>13,ie&=8191,ie+=l*F,ie+=h*L,ie+=f*S,ie+=m*I,ie+=y*E,D+=ie>>>13,ie&=8191,D=(D<<2)+D|0,D=D+B|0,B=D&8191,D=D>>>13,_+=D,i=B,s=_,o=N,c=U,u=C,l=z,h=ee,f=j,m=X,y=ie,t+=16,n-=16}this._h[0]=i,this._h[1]=s,this._h[2]=o,this._h[3]=c,this._h[4]=u,this._h[5]=l,this._h[6]=h,this._h[7]=f,this._h[8]=m,this._h[9]=y},r.prototype.finish=function(e,t){t===void 0&&(t=0);var n=new Uint16Array(10),a,i,s,o;if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(a=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=a,a=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=a*5,a=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=a,a=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=a,n[0]=this._h[0]+5,a=n[0]>>>13,n[0]&=8191,o=1;o<10;o++)n[o]=this._h[o]+a,a=n[o]>>>13,n[o]&=8191;for(n[9]-=1<<13,i=(a^1)-1,o=0;o<10;o++)n[o]&=i;for(i=~i,o=0;o<10;o++)this._h[o]=this._h[o]&i|n[o];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,s=this._h[0]+this._pad[0],this._h[0]=s&65535,o=1;o<8;o++)s=(this._h[o]+this._pad[o]|0)+(s>>>16)|0,this._h[o]=s&65535;return e[t+0]=this._h[0]>>>0,e[t+1]=this._h[0]>>>8,e[t+2]=this._h[1]>>>0,e[t+3]=this._h[1]>>>8,e[t+4]=this._h[2]>>>0,e[t+5]=this._h[2]>>>8,e[t+6]=this._h[3]>>>0,e[t+7]=this._h[3]>>>8,e[t+8]=this._h[4]>>>0,e[t+9]=this._h[4]>>>8,e[t+10]=this._h[5]>>>0,e[t+11]=this._h[5]>>>8,e[t+12]=this._h[6]>>>0,e[t+13]=this._h[6]>>>8,e[t+14]=this._h[7]>>>0,e[t+15]=this._h[7]>>>8,this._finished=!0,this},r.prototype.update=function(e){var t=0,n=e.length,a;if(this._leftover){a=16-this._leftover,a>n&&(a=n);for(var i=0;i=16&&(a=n-n%16,this._blocks(e,t,a),t+=a,n-=a),n){for(var i=0;i{"use strict";d();p();Object.defineProperty(iy,"__esModule",{value:!0});var WH=J6t(),ypn=X6t(),MS=Wp(),eEt=P6(),gpn=qH();iy.KEY_LENGTH=32;iy.NONCE_LENGTH=12;iy.TAG_LENGTH=16;var tEt=new Uint8Array(16),bpn=function(){function r(e){if(this.nonceLength=iy.NONCE_LENGTH,this.tagLength=iy.TAG_LENGTH,e.length!==iy.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(e)}return r.prototype.seal=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var i=new Uint8Array(16);i.set(e,i.length-e.length);var s=new Uint8Array(32);WH.stream(this._key,i,s,4);var o=t.length+this.tagLength,c;if(a){if(a.length!==o)throw new Error("ChaCha20Poly1305: incorrect destination length");c=a}else c=new Uint8Array(o);return WH.streamXOR(this._key,i,t,c,4),this._authenticate(c.subarray(c.length-this.tagLength,c.length),s,c.subarray(0,c.length-this.tagLength),n),MS.wipe(i),c},r.prototype.open=function(e,t,n,a){if(e.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(t.length0&&i.update(tEt.subarray(a.length%16))),i.update(n),n.length%16>0&&i.update(tEt.subarray(n.length%16));var s=new Uint8Array(8);a&&eEt.writeUint64LE(a.length,s),i.update(s),eEt.writeUint64LE(n.length,s),i.update(s);for(var o=i.digest(),c=0;c{"use strict";d();p();Object.defineProperty(dhe,"__esModule",{value:!0});function vpn(r){return typeof r.saveState<"u"&&typeof r.restoreState<"u"&&typeof r.cleanSavedState<"u"}dhe.isSerializableHash=vpn});var iEt=x(NS=>{"use strict";d();p();Object.defineProperty(NS,"__esModule",{value:!0});var Bm=nEt(),wpn=qH(),_pn=Wp(),aEt=function(){function r(e,t){this._finished=!1,this._inner=new e,this._outer=new e,this.blockSize=this._outer.blockSize,this.digestLength=this._outer.digestLength;var n=new Uint8Array(this.blockSize);t.length>this.blockSize?this._inner.update(t).finish(n).clean():n.set(t);for(var a=0;a{"use strict";d();p();Object.defineProperty(phe,"__esModule",{value:!0});var sEt=iEt(),oEt=Wp(),Tpn=function(){function r(e,t,n,a){n===void 0&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=e,this._info=a;var i=sEt.hmac(this._hash,n,t);this._hmac=new sEt.HMAC(e,i),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return r.prototype._fillBuffer=function(){this._counter[0]++;var e=this._counter[0];if(e===0)throw new Error("hkdf: cannot expand more");this._hmac.reset(),e>1&&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},r.prototype.expand=function(e){for(var t=new Uint8Array(e),n=0;n{"use strict";d();p();Object.defineProperty(UH,"__esModule",{value:!0});UH.BrowserRandomSource=void 0;var uEt=65536,hhe=class{constructor(){this.isAvailable=!1,this.isInstantiated=!1;let e=typeof self<"u"?self.crypto||self.msCrypto:null;e&&e.getRandomValues!==void 0&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Browser random byte generator is not available.");let t=new Uint8Array(e);for(let n=0;n{"use strict";d();p();Object.defineProperty(HH,"__esModule",{value:!0});HH.NodeRandomSource=void 0;var Epn=Wp(),fhe=class{constructor(){if(this.isAvailable=!1,this.isInstantiated=!1,typeof o1e<"u"){let e=M$();e&&e.randomBytes&&(this._crypto=e,this.isAvailable=!0,this.isInstantiated=!0)}}randomBytes(e){if(!this.isAvailable||!this._crypto)throw new Error("Node.js random byte generator is not available.");let t=this._crypto.randomBytes(e);if(t.length!==e)throw new Error("NodeRandomSource: got fewer bytes than requested");let n=new Uint8Array(e);for(let a=0;a{"use strict";d();p();Object.defineProperty(jH,"__esModule",{value:!0});jH.SystemRandomSource=void 0;var Cpn=lEt(),Ipn=dEt(),mhe=class{constructor(){if(this.isAvailable=!1,this.name="",this._source=new Cpn.BrowserRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Browser";return}if(this._source=new Ipn.NodeRandomSource,this._source.isAvailable){this.isAvailable=!0,this.name="Node";return}}randomBytes(e){if(!this.isAvailable)throw new Error("System random byte generator is not available.");return this._source.randomBytes(e)}};jH.SystemRandomSource=mhe});var BS=x(Pu=>{"use strict";d();p();Object.defineProperty(Pu,"__esModule",{value:!0});Pu.randomStringForEntropy=Pu.randomString=Pu.randomUint32=Pu.randomBytes=Pu.defaultRandomSource=void 0;var kpn=pEt(),Apn=P6(),hEt=Wp();Pu.defaultRandomSource=new kpn.SystemRandomSource;function yhe(r,e=Pu.defaultRandomSource){return e.randomBytes(r)}Pu.randomBytes=yhe;function Spn(r=Pu.defaultRandomSource){let e=yhe(4,r),t=(0,Apn.readUint32LE)(e);return(0,hEt.wipe)(e),t}Pu.randomUint32=Spn;var fEt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function mEt(r,e=fEt,t=Pu.defaultRandomSource){if(e.length<2)throw new Error("randomString charset is too short");if(e.length>256)throw new Error("randomString charset is too long");let n="",a=e.length,i=256-256%a;for(;r>0;){let s=yhe(Math.ceil(r*256/i),t);for(let o=0;o0;o++){let c=s[o];c{"use strict";d();p();Object.defineProperty(Cg,"__esModule",{value:!0});var KH=P6(),zH=Wp();Cg.DIGEST_LENGTH=32;Cg.BLOCK_SIZE=64;var yEt=function(){function r(){this.digestLength=Cg.DIGEST_LENGTH,this.blockSize=Cg.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return r.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){zH.wipe(this._buffer),zH.wipe(this._temp),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(ghe(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=ghe(this._temp,this._state,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%64<56?64:128;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._state.set(e.state),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){zH.wipe(e.state),e.buffer&&zH.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();Cg.SHA256=yEt;var Rpn=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 ghe(r,e,t,n,a){for(;a>=64;){for(var i=e[0],s=e[1],o=e[2],c=e[3],u=e[4],l=e[5],h=e[6],f=e[7],m=0;m<16;m++){var y=n+m*4;r[m]=KH.readUint32BE(t,y)}for(var m=16;m<64;m++){var E=r[m-2],I=(E>>>17|E<<32-17)^(E>>>19|E<<32-19)^E>>>10;E=r[m-15];var S=(E>>>7|E<<32-7)^(E>>>18|E<<32-18)^E>>>3;r[m]=(I+r[m-7]|0)+(S+r[m-16]|0)}for(var m=0;m<64;m++){var I=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&h)|0)+(f+(Rpn[m]+r[m]|0)|0)|0,S=((i>>>2|i<<32-2)^(i>>>13|i<<32-13)^(i>>>22|i<<32-22))+(i&s^i&o^s&o)|0;f=h,h=l,l=u,u=c+I|0,c=o,o=s,s=i,i=I+S|0}e[0]+=i,e[1]+=s,e[2]+=o,e[3]+=c,e[4]+=u,e[5]+=l,e[6]+=h,e[7]+=f,n+=64,a-=64}return n}function Mpn(r){var e=new yEt;e.update(r);var t=e.digest();return e.clean(),t}Cg.hash=Mpn});var _Et=x(ms=>{"use strict";d();p();Object.defineProperty(ms,"__esModule",{value:!0});ms.sharedKey=ms.generateKeyPair=ms.generateKeyPairFromSeed=ms.scalarMultBase=ms.scalarMult=ms.SHARED_KEY_LENGTH=ms.SECRET_KEY_LENGTH=ms.PUBLIC_KEY_LENGTH=void 0;var Npn=BS(),Bpn=Wp();ms.PUBLIC_KEY_LENGTH=32;ms.SECRET_KEY_LENGTH=32;ms.SHARED_KEY_LENGTH=32;function Dm(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,DS(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function Lpn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function GH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function VH(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function sy(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,J=0,q=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,_=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,J+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,J+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,J+=n*me,q+=n*Ke,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,J+=n*ge,q+=n*me,T+=n*Ke,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,J+=n*ke,q+=n*ge,T+=n*me,P+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,J+=n*he,q+=n*ke,T+=n*ge,P+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,F+=n*C,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,J+=n*ue,q+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*C,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,J+=n*ie,q+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*C,K+=n*z,H+=n*ee,G+=n*j,J+=n*X,q+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*C,H+=n*z,G+=n*ee,J+=n*j,q+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,_+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*J,l+=38*q,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,F+=38*_,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=F,r[15]=W}function OS(r,e){sy(r,e,e)}function qpn(r,e){let t=Dm();for(let n=0;n<16;n++)t[n]=e[n];for(let n=253;n>=0;n--)OS(t,t),n!==2&&n!==4&&sy(t,t,e);for(let n=0;n<16;n++)r[n]=t[n]}function vhe(r,e){let t=new Uint8Array(32),n=new Float64Array(80),a=Dm(),i=Dm(),s=Dm(),o=Dm(),c=Dm(),u=Dm();for(let m=0;m<31;m++)t[m]=r[m];t[31]=r[31]&127|64,t[0]&=248,Lpn(n,e);for(let m=0;m<16;m++)i[m]=n[m];a[0]=o[0]=1;for(let m=254;m>=0;--m){let y=t[m>>>3]>>>(m&7)&1;DS(a,i,y),DS(s,o,y),GH(c,a,s),VH(a,a,s),GH(s,i,o),VH(i,i,o),OS(o,c),OS(u,a),sy(a,s,a),sy(s,i,c),GH(c,a,s),VH(a,a,s),OS(i,a),VH(s,o,u),sy(a,s,Dpn),GH(a,a,o),sy(s,s,a),sy(a,o,u),sy(o,i,n),OS(i,c),DS(a,i,y),DS(s,o,y)}for(let m=0;m<16;m++)n[m+16]=a[m],n[m+32]=s[m],n[m+48]=i[m],n[m+64]=o[m];let l=n.subarray(32),h=n.subarray(16);qpn(l,l),sy(h,h,l);let f=new Uint8Array(32);return Opn(f,h),f}ms.scalarMult=vhe;function vEt(r){return vhe(r,bEt)}ms.scalarMultBase=vEt;function wEt(r){if(r.length!==ms.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${ms.SECRET_KEY_LENGTH} bytes`);let e=new Uint8Array(r);return{publicKey:vEt(e),secretKey:e}}ms.generateKeyPairFromSeed=wEt;function Fpn(r){let e=(0,Npn.randomBytes)(32,r),t=wEt(e);return(0,Bpn.wipe)(e),t}ms.generateKeyPair=Fpn;function Wpn(r,e,t=!1){if(r.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(e.length!==ms.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");let n=vhe(r,e);if(t){let a=0;for(let i=0;ie[t])return 1}return r.byteLength>e.byteLength?1:r.byteLength{d();p()});function EEt(r,e){if(r.length!==e.length)throw new Error("Inputs should have the same length");let t=g_(r.length);for(let n=0;n{d();p();YN();B4()});var IEt={};cr(IEt,{compare:()=>xEt,concat:()=>O4,equals:()=>vZ,fromString:()=>xh,toString:()=>tm,xor:()=>EEt});var kEt=ce(()=>{d();p();TEt();bv();iB();gv();b_();CEt()});var AEt=x($H=>{"use strict";d();p();Object.defineProperty($H,"__esModule",{value:!0});$H.delay=void 0;function Upn(r){return new Promise(e=>{setTimeout(()=>{e(!0)},r)})}$H.delay=Upn});var SEt=x(M6=>{"use strict";d();p();Object.defineProperty(M6,"__esModule",{value:!0});M6.ONE_THOUSAND=M6.ONE_HUNDRED=void 0;M6.ONE_HUNDRED=100;M6.ONE_THOUSAND=1e3});var PEt=x(He=>{"use strict";d();p();Object.defineProperty(He,"__esModule",{value:!0});He.ONE_YEAR=He.FOUR_WEEKS=He.THREE_WEEKS=He.TWO_WEEKS=He.ONE_WEEK=He.THIRTY_DAYS=He.SEVEN_DAYS=He.FIVE_DAYS=He.THREE_DAYS=He.ONE_DAY=He.TWENTY_FOUR_HOURS=He.TWELVE_HOURS=He.SIX_HOURS=He.THREE_HOURS=He.ONE_HOUR=He.SIXTY_MINUTES=He.THIRTY_MINUTES=He.TEN_MINUTES=He.FIVE_MINUTES=He.ONE_MINUTE=He.SIXTY_SECONDS=He.THIRTY_SECONDS=He.TEN_SECONDS=He.FIVE_SECONDS=He.ONE_SECOND=void 0;He.ONE_SECOND=1;He.FIVE_SECONDS=5;He.TEN_SECONDS=10;He.THIRTY_SECONDS=30;He.SIXTY_SECONDS=60;He.ONE_MINUTE=He.SIXTY_SECONDS;He.FIVE_MINUTES=He.ONE_MINUTE*5;He.TEN_MINUTES=He.ONE_MINUTE*10;He.THIRTY_MINUTES=He.ONE_MINUTE*30;He.SIXTY_MINUTES=He.ONE_MINUTE*60;He.ONE_HOUR=He.SIXTY_MINUTES;He.THREE_HOURS=He.ONE_HOUR*3;He.SIX_HOURS=He.ONE_HOUR*6;He.TWELVE_HOURS=He.ONE_HOUR*12;He.TWENTY_FOUR_HOURS=He.ONE_HOUR*24;He.ONE_DAY=He.TWENTY_FOUR_HOURS;He.THREE_DAYS=He.ONE_DAY*3;He.FIVE_DAYS=He.ONE_DAY*5;He.SEVEN_DAYS=He.ONE_DAY*7;He.THIRTY_DAYS=He.ONE_DAY*30;He.ONE_WEEK=He.SEVEN_DAYS;He.TWO_WEEKS=He.ONE_WEEK*2;He.THREE_WEEKS=He.ONE_WEEK*3;He.FOUR_WEEKS=He.ONE_WEEK*4;He.ONE_YEAR=He.ONE_DAY*365});var whe=x(YH=>{"use strict";d();p();Object.defineProperty(YH,"__esModule",{value:!0});var REt=_d();REt.__exportStar(SEt(),YH);REt.__exportStar(PEt(),YH)});var NEt=x(N6=>{"use strict";d();p();Object.defineProperty(N6,"__esModule",{value:!0});N6.fromMiliseconds=N6.toMiliseconds=void 0;var MEt=whe();function Hpn(r){return r*MEt.ONE_THOUSAND}N6.toMiliseconds=Hpn;function jpn(r){return Math.floor(r/MEt.ONE_THOUSAND)}N6.fromMiliseconds=jpn});var DEt=x(JH=>{"use strict";d();p();Object.defineProperty(JH,"__esModule",{value:!0});var BEt=_d();BEt.__exportStar(AEt(),JH);BEt.__exportStar(NEt(),JH)});var OEt=x(LS=>{"use strict";d();p();Object.defineProperty(LS,"__esModule",{value:!0});LS.Watch=void 0;var QH=class{constructor(){this.timestamps=new Map}start(e){if(this.timestamps.has(e))throw new Error(`Watch already started for label: ${e}`);this.timestamps.set(e,{started:Date.now()})}stop(e){let t=this.get(e);if(typeof t.elapsed<"u")throw new Error(`Watch already stopped for label: ${e}`);let n=Date.now()-t.started;this.timestamps.set(e,{started:t.started,elapsed:n})}get(e){let t=this.timestamps.get(e);if(typeof t>"u")throw new Error(`No timestamp found for label: ${e}`);return t}elapsed(e){let t=this.get(e);return t.elapsed||Date.now()-t.started}};LS.Watch=QH;LS.default=QH});var LEt=x(ZH=>{"use strict";d();p();Object.defineProperty(ZH,"__esModule",{value:!0});ZH.IWatch=void 0;var _he=class{};ZH.IWatch=_he});var qEt=x(xhe=>{"use strict";d();p();Object.defineProperty(xhe,"__esModule",{value:!0});var zpn=_d();zpn.__exportStar(LEt(),xhe)});var fw=x(B6=>{"use strict";d();p();Object.defineProperty(B6,"__esModule",{value:!0});var XH=_d();XH.__exportStar(DEt(),B6);XH.__exportStar(OEt(),B6);XH.__exportStar(qEt(),B6);XH.__exportStar(whe(),B6)});var GEt=x(Ul=>{"use strict";d();p();var Kpn=bde(),Gpn=wde(),WEt=_de(),Vpn=xde(),$pn=r=>r==null,The=Symbol("encodeFragmentIdentifier");function Ypn(r){switch(r.arrayFormat){case"index":return e=>(t,n)=>{let a=t.length;return n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Os(e,r),"[",a,"]"].join("")]:[...t,[Os(e,r),"[",Os(a,r),"]=",Os(n,r)].join("")]};case"bracket":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Os(e,r),"[]"].join("")]:[...t,[Os(e,r),"[]=",Os(n,r)].join("")];case"colon-list-separator":return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,[Os(e,r),":list="].join("")]:[...t,[Os(e,r),":list=",Os(n,r)].join("")];case"comma":case"separator":case"bracket-separator":{let e=r.arrayFormat==="bracket-separator"?"[]=":"=";return t=>(n,a)=>a===void 0||r.skipNull&&a===null||r.skipEmptyString&&a===""?n:(a=a===null?"":a,n.length===0?[[Os(t,r),e,Os(a,r)].join("")]:[[n,Os(a,r)].join(r.arrayFormatSeparator)])}default:return e=>(t,n)=>n===void 0||r.skipNull&&n===null||r.skipEmptyString&&n===""?t:n===null?[...t,Os(e,r)]:[...t,[Os(e,r),"=",Os(n,r)].join("")]}}function Jpn(r){let e;switch(r.arrayFormat){case"index":return(t,n,a)=>{if(e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),!e){a[t]=n;return}a[t]===void 0&&(a[t]={}),a[t][e[1]]=n};case"bracket":return(t,n,a)=>{if(e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"colon-list-separator":return(t,n,a)=>{if(e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),!e){a[t]=n;return}if(a[t]===void 0){a[t]=[n];return}a[t]=[].concat(a[t],n)};case"comma":case"separator":return(t,n,a)=>{let i=typeof n=="string"&&n.includes(r.arrayFormatSeparator),s=typeof n=="string"&&!i&&oy(n,r).includes(r.arrayFormatSeparator);n=s?oy(n,r):n;let o=i||s?n.split(r.arrayFormatSeparator).map(c=>oy(c,r)):n===null?n:oy(n,r);a[t]=o};case"bracket-separator":return(t,n,a)=>{let i=/(\[\])$/.test(t);if(t=t.replace(/\[\]$/,""),!i){a[t]=n&&oy(n,r);return}let s=n===null?[]:n.split(r.arrayFormatSeparator).map(o=>oy(o,r));if(a[t]===void 0){a[t]=s;return}a[t]=[].concat(a[t],s)};default:return(t,n,a)=>{if(a[t]===void 0){a[t]=n;return}a[t]=[].concat(a[t],n)}}}function UEt(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Os(r,e){return e.encode?e.strict?Kpn(r):encodeURIComponent(r):r}function oy(r,e){return e.decode?Gpn(r):r}function HEt(r){return Array.isArray(r)?r.sort():typeof r=="object"?HEt(Object.keys(r)).sort((e,t)=>Number(e)-Number(t)).map(e=>r[e]):r}function jEt(r){let e=r.indexOf("#");return e!==-1&&(r=r.slice(0,e)),r}function Qpn(r){let e="",t=r.indexOf("#");return t!==-1&&(e=r.slice(t)),e}function zEt(r){r=jEt(r);let e=r.indexOf("?");return e===-1?"":r.slice(e+1)}function FEt(r,e){return e.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):e.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function KEt(r,e){e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e),UEt(e.arrayFormatSeparator);let t=Jpn(e),n=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return n;for(let a of r.split("&")){if(a==="")continue;let[i,s]=WEt(e.decode?a.replace(/\+/g," "):a,"=");s=s===void 0?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?s:oy(s,e),t(oy(i,e),s,n)}for(let a of Object.keys(n)){let i=n[a];if(typeof i=="object"&&i!==null)for(let s of Object.keys(i))i[s]=FEt(i[s],e);else n[a]=FEt(i,e)}return e.sort===!1?n:(e.sort===!0?Object.keys(n).sort():Object.keys(n).sort(e.sort)).reduce((a,i)=>{let s=n[i];return Boolean(s)&&typeof s=="object"&&!Array.isArray(s)?a[i]=HEt(s):a[i]=s,a},Object.create(null))}Ul.extract=zEt;Ul.parse=KEt;Ul.stringify=(r,e)=>{if(!r)return"";e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e),UEt(e.arrayFormatSeparator);let t=s=>e.skipNull&&$pn(r[s])||e.skipEmptyString&&r[s]==="",n=Ypn(e),a={};for(let s of Object.keys(r))t(s)||(a[s]=r[s]);let i=Object.keys(a);return e.sort!==!1&&i.sort(e.sort),i.map(s=>{let o=r[s];return o===void 0?"":o===null?Os(s,e):Array.isArray(o)?o.length===0&&e.arrayFormat==="bracket-separator"?Os(s,e)+"[]":o.reduce(n(s),[]).join("&"):Os(s,e)+"="+Os(o,e)}).filter(s=>s.length>0).join("&")};Ul.parseUrl=(r,e)=>{e=Object.assign({decode:!0},e);let[t,n]=WEt(r,"#");return Object.assign({url:t.split("?")[0]||"",query:KEt(zEt(r),e)},e&&e.parseFragmentIdentifier&&n?{fragmentIdentifier:oy(n,e)}:{})};Ul.stringifyUrl=(r,e)=>{e=Object.assign({encode:!0,strict:!0,[The]:!0},e);let t=jEt(r.url).split("?")[0]||"",n=Ul.extract(r.url),a=Ul.parse(n,{sort:!1}),i=Object.assign(a,r.query),s=Ul.stringify(i,e);s&&(s=`?${s}`);let o=Qpn(r.url);return r.fragmentIdentifier&&(o=`#${e[The]?Os(r.fragmentIdentifier,e):r.fragmentIdentifier}`),`${t}${s}${o}`};Ul.pick=(r,e,t)=>{t=Object.assign({parseFragmentIdentifier:!0,[The]:!1},t);let{url:n,query:a,fragmentIdentifier:i}=Ul.parseUrl(r,t);return Ul.stringifyUrl({url:n,query:Vpn(a,e),fragmentIdentifier:i},t)};Ul.exclude=(r,e,t)=>{let n=Array.isArray(e)?a=>!e.includes(a):(a,i)=>!e(a,i);return Ul.pick(r,n,t)}});var VEt=ce(()=>{d();p()});function Ig(r,e,t="string"){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function Zpn(r,e){let t=!0;return e.forEach(n=>{n in r||(t=!1)}),t}function Xpn(r,e){return Array.isArray(r)?r.length===e:Object.keys(r).length===e}function ehn(r,e){return Array.isArray(r)?r.length>=e:Object.keys(r).length>=e}function qS(r,e,t){return(!t.length?Xpn(r,e.length):ehn(r,e.length))?Zpn(r,e):!1}function FS(r,e,t="_"){let n=r.split(t);return n[n.length-1].trim().toLowerCase()===e.trim().toLowerCase()}var Ehe=ce(()=>{d();p()});function thn(r){return ej(r.method)&&tj(r.params)}function ej(r){return FS(r,"subscribe")}function tj(r){return qS(r,["topic"],[])}function rhn(r){return rj(r.method)&&nj(r.params)}function rj(r){return FS(r,"publish")}function nj(r){return qS(r,["message","topic","ttl"],["prompt","tag"])}function nhn(r){return aj(r.method)&&ij(r.params)}function aj(r){return FS(r,"unsubscribe")}function ij(r){return qS(r,["id","topic"],[])}function ahn(r){return sj(r.method)&&oj(r.params)}function sj(r){return FS(r,"subscription")}function oj(r){return qS(r,["id","data"],[])}var Che=ce(()=>{d();p();Ehe()});function ihn(r){if(!ej(r.method))throw new Error("JSON-RPC Request has invalid subscribe method");if(!tj(r.params))throw new Error("JSON-RPC Request has invalid subscribe params");let e=r.params;return Ig(e,"topic"),e}function shn(r){if(!rj(r.method))throw new Error("JSON-RPC Request has invalid publish method");if(!nj(r.params))throw new Error("JSON-RPC Request has invalid publish params");let e=r.params;return Ig(e,"topic"),Ig(e,"message"),Ig(e,"ttl","number"),e}function ohn(r){if(!aj(r.method))throw new Error("JSON-RPC Request has invalid unsubscribe method");if(!ij(r.params))throw new Error("JSON-RPC Request has invalid unsubscribe params");let e=r.params;return Ig(e,"id"),e}function chn(r){if(!sj(r.method))throw new Error("JSON-RPC Request has invalid subscription method");if(!oj(r.params))throw new Error("JSON-RPC Request has invalid subscription params");let e=r.params;return Ig(e,"id"),Ig(e,"data"),e}var $Et=ce(()=>{d();p();Ehe();Che()});var uhn,YEt=ce(()=>{d();p();uhn={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}});var JEt={};cr(JEt,{RELAY_JSONRPC:()=>uhn,isPublishMethod:()=>rj,isPublishParams:()=>nj,isPublishRequest:()=>rhn,isSubscribeMethod:()=>ej,isSubscribeParams:()=>tj,isSubscribeRequest:()=>thn,isSubscriptionMethod:()=>sj,isSubscriptionParams:()=>oj,isSubscriptionRequest:()=>ahn,isUnsubscribeMethod:()=>aj,isUnsubscribeParams:()=>ij,isUnsubscribeRequest:()=>nhn,parsePublishRequest:()=>shn,parseSubscribeRequest:()=>ihn,parseSubscriptionRequest:()=>chn,parseUnsubscribeRequest:()=>ohn});var QEt=ce(()=>{d();p();VEt();$Et();YEt();Che()});var jS=x(we=>{"use strict";d();p();Object.defineProperty(we,"__esModule",{value:!0});var iCt=rEt(),lhn=cEt(),sCt=BS(),Ahe=gEt(),dhn=_Et(),Mi=(kEt(),nt(IEt)),phn=ide(),O6=fw(),WS=tH(),hhn=mde(),fhn=GEt(),mhn=(QEt(),nt(JEt));function oCt(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var cCt=oCt(dhn),cj=oCt(fhn),dj=":";function uCt(r){let[e,t]=r.split(dj);return{namespace:e,reference:t}}function lCt(r){let{namespace:e,reference:t}=r;return[e,t].join(dj)}function She(r){let[e,t,n]=r.split(dj);return{namespace:e,reference:t,address:n}}function dCt(r){let{namespace:e,reference:t,address:n}=r;return[e,t,n].join(dj)}function Phe(r,e){let t=[];return r.forEach(n=>{let a=e(n);t.includes(a)||t.push(a)}),t}function pCt(r){let{address:e}=She(r);return e}function hCt(r){let{namespace:e,reference:t}=She(r);return lCt({namespace:e,reference:t})}function yhn(r,e){let{namespace:t,reference:n}=uCt(e);return dCt({namespace:t,reference:n,address:r})}function ghn(r){return Phe(r,pCt)}function fCt(r){return Phe(r,hCt)}function bhn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...a.accounts)}),t}function vhn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...fCt(a.accounts))}),t}function whn(r,e=[]){let t=[];return Object.keys(r).forEach(n=>{if(e.length&&!e.includes(n))return;let a=r[n];t.push(...pj(n,a))}),t}function pj(r,e){return r.includes(":")?[r]:e.chains||[]}var hj=r=>r?.split(":"),mCt=r=>{let e=r&&hj(r);if(e)return e[3]},_hn=r=>{let e=r&&hj(r);if(e)return e[2]+":"+e[3]},yCt=r=>{let e=r&&hj(r);if(e)return e.pop()},xhn=(r,e)=>{let t=`${r.domain} wants you to sign in with your Ethereum account:`,n=yCt(e),a=r.statement,i=`URI: ${r.aud}`,s=`Version: ${r.version}`,o=`Chain ID: ${mCt(e)}`,c=`Nonce: ${r.nonce}`,u=`Issued At: ${r.iat}`,l=r.resources&&r.resources.length>0?`Resources: ${r.resources.map(h=>`- ${h}`).join(` `)}`:void 0;return[t,n,"",a,"",i,s,o,c,u,l].filter(h=>h!=null).join(` -`)},Xpe="base10",Zu="base16",WH="base64pad",KH="utf8",ehe=0,y6=1,mpn=0,tEt=1,$pe=12,the=32;function ypn(){let r=dEt.generateKeyPair();return{privateKey:Mi.toString(r.secretKey,Zu),publicKey:Mi.toString(r.publicKey,Zu)}}function gpn(){let r=uEt.randomBytes(the);return Mi.toString(r,Zu)}function bpn(r,e){let t=dEt.sharedKey(Mi.fromString(r,Zu),Mi.fromString(e,Zu)),n=new rpn.HKDF(Jpe.SHA256,t).expand(the);return Mi.toString(n,Zu)}function vpn(r){let e=Jpe.hash(Mi.fromString(r,Zu));return Mi.toString(e,Zu)}function wpn(r){let e=Jpe.hash(Mi.fromString(r,KH));return Mi.toString(e,Zu)}function wEt(r){return Mi.fromString(`${r}`,Xpe)}function _S(r){return Number(Mi.toString(r,Xpe))}function xpn(r){let e=wEt(typeof r.type<"u"?r.type:ehe);if(_S(e)===y6&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?Mi.fromString(r.senderPublicKey,Zu):void 0,n=typeof r.iv<"u"?Mi.fromString(r.iv,Zu):uEt.randomBytes($pe),a=new cEt.ChaCha20Poly1305(Mi.fromString(r.symKey,Zu)).seal(n,Mi.fromString(r.message,KH));return xEt({type:e,sealed:a,iv:n,senderPublicKey:t})}function _pn(r){let e=new cEt.ChaCha20Poly1305(Mi.fromString(r.symKey,Zu)),{sealed:t,iv:n}=rhe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return Mi.toString(a,KH)}function xEt(r){if(_S(r.type)===y6){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Mi.toString(Mi.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),WH)}return Mi.toString(Mi.concat([r.type,r.iv,r.sealed]),WH)}function rhe(r){let e=Mi.fromString(r,WH),t=e.slice(mpn,tEt),n=tEt;if(_S(t)===y6){let o=n+the,c=o+$pe,u=e.slice(n,o),l=e.slice(o,c),h=e.slice(c);return{type:t,sealed:h,iv:l,senderPublicKey:u}}let a=n+$pe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function Tpn(r,e){let t=rhe(r);return _Et({type:_S(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Mi.toString(t.senderPublicKey,Zu):void 0,receiverPublicKey:e?.receiverPublicKey})}function _Et(r){let e=r?.type||ehe;if(e===y6){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function Epn(r){return r.type===y6&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var Cpn=Object.defineProperty,rEt=Object.getOwnPropertySymbols,Ipn=Object.prototype.hasOwnProperty,kpn=Object.prototype.propertyIsEnumerable,nEt=(r,e,t)=>e in r?Cpn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,aEt=(r,e)=>{for(var t in e||(e={}))Ipn.call(e,t)&&nEt(r,t,e[t]);if(rEt)for(var t of rEt(e))kpn.call(e,t)&&nEt(r,t,e[t]);return r},TEt="ReactNative",f6={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},UH=" ",Apn=":",EEt="/",nhe=2,Spn=1e3,CEt="js";function ahe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function IEt(){return!xS.getDocument()&&!!xS.getNavigator()&&navigator.product===TEt}function kEt(){return!ahe()&&!!xS.getNavigator()}function ihe(){return IEt()?f6.reactNative:ahe()?f6.node:kEt()?f6.browser:f6.unknown}function AEt(r,e){let t=FH.parse(r);return t=aEt(aEt({},t),e),r=FH.stringify(t),r}function Ppn(){return ipn.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function Rpn(r,e){var t;let n=ihe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=xS.getLocation())==null?void 0:t.host)||"unknown"),a}function SEt(){let r=apn.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function PEt(){var r;let e=ihe();return e===f6.browser?[e,((r=xS.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function REt(r,e,t){let n=SEt(),a=PEt();return[[r,e].join("-"),[CEt,t].join("-"),n,a].join("/")}function Mpn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=REt(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=AEt(o[1]||"",u);return o[0]+"?"+l}function Npn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function Bpn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function MEt(r,e=nhe){return NEt(r.split(EEt),e)}function Dpn(r){return MEt(r).join(UH)}function bg(r,e){return r.filter(t=>e.includes(t)).length===r.length}function NEt(r,e=nhe){return r.slice(Math.max(r.length-e,0))}function Opn(r){return Object.fromEntries(r.entries())}function Lpn(r){return new Map(Object.entries(r))}function qpn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var Fpn=r=>r;function BEt(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function Wpn(r){return r.split(UH).map(e=>BEt(e)).join(UH)}function Upn(r=m6.FIVE_MINUTES,e){let t=m6.toMiliseconds(r||m6.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function Hpn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function she(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function jpn(r){return she("topic",r)}function zpn(r){return she("id",r)}function Kpn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function Vpn(r,e){return m6.fromMiliseconds((e||Date.now())+m6.toMiliseconds(r))}function Gpn(r){return Date.now()>=m6.toMiliseconds(r)}function $pn(r,e){return`${r}${e?`:${e}`:""}`}var DEt="irn";function Ypn(r){return r?.relay||{protocol:DEt}}function Jpn(r){let e=opn.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var Qpn=Object.defineProperty,iEt=Object.getOwnPropertySymbols,Zpn=Object.prototype.hasOwnProperty,Xpn=Object.prototype.propertyIsEnumerable,sEt=(r,e,t)=>e in r?Qpn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,ehn=(r,e)=>{for(var t in e||(e={}))Zpn.call(e,t)&&sEt(r,t,e[t]);if(iEt)for(var t of iEt(e))Xpn.call(e,t)&&sEt(r,t,e[t]);return r};function OEt(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function thn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=FH.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:OEt(s)}}function LEt(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function rhn(r){return`${r.protocol}:${r.topic}@${r.version}?`+FH.stringify(ehn({symKey:r.symKey},LEt(r.relay)))}function ow(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function qEt(r){let e=[];return Object.values(r).forEach(t=>{e.push(...ow(t.accounts))}),e}function FEt(r,e){let t=[];return Object.values(r).forEach(n=>{ow(n.accounts).includes(e)&&t.push(...n.methods)}),t}function WEt(r,e){let t=[];return Object.values(r).forEach(n=>{ow(n.accounts).includes(e)&&t.push(...n.events)}),t}function nhn(r,e){let t=GEt(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var ahn={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}},ihn={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 ay(r,e){let{message:t,code:n}=ihn[r];return{message:e?`${t} ${e}`:t,code:n}}function sw(r,e){let{message:t,code:n}=ahn[r];return{message:e?`${t} ${e}`:t,code:n}}function TS(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function ohe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function vg(r){return typeof r>"u"}function Td(r,e){return e&&vg(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function VH(r,e){return e&&vg(r)?!0:typeof r=="number"&&!isNaN(r)}function shn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return bg(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=ow(o),h=t[s];(!bg(jH(s,h),l)||!bg(h.methods,c)||!bg(h.events,u))&&(i=!1)}),i):!1}function GH(r){return Td(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function UEt(r){if(Td(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&GH(t)}}return!1}function ohn(r){if(Td(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function chn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function uhn(r){return r?.topic}function lhn(r,e){let t=null;return Td(r?.publicKey,!1)||(t=ay("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function Ype(r){let e=!0;return TS(r)?r.length&&(e=r.every(t=>Td(t,!1))):e=!1,e}function HEt(r,e,t){let n=null;return TS(e)?e.forEach(a=>{n||(!GH(a)||!a.includes(r))&&(n=sw("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=sw("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function jEt(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=HEt(n,jH(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function zEt(r,e){let t=null;return TS(r)?r.forEach(n=>{t||UEt(n)||(t=sw("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=sw("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function KEt(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=zEt(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function VEt(r,e){let t=null;return Ype(r?.methods)?Ype(r?.events)||(t=sw("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=sw("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function che(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=VEt(n,`${e}, namespace`);a&&(t=a)}),t}function dhn(r,e,t){let n=null;if(r&&ohe(r)){let a=che(r,e);a&&(n=a);let i=jEt(r,e);i&&(n=i)}else n=ay("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function GEt(r,e){let t=null;if(r&&ohe(r)){let n=che(r,e);n&&(t=n);let a=KEt(r,e);a&&(t=a)}else t=ay("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function $Et(r){return Td(r.protocol,!0)}function phn(r,e){let t=!1;return e&&!r?t=!0:r&&TS(r)&&r.length&&r.forEach(n=>{t=$Et(n)}),t}function hhn(r){return typeof r=="number"}function fhn(r){return typeof r<"u"&&typeof r!==null}function mhn(r){return!(!r||typeof r!="object"||!r.code||!VH(r.code,!1)||!r.message||!Td(r.message,!1))}function yhn(r){return!(vg(r)||!Td(r.method,!1))}function ghn(r){return!(vg(r)||vg(r.result)&&vg(r.error)||!VH(r.id,!1)||!Td(r.jsonrpc,!1))}function bhn(r){return!(vg(r)||!Td(r.name,!1))}function vhn(r,e){return!(!GH(e)||!qEt(r).includes(e))}function whn(r,e,t){return Td(t,!1)?FEt(r,e).includes(t):!1}function xhn(r,e,t){return Td(t,!1)?WEt(r,e).includes(t):!1}function _hn(r,e,t){let n=null,a=Thn(r),i=Ehn(e),s=Object.keys(a),o=Object.keys(i),c=oEt(Object.keys(r)),u=oEt(Object.keys(e)),l=c.filter(h=>!u.includes(h));return l.length&&(n=ay("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. +`)},Rhe="base10",rl="base16",uj="base64pad",fj="utf8",Mhe=0,L6=1,Thn=0,ZEt=1,Ihe=12,Nhe=32;function Ehn(){let r=cCt.generateKeyPair();return{privateKey:Mi.toString(r.secretKey,rl),publicKey:Mi.toString(r.publicKey,rl)}}function Chn(){let r=sCt.randomBytes(Nhe);return Mi.toString(r,rl)}function Ihn(r,e){let t=cCt.sharedKey(Mi.fromString(r,rl),Mi.fromString(e,rl)),n=new lhn.HKDF(Ahe.SHA256,t).expand(Nhe);return Mi.toString(n,rl)}function khn(r){let e=Ahe.hash(Mi.fromString(r,rl));return Mi.toString(e,rl)}function Ahn(r){let e=Ahe.hash(Mi.fromString(r,fj));return Mi.toString(e,rl)}function gCt(r){return Mi.fromString(`${r}`,Rhe)}function US(r){return Number(Mi.toString(r,Rhe))}function Shn(r){let e=gCt(typeof r.type<"u"?r.type:Mhe);if(US(e)===L6&&typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");let t=typeof r.senderPublicKey<"u"?Mi.fromString(r.senderPublicKey,rl):void 0,n=typeof r.iv<"u"?Mi.fromString(r.iv,rl):sCt.randomBytes(Ihe),a=new iCt.ChaCha20Poly1305(Mi.fromString(r.symKey,rl)).seal(n,Mi.fromString(r.message,fj));return bCt({type:e,sealed:a,iv:n,senderPublicKey:t})}function Phn(r){let e=new iCt.ChaCha20Poly1305(Mi.fromString(r.symKey,rl)),{sealed:t,iv:n}=Bhe(r.encoded),a=e.open(n,t);if(a===null)throw new Error("Failed to decrypt");return Mi.toString(a,fj)}function bCt(r){if(US(r.type)===L6){if(typeof r.senderPublicKey>"u")throw new Error("Missing sender public key for type 1 envelope");return Mi.toString(Mi.concat([r.type,r.senderPublicKey,r.iv,r.sealed]),uj)}return Mi.toString(Mi.concat([r.type,r.iv,r.sealed]),uj)}function Bhe(r){let e=Mi.fromString(r,uj),t=e.slice(Thn,ZEt),n=ZEt;if(US(t)===L6){let o=n+Nhe,c=o+Ihe,u=e.slice(n,o),l=e.slice(o,c),h=e.slice(c);return{type:t,sealed:h,iv:l,senderPublicKey:u}}let a=n+Ihe,i=e.slice(n,a),s=e.slice(a);return{type:t,sealed:s,iv:i}}function Rhn(r,e){let t=Bhe(r);return vCt({type:US(t.type),senderPublicKey:typeof t.senderPublicKey<"u"?Mi.toString(t.senderPublicKey,rl):void 0,receiverPublicKey:e?.receiverPublicKey})}function vCt(r){let e=r?.type||Mhe;if(e===L6){if(typeof r?.senderPublicKey>"u")throw new Error("missing sender public key");if(typeof r?.receiverPublicKey>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:r?.senderPublicKey,receiverPublicKey:r?.receiverPublicKey}}function Mhn(r){return r.type===L6&&typeof r.senderPublicKey=="string"&&typeof r.receiverPublicKey=="string"}var Nhn=Object.defineProperty,XEt=Object.getOwnPropertySymbols,Bhn=Object.prototype.hasOwnProperty,Dhn=Object.prototype.propertyIsEnumerable,eCt=(r,e,t)=>e in r?Nhn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,tCt=(r,e)=>{for(var t in e||(e={}))Bhn.call(e,t)&&eCt(r,t,e[t]);if(XEt)for(var t of XEt(e))Dhn.call(e,t)&&eCt(r,t,e[t]);return r},wCt="ReactNative",D6={reactNative:"react-native",node:"node",browser:"browser",unknown:"unknown"},lj=" ",Ohn=":",_Ct="/",Dhe=2,Lhn=1e3,xCt="js";function Ohe(){return typeof g<"u"&&typeof g.versions<"u"&&typeof g.versions.node<"u"}function TCt(){return!WS.getDocument()&&!!WS.getNavigator()&&navigator.product===wCt}function ECt(){return!Ohe()&&!!WS.getNavigator()}function Lhe(){return TCt()?D6.reactNative:Ohe()?D6.node:ECt()?D6.browser:D6.unknown}function CCt(r,e){let t=cj.parse(r);return t=tCt(tCt({},t),e),r=cj.stringify(t),r}function qhn(){return hhn.getWindowMetadata()||{name:"",description:"",url:"",icons:[""]}}function Fhn(r,e){var t;let n=Lhe(),a={protocol:r,version:e,env:n};return n==="browser"&&(a.host=((t=WS.getLocation())==null?void 0:t.host)||"unknown"),a}function ICt(){let r=phn.detect();if(r===null)return"unknown";let e=r.os?r.os.replace(" ","").toLowerCase():"unknown";return r.type==="browser"?[e,r.name,r.version].join("-"):[e,r.version].join("-")}function kCt(){var r;let e=Lhe();return e===D6.browser?[e,((r=WS.getLocation())==null?void 0:r.host)||"unknown"].join(":"):e}function ACt(r,e,t){let n=ICt(),a=kCt();return[[r,e].join("-"),[xCt,t].join("-"),n,a].join("/")}function Whn({protocol:r,version:e,relayUrl:t,sdkVersion:n,auth:a,projectId:i,useOnCloseEvent:s}){let o=t.split("?"),c=ACt(r,e,n),u={auth:a,ua:c,projectId:i,useOnCloseEvent:s||void 0},l=CCt(o[1]||"",u);return o[0]+"?"+l}function Uhn(r){let e=(r.match(/^[^:]+(?=:\/\/)/gi)||[])[0],t=typeof e<"u"?r.split("://")[1]:r;return e=e==="wss"?"https":"http",[e,t].join("://")}function Hhn(r,e,t){if(!r[e]||typeof r[e]!==t)throw new Error(`Missing or invalid "${e}" param`)}function SCt(r,e=Dhe){return PCt(r.split(_Ct),e)}function jhn(r){return SCt(r).join(lj)}function kg(r,e){return r.filter(t=>e.includes(t)).length===r.length}function PCt(r,e=Dhe){return r.slice(Math.max(r.length-e,0))}function zhn(r){return Object.fromEntries(r.entries())}function Khn(r){return new Map(Object.entries(r))}function Ghn(r,e){let t={};return Object.keys(r).forEach(n=>{t[n]=e(r[n])}),t}var Vhn=r=>r;function RCt(r){return r.trim().replace(/^\w/,e=>e.toUpperCase())}function $hn(r){return r.split(lj).map(e=>RCt(e)).join(lj)}function Yhn(r=O6.FIVE_MINUTES,e){let t=O6.toMiliseconds(r||O6.FIVE_MINUTES),n,a,i;return{resolve:s=>{i&&n&&(clearTimeout(i),n(s))},reject:s=>{i&&a&&(clearTimeout(i),a(s))},done:()=>new Promise((s,o)=>{i=setTimeout(()=>{o(new Error(e))},t),n=s,a=o})}}function Jhn(r,e){return new Promise(async(t,n)=>{let a=setTimeout(()=>n(),e),i=await r;clearTimeout(a),t(i)})}function qhe(r,e){if(typeof e=="string"&&e.startsWith(`${r}:`))return e;if(r.toLowerCase()==="topic"){if(typeof e!="string")throw new Error('Value must be "string" for expirer target type: topic');return`topic:${e}`}else if(r.toLowerCase()==="id"){if(typeof e!="number")throw new Error('Value must be "number" for expirer target type: id');return`id:${e}`}throw new Error(`Unknown expirer target type: ${r}`)}function Qhn(r){return qhe("topic",r)}function Zhn(r){return qhe("id",r)}function Xhn(r){let[e,t]=r.split(":"),n={id:void 0,topic:void 0};if(e==="topic"&&typeof t=="string")n.topic=t;else if(e==="id"&&Number.isInteger(Number(t)))n.id=Number(t);else throw new Error(`Invalid target, expected id:number or topic:string, got ${e}:${t}`);return n}function efn(r,e){return O6.fromMiliseconds((e||Date.now())+O6.toMiliseconds(r))}function tfn(r){return Date.now()>=O6.toMiliseconds(r)}function rfn(r,e){return`${r}${e?`:${e}`:""}`}var MCt="irn";function nfn(r){return r?.relay||{protocol:MCt}}function afn(r){let e=mhn.RELAY_JSONRPC[r];if(typeof e>"u")throw new Error(`Relay Protocol not supported: ${r}`);return e}var ifn=Object.defineProperty,rCt=Object.getOwnPropertySymbols,sfn=Object.prototype.hasOwnProperty,ofn=Object.prototype.propertyIsEnumerable,nCt=(r,e,t)=>e in r?ifn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,cfn=(r,e)=>{for(var t in e||(e={}))sfn.call(e,t)&&nCt(r,t,e[t]);if(rCt)for(var t of rCt(e))ofn.call(e,t)&&nCt(r,t,e[t]);return r};function NCt(r,e="-"){let t={},n="relay"+e;return Object.keys(r).forEach(a=>{if(a.startsWith(n)){let i=a.replace(n,""),s=r[a];t[i]=s}}),t}function ufn(r){let e=r.indexOf(":"),t=r.indexOf("?")!==-1?r.indexOf("?"):void 0,n=r.substring(0,e),a=r.substring(e+1,t).split("@"),i=typeof t<"u"?r.substring(t):"",s=cj.parse(i);return{protocol:n,topic:a[0],version:parseInt(a[1],10),symKey:s.symKey,relay:NCt(s)}}function BCt(r,e="-"){let t="relay",n={};return Object.keys(r).forEach(a=>{let i=t+e+a;r[a]&&(n[i]=r[a])}),n}function lfn(r){return`${r.protocol}:${r.topic}@${r.version}?`+cj.stringify(cfn({symKey:r.symKey},BCt(r.relay)))}function yw(r){let e=[];return r.forEach(t=>{let[n,a]=t.split(":");e.push(`${n}:${a}`)}),e}function DCt(r){let e=[];return Object.values(r).forEach(t=>{e.push(...yw(t.accounts))}),e}function OCt(r,e){let t=[];return Object.values(r).forEach(n=>{yw(n.accounts).includes(e)&&t.push(...n.methods)}),t}function LCt(r,e){let t=[];return Object.values(r).forEach(n=>{yw(n.accounts).includes(e)&&t.push(...n.events)}),t}function dfn(r,e){let t=zCt(r,e);if(t)throw new Error(t.message);let n={};for(let[a,i]of Object.entries(r))n[a]={methods:i.methods,events:i.events,chains:i.accounts.map(s=>`${s.split(":")[0]}:${s.split(":")[1]}`)};return n}var pfn={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}},hfn={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 cy(r,e){let{message:t,code:n}=hfn[r];return{message:e?`${t} ${e}`:t,code:n}}function mw(r,e){let{message:t,code:n}=pfn[r];return{message:e?`${t} ${e}`:t,code:n}}function HS(r,e){return Array.isArray(r)?typeof e<"u"&&r.length?r.every(e):!0:!1}function Fhe(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.keys(r).length}function Ag(r){return typeof r>"u"}function Cd(r,e){return e&&Ag(r)?!0:typeof r=="string"&&Boolean(r.trim().length)}function mj(r,e){return e&&Ag(r)?!0:typeof r=="number"&&!isNaN(r)}function ffn(r,e){let{requiredNamespaces:t}=e,n=Object.keys(r.namespaces),a=Object.keys(t),i=!0;return kg(a,n)?(n.forEach(s=>{let{accounts:o,methods:c,events:u}=r.namespaces[s],l=yw(o),h=t[s];(!kg(pj(s,h),l)||!kg(h.methods,c)||!kg(h.events,u))&&(i=!1)}),i):!1}function yj(r){return Cd(r,!1)&&r.includes(":")?r.split(":").length===2:!1}function qCt(r){if(Cd(r,!1)&&r.includes(":")){let e=r.split(":");if(e.length===3){let t=e[0]+":"+e[1];return!!e[2]&&yj(t)}}return!1}function mfn(r){if(Cd(r,!1))try{return typeof new URL(r)<"u"}catch{return!1}return!1}function yfn(r){var e;return(e=r?.proposer)==null?void 0:e.publicKey}function gfn(r){return r?.topic}function bfn(r,e){let t=null;return Cd(r?.publicKey,!1)||(t=cy("MISSING_OR_INVALID",`${e} controller public key should be a string`)),t}function khe(r){let e=!0;return HS(r)?r.length&&(e=r.every(t=>Cd(t,!1))):e=!1,e}function FCt(r,e,t){let n=null;return HS(e)?e.forEach(a=>{n||(!yj(a)||!a.includes(r))&&(n=mw("UNSUPPORTED_CHAINS",`${t}, chain ${a} should be a string and conform to "namespace:chainId" format`))}):n=mw("UNSUPPORTED_CHAINS",`${t}, chains ${e} should be an array of strings conforming to "namespace:chainId" format`),n}function WCt(r,e){let t=null;return Object.entries(r).forEach(([n,a])=>{if(t)return;let i=FCt(n,pj(n,a),`${e} requiredNamespace`);i&&(t=i)}),t}function UCt(r,e){let t=null;return HS(r)?r.forEach(n=>{t||qCt(n)||(t=mw("UNSUPPORTED_ACCOUNTS",`${e}, account ${n} should be a string and conform to "namespace:chainId:address" format`))}):t=mw("UNSUPPORTED_ACCOUNTS",`${e}, accounts should be an array of strings conforming to "namespace:chainId:address" format`),t}function HCt(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=UCt(n?.accounts,`${e} namespace`);a&&(t=a)}),t}function jCt(r,e){let t=null;return khe(r?.methods)?khe(r?.events)||(t=mw("UNSUPPORTED_EVENTS",`${e}, events should be an array of strings or empty array for no events`)):t=mw("UNSUPPORTED_METHODS",`${e}, methods should be an array of strings or empty array for no methods`),t}function Whe(r,e){let t=null;return Object.values(r).forEach(n=>{if(t)return;let a=jCt(n,`${e}, namespace`);a&&(t=a)}),t}function vfn(r,e,t){let n=null;if(r&&Fhe(r)){let a=Whe(r,e);a&&(n=a);let i=WCt(r,e);i&&(n=i)}else n=cy("MISSING_OR_INVALID",`${e}, ${t} should be an object with data`);return n}function zCt(r,e){let t=null;if(r&&Fhe(r)){let n=Whe(r,e);n&&(t=n);let a=HCt(r,e);a&&(t=a)}else t=cy("MISSING_OR_INVALID",`${e}, namespaces should be an object with data`);return t}function KCt(r){return Cd(r.protocol,!0)}function wfn(r,e){let t=!1;return e&&!r?t=!0:r&&HS(r)&&r.length&&r.forEach(n=>{t=KCt(n)}),t}function _fn(r){return typeof r=="number"}function xfn(r){return typeof r<"u"&&typeof r!==null}function Tfn(r){return!(!r||typeof r!="object"||!r.code||!mj(r.code,!1)||!r.message||!Cd(r.message,!1))}function Efn(r){return!(Ag(r)||!Cd(r.method,!1))}function Cfn(r){return!(Ag(r)||Ag(r.result)&&Ag(r.error)||!mj(r.id,!1)||!Cd(r.jsonrpc,!1))}function Ifn(r){return!(Ag(r)||!Cd(r.name,!1))}function kfn(r,e){return!(!yj(e)||!DCt(r).includes(e))}function Afn(r,e,t){return Cd(t,!1)?OCt(r,e).includes(t):!1}function Sfn(r,e,t){return Cd(t,!1)?LCt(r,e).includes(t):!1}function Pfn(r,e,t){let n=null,a=Rfn(r),i=Mfn(e),s=Object.keys(a),o=Object.keys(i),c=aCt(Object.keys(r)),u=aCt(Object.keys(e)),l=c.filter(h=>!u.includes(h));return l.length&&(n=cy("NON_CONFORMING_NAMESPACES",`${t} namespaces keys don't satisfy requiredNamespaces. Required: ${l.toString()} - Received: ${Object.keys(e).toString()}`)),bg(s,o)||(n=ay("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. + Received: ${Object.keys(e).toString()}`)),kg(s,o)||(n=cy("NON_CONFORMING_NAMESPACES",`${t} namespaces chains don't satisfy required namespaces. Required: ${s.toString()} - Approved: ${o.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||n)return;let f=ow(e[h].accounts);f.includes(h)||(n=ay("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${h} + Approved: ${o.toString()}`)),Object.keys(e).forEach(h=>{if(!h.includes(":")||n)return;let f=yw(e[h].accounts);f.includes(h)||(n=cy("NON_CONFORMING_NAMESPACES",`${t} namespaces accounts don't satisfy namespace accounts for ${h} Required: ${h} - Approved: ${f.toString()}`))}),s.forEach(h=>{n||(bg(a[h].methods,i[h].methods)?bg(a[h].events,i[h].events)||(n=ay("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${h}`)):n=ay("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${h}`))}),n}function Thn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function oEt(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function Ehn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:ow(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function Chn(r,e){return VH(r,!1)&&r<=e.max&&r>=e.min}we.BASE10=Xpe,we.BASE16=Zu,we.BASE64=WH,we.COLON=Apn,we.DEFAULT_DEPTH=nhe,we.EMPTY_SPACE=UH,we.ENV_MAP=f6,we.ONE_THOUSAND=Spn,we.REACT_NATIVE_PRODUCT=TEt,we.RELAYER_DEFAULT_PROTOCOL=DEt,we.SDK_TYPE=CEt,we.SLASH=EEt,we.TYPE_0=ehe,we.TYPE_1=y6,we.UTF8=KH,we.appendToQueryString=AEt,we.assertType=Bpn,we.calcExpiry=Vpn,we.capitalize=Wpn,we.capitalizeWord=BEt,we.createDelayedPromise=Upn,we.createExpiringPromise=Hpn,we.decodeTypeByte=_S,we.decrypt=_pn,we.deriveSymKey=bpn,we.deserialize=rhe,we.encodeTypeByte=wEt,we.encrypt=xpn,we.engineEvent=$pn,we.enumify=Fpn,we.formatAccountId=fEt,we.formatAccountWithChain=cpn,we.formatChainId=hEt,we.formatExpirerTarget=she,we.formatIdTarget=zpn,we.formatMessage=fpn,we.formatMessageContext=Dpn,we.formatRelayParams=LEt,we.formatRelayRpcUrl=Mpn,we.formatTopicTarget=jpn,we.formatUA=REt,we.formatUri=rhn,we.generateKeyPair=ypn,we.generateRandomBytes32=gpn,we.getAccountsChains=ow,we.getAccountsFromNamespaces=lpn,we.getAddressFromAccount=mEt,we.getAddressesFromAccounts=upn,we.getAppMetadata=Ppn,we.getChainFromAccount=yEt,we.getChainsFromAccounts=gEt,we.getChainsFromNamespace=jH,we.getChainsFromNamespaces=dpn,we.getChainsFromRequiredNamespaces=ppn,we.getDidAddress=vEt,we.getDidAddressSegments=zH,we.getDidChainId=bEt,we.getEnvironment=ihe,we.getHttpUrl=Npn,we.getInternalError=ay,we.getJavascriptID=PEt,we.getJavascriptOS=SEt,we.getLastItems=NEt,we.getNamespacedDidChainId=hpn,we.getNamespacesChains=qEt,we.getNamespacesEventsForChainId=WEt,we.getNamespacesMethodsForChainId=FEt,we.getRelayClientMetadata=Rpn,we.getRelayProtocolApi=Jpn,we.getRelayProtocolName=Ypn,we.getRequiredNamespacesFromNamespaces=nhn,we.getSdkError=sw,we.getUniqueValues=Zpe,we.hasOverlap=bg,we.hashKey=vpn,we.hashMessage=wpn,we.isBrowser=kEt,we.isConformingNamespaces=_hn,we.isExpired=Gpn,we.isNode=ahe,we.isProposalStruct=chn,we.isReactNative=IEt,we.isSessionCompatible=shn,we.isSessionStruct=uhn,we.isTypeOneEnvelope=Epn,we.isUndefined=vg,we.isValidAccountId=UEt,we.isValidAccounts=zEt,we.isValidActions=VEt,we.isValidArray=TS,we.isValidChainId=GH,we.isValidChains=HEt,we.isValidController=lhn,we.isValidErrorReason=mhn,we.isValidEvent=bhn,we.isValidId=hhn,we.isValidNamespaceAccounts=KEt,we.isValidNamespaceActions=che,we.isValidNamespaceChains=jEt,we.isValidNamespaceMethodsOrEvents=Ype,we.isValidNamespaces=GEt,we.isValidNamespacesChainId=vhn,we.isValidNamespacesEvent=xhn,we.isValidNamespacesRequest=whn,we.isValidNumber=VH,we.isValidObject=ohe,we.isValidParams=fhn,we.isValidRelay=$Et,we.isValidRelays=phn,we.isValidRequest=yhn,we.isValidRequestExpiry=Chn,we.isValidRequiredNamespaces=dhn,we.isValidResponse=ghn,we.isValidString=Td,we.isValidUrl=ohn,we.mapEntries=qpn,we.mapToObj=Opn,we.objToMap=Lpn,we.parseAccountId=Qpe,we.parseChainId=pEt,we.parseContextNames=MEt,we.parseExpirerTarget=Kpn,we.parseRelayParams=OEt,we.parseUri=thn,we.serialize=xEt,we.validateDecoding=Tpn,we.validateEncoding=_Et});var JEt=_((q2a,YEt)=>{"use strict";d();p();function Ihn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}YEt.exports=khn;function khn(r,e,t){var n=t&&t.stringify||Ihn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?h:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;h=c||e[l]==null)break;h=c||e[l]===void 0)break;h",h=m+2,m++;break}u+=n(e[l]),h=m+2,m++;break;case 115:if(l>=c)break;h{"use strict";d();p();var QEt=JEt();eCt.exports=Pm;var CS=Lhn().console||{},Ahn={mapHttpRequest:$H,mapHttpResponse:$H,wrapRequestSerializer:uhe,wrapResponseSerializer:uhe,wrapErrorSerializer:uhe,req:$H,res:$H,err:Nhn};function Shn(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function Pm(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||CS;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=Shn(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=IS),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:h,set:f});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:Bhn(r)};c.levels=Pm.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=IS,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=lhe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,g6(u,c,"error","log"),g6(u,c,"fatal","error"),g6(u,c,"warn","error"),g6(u,c,"info","log"),g6(u,c,"debug","log"),g6(u,c,"trace","log")}function m(y,E){if(!y)throw new Error("missing bindings for child Pino");E=E||{},a&&y.serializers&&(E.serializers=y.serializers);let I=E.serializers;if(a&&I){var S=Object.assign({},n,I),L=r.browser.serialize===!0?Object.keys(S):a;delete y.serializers,YH([y],L,S,this._stdErrSerialize)}function F(W){this._childLevel=(W._childLevel|0)+1,this.error=b6(W,y,"error"),this.fatal=b6(W,y,"fatal"),this.warn=b6(W,y,"warn"),this.info=b6(W,y,"info"),this.debug=b6(W,y,"debug"),this.trace=b6(W,y,"trace"),S&&(this.serializers=S,this._serialize=L),e&&(this._logEvent=lhe([].concat(W._logEvent.bindings,y)))}return F.prototype=this,new F(this)}return c}Pm.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"}};Pm.stdSerializers=Ahn;Pm.stdTimeFunctions=Object.assign({},{nullTime:ZEt,epochTime:XEt,unixTime:Dhn,isoTime:Ohn});function g6(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?IS:a[t]?a[t]:CS[t]||CS[n]||IS,Phn(r,e,t)}function Phn(r,e,t){!r.transmit&&e[t]===IS||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===CS?CS:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function b6(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";d();p();Object.defineProperty(JH,"__esModule",{value:!0});function qhn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}JH.safeJsonParse=qhn;function Fhn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}JH.safeJsonStringify=Fhn});var tCt=_((G2a,QH)=>{"use strict";d();p();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?QH.exports=global.localStorage:typeof window<"u"&&window.localStorage?QH.exports=window.localStorage:QH.exports=new e})()});var rCt=_(ZH=>{"use strict";d();p();Object.defineProperty(ZH,"__esModule",{value:!0});ZH.IKeyValueStorage=void 0;var phe=class{};ZH.IKeyValueStorage=phe});var nCt=_(XH=>{"use strict";d();p();Object.defineProperty(XH,"__esModule",{value:!0});XH.parseEntry=void 0;var Whn=dhe();function Uhn(r){var e;return[r[0],Whn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}XH.parseEntry=Uhn});var iCt=_(ej=>{"use strict";d();p();Object.defineProperty(ej,"__esModule",{value:!0});var aCt=vd();aCt.__exportStar(rCt(),ej);aCt.__exportStar(nCt(),ej)});var oCt=_(AS=>{"use strict";d();p();Object.defineProperty(AS,"__esModule",{value:!0});AS.KeyValueStorage=void 0;var v6=vd(),sCt=dhe(),Hhn=v6.__importDefault(tCt()),jhn=iCt(),tj=class{constructor(){this.localStorage=Hhn.default}getKeys(){return v6.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return v6.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(jhn.parseEntry)})}getItem(e){return v6.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return sCt.safeJsonParse(t)})}setItem(e,t){return v6.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,sCt.safeJsonStringify(t))})}removeItem(e){return v6.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};AS.KeyValueStorage=tj;AS.default=tj});var hhe,cCt=ce(()=>{d();p();hhe=class{}});var fhe={};cr(fhe,{IEvents:()=>hhe});var mhe=ce(()=>{d();p();cCt()});var uCt=_(rj=>{"use strict";d();p();Object.defineProperty(rj,"__esModule",{value:!0});rj.IHeartBeat=void 0;var zhn=(mhe(),rt(fhe)),yhe=class extends zhn.IEvents{constructor(e){super()}};rj.IHeartBeat=yhe});var bhe=_(ghe=>{"use strict";d();p();Object.defineProperty(ghe,"__esModule",{value:!0});var Khn=vd();Khn.__exportStar(uCt(),ghe)});var lCt=_(w6=>{"use strict";d();p();Object.defineProperty(w6,"__esModule",{value:!0});w6.HEARTBEAT_EVENTS=w6.HEARTBEAT_INTERVAL=void 0;var Vhn=iw();w6.HEARTBEAT_INTERVAL=Vhn.FIVE_SECONDS;w6.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var whe=_(vhe=>{"use strict";d();p();Object.defineProperty(vhe,"__esModule",{value:!0});var Ghn=vd();Ghn.__exportStar(lCt(),vhe)});var dCt=_(nj=>{"use strict";d();p();Object.defineProperty(nj,"__esModule",{value:!0});nj.HeartBeat=void 0;var xhe=vd(),$hn=Mu(),Yhn=iw(),Jhn=bhe(),_he=whe(),SS=class extends Jhn.IHeartBeat{constructor(e){super(e),this.events=new $hn.EventEmitter,this.interval=_he.HEARTBEAT_INTERVAL,this.interval=e?.interval||_he.HEARTBEAT_INTERVAL}static init(e){return xhe.__awaiter(this,void 0,void 0,function*(){let t=new SS(e);return yield t.init(),t})}init(){return xhe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return xhe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),Yhn.toMiliseconds(this.interval))})}pulse(){this.events.emit(_he.HEARTBEAT_EVENTS.pulse)}};nj.HeartBeat=SS});var pCt=_(PS=>{"use strict";d();p();Object.defineProperty(PS,"__esModule",{value:!0});var The=vd();The.__exportStar(dCt(),PS);The.__exportStar(bhe(),PS);The.__exportStar(whe(),PS)});var Ehe=_(x6=>{"use strict";d();p();Object.defineProperty(x6,"__esModule",{value:!0});x6.PINO_CUSTOM_CONTEXT_KEY=x6.PINO_LOGGER_DEFAULTS=void 0;x6.PINO_LOGGER_DEFAULTS={level:"info"};x6.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var gCt=_(Wl=>{"use strict";d();p();Object.defineProperty(Wl,"__esModule",{value:!0});Wl.generateChildLogger=Wl.formatChildLoggerContext=Wl.getLoggerContext=Wl.setBrowserLoggerContext=Wl.getBrowserLoggerContext=Wl.getDefaultLoggerOptions=void 0;var _6=Ehe();function Qhn(r){return Object.assign(Object.assign({},r),{level:r?.level||_6.PINO_LOGGER_DEFAULTS.level})}Wl.getDefaultLoggerOptions=Qhn;function hCt(r,e=_6.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Wl.getBrowserLoggerContext=hCt;function fCt(r,e,t=_6.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Wl.setBrowserLoggerContext=fCt;function mCt(r,e=_6.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=hCt(r,e):t=r.bindings().context||"",t}Wl.getLoggerContext=mCt;function yCt(r,e,t=_6.PINO_CUSTOM_CONTEXT_KEY){let n=mCt(r,t);return n.trim()?`${n}/${e}`:e}Wl.formatChildLoggerContext=yCt;function Zhn(r,e,t=_6.PINO_CUSTOM_CONTEXT_KEY){let n=yCt(r,e,t),a=r.child({context:n});return fCt(a,n,t)}Wl.generateChildLogger=Zhn});var aj=_(T6=>{"use strict";d();p();Object.defineProperty(T6,"__esModule",{value:!0});T6.pino=void 0;var Che=vd(),Xhn=Che.__importDefault(kS());Object.defineProperty(T6,"pino",{enumerable:!0,get:function(){return Xhn.default}});Che.__exportStar(Ehe(),T6);Che.__exportStar(gCt(),T6)});var Hhe=_(Xo=>{"use strict";d();p();Object.defineProperty(Xo,"__esModule",{value:!0});var E6=(mhe(),rt(fhe)),bCt=Mu();function efn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var tfn=efn(bCt),Ihe=class extends E6.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},khe=class{constructor(e,t,n){this.core=e,this.logger=t}},Ahe=class extends E6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},She=class{constructor(e,t){this.logger=e,this.core=t}},Phe=class extends E6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},Rhe=class extends E6.IEvents{constructor(e){super()}},Mhe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},Nhe=class{constructor(){this.map=new Map}},Bhe=class extends E6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},Dhe=class{constructor(e,t){this.core=e,this.logger=t}},Ohe=class extends E6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},Lhe=class{constructor(e,t){this.logger=e,this.core=t}},qhe=class extends tfn.default{constructor(){super()}},Fhe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},Whe=class extends bCt.EventEmitter{constructor(){super()}},Uhe=class{constructor(e){this.client=e}};Xo.ICore=Ihe,Xo.ICrypto=khe,Xo.IEngine=Uhe,Xo.IEngineEvents=Whe,Xo.IExpirer=Ohe,Xo.IJsonRpcHistory=Ahe,Xo.IKeyChain=Dhe,Xo.IMessageTracker=She,Xo.IPairing=Lhe,Xo.IPublisher=Phe,Xo.IRelayer=Rhe,Xo.ISignClient=Fhe,Xo.ISignClientEvents=qhe,Xo.IStore=Mhe,Xo.ISubscriber=Bhe,Xo.ISubscriberTopicMap=Nhe});var xCt=_(iy=>{"use strict";d();p();Object.defineProperty(iy,"__esModule",{value:!0});var I6=u6(),C6=qp();iy.DIGEST_LENGTH=64;iy.BLOCK_SIZE=128;var wCt=function(){function r(){this.digestLength=iy.DIGEST_LENGTH,this.blockSize=iy.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 r.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},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){C6.wipe(this._buffer),C6.wipe(this._tempHi),C6.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(jhe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=jhe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){C6.wipe(e.stateHi),C6.wipe(e.stateLo),e.buffer&&C6.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();iy.SHA512=wCt;var vCt=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 jhe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],h=t[4],f=t[5],m=t[6],y=t[7],E=n[0],I=n[1],S=n[2],L=n[3],F=n[4],W=n[5],G=n[6],K=n[7],H,V,J,q,T,P,A,v;s>=128;){for(var k=0;k<16;k++){var O=8*k+i;r[k]=I6.readUint32BE(a,O),e[k]=I6.readUint32BE(a,O+4)}for(var k=0;k<80;k++){var D=o,B=c,x=u,N=l,U=h,C=f,z=m,ee=y,j=E,X=I,ie=S,ue=L,he=F,ke=W,ge=G,me=K;if(H=y,V=K,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=(h>>>14|F<<32-14)^(h>>>18|F<<32-18)^(F>>>41-32|h<<32-(41-32)),V=(F>>>14|h<<32-14)^(F>>>18|h<<32-18)^(h>>>41-32|F<<32-(41-32)),T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,H=h&f^~h&m,V=F&W^~F&G,T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,H=vCt[k*2],V=vCt[k*2+1],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,H=r[k%16],V=e[k%16],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,J=A&65535|v<<16,q=T&65535|P<<16,H=J,V=q,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=(o>>>28|E<<32-28)^(E>>>34-32|o<<32-(34-32))^(E>>>39-32|o<<32-(39-32)),V=(E>>>28|o<<32-28)^(o>>>34-32|E<<32-(34-32))^(o>>>39-32|E<<32-(39-32)),T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,H=o&c^o&u^c&u,V=E&I^E&S^I&S,T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,ee=A&65535|v<<16,me=T&65535|P<<16,H=N,V=ue,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=J,V=q,T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,N=A&65535|v<<16,ue=T&65535|P<<16,c=D,u=B,l=x,h=N,f=U,m=C,y=z,o=ee,I=j,S=X,L=ie,F=ue,W=he,G=ke,K=ge,E=me,k%16===15)for(var O=0;O<16;O++)H=r[O],V=e[O],T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=r[(O+9)%16],V=e[(O+9)%16],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,J=r[(O+1)%16],q=e[(O+1)%16],H=(J>>>1|q<<32-1)^(J>>>8|q<<32-8)^J>>>7,V=(q>>>1|J<<32-1)^(q>>>8|J<<32-8)^(q>>>7|J<<32-7),T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,J=r[(O+14)%16],q=e[(O+14)%16],H=(J>>>19|q<<32-19)^(q>>>61-32|J<<32-(61-32))^J>>>6,V=(q>>>19|J<<32-19)^(J>>>61-32|q<<32-(61-32))^(q>>>6|J<<32-6),T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,r[O]=A&65535|v<<16,e[O]=T&65535|P<<16}H=o,V=E,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[0],V=n[0],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[0]=o=A&65535|v<<16,n[0]=E=T&65535|P<<16,H=c,V=I,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[1],V=n[1],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[1]=c=A&65535|v<<16,n[1]=I=T&65535|P<<16,H=u,V=S,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[2],V=n[2],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[2]=u=A&65535|v<<16,n[2]=S=T&65535|P<<16,H=l,V=L,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[3],V=n[3],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[3]=l=A&65535|v<<16,n[3]=L=T&65535|P<<16,H=h,V=F,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[4],V=n[4],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[4]=h=A&65535|v<<16,n[4]=F=T&65535|P<<16,H=f,V=W,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[5],V=n[5],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[5]=f=A&65535|v<<16,n[5]=W=T&65535|P<<16,H=m,V=G,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[6],V=n[6],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[6]=m=A&65535|v<<16,n[6]=G=T&65535|P<<16,H=y,V=K,T=V&65535,P=V>>>16,A=H&65535,v=H>>>16,H=t[7],V=n[7],T+=V&65535,P+=V>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[7]=y=A&65535|v<<16,n[7]=K=T&65535|P<<16,i+=128,s-=128}return i}function rfn(r){var e=new wCt;e.update(r);var t=e.digest();return e.clean(),t}iy.hash=rfn});var DCt=_(Na=>{"use strict";d();p();Object.defineProperty(Na,"__esModule",{value:!0});Na.convertSecretKeyToX25519=Na.convertPublicKeyToX25519=Na.verify=Na.sign=Na.extractPublicKeyFromSecretKey=Na.generateKeyPair=Na.generateKeyPairFromSeed=Na.SEED_LENGTH=Na.SECRET_KEY_LENGTH=Na.PUBLIC_KEY_LENGTH=Na.SIGNATURE_LENGTH=void 0;var nfn=mS(),RS=xCt(),ICt=qp();Na.SIGNATURE_LENGTH=64;Na.PUBLIC_KEY_LENGTH=32;Na.SECRET_KEY_LENGTH=64;Na.SEED_LENGTH=32;function mt(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,kCt(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function ACt(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function ECt(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return MS(t,r),MS(n,e),ACt(t,n)}function SCt(r){let e=new Uint8Array(32);return MS(e,r),e[0]&1}function cfn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function cw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function lw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function Ka(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,F=0,W=0,G=0,K=0,H=0,V=0,J=0,q=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,x=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],ze=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*ze,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,F+=n*ze,W+=n*ve,G+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,F+=n*me,W+=n*ze,G+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,F+=n*ge,W+=n*me,G+=n*ze,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,G+=n*me,K+=n*ze,H+=n*ve,V+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,G+=n*ge,K+=n*me,H+=n*ze,V+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,F+=n*ue,W+=n*he,G+=n*ke,K+=n*ge,H+=n*me,V+=n*ze,J+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,F+=n*ie,W+=n*ue,G+=n*he,K+=n*ke,H+=n*ge,V+=n*me,J+=n*ze,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,F+=n*X,W+=n*ie,G+=n*ue,K+=n*he,H+=n*ke,V+=n*ge,J+=n*me,q+=n*ze,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,F+=n*j,W+=n*X,G+=n*ie,K+=n*ue,H+=n*he,V+=n*ke,J+=n*ge,q+=n*me,T+=n*ze,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,F+=n*ee,W+=n*j,G+=n*X,K+=n*ie,H+=n*ue,V+=n*he,J+=n*ke,q+=n*ge,T+=n*me,P+=n*ze,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,F+=n*z,W+=n*ee,G+=n*j,K+=n*X,H+=n*ie,V+=n*ue,J+=n*he,q+=n*ke,T+=n*ge,P+=n*me,A+=n*ze,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,F+=n*C,W+=n*z,G+=n*ee,K+=n*j,H+=n*X,V+=n*ie,J+=n*ue,q+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*ze,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*C,G+=n*z,K+=n*ee,H+=n*j,V+=n*X,J+=n*ie,q+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*ze,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,G+=n*C,K+=n*z,H+=n*ee,V+=n*j,J+=n*X,q+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*ze,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,G+=n*U,K+=n*C,H+=n*z,V+=n*ee,J+=n*j,q+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*ze,B+=n*ve,x+=n*Ae,i+=38*G,s+=38*K,o+=38*H,c+=38*V,u+=38*J,l+=38*q,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,F+=38*x,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=F,r[15]=W}function uw(r,e){Ka(r,e,e)}function PCt(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)uw(t,t),n!==2&&n!==4&&Ka(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function ufn(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)uw(t,t),n!==1&&Ka(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Ghe(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt(),u=mt(),l=mt();lw(t,r[1],r[0]),lw(l,e[1],e[0]),Ka(t,t,l),cw(n,r[0],r[1]),cw(l,e[0],e[1]),Ka(n,n,l),Ka(a,r[3],e[3]),Ka(a,a,sfn),Ka(i,r[2],e[2]),cw(i,i,i),lw(s,n,t),lw(o,i,a),cw(c,i,a),cw(u,n,t),Ka(r[0],s,o),Ka(r[1],u,c),Ka(r[2],c,o),Ka(r[3],s,u)}function CCt(r,e,t){for(let n=0;n<4;n++)kCt(r[n],e[n],t)}function Yhe(r,e){let t=mt(),n=mt(),a=mt();PCt(a,e[2]),Ka(t,e[0],a),Ka(n,e[1],a),MS(r,n),r[31]^=SCt(t)<<7}function RCt(r,e,t){wg(r[0],Vhe),wg(r[1],k6),wg(r[2],k6),wg(r[3],Vhe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;CCt(r,e,a),Ghe(e,r),Ghe(r,r),CCt(r,e,a)}}function Jhe(r,e){let t=[mt(),mt(),mt(),mt()];wg(t[0],_Ct),wg(t[1],TCt),wg(t[2],k6),Ka(t[3],_Ct,TCt),RCt(r,t,e)}function MCt(r){if(r.length!==Na.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Na.SEED_LENGTH} bytes`);let e=(0,RS.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[mt(),mt(),mt(),mt()];Jhe(n,e),Yhe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Na.generateKeyPairFromSeed=MCt;function lfn(r){let e=(0,nfn.randomBytes)(32,r),t=MCt(e);return(0,ICt.wipe)(e),t}Na.generateKeyPair=lfn;function dfn(r){if(r.length!==Na.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Na.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Na.extractPublicKeyFromSecretKey=dfn;var Khe=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 NCt(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*Khe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*Khe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function $he(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;NCt(r,e)}function pfn(r,e){let t=new Float64Array(64),n=[mt(),mt(),mt(),mt()],a=(0,RS.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new RS.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),$he(o),Jhe(n,o),Yhe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();$he(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return NCt(i.subarray(32),t),i}Na.sign=pfn;function BCt(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt();return wg(r[2],k6),cfn(r[1],e),uw(a,r[1]),Ka(i,a,ifn),lw(a,a,r[2]),cw(i,r[2],i),uw(s,i),uw(o,s),Ka(c,o,s),Ka(t,c,a),Ka(t,t,i),ufn(t,t),Ka(t,t,a),Ka(t,t,i),Ka(t,t,i),Ka(r[0],t,i),uw(n,r[0]),Ka(n,n,i),ECt(n,a)&&Ka(r[0],r[0],ofn),uw(n,r[0]),Ka(n,n,i),ECt(n,a)?-1:(SCt(r[0])===e[31]>>7&&lw(r[0],Vhe,r[0]),Ka(r[3],r[0],r[1]),0)}function hfn(r,e,t){let n=new Uint8Array(32),a=[mt(),mt(),mt(),mt()],i=[mt(),mt(),mt(),mt()];if(t.length!==Na.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Na.SIGNATURE_LENGTH} bytes`);if(BCt(i,r))return!1;let s=new RS.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return $he(o),RCt(a,i,o),Jhe(i,t.subarray(32)),Ghe(a,i),Yhe(n,a),!ACt(t,n)}Na.verify=hfn;function ffn(r){let e=[mt(),mt(),mt(),mt()];if(BCt(e,r))throw new Error("Ed25519: invalid public key");let t=mt(),n=mt(),a=e[1];cw(t,k6,a),lw(n,k6,a),PCt(n,n),Ka(t,t,n);let i=new Uint8Array(32);return MS(i,t),i}Na.convertPublicKeyToX25519=ffn;function mfn(r){let e=(0,RS.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,ICt.wipe)(e),t}Na.convertSecretKeyToX25519=mfn});var ij,sj,dw,A6,oj,NS,cj,uj,lj,S6,dj,pj,OCt,LCt,hj=ce(()=>{d();p();ij="EdDSA",sj="JWT",dw=".",A6="base64url",oj="utf8",NS="utf8",cj=":",uj="did",lj="key",S6="base58btc",dj="z",pj="K36",OCt=32,LCt=32});function BS(r){return Q0(Xf(wh(r,A6),oj))}function DS(r){return Xf(wh(Im(r),oj),A6)}function Qhe(r){let e=wh(pj,S6),t=dj+Xf(h4([e,r]),S6);return[uj,lj,t].join(cj)}function Zhe(r){let[e,t,n]=r.split(cj);if(e!==uj||t!==lj)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==dj)throw new Error("Issuer must be a key in mulicodec format");let i=wh(n.slice(1),S6);if(Xf(i.slice(0,2),S6)!==pj)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function qCt(r){return Xf(r,A6)}function FCt(r){return wh(r,A6)}function Xhe(r){return wh([DS(r.header),DS(r.payload)].join(dw),NS)}function yfn(r){let e=Xf(r,NS).split(dw),t=BS(e[0]),n=BS(e[1]);return{header:t,payload:n}}function efe(r){return[DS(r.header),DS(r.payload),qCt(r.signature)].join(dw)}function tfe(r){let e=r.split(dw),t=BS(e[0]),n=BS(e[1]),a=FCt(e[2]),i=wh(e.slice(0,2).join(dw),NS);return{header:t,payload:n,signature:a,data:i}}var rfe=ce(()=>{d();p();uv();tx();cv();ZT();hj()});function gfn(r=(0,WCt.randomBytes)(32)){return P6.generateKeyPairFromSeed(r)}async function bfn(r,e,t,n,a=(0,UCt.fromMiliseconds)(Date.now())){let i={alg:ij,typ:sj},s=Qhe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=Xhe({header:i,payload:c}),l=P6.sign(n.secretKey,u);return efe({header:i,payload:c,signature:l})}async function vfn(r){let{header:e,payload:t,data:n,signature:a}=tfe(r);if(e.alg!==ij||e.typ!==sj)throw new Error("JWT must use EdDSA algorithm");let i=Zhe(t.iss);return P6.verify(i,n,a)}var P6,WCt,UCt,HCt=ce(()=>{d();p();P6=mn(DCt()),WCt=mn(mS()),UCt=mn(iw());hj();rfe()});var jCt=ce(()=>{d();p()});var zCt={};cr(zCt,{DATA_ENCODING:()=>NS,DID_DELIMITER:()=>cj,DID_METHOD:()=>lj,DID_PREFIX:()=>uj,JSON_ENCODING:()=>oj,JWT_DELIMITER:()=>dw,JWT_ENCODING:()=>A6,JWT_IRIDIUM_ALG:()=>ij,JWT_IRIDIUM_TYP:()=>sj,KEY_PAIR_SEED_LENGTH:()=>LCt,MULTICODEC_ED25519_BASE:()=>dj,MULTICODEC_ED25519_ENCODING:()=>S6,MULTICODEC_ED25519_HEADER:()=>pj,MULTICODEC_ED25519_LENGTH:()=>OCt,decodeData:()=>yfn,decodeIss:()=>Zhe,decodeJSON:()=>BS,decodeJWT:()=>tfe,decodeSig:()=>FCt,encodeData:()=>Xhe,encodeIss:()=>Qhe,encodeJSON:()=>DS,encodeJWT:()=>efe,encodeSig:()=>qCt,generateKeyPair:()=>gfn,signJWT:()=>bfn,verifyJWT:()=>vfn});var KCt=ce(()=>{d();p();HCt();hj();jCt();rfe()});var GCt=_((w3a,VCt)=>{"use strict";d();p();VCt.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var YCt,$Ct,wfn,xfn,_fn,fj,JCt,nfe=ce(()=>{d();p();YCt=mn(Mu());ZT();Y0();$Ct=10,wfn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:GCt(),xfn=()=>typeof window<"u",_fn=wfn(),fj=class{constructor(e){if(this.url=e,this.events=new YCt.EventEmitter,this.registering=!1,!gU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Im(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!gU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),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=e,this.registering=!0,new Promise((t,n)=>{let a=(0,Xs.isReactNative)()?void 0:{rejectUnauthorized:!Jue(e)},i=new _fn(e,[],a);xfn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?Q0(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=UA(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return WA(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>$Ct&&this.events.setMaxListeners($Ct)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},JCt=fj});var QCt={};cr(QCt,{WsConnection:()=>fj,default:()=>Tfn});var Tfn,ZCt=ce(()=>{d();p();nfe();nfe();Tfn=JCt});var N4t=_((OS,M6)=>{d();p();var Efn=200,ffe="__lodash_hash_undefined__",_j=1,l4t=2,d4t=9007199254740991,mj="[object Arguments]",ofe="[object Array]",Cfn="[object AsyncFunction]",p4t="[object Boolean]",h4t="[object Date]",f4t="[object Error]",m4t="[object Function]",Ifn="[object GeneratorFunction]",yj="[object Map]",y4t="[object Number]",kfn="[object Null]",R6="[object Object]",XCt="[object Promise]",Afn="[object Proxy]",g4t="[object RegExp]",gj="[object Set]",b4t="[object String]",Sfn="[object Symbol]",Pfn="[object Undefined]",cfe="[object WeakMap]",v4t="[object ArrayBuffer]",bj="[object DataView]",Rfn="[object Float32Array]",Mfn="[object Float64Array]",Nfn="[object Int8Array]",Bfn="[object Int16Array]",Dfn="[object Int32Array]",Ofn="[object Uint8Array]",Lfn="[object Uint8ClampedArray]",qfn="[object Uint16Array]",Ffn="[object Uint32Array]",Wfn=/[\\^$.*+?()[\]{}|]/g,Ufn=/^\[object .+?Constructor\]$/,Hfn=/^(?:0|[1-9]\d*)$/,mi={};mi[Rfn]=mi[Mfn]=mi[Nfn]=mi[Bfn]=mi[Dfn]=mi[Ofn]=mi[Lfn]=mi[qfn]=mi[Ffn]=!0;mi[mj]=mi[ofe]=mi[v4t]=mi[p4t]=mi[bj]=mi[h4t]=mi[f4t]=mi[m4t]=mi[yj]=mi[y4t]=mi[R6]=mi[g4t]=mi[gj]=mi[b4t]=mi[cfe]=!1;var w4t=typeof global=="object"&&global&&global.Object===Object&&global,jfn=typeof self=="object"&&self&&self.Object===Object&&self,sy=w4t||jfn||Function("return this")(),x4t=typeof OS=="object"&&OS&&!OS.nodeType&&OS,e4t=x4t&&typeof M6=="object"&&M6&&!M6.nodeType&&M6,_4t=e4t&&e4t.exports===x4t,afe=_4t&&w4t.process,t4t=function(){try{return afe&&afe.binding&&afe.binding("util")}catch{}}(),r4t=t4t&&t4t.isTypedArray;function zfn(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function wmn(r,e){var t=this.__data__,n=Ej(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}oy.prototype.clear=ymn;oy.prototype.delete=gmn;oy.prototype.get=bmn;oy.prototype.has=vmn;oy.prototype.set=wmn;function fw(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,h=!0,f=t&l4t?new wj:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=d4t}function R4t(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function FS(r){return r!=null&&typeof r=="object"}var M4t=r4t?$fn(r4t):Lmn;function Qmn(r){return Ymn(r)?Nmn(r):qmn(r)}function Zmn(){return[]}function Xmn(){return!1}M6.exports=Jmn});var B8t=_(vt=>{"use strict";d();p();Object.defineProperty(vt,"__esModule",{value:!0});var yw=Mu(),e0n=kS(),t0n=oCt(),Oj=pCt(),Ni=aj(),Tg=Hhe(),B4t=(ZT(),rt(Mle)),r0n=(KCt(),rt(zCt)),Me=ES(),To=iw(),n0n=(lS(),rt(uS)),sf=(Y0(),rt(Xs)),a0n=(ZCt(),rt(QCt)),i0n=N4t();function jS(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function s0n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var o0n=jS(yw),Q4t=jS(e0n),c0n=jS(t0n),Ij=s0n(r0n),u0n=jS(a0n),l0n=jS(i0n);function d0n(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);S!==L;){for(var G=y[S],K=0,H=F-1;(G!==0||K>>0,W[H]=G%o>>>0,G=G/o>>>0;if(G!==0)throw new Error("Non-zero carry");I=K,S++}for(var V=F-I;V!==F&&W[V]===0;)V++;for(var J=c.repeat(E);V>>0,F=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var G=0,K=L-1;(W!==0||G>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=G,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&F[H]===0;)H++;for(var V=new Uint8Array(I+(L-H)),J=I;H!==L;)V[J++]=F[H++];return V}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var p0n=d0n,h0n=p0n,Z4t=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},f0n=r=>new TextEncoder().encode(r),m0n=r=>new TextDecoder().decode(r),gfe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},bfe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return X4t(this,e)}},vfe=class{constructor(e){this.decoders=e}or(e){return X4t(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},X4t=(r,e)=>new vfe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),wfe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new gfe(e,t,n),this.decoder=new bfe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},Lj=({name:r,prefix:e,encode:t,decode:n})=>new wfe(r,e,t,n),zS=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=h0n(t,e);return Lj({prefix:r,name:e,encode:n,decode:i=>Z4t(a(i))})},y0n=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},g0n=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<Lj({prefix:e,name:r,encode(a){return g0n(a,n,t)},decode(a){return y0n(a,n,t,r)}}),b0n=Lj({prefix:"\0",name:"identity",encode:r=>m0n(r),decode:r=>f0n(r)}),v0n=Object.freeze({__proto__:null,identity:b0n}),w0n=Ic({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),x0n=Object.freeze({__proto__:null,base2:w0n}),_0n=Ic({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),T0n=Object.freeze({__proto__:null,base8:_0n}),E0n=zS({prefix:"9",name:"base10",alphabet:"0123456789"}),C0n=Object.freeze({__proto__:null,base10:E0n}),I0n=Ic({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),k0n=Ic({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),A0n=Object.freeze({__proto__:null,base16:I0n,base16upper:k0n}),S0n=Ic({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),P0n=Ic({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),R0n=Ic({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),M0n=Ic({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),N0n=Ic({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),B0n=Ic({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),D0n=Ic({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),O0n=Ic({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),L0n=Ic({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),q0n=Object.freeze({__proto__:null,base32:S0n,base32upper:P0n,base32pad:R0n,base32padupper:M0n,base32hex:N0n,base32hexupper:B0n,base32hexpad:D0n,base32hexpadupper:O0n,base32z:L0n}),F0n=zS({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),W0n=zS({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),U0n=Object.freeze({__proto__:null,base36:F0n,base36upper:W0n}),H0n=zS({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),j0n=zS({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),z0n=Object.freeze({__proto__:null,base58btc:H0n,base58flickr:j0n}),K0n=Ic({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),V0n=Ic({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),G0n=Ic({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),$0n=Ic({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Y0n=Object.freeze({__proto__:null,base64:K0n,base64pad:V0n,base64url:G0n,base64urlpad:$0n}),e8t=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),J0n=e8t.reduce((r,e,t)=>(r[t]=e,r),[]),Q0n=e8t.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function Z0n(r){return r.reduce((e,t)=>(e+=J0n[t],e),"")}function X0n(r){let e=[];for(let t of r){let n=Q0n[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var eyn=Lj({prefix:"\u{1F680}",name:"base256emoji",encode:Z0n,decode:X0n}),tyn=Object.freeze({__proto__:null,base256emoji:eyn}),ryn=t8t,D4t=128,nyn=127,ayn=~nyn,iyn=Math.pow(2,31);function t8t(r,e,t){e=e||[],t=t||0;for(var n=t;r>=iyn;)e[t++]=r&255|D4t,r/=128;for(;r&ayn;)e[t++]=r&255|D4t,r>>>=7;return e[t]=r|0,t8t.bytes=t-n+1,e}var syn=xfe,oyn=128,O4t=127;function xfe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw xfe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&O4t)<=oyn);return xfe.bytes=i-n,t}var cyn=Math.pow(2,7),uyn=Math.pow(2,14),lyn=Math.pow(2,21),dyn=Math.pow(2,28),pyn=Math.pow(2,35),hyn=Math.pow(2,42),fyn=Math.pow(2,49),myn=Math.pow(2,56),yyn=Math.pow(2,63),gyn=function(r){return r(r8t.encode(r,e,t),e),q4t=r=>r8t.encodingLength(r),_fe=(r,e)=>{let t=e.byteLength,n=q4t(r),a=n+q4t(t),i=new Uint8Array(a+t);return L4t(r,i,0),L4t(t,i,n),i.set(e,a),new Tfe(r,t,e,i)},Tfe=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},n8t=({name:r,code:e,encode:t})=>new Efe(r,e,t),Efe=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?_fe(this.code,t):t.then(n=>_fe(this.code,n))}else throw Error("Unknown type, must be binary type")}},a8t=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),vyn=n8t({name:"sha2-256",code:18,encode:a8t("SHA-256")}),wyn=n8t({name:"sha2-512",code:19,encode:a8t("SHA-512")}),xyn=Object.freeze({__proto__:null,sha256:vyn,sha512:wyn}),i8t=0,_yn="identity",s8t=Z4t,Tyn=r=>_fe(i8t,s8t(r)),Eyn={code:i8t,name:_yn,encode:s8t,digest:Tyn},Cyn=Object.freeze({__proto__:null,identity:Eyn});new TextEncoder,new TextDecoder;var F4t={...v0n,...x0n,...T0n,...C0n,...A0n,...q0n,...U0n,...z0n,...Y0n,...tyn};({...xyn,...Cyn});function Iyn(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function o8t(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var W4t=o8t("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),mfe=o8t("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=Iyn(r.length);for(let t=0;t{if(!this.initialized){let 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();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Aj=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=d8t,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();let a=await this.getClientSeed(),i=Ij.generateKeyPair(a);return Ij.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Me.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=Ij.generateKeyPair(i),o=Me.generateRandomBytes32(),c=p8t;return await Ij.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Me.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Me.hashKey(a);return await this.keychain.set(s,a),s},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,i,s)=>{this.isInitialized();let o=Me.validateEncoding(s),c=B4t.safeJsonStringify(i);if(Me.isTypeOneEnvelope(o)){let f=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(f,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:h}=o;return Me.encrypt({type:l,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Me.validateDecoding(i,s);if(Me.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,h=o.senderPublicKey;a=await this.generateSharedKey(l,h)}let c=this.getSymKey(a),u=Me.decrypt({symKey:c,encoded:i});return B4t.safeJsonParse(u)},this.core=e,this.logger=Ni.generateChildLogger(t,this.name),this.keychain=n||new kj(this.core,this.logger)}get context(){return Ni.getLoggerContext(this.logger)}getPayloadType(e){let t=Me.deserialize(e);return Me.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(Cfe)}catch{e=Me.generateRandomBytes32(),await this.keychain.set(Cfe,e)}return Ayn(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Sj=class extends Tg.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=m8t,this.version=y8t,this.initialized=!1,this.storagePrefix=cy,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let 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();let i=Me.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Me.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Ni.generateChildLogger(e,this.name),this.core=t}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},kfe=class extends Tg.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new yw.EventEmitter,this.name=b8t,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||g8t,o=Me.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},h=Me.hashMessage(a);this.queue.set(h,l);try{await await Me.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(Cc.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Cc.connection_stalled);return}this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},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=e,this.logger=Ni.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return Ni.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let h={method:Me.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Me.isUndefined((o=h.params)==null?void 0:o.prompt)&&((c=h.params)==null||delete c.prompt),Me.isUndefined((u=h.params)==null?void 0:u.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(Oj.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},Afe=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},Nyn=Object.defineProperty,Byn=Object.defineProperties,Dyn=Object.getOwnPropertyDescriptors,U4t=Object.getOwnPropertySymbols,Oyn=Object.prototype.hasOwnProperty,Lyn=Object.prototype.propertyIsEnumerable,H4t=(r,e,t)=>e in r?Nyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,US=(r,e)=>{for(var t in e||(e={}))Oyn.call(e,t)&&H4t(r,t,e[t]);if(U4t)for(var t of U4t(e))Lyn.call(e,t)&&H4t(r,t,e[t]);return r},yfe=(r,e)=>Byn(r,Dyn(e)),Pj=class extends Tg.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new Afe,this.events=new yw.EventEmitter,this.name=C8t,this.version=I8t,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=cy,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),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{let i=Me.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof 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,i)=>{let s=new To.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=k8t&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),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=e,this.logger=Ni.generateChildLogger(t,this.name),this.clientId=""}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Me.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Me.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Me.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Cc.connection_stalled)}return Me.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Me.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Cc.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Me.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,yfe(US({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,US({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,US({},t)),this.topicMap.set(t.topic,e),this.events.emit(af.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(af.deleted,yfe(US({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(af.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>yfe(US({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(Oj.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Cc.connect,async()=>{await this.onConnect()}),this.relayer.on(Cc.disconnect,()=>{this.onDisconnect()}),this.events.on(af.created,async e=>{let t=af.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(af.deleted,async e=>{let t=af.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},qyn=Object.defineProperty,j4t=Object.getOwnPropertySymbols,Fyn=Object.prototype.hasOwnProperty,Wyn=Object.prototype.propertyIsEnumerable,z4t=(r,e,t)=>e in r?qyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Uyn=(r,e)=>{for(var t in e||(e={}))Fyn.call(e,t)&&z4t(r,t,e[t]);if(j4t)for(var t of j4t(e))Wyn.call(e,t)&&z4t(r,t,e[t]);return r},Rj=class extends Tg.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new yw.EventEmitter,this.name=x8t,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Ni.generateChildLogger(e.logger,this.name):Q4t.default(Ni.getDefaultLoggerOptions({level:e.logger||w8t})),this.messages=new Sj(this.logger,e.core),this.subscriber=new Pj(this,this.logger),this.publisher=new kfe(this,this.logger),this.relayUrl=e?.relayUrl||Pfe,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Ni.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(af.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Cc.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(af.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(Cc.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(Cc.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(Cc.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,Ife)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new n0n.JsonRpcProvider(new u0n.default(Me.formatRelayRpcUrl({sdkVersion:T8t,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),sf.isJsonRpcRequest(e)){if(!e.method.endsWith(_8t))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Uyn({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Cc.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=sf.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(HS.payload,e=>this.onProviderPayload(e)),this.provider.on(HS.connect,()=>{this.events.emit(Cc.connect)}),this.provider.on(HS.disconnect,()=>{this.events.emit(Cc.disconnect),this.attemptToReconnect()}),this.provider.on(HS.error,e=>{this.logger.error(e),this.events.emit(Cc.error,e)}),this.events.on(Cc.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},To.toMiliseconds(Ife))}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Hyn=Object.defineProperty,K4t=Object.getOwnPropertySymbols,jyn=Object.prototype.hasOwnProperty,zyn=Object.prototype.propertyIsEnumerable,V4t=(r,e,t)=>e in r?Hyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,G4t=(r,e)=>{for(var t in e||(e={}))jyn.call(e,t)&&V4t(r,t,e[t]);if(K4t)for(var t of K4t(e))zyn.call(e,t)&&V4t(r,t,e[t]);return r},Mj=class extends Tg.IStore{constructor(e,t,n,a=cy,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=E8t,this.cached=[],this.initialized=!1,this.storagePrefix=cy,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Me.isProposalStruct(s)?this.map.set(s.id,s):Me.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Me.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>l0n.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=G4t(G4t({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=Ni.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Nj=class{constructor(e,t){this.core=e,this.logger=t,this.name=A8t,this.version=S8t,this.events=new o0n.default,this.initialized=!1,this.storagePrefix=cy,this.ignoredPayloadTypes=[Me.TYPE_1],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();let n=Me.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Me.calcExpiry(To.FIVE_MINUTES),s={protocol:v8t},o={topic:a,expiry:i,relay:s,active:!1},c=Me.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Me.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Me.calcExpiry(To.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Me.calcExpiry(To.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);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Me.createDelayedPromise();this.events.once(Me.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},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);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Me.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=sf.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=B6[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=sf.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=B6[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=sf.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=B6[c.request.method]?B6[c.request.method].res:B6.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Me.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Me.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{sf.isJsonRpcResult(a)?this.events.emit(Me.engineEvent("pairing_ping",i),{}):sf.isJsonRpcError(a)&&this.events.emit(Me.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Me.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Me.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Me.isValidParams(n)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Me.isValidUrl(n.uri)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Me.isValidString(n,!1)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Me.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Me.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Me.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=Ni.generateChildLogger(t,this.name),this.pairings=new Mj(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Ni.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Cc.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);sf.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):sf.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(Fp.expired,async e=>{let{topic:t}=Me.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},Bj=class extends Tg.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new yw.EventEmitter,this.name=P8t,this.version=R8t,this.cached=[],this.initialized=!1,this.storagePrefix=cy,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,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(nf.created,s)},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;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=sf.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(nf.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(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(nf.deleted,i)}})},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=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:sf.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(nf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(nf.created,e=>{let t=nf.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.updated,e=>{let t=nf.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(nf.deleted,e=>{let t=nf.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Dj=class extends Tg.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new yw.EventEmitter,this.name=M8t,this.version=N8t,this.cached=[],this.initialized=!1,this.storagePrefix=cy,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{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(Fp.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Fp.deleted,{target:a,expiration:i})}},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=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e){if(typeof e=="string")return Me.formatTopicTarget(e);if(typeof e=="number")return Me.formatIdTarget(e);let{message:t}=Me.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Fp.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;To.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(Fp.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(Oj.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Fp.created,e=>{let t=Fp.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Fp.expired,e=>{let t=Fp.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Fp.deleted,e=>{let t=Fp.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Kyn=Object.defineProperty,$4t=Object.getOwnPropertySymbols,Vyn=Object.prototype.hasOwnProperty,Gyn=Object.prototype.propertyIsEnumerable,Y4t=(r,e,t)=>e in r?Kyn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,J4t=(r,e)=>{for(var t in e||(e={}))Vyn.call(e,t)&&Y4t(r,t,e[t]);if($4t)for(var t of $4t(e))Gyn.call(e,t)&&Y4t(r,t,e[t]);return r},D6=class extends Tg.ICore{constructor(e){super(e),this.protocol=Sfe,this.version=c8t,this.name=qj,this.events=new yw.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=e?.projectId,this.relayUrl=e?.relayUrl||Pfe;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:Q4t.default(Ni.getDefaultLoggerOptions({level:e?.logger||u8t.logger}));this.logger=Ni.generateChildLogger(t,this.name),this.heartbeat=new Oj.HeartBeat,this.crypto=new Aj(this,this.logger,e?.keychain),this.history=new Bj(this,this.logger),this.expirer=new Dj(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new c0n.default(J4t(J4t({},l8t),e?.storageOptions)),this.relayer=new Rj({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new Nj(this,this.logger)}static async init(e){let t=new D6(e);return await t.initialize(),t}get context(){return Ni.getLoggerContext(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(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},$yn=D6;vt.CORE_CONTEXT=qj,vt.CORE_DEFAULT=u8t,vt.CORE_PROTOCOL=Sfe,vt.CORE_STORAGE_OPTIONS=l8t,vt.CORE_STORAGE_PREFIX=cy,vt.CORE_VERSION=c8t,vt.CRYPTO_CLIENT_SEED=Cfe,vt.CRYPTO_CONTEXT=d8t,vt.CRYPTO_JWT_TTL=p8t,vt.Core=$yn,vt.Crypto=Aj,vt.EXPIRER_CONTEXT=M8t,vt.EXPIRER_DEFAULT_TTL=Myn,vt.EXPIRER_EVENTS=Fp,vt.EXPIRER_STORAGE_VERSION=N8t,vt.Expirer=Dj,vt.HISTORY_CONTEXT=P8t,vt.HISTORY_EVENTS=nf,vt.HISTORY_STORAGE_VERSION=R8t,vt.JsonRpcHistory=Bj,vt.KEYCHAIN_CONTEXT=h8t,vt.KEYCHAIN_STORAGE_VERSION=f8t,vt.KeyChain=kj,vt.MESSAGES_CONTEXT=m8t,vt.MESSAGES_STORAGE_VERSION=y8t,vt.MessageTracker=Sj,vt.PAIRING_CONTEXT=A8t,vt.PAIRING_DEFAULT_TTL=Ryn,vt.PAIRING_RPC_OPTS=B6,vt.PAIRING_STORAGE_VERSION=S8t,vt.PENDING_SUB_RESOLUTION_TIMEOUT=k8t,vt.PUBLISHER_CONTEXT=b8t,vt.PUBLISHER_DEFAULT_TTL=g8t,vt.Pairing=Nj,vt.RELAYER_CONTEXT=x8t,vt.RELAYER_DEFAULT_LOGGER=w8t,vt.RELAYER_DEFAULT_PROTOCOL=v8t,vt.RELAYER_DEFAULT_RELAY_URL=Pfe,vt.RELAYER_EVENTS=Cc,vt.RELAYER_PROVIDER_EVENTS=HS,vt.RELAYER_RECONNECT_TIMEOUT=Ife,vt.RELAYER_SDK_VERSION=T8t,vt.RELAYER_STORAGE_OPTIONS=Syn,vt.RELAYER_SUBSCRIBER_SUFFIX=_8t,vt.Relayer=Rj,vt.STORE_STORAGE_VERSION=E8t,vt.SUBSCRIBER_CONTEXT=C8t,vt.SUBSCRIBER_DEFAULT_TTL=Pyn,vt.SUBSCRIBER_EVENTS=af,vt.SUBSCRIBER_STORAGE_VERSION=I8t,vt.Store=Mj,vt.Subscriber=Pj,vt.default=D6});var K8t=_(Xi=>{"use strict";d();p();Object.defineProperty(Xi,"__esModule",{value:!0});var Yyn=kS(),Eg=B8t(),Rfe=aj(),L8t=Hhe(),be=ES(),q8t=Mu(),es=iw(),Eo=(Y0(),rt(Xs));function F8t(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var Jyn=F8t(Yyn),Qyn=F8t(q8t),Lfe="wc",qfe=2,Ffe="client",Uj=`${Lfe}@${qfe}:${Ffe}:`,Fj={name:Ffe,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},Zyn={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},Xyn={database:":memory:"},e1n={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},t1n="history",r1n="0.3",W8t="proposal",n1n=es.THIRTY_DAYS,U8t="Proposal expired",H8t="session",KS=es.SEVEN_DAYS,j8t="engine",O6={wc_sessionPropose:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1104},res:{ttl:es.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1106},res:{ttl:es.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1112},res:{ttl:es.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1115}}},Wj={min:es.FIVE_MINUTES,max:es.SEVEN_DAYS},z8t="request",a1n=Object.defineProperty,i1n=Object.defineProperties,s1n=Object.getOwnPropertyDescriptors,D8t=Object.getOwnPropertySymbols,o1n=Object.prototype.hasOwnProperty,c1n=Object.prototype.propertyIsEnumerable,O8t=(r,e,t)=>e in r?a1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Wp=(r,e)=>{for(var t in e||(e={}))o1n.call(e,t)&&O8t(r,t,e[t]);if(D8t)for(var t of D8t(e))c1n.call(e,t)&&O8t(r,t,e[t]);return r},Mfe=(r,e)=>i1n(r,s1n(e)),Nfe=class extends L8t.IEngine{constructor(e){super(e),this.name=j8t,this.events=new Qyn.default,this.initialized=!1,this.ignoredPayloadTypes=[be.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(O6)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=Mfe(Wp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){let{topic:F,uri:W}=await this.client.core.pairing.create();u=F,l=W}let f=await this.client.core.crypto.generateKeyPair(),m=Wp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:Eg.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:f,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:E,done:I}=be.createDelayedPromise(es.FIVE_MINUTES,U8t);if(this.events.once(be.engineEvent("session_connect"),async({error:F,session:W})=>{if(F)y(F);else if(W){W.self.publicKey=f;let G=Mfe(Wp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,G),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),E(G)}}),!u){let{message:F}=be.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(F)}let S=await this.sendRequest(u,"wc_sessionPropose",m),L=be.calcExpiry(es.FIVE_MINUTES);return await this.setProposal(S,Wp({id:S,expiry:L},m)),{uri:l,approval:I}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:h}=o;be.isValidObject(l)||(l=be.getRequiredNamespacesFromNamespaces(i,"approve()"));let f=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(f,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:f}),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let E=Wp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:h,controller:{publicKey:f,metadata:this.client.metadata},expiry:be.calcExpiry(KS)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let I=await this.sendRequest(y,"wc_sessionSettle",E),{done:S,resolve:L,reject:F}=be.createDelayedPromise();this.events.once(be.engineEvent("session_approve",I),({error:G})=>{G?F(G):L(this.client.session.get(y))});let W=Mfe(Wp({},E),{topic:y,acknowledged:!1,self:E.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(y,W),await this.setExpiry(y,be.calcExpiry(KS)),{topic:y,acknowledged:S}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,be.calcExpiry(KS)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=be.createDelayedPromise(s);return this.events.once(be.engineEvent("session_request",o),({error:h,result:f})=>{h?l(h):u(f)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Eo.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Eo.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();this.events.once(be.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",be.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>be.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,be.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=O6.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,be.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Eo.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=O6[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Eo.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=O6[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Eo.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=O6[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{be.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{be.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){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 ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){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 ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(Wp({},n.params));let s=be.calcExpiry(es.FIVE_MINUTES),o=Wp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Eo.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Eo.isJsonRpcError(n)&&(await this.client.proposal.delete(a,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:h,sessionProperties:f}=n.params,m=Wp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:h,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},f&&{sessionProperties:f});await this.sendResult(n.id,t,!0),this.events.emit(be.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Eo.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(be.engineEvent("session_approve",a),{})):Eo.isJsonRpcError(n)&&(await this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(Wp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Eo.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_update",a),{}):Eo.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,be.calcExpiry(KS)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Eo.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_extend",a),{}):Eo.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Eo.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_ping",a),{}):Eo.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(Eg.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(Wp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Eo.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_request",a),{result:n.result}):Eo.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(Wp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(be.isUndefined(n)||await this.isValidPairingTopic(n),!be.isValidRelays(o,!0)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!be.isUndefined(a)&&be.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!be.isUndefined(i)&&be.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=be.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!be.isValidParams(t))throw new Error(be.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=be.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=be.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!be.isValidString(i,!0)){let{message:l}=be.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!be.isValidErrorReason(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!be.isValidParams(t)){let{message:u}=be.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!be.isValidRelay(n)){let{message:u}=be.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=be.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=be.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(be.isExpired(s)){let{message:u}=be.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=be.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=be.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!be.isValidNamespacesChainId(o,i)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!be.isValidRequest(a)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!be.isValidNamespacesRequest(o,i,a.method)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!be.isValidRequestExpiry(s,Wj)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${Wj.min} and ${Wj.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!be.isValidResponse(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!be.isValidParams(t)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!be.isValidNamespacesChainId(s,i)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!be.isValidEvent(a)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!be.isValidNamespacesEvent(s,i,a.name)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!be.isValidString(a,!1)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=be.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(Eg.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Eo.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Eo.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(Eg.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=be.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,be.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=be.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=be.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(be.isValidString(e,!1)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!be.isValidId(e)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=be.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},Bfe=class extends Eg.Store{constructor(e,t){super(e,t,W8t,Uj),this.core=e,this.logger=t}},Dfe=class extends Eg.Store{constructor(e,t){super(e,t,H8t,Uj),this.core=e,this.logger=t}},Ofe=class extends Eg.Store{constructor(e,t){super(e,t,z8t,Uj),this.core=e,this.logger=t}},L6=class extends L8t.ISignClient{constructor(e){super(e),this.protocol=Lfe,this.version=qfe,this.name=Fj.name,this.events=new q8t.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=e?.name||Fj.name,this.metadata=e?.metadata||be.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:Jyn.default(Rfe.getDefaultLoggerOptions({level:e?.logger||Fj.logger}));this.core=e?.core||new Eg.Core(e),this.logger=Rfe.generateChildLogger(t,this.name),this.session=new Dfe(this.core,this.logger),this.proposal=new Bfe(this.core,this.logger),this.pendingRequest=new Ofe(this.core,this.logger),this.engine=new Nfe(this)}static async init(e){let t=new L6(e);return await t.initialize(),t}get context(){return Rfe.getLoggerContext(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.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},u1n=L6;Xi.ENGINE_CONTEXT=j8t,Xi.ENGINE_RPC_OPTS=O6,Xi.HISTORY_CONTEXT=t1n,Xi.HISTORY_EVENTS=e1n,Xi.HISTORY_STORAGE_VERSION=r1n,Xi.PROPOSAL_CONTEXT=W8t,Xi.PROPOSAL_EXPIRY=n1n,Xi.PROPOSAL_EXPIRY_MESSAGE=U8t,Xi.REQUEST_CONTEXT=z8t,Xi.SESSION_CONTEXT=H8t,Xi.SESSION_EXPIRY=KS,Xi.SESSION_REQUEST_EXPIRY_BOUNDARIES=Wj,Xi.SIGN_CLIENT_CONTEXT=Ffe,Xi.SIGN_CLIENT_DEFAULT=Fj,Xi.SIGN_CLIENT_EVENTS=Zyn,Xi.SIGN_CLIENT_PROTOCOL=Lfe,Xi.SIGN_CLIENT_STORAGE_OPTIONS=Xyn,Xi.SIGN_CLIENT_STORAGE_PREFIX=Uj,Xi.SIGN_CLIENT_VERSION=qfe,Xi.SignClient=u1n,Xi.default=L6});var Z8t=_(jj=>{"use strict";d();p();Object.defineProperty(jj,"__esModule",{value:!0});var l1n=kS(),J8t=K8t(),Wfe=ES(),d1n=aj(),zj=(lS(),rt(uS)),Q8t=(oH(),rt(sH)),p1n=Mu();function Kj(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var h1n=Kj(l1n),f1n=Kj(J8t),Gfe=Kj(Q8t),m1n=Kj(p1n),V8t="error",y1n="wss://relay.walletconnect.com",g1n="wc",b1n="universal_provider",G8t=`${g1n}@${2}:${b1n}:`,v1n="https://rpc.walletconnect.com/v1",VS={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function q6(r,e,t){let n,a=Hfe(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${v1n}?chainId=eip155:${a}&projectId=${t}`),n}function Hfe(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function w1n(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function x1n(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var Vj=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),_1n())};r.on("session_request_sent",t)};function _1n(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var jfe=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(Vj(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=Hfe(e);if(!this.httpProviders[n]){let a=t||q6(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(VS.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||q6(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new zj.JsonRpcProvider(new Q8t.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=Hfe(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;w1n(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},zfe=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(Vj(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||q6(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(VS.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||q6(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new zj.JsonRpcProvider(new Gfe.default(n))}},Kfe=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Vj(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||q6(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(VS.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||q6(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new zj.JsonRpcProvider(new Gfe.default(n))}},Vfe=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(Vj(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(VS.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new zj.JsonRpcProvider(new Gfe.default(n))}},T1n=Object.defineProperty,E1n=Object.defineProperties,C1n=Object.getOwnPropertyDescriptors,$8t=Object.getOwnPropertySymbols,I1n=Object.prototype.hasOwnProperty,k1n=Object.prototype.propertyIsEnumerable,Y8t=(r,e,t)=>e in r?T1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Hj=(r,e)=>{for(var t in e||(e={}))I1n.call(e,t)&&Y8t(r,t,e[t]);if($8t)for(var t of $8t(e))k1n.call(e,t)&&Y8t(r,t,e[t]);return r},Ufe=(r,e)=>E1n(r,C1n(e)),F6=class{constructor(e){this.events=new m1n.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:h1n.default(d1n.getDefaultLoggerOptions({level:e?.logger||V8t}))}static async init(e){let t=new F6(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:Hj({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,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 e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:Wfe.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==J8t.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(Wfe.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await f1n.default.init({logger:this.providerOpts.logger||V8t,relayUrl:this.providerOpts.relayUrl||y1n,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=x1n(i),o=Ufe(Hj({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new jfe({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new zfe({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new Kfe({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new Vfe({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=Ufe(Hj({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",Ufe(Hj({},Wfe.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(VS.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${G8t}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${G8t}/${e}`)}},A1n=F6;jj.UniversalProvider=A1n,jj.default=F6});var j3a,S1n,X8t,$fe,P1n,eIt,Yfe,tIt=ce(()=>{d();p();j3a=Symbol(),S1n=Symbol(),X8t=Object.getPrototypeOf,$fe=new WeakMap,P1n=r=>r&&($fe.has(r)?$fe.get(r):X8t(r)===Object.prototype||X8t(r)===Array.prototype),eIt=r=>P1n(r)&&r[S1n]||null,Yfe=(r,e=!0)=>{$fe.set(r,e)}});function of(r={}){return M1n(r)}function Ig(r,e,t){let n=gw.get(r);(Cg.env&&Cg.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function N1n(r,e){let t=gw.get(r);(Cg.env&&Cg.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var Cg,Jfe,gw,Gj,R1n,M1n,rIt=ce(()=>{d();p();tIt();Cg={},Jfe=r=>typeof r=="object"&&r!==null,gw=new WeakMap,Gj=new WeakSet,R1n=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>Jfe(u)&&!Gj.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,h=n)=>{let f=a.get(u);if(f?.[0]===l)return f[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return Yfe(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let E=Reflect.get(u,y);Gj.has(E)?(Yfe(E,!1),m[y]=E):E instanceof Promise?Object.defineProperty(m,y,{get(){return h(E)}}):gw.has(E)?m[y]=N1n(E,h):m[y]=E}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!Jfe(u))throw new Error("object required");let l=s.get(u);if(l)return l;let h=o[0],f=new Set,m=(J,q=++o[0])=>{h!==q&&(h=q,f.forEach(T=>T(J,q)))},y=o[1],E=(J=++o[1])=>(y!==J&&!f.size&&(y=J,S.forEach(([q])=>{let T=q[1](J);T>h&&(h=T)})),h),I=J=>(q,T)=>{let P=[...q];P[1]=[J,...P[1]],m(P,T)},S=new Map,L=(J,q)=>{if((Cg.env&&Cg.env.MODE)!=="production"&&S.has(J))throw new Error("prop listener already exists");if(f.size){let T=q[3](I(J));S.set(J,[q,T])}else S.set(J,[q])},F=J=>{var q;let T=S.get(J);T&&(S.delete(J),(q=T[1])==null||q.call(T))},W=J=>(f.add(J),f.size===1&&S.forEach(([T,P],A)=>{if((Cg.env&&Cg.env.MODE)!=="production"&&P)throw new Error("remove already exists");let v=T[3](I(A));S.set(A,[T,v])}),()=>{f.delete(J),f.size===0&&S.forEach(([T,P],A)=>{P&&(P(),S.set(A,[T]))})}),G=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),H=e(G,{deleteProperty(J,q){let T=Reflect.get(J,q);F(q);let P=Reflect.deleteProperty(J,q);return P&&m(["delete",[q],T]),P},set(J,q,T,P){var A;let v=Reflect.has(J,q),k=Reflect.get(J,q,P);if(v&&r(k,T))return!0;F(q),Jfe(T)&&(T=eIt(T)||T);let O=T;if(!((A=Object.getOwnPropertyDescriptor(J,q))!=null&&A.set))if(T instanceof Promise)T.then(D=>{T.status="fulfilled",T.value=D,m(["resolve",[q],D])}).catch(D=>{T.status="rejected",T.reason=D,m(["reject",[q],D])});else{!gw.has(T)&&t(T)&&(O=of(T));let D=!Gj.has(O)&&gw.get(O);D&&L(q,D)}return Reflect.set(J,q,O,P),m(["set",[q],T,k]),!0}});s.set(u,H);let V=[G,E,i,W];return gw.set(H,V),Reflect.ownKeys(u).forEach(J=>{let q=Object.getOwnPropertyDescriptor(u,J);q.get||q.set?Object.defineProperty(G,J,q):H[J]=u[J]}),H})=>[c,gw,Gj,r,e,t,n,a,i,s,o],[M1n]=R1n()});function B1n(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function Jj(){let{projectId:r}=Ds.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function D1n(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var aIt,Xu,yt,GS,Bi,ys,Va,$j,Ds,nIt,Yj,bw,to,Ed,Br,W6,ro,Qj,Mm,vw,kc,Sr,Qfe=ce(()=>{d();p();rIt();aIt=mn(ac(),1),Xu=of({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),yt={state:Xu,subscribe(r){return Ig(Xu,()=>r(Xu))},setChains(r){Xu.chains=r},setStandaloneChains(r){Xu.standaloneChains=r},setStandaloneUri(r){Xu.standaloneUri=r},getSelectedChain(){let r=Bi.client().getNetwork().chain;return r&&(Xu.selectedChain=r),Xu.selectedChain},setSelectedChain(r){Xu.selectedChain=r},setIsStandalone(r){Xu.isStandalone=r},setIsCustomDesktop(r){Xu.isCustomDesktop=r},setIsCustomMobile(r){Xu.isCustomMobile=r},setIsDataLoaded(r){Xu.isDataLoaded=r},setIsUiLoaded(r){Xu.isUiLoaded=r},setWalletConnectVersion(r){Xu.walletConnectVersion=r}},GS=of({initialized:!1,ethereumClient:void 0}),Bi={setEthereumClient(r){!GS.initialized&&r&&(GS.ethereumClient=r,yt.setChains(r.chains),GS.initialized=!0)},client(){if(GS.ethereumClient)return GS.ethereumClient;throw new Error("ClientCtrl has no client set")}},ys=of({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),Va={state:ys,subscribe(r){return Ig(ys,()=>r(ys))},getAccount(){let r=Bi.client().getAccount();ys.address=r.address,ys.isConnected=r.isConnected},async fetchProfile(r,e){try{ys.profileLoading=!0;let t=e??ys.address,{id:n}=Bi.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([Bi.client().fetchEnsName({address:t,chainId:1}),Bi.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),ys.profileName=a,ys.profileAvatar=i}}finally{ys.profileLoading=!1}},async fetchBalance(r){try{ys.balanceLoading=!0;let e=r??ys.address;if(e){let t=await Bi.client().fetchBalance({address:e});ys.balance={amount:t.formatted,symbol:t.symbol}}}finally{ys.balanceLoading=!1}},setAddress(r){ys.address=r},setIsConnected(r){ys.isConnected=r},resetBalance(){ys.balance=void 0},resetAccount(){ys.address=void 0,ys.isConnected=!1,ys.profileName=void 0,ys.profileAvatar=void 0,ys.balance=void 0}},$j=of({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),Ds={state:$j,subscribe(r){return Ig($j,()=>r($j))},setConfig(r){var e,t,n,a;if(yt.setStandaloneChains(r.standaloneChains),yt.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),yt.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),yt.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),yt.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)yt.setSelectedChain(r.defaultChain);else if(!yt.state.isStandalone){let i=Bi.client().getDefaultChain();yt.setSelectedChain(i)}Object.assign($j,r)}},nIt="https://explorer-api.walletconnect.com";Yj={async fetchWallets(r,e){let t=B1n(e),n=`${nIt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${nIt}/v3/logo/lg/${e}?projectId=${r}`}},bw=of({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});to={state:bw,async getPreviewWallets(r){let{listings:e}=await Yj.fetchWallets(Jj(),r);return bw.previewWallets=Object.values(e),bw.previewWallets},async getRecomendedWallets(){let{listings:r}=await Yj.fetchWallets(Jj(),{page:1,entries:6});bw.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await Yj.fetchWallets(Jj(),r),i=Object.values(n),s=t?"search":"wallets";return bw[s]={listings:[...bw[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return Yj.formatImageUrl(Jj(),r)},resetSearch(){bw.search={listings:[],total:0,page:1}}},Ed=of({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),Br={state:Ed,subscribe(r){return Ig(Ed,()=>r(Ed))},push(r,e){r!==Ed.view&&(Ed.view=r,e&&(Ed.data=e),Ed.history.push(r))},replace(r){Ed.view=r,Ed.history=[r]},goBack(){if(Ed.history.length>1){Ed.history.pop();let[r]=Ed.history.slice(-1);Ed.view=r}}},W6=of({open:!1}),ro={state:W6,subscribe(r){return Ig(W6,()=>r(W6))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=yt.state,{isConnected:i}=Va.state,{enableNetworkView:s}=Ds.state;if(t?(yt.setStandaloneUri(r?.uri),yt.setStandaloneChains(r?.standaloneChains),Br.replace("ConnectWallet")):r!=null&&r.route?Br.replace(r.route):i?Br.replace("Account"):s?Br.replace("SelectNetwork"):Br.replace("ConnectWallet"),n&&a)W6.open=!0,e();else{let o=setInterval(()=>{yt.state.isUiLoaded&&yt.state.isDataLoaded&&(clearInterval(o),W6.open=!0,e())},200)}})},close(){W6.open=!1}};Qj=of({themeMode:D1n()?"dark":"light"}),Mm={state:Qj,subscribe(r){return Ig(Qj,()=>r(Qj))},setThemeConfig(r){Object.assign(Qj,r)}},vw=of({open:!1,message:"",variant:"success"}),kc={state:vw,subscribe(r){return Ig(vw,()=>r(vw))},openToast(r,e){vw.open=!0,vw.message=r,vw.variant=e},closeToast(){vw.open=!1}},Sr={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",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 Sr.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(Sr.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!Sr.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=aIt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var Zj,Xj,Zfe,iIt,$S,sIt,pr,Xfe,ez,eme=ce(()=>{d();p();Zj=window,Xj=Zj.ShadowRoot&&(Zj.ShadyCSS===void 0||Zj.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zfe=Symbol(),iIt=new WeakMap,$S=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Zfe)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Xj&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=iIt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&iIt.set(t,e))}return e}toString(){return this.cssText}},sIt=r=>new $S(typeof r=="string"?r:r+"",void 0,Zfe),pr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new $S(t,r,Zfe)},Xfe=(r,e)=>{Xj?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=Zj.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},ez=Xj?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return sIt(t)})(r):r});var tme,tz,oIt,O1n,cIt,nme,uIt,rme,uy,rz=ce(()=>{d();p();eme();eme();tz=window,oIt=tz.trustedTypes,O1n=oIt?oIt.emptyScript:"",cIt=tz.reactiveElementPolyfillSupport,nme={toAttribute(r,e){switch(e){case Boolean:r=r?O1n:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},uIt=(r,e)=>e!==r&&(e==e||r==r),rme={attribute:!0,type:String,converter:nme,reflect:!1,hasChanged:uIt},uy=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=rme){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||rme}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let 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")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(ez(a))}else e!==void 0&&t.push(ez(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Xfe(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=rme){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:nme).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:nme;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||uIt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let 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((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),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((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};uy.finalized=!0,uy.elementProperties=new Map,uy.elementStyles=[],uy.shadowRootOptions={mode:"open"},cIt?.({ReactiveElement:uy}),((tme=tz.reactiveElementVersions)!==null&&tme!==void 0?tme:tz.reactiveElementVersions=[]).push("1.6.1")});function z6(r,e,t=r,n){var a,i,s,o;if(e===ly)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=QS(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=z6(r,c._$AS(r,e.values),c,n)),e}var ame,nz,H6,lIt,kg,gIt,L1n,j6,JS,QS,bIt,q1n,YS,dIt,pIt,ww,hIt,fIt,vIt,wIt,xe,Dr,ly,no,mIt,U6,F1n,xw,ime,_w,K6,sme,W1n,ome,cme,ume,yIt,xIt,Tw=ce(()=>{d();p();nz=window,H6=nz.trustedTypes,lIt=H6?H6.createPolicy("lit-html",{createHTML:r=>r}):void 0,kg=`lit$${(Math.random()+"").slice(9)}$`,gIt="?"+kg,L1n=`<${gIt}>`,j6=document,JS=(r="")=>j6.createComment(r),QS=r=>r===null||typeof r!="object"&&typeof r!="function",bIt=Array.isArray,q1n=r=>bIt(r)||typeof r?.[Symbol.iterator]=="function",YS=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dIt=/-->/g,pIt=/>/g,ww=RegExp(`>|[ + Approved: ${f.toString()}`))}),s.forEach(h=>{n||(kg(a[h].methods,i[h].methods)?kg(a[h].events,i[h].events)||(n=cy("NON_CONFORMING_NAMESPACES",`${t} namespaces events don't satisfy namespace events for ${h}`)):n=cy("NON_CONFORMING_NAMESPACES",`${t} namespaces methods don't satisfy namespace methods for ${h}`))}),n}function Rfn(r){let e={};return Object.keys(r).forEach(t=>{var n;t.includes(":")?e[t]=r[t]:(n=r[t].chains)==null||n.forEach(a=>{e[a]={methods:r[t].methods,events:r[t].events}})}),e}function aCt(r){return[...new Set(r.map(e=>e.includes(":")?e.split(":")[0]:e))]}function Mfn(r){let e={};return Object.keys(r).forEach(t=>{t.includes(":")?e[t]=r[t]:yw(r[t].accounts)?.forEach(a=>{e[a]={accounts:r[t].accounts.filter(i=>i.includes(`${a}:`)),methods:r[t].methods,events:r[t].events}})}),e}function Nfn(r,e){return mj(r,!1)&&r<=e.max&&r>=e.min}we.BASE10=Rhe,we.BASE16=rl,we.BASE64=uj,we.COLON=Ohn,we.DEFAULT_DEPTH=Dhe,we.EMPTY_SPACE=lj,we.ENV_MAP=D6,we.ONE_THOUSAND=Lhn,we.REACT_NATIVE_PRODUCT=wCt,we.RELAYER_DEFAULT_PROTOCOL=MCt,we.SDK_TYPE=xCt,we.SLASH=_Ct,we.TYPE_0=Mhe,we.TYPE_1=L6,we.UTF8=fj,we.appendToQueryString=CCt,we.assertType=Hhn,we.calcExpiry=efn,we.capitalize=$hn,we.capitalizeWord=RCt,we.createDelayedPromise=Yhn,we.createExpiringPromise=Jhn,we.decodeTypeByte=US,we.decrypt=Phn,we.deriveSymKey=Ihn,we.deserialize=Bhe,we.encodeTypeByte=gCt,we.encrypt=Shn,we.engineEvent=rfn,we.enumify=Vhn,we.formatAccountId=dCt,we.formatAccountWithChain=yhn,we.formatChainId=lCt,we.formatExpirerTarget=qhe,we.formatIdTarget=Zhn,we.formatMessage=xhn,we.formatMessageContext=jhn,we.formatRelayParams=BCt,we.formatRelayRpcUrl=Whn,we.formatTopicTarget=Qhn,we.formatUA=ACt,we.formatUri=lfn,we.generateKeyPair=Ehn,we.generateRandomBytes32=Chn,we.getAccountsChains=yw,we.getAccountsFromNamespaces=bhn,we.getAddressFromAccount=pCt,we.getAddressesFromAccounts=ghn,we.getAppMetadata=qhn,we.getChainFromAccount=hCt,we.getChainsFromAccounts=fCt,we.getChainsFromNamespace=pj,we.getChainsFromNamespaces=vhn,we.getChainsFromRequiredNamespaces=whn,we.getDidAddress=yCt,we.getDidAddressSegments=hj,we.getDidChainId=mCt,we.getEnvironment=Lhe,we.getHttpUrl=Uhn,we.getInternalError=cy,we.getJavascriptID=kCt,we.getJavascriptOS=ICt,we.getLastItems=PCt,we.getNamespacedDidChainId=_hn,we.getNamespacesChains=DCt,we.getNamespacesEventsForChainId=LCt,we.getNamespacesMethodsForChainId=OCt,we.getRelayClientMetadata=Fhn,we.getRelayProtocolApi=afn,we.getRelayProtocolName=nfn,we.getRequiredNamespacesFromNamespaces=dfn,we.getSdkError=mw,we.getUniqueValues=Phe,we.hasOverlap=kg,we.hashKey=khn,we.hashMessage=Ahn,we.isBrowser=ECt,we.isConformingNamespaces=Pfn,we.isExpired=tfn,we.isNode=Ohe,we.isProposalStruct=yfn,we.isReactNative=TCt,we.isSessionCompatible=ffn,we.isSessionStruct=gfn,we.isTypeOneEnvelope=Mhn,we.isUndefined=Ag,we.isValidAccountId=qCt,we.isValidAccounts=UCt,we.isValidActions=jCt,we.isValidArray=HS,we.isValidChainId=yj,we.isValidChains=FCt,we.isValidController=bfn,we.isValidErrorReason=Tfn,we.isValidEvent=Ifn,we.isValidId=_fn,we.isValidNamespaceAccounts=HCt,we.isValidNamespaceActions=Whe,we.isValidNamespaceChains=WCt,we.isValidNamespaceMethodsOrEvents=khe,we.isValidNamespaces=zCt,we.isValidNamespacesChainId=kfn,we.isValidNamespacesEvent=Sfn,we.isValidNamespacesRequest=Afn,we.isValidNumber=mj,we.isValidObject=Fhe,we.isValidParams=xfn,we.isValidRelay=KCt,we.isValidRelays=wfn,we.isValidRequest=Efn,we.isValidRequestExpiry=Nfn,we.isValidRequiredNamespaces=vfn,we.isValidResponse=Cfn,we.isValidString=Cd,we.isValidUrl=mfn,we.mapEntries=Ghn,we.mapToObj=zhn,we.objToMap=Khn,we.parseAccountId=She,we.parseChainId=uCt,we.parseContextNames=SCt,we.parseExpirerTarget=Xhn,we.parseRelayParams=NCt,we.parseUri=ufn,we.serialize=bCt,we.validateDecoding=Rhn,we.validateEncoding=vCt});var VCt=x((s5a,GCt)=>{"use strict";d();p();function Bfn(r){try{return JSON.stringify(r)}catch{return'"[Circular]"'}}GCt.exports=Dfn;function Dfn(r,e,t){var n=t&&t.stringify||Bfn,a=1;if(typeof r=="object"&&r!==null){var i=e.length+a;if(i===1)return r;var s=new Array(i);s[0]=n(r);for(var o=1;o-1?h:0,r.charCodeAt(m+1)){case 100:case 102:if(l>=c||e[l]==null)break;h=c||e[l]==null)break;h=c||e[l]===void 0)break;h",h=m+2,m++;break}u+=n(e[l]),h=m+2,m++;break;case 115:if(l>=c)break;h{"use strict";d();p();var $Ct=VCt();QCt.exports=Om;var zS=Kfn().console||{},Ofn={mapHttpRequest:gj,mapHttpResponse:gj,wrapRequestSerializer:Uhe,wrapResponseSerializer:Uhe,wrapErrorSerializer:Uhe,req:gj,res:gj,err:Ufn};function Lfn(r,e){return Array.isArray(r)?r.filter(function(n){return n!=="!stdSerializers.err"}):r===!0?Object.keys(e):!1}function Om(r){r=r||{},r.browser=r.browser||{};let e=r.browser.transmit;if(e&&typeof e.send!="function")throw Error("pino: transmit option must have a send function");let t=r.browser.write||zS;r.browser.write&&(r.browser.asObject=!0);let n=r.serializers||{},a=Lfn(r.browser.serialize,n),i=r.browser.serialize;Array.isArray(r.browser.serialize)&&r.browser.serialize.indexOf("!stdSerializers.err")>-1&&(i=!1);let s=["error","fatal","warn","info","debug","trace"];typeof t=="function"&&(t.error=t.fatal=t.warn=t.info=t.debug=t.trace=t),r.enabled===!1&&(r.level="silent");let o=r.level||"info",c=Object.create(t);c.log||(c.log=KS),Object.defineProperty(c,"levelVal",{get:l}),Object.defineProperty(c,"level",{get:h,set:f});let u={transmit:e,serialize:a,asObject:r.browser.asObject,levels:s,timestamp:Hfn(r)};c.levels=Om.levels,c.level=o,c.setMaxListeners=c.getMaxListeners=c.emit=c.addListener=c.on=c.prependListener=c.once=c.prependOnceListener=c.removeListener=c.removeAllListeners=c.listeners=c.listenerCount=c.eventNames=c.write=c.flush=KS,c.serializers=n,c._serialize=a,c._stdErrSerialize=i,c.child=m,e&&(c._logEvent=Hhe());function l(){return this.level==="silent"?1/0:this.levels.values[this.level]}function h(){return this._level}function f(y){if(y!=="silent"&&!this.levels.values[y])throw Error("unknown level "+y);this._level=y,q6(u,c,"error","log"),q6(u,c,"fatal","error"),q6(u,c,"warn","error"),q6(u,c,"info","log"),q6(u,c,"debug","log"),q6(u,c,"trace","log")}function m(y,E){if(!y)throw new Error("missing bindings for child Pino");E=E||{},a&&y.serializers&&(E.serializers=y.serializers);let I=E.serializers;if(a&&I){var S=Object.assign({},n,I),L=r.browser.serialize===!0?Object.keys(S):a;delete y.serializers,bj([y],L,S,this._stdErrSerialize)}function F(W){this._childLevel=(W._childLevel|0)+1,this.error=F6(W,y,"error"),this.fatal=F6(W,y,"fatal"),this.warn=F6(W,y,"warn"),this.info=F6(W,y,"info"),this.debug=F6(W,y,"debug"),this.trace=F6(W,y,"trace"),S&&(this.serializers=S,this._serialize=L),e&&(this._logEvent=Hhe([].concat(W._logEvent.bindings,y)))}return F.prototype=this,new F(this)}return c}Om.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"}};Om.stdSerializers=Ofn;Om.stdTimeFunctions=Object.assign({},{nullTime:YCt,epochTime:JCt,unixTime:jfn,isoTime:zfn});function q6(r,e,t,n){let a=Object.getPrototypeOf(e);e[t]=e.levelVal>e.levels.values[t]?KS:a[t]?a[t]:zS[t]||zS[n]||KS,qfn(r,e,t)}function qfn(r,e,t){!r.transmit&&e[t]===KS||(e[t]=function(n){return function(){let i=r.timestamp(),s=new Array(arguments.length),o=Object.getPrototypeOf&&Object.getPrototypeOf(this)===zS?zS:this;for(var c=0;c-1&&i in t&&(r[a][i]=t[i](r[a][i]))}function F6(r,e,t){return function(){let n=new Array(1+arguments.length);n[0]=e;for(var a=1;a{"use strict";d();p();Object.defineProperty(vj,"__esModule",{value:!0});function Gfn(r){if(typeof r!="string")throw new Error(`Cannot safe json parse value of type ${typeof r}`);try{return JSON.parse(r)}catch{return r}}vj.safeJsonParse=Gfn;function Vfn(r){return typeof r=="string"?r:JSON.stringify(r,(e,t)=>typeof t>"u"?null:t)}vj.safeJsonStringify=Vfn});var ZCt=x((m5a,wj)=>{"use strict";d();p();(function(){"use strict";let r;function e(){}r=e,r.prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},r.prototype.setItem=function(t,n){this[t]=String(n)},r.prototype.removeItem=function(t){delete this[t]},r.prototype.clear=function(){let t=this;Object.keys(t).forEach(function(n){t[n]=void 0,delete t[n]})},r.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},r.prototype.__defineGetter__("length",function(){return Object.keys(this).length}),typeof global<"u"&&global.localStorage?wj.exports=global.localStorage:typeof window<"u"&&window.localStorage?wj.exports=window.localStorage:wj.exports=new e})()});var XCt=x(_j=>{"use strict";d();p();Object.defineProperty(_j,"__esModule",{value:!0});_j.IKeyValueStorage=void 0;var zhe=class{};_j.IKeyValueStorage=zhe});var e4t=x(xj=>{"use strict";d();p();Object.defineProperty(xj,"__esModule",{value:!0});xj.parseEntry=void 0;var $fn=jhe();function Yfn(r){var e;return[r[0],$fn.safeJsonParse((e=r[1])!==null&&e!==void 0?e:"")]}xj.parseEntry=Yfn});var r4t=x(Tj=>{"use strict";d();p();Object.defineProperty(Tj,"__esModule",{value:!0});var t4t=_d();t4t.__exportStar(XCt(),Tj);t4t.__exportStar(e4t(),Tj)});var a4t=x(VS=>{"use strict";d();p();Object.defineProperty(VS,"__esModule",{value:!0});VS.KeyValueStorage=void 0;var W6=_d(),n4t=jhe(),Jfn=W6.__importDefault(ZCt()),Qfn=r4t(),Ej=class{constructor(){this.localStorage=Jfn.default}getKeys(){return W6.__awaiter(this,void 0,void 0,function*(){return Object.keys(this.localStorage)})}getEntries(){return W6.__awaiter(this,void 0,void 0,function*(){return Object.entries(this.localStorage).map(Qfn.parseEntry)})}getItem(e){return W6.__awaiter(this,void 0,void 0,function*(){let t=this.localStorage.getItem(e);if(t!==null)return n4t.safeJsonParse(t)})}setItem(e,t){return W6.__awaiter(this,void 0,void 0,function*(){this.localStorage.setItem(e,n4t.safeJsonStringify(t))})}removeItem(e){return W6.__awaiter(this,void 0,void 0,function*(){this.localStorage.removeItem(e)})}};VS.KeyValueStorage=Ej;VS.default=Ej});var Khe,i4t=ce(()=>{d();p();Khe=class{}});var Ghe={};cr(Ghe,{IEvents:()=>Khe});var Vhe=ce(()=>{d();p();i4t()});var s4t=x(Cj=>{"use strict";d();p();Object.defineProperty(Cj,"__esModule",{value:!0});Cj.IHeartBeat=void 0;var Zfn=(Vhe(),nt(Ghe)),$he=class extends Zfn.IEvents{constructor(e){super()}};Cj.IHeartBeat=$he});var Jhe=x(Yhe=>{"use strict";d();p();Object.defineProperty(Yhe,"__esModule",{value:!0});var Xfn=_d();Xfn.__exportStar(s4t(),Yhe)});var o4t=x(U6=>{"use strict";d();p();Object.defineProperty(U6,"__esModule",{value:!0});U6.HEARTBEAT_EVENTS=U6.HEARTBEAT_INTERVAL=void 0;var emn=fw();U6.HEARTBEAT_INTERVAL=emn.FIVE_SECONDS;U6.HEARTBEAT_EVENTS={pulse:"heartbeat_pulse"}});var Zhe=x(Qhe=>{"use strict";d();p();Object.defineProperty(Qhe,"__esModule",{value:!0});var tmn=_d();tmn.__exportStar(o4t(),Qhe)});var c4t=x(Ij=>{"use strict";d();p();Object.defineProperty(Ij,"__esModule",{value:!0});Ij.HeartBeat=void 0;var Xhe=_d(),rmn=Bu(),nmn=fw(),amn=Jhe(),efe=Zhe(),$S=class extends amn.IHeartBeat{constructor(e){super(e),this.events=new rmn.EventEmitter,this.interval=efe.HEARTBEAT_INTERVAL,this.interval=e?.interval||efe.HEARTBEAT_INTERVAL}static init(e){return Xhe.__awaiter(this,void 0,void 0,function*(){let t=new $S(e);return yield t.init(),t})}init(){return Xhe.__awaiter(this,void 0,void 0,function*(){yield this.initialize()})}stop(){clearInterval(this.intervalRef)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}initialize(){return Xhe.__awaiter(this,void 0,void 0,function*(){this.intervalRef=setInterval(()=>this.pulse(),nmn.toMiliseconds(this.interval))})}pulse(){this.events.emit(efe.HEARTBEAT_EVENTS.pulse)}};Ij.HeartBeat=$S});var u4t=x(YS=>{"use strict";d();p();Object.defineProperty(YS,"__esModule",{value:!0});var tfe=_d();tfe.__exportStar(c4t(),YS);tfe.__exportStar(Jhe(),YS);tfe.__exportStar(Zhe(),YS)});var rfe=x(H6=>{"use strict";d();p();Object.defineProperty(H6,"__esModule",{value:!0});H6.PINO_CUSTOM_CONTEXT_KEY=H6.PINO_LOGGER_DEFAULTS=void 0;H6.PINO_LOGGER_DEFAULTS={level:"info"};H6.PINO_CUSTOM_CONTEXT_KEY="custom_context"});var f4t=x(Hl=>{"use strict";d();p();Object.defineProperty(Hl,"__esModule",{value:!0});Hl.generateChildLogger=Hl.formatChildLoggerContext=Hl.getLoggerContext=Hl.setBrowserLoggerContext=Hl.getBrowserLoggerContext=Hl.getDefaultLoggerOptions=void 0;var j6=rfe();function imn(r){return Object.assign(Object.assign({},r),{level:r?.level||j6.PINO_LOGGER_DEFAULTS.level})}Hl.getDefaultLoggerOptions=imn;function l4t(r,e=j6.PINO_CUSTOM_CONTEXT_KEY){return r[e]||""}Hl.getBrowserLoggerContext=l4t;function d4t(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){return r[t]=e,r}Hl.setBrowserLoggerContext=d4t;function p4t(r,e=j6.PINO_CUSTOM_CONTEXT_KEY){let t="";return typeof r.bindings>"u"?t=l4t(r,e):t=r.bindings().context||"",t}Hl.getLoggerContext=p4t;function h4t(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){let n=p4t(r,t);return n.trim()?`${n}/${e}`:e}Hl.formatChildLoggerContext=h4t;function smn(r,e,t=j6.PINO_CUSTOM_CONTEXT_KEY){let n=h4t(r,e,t),a=r.child({context:n});return d4t(a,n,t)}Hl.generateChildLogger=smn});var kj=x(z6=>{"use strict";d();p();Object.defineProperty(z6,"__esModule",{value:!0});z6.pino=void 0;var nfe=_d(),omn=nfe.__importDefault(GS());Object.defineProperty(z6,"pino",{enumerable:!0,get:function(){return omn.default}});nfe.__exportStar(rfe(),z6);nfe.__exportStar(f4t(),z6)});var wfe=x(nc=>{"use strict";d();p();Object.defineProperty(nc,"__esModule",{value:!0});var K6=(Vhe(),nt(Ghe)),m4t=Bu();function cmn(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var umn=cmn(m4t),afe=class extends K6.IEvents{constructor(e){super(),this.opts=e,this.protocol="wc",this.version=2}},ife=class{constructor(e,t,n){this.core=e,this.logger=t}},sfe=class extends K6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t,this.records=new Map}},ofe=class{constructor(e,t){this.logger=e,this.core=t}},cfe=class extends K6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},ufe=class extends K6.IEvents{constructor(e){super()}},lfe=class{constructor(e,t,n,a){this.core=e,this.logger=t,this.name=n}},dfe=class{constructor(){this.map=new Map}},pfe=class extends K6.IEvents{constructor(e,t){super(),this.relayer=e,this.logger=t}},hfe=class{constructor(e,t){this.core=e,this.logger=t}},ffe=class extends K6.IEvents{constructor(e,t){super(),this.core=e,this.logger=t}},mfe=class{constructor(e,t){this.logger=e,this.core=t}},yfe=class extends umn.default{constructor(){super()}},gfe=class{constructor(e){this.opts=e,this.protocol="wc",this.version=2}},bfe=class extends m4t.EventEmitter{constructor(){super()}},vfe=class{constructor(e){this.client=e}};nc.ICore=afe,nc.ICrypto=ife,nc.IEngine=vfe,nc.IEngineEvents=bfe,nc.IExpirer=ffe,nc.IJsonRpcHistory=sfe,nc.IKeyChain=hfe,nc.IMessageTracker=ofe,nc.IPairing=mfe,nc.IPublisher=cfe,nc.IRelayer=ufe,nc.ISignClient=gfe,nc.ISignClientEvents=yfe,nc.IStore=lfe,nc.ISubscriber=pfe,nc.ISubscriberTopicMap=dfe});var b4t=x(uy=>{"use strict";d();p();Object.defineProperty(uy,"__esModule",{value:!0});var V6=P6(),G6=Wp();uy.DIGEST_LENGTH=64;uy.BLOCK_SIZE=128;var g4t=function(){function r(){this.digestLength=uy.DIGEST_LENGTH,this.blockSize=uy.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 r.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},r.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},r.prototype.clean=function(){G6.wipe(this._buffer),G6.wipe(this._tempHi),G6.wipe(this._tempLo),this.reset()},r.prototype.update=function(e,t){if(t===void 0&&(t=e.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var n=0;if(this._bytesHashed+=t,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=e[n++],t--;this._bufferLength===this.blockSize&&(_fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(t>=this.blockSize&&(n=_fe(this._tempHi,this._tempLo,this._stateHi,this._stateLo,e,n,t),t%=this.blockSize);t>0;)this._buffer[this._bufferLength++]=e[n++],t--;return this},r.prototype.finish=function(e){if(!this._finished){var t=this._bytesHashed,n=this._bufferLength,a=t/536870912|0,i=t<<3,s=t%128<112?128:256;this._buffer[n]=128;for(var o=n+1;o0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},r.prototype.restoreState=function(e){return this._stateHi.set(e.stateHi),this._stateLo.set(e.stateLo),this._bufferLength=e.bufferLength,e.buffer&&this._buffer.set(e.buffer),this._bytesHashed=e.bytesHashed,this._finished=!1,this},r.prototype.cleanSavedState=function(e){G6.wipe(e.stateHi),G6.wipe(e.stateLo),e.buffer&&G6.wipe(e.buffer),e.bufferLength=0,e.bytesHashed=0},r}();uy.SHA512=g4t;var y4t=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 _fe(r,e,t,n,a,i,s){for(var o=t[0],c=t[1],u=t[2],l=t[3],h=t[4],f=t[5],m=t[6],y=t[7],E=n[0],I=n[1],S=n[2],L=n[3],F=n[4],W=n[5],V=n[6],K=n[7],H,G,J,q,T,P,A,v;s>=128;){for(var k=0;k<16;k++){var O=8*k+i;r[k]=V6.readUint32BE(a,O),e[k]=V6.readUint32BE(a,O+4)}for(var k=0;k<80;k++){var D=o,B=c,_=u,N=l,U=h,C=f,z=m,ee=y,j=E,X=I,ie=S,ue=L,he=F,ke=W,ge=V,me=K;if(H=y,G=K,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=(h>>>14|F<<32-14)^(h>>>18|F<<32-18)^(F>>>41-32|h<<32-(41-32)),G=(F>>>14|h<<32-14)^(F>>>18|h<<32-18)^(h>>>41-32|F<<32-(41-32)),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=h&f^~h&m,G=F&W^~F&V,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=y4t[k*2],G=y4t[k*2+1],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=r[k%16],G=e[k%16],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,J=A&65535|v<<16,q=T&65535|P<<16,H=J,G=q,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=(o>>>28|E<<32-28)^(E>>>34-32|o<<32-(34-32))^(E>>>39-32|o<<32-(39-32)),G=(E>>>28|o<<32-28)^(o>>>34-32|E<<32-(34-32))^(o>>>39-32|E<<32-(39-32)),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,H=o&c^o&u^c&u,G=E&I^E&S^I&S,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,ee=A&65535|v<<16,me=T&65535|P<<16,H=N,G=ue,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=J,G=q,T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,N=A&65535|v<<16,ue=T&65535|P<<16,c=D,u=B,l=_,h=N,f=U,m=C,y=z,o=ee,I=j,S=X,L=ie,F=ue,W=he,V=ke,K=ge,E=me,k%16===15)for(var O=0;O<16;O++)H=r[O],G=e[O],T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=r[(O+9)%16],G=e[(O+9)%16],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,J=r[(O+1)%16],q=e[(O+1)%16],H=(J>>>1|q<<32-1)^(J>>>8|q<<32-8)^J>>>7,G=(q>>>1|J<<32-1)^(q>>>8|J<<32-8)^(q>>>7|J<<32-7),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,J=r[(O+14)%16],q=e[(O+14)%16],H=(J>>>19|q<<32-19)^(q>>>61-32|J<<32-(61-32))^J>>>6,G=(q>>>19|J<<32-19)^(J>>>61-32|q<<32-(61-32))^(q>>>6|J<<32-6),T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,r[O]=A&65535|v<<16,e[O]=T&65535|P<<16}H=o,G=E,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[0],G=n[0],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[0]=o=A&65535|v<<16,n[0]=E=T&65535|P<<16,H=c,G=I,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[1],G=n[1],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[1]=c=A&65535|v<<16,n[1]=I=T&65535|P<<16,H=u,G=S,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[2],G=n[2],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[2]=u=A&65535|v<<16,n[2]=S=T&65535|P<<16,H=l,G=L,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[3],G=n[3],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[3]=l=A&65535|v<<16,n[3]=L=T&65535|P<<16,H=h,G=F,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[4],G=n[4],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[4]=h=A&65535|v<<16,n[4]=F=T&65535|P<<16,H=f,G=W,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[5],G=n[5],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[5]=f=A&65535|v<<16,n[5]=W=T&65535|P<<16,H=m,G=V,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[6],G=n[6],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[6]=m=A&65535|v<<16,n[6]=V=T&65535|P<<16,H=y,G=K,T=G&65535,P=G>>>16,A=H&65535,v=H>>>16,H=t[7],G=n[7],T+=G&65535,P+=G>>>16,A+=H&65535,v+=H>>>16,P+=T>>>16,A+=P>>>16,v+=A>>>16,t[7]=y=A&65535|v<<16,n[7]=K=T&65535|P<<16,i+=128,s-=128}return i}function lmn(r){var e=new g4t;e.update(r);var t=e.digest();return e.clean(),t}uy.hash=lmn});var M4t=x(Na=>{"use strict";d();p();Object.defineProperty(Na,"__esModule",{value:!0});Na.convertSecretKeyToX25519=Na.convertPublicKeyToX25519=Na.verify=Na.sign=Na.extractPublicKeyFromSecretKey=Na.generateKeyPair=Na.generateKeyPairFromSeed=Na.SEED_LENGTH=Na.SECRET_KEY_LENGTH=Na.PUBLIC_KEY_LENGTH=Na.SIGNATURE_LENGTH=void 0;var dmn=BS(),JS=b4t(),T4t=Wp();Na.SIGNATURE_LENGTH=64;Na.PUBLIC_KEY_LENGTH=32;Na.SECRET_KEY_LENGTH=64;Na.SEED_LENGTH=32;function mt(r){let e=new Float64Array(16);if(r)for(let t=0;t>16&1),t[s-1]&=65535;t[15]=n[15]-32767-(t[14]>>16&1);let i=t[15]>>16&1;t[14]&=65535,E4t(n,t,1-i)}for(let a=0;a<16;a++)r[2*a]=n[a]&255,r[2*a+1]=n[a]>>8}function C4t(r,e){let t=0;for(let n=0;n<32;n++)t|=r[n]^e[n];return(1&t-1>>>8)-1}function _4t(r,e){let t=new Uint8Array(32),n=new Uint8Array(32);return QS(t,r),QS(n,e),C4t(t,n)}function I4t(r){let e=new Uint8Array(32);return QS(e,r),e[0]&1}function ymn(r,e){for(let t=0;t<16;t++)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}function gw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]+t[n]}function vw(r,e,t){for(let n=0;n<16;n++)r[n]=e[n]-t[n]}function Ka(r,e,t){let n,a,i=0,s=0,o=0,c=0,u=0,l=0,h=0,f=0,m=0,y=0,E=0,I=0,S=0,L=0,F=0,W=0,V=0,K=0,H=0,G=0,J=0,q=0,T=0,P=0,A=0,v=0,k=0,O=0,D=0,B=0,_=0,N=t[0],U=t[1],C=t[2],z=t[3],ee=t[4],j=t[5],X=t[6],ie=t[7],ue=t[8],he=t[9],ke=t[10],ge=t[11],me=t[12],Ke=t[13],ve=t[14],Ae=t[15];n=e[0],i+=n*N,s+=n*U,o+=n*C,c+=n*z,u+=n*ee,l+=n*j,h+=n*X,f+=n*ie,m+=n*ue,y+=n*he,E+=n*ke,I+=n*ge,S+=n*me,L+=n*Ke,F+=n*ve,W+=n*Ae,n=e[1],s+=n*N,o+=n*U,c+=n*C,u+=n*z,l+=n*ee,h+=n*j,f+=n*X,m+=n*ie,y+=n*ue,E+=n*he,I+=n*ke,S+=n*ge,L+=n*me,F+=n*Ke,W+=n*ve,V+=n*Ae,n=e[2],o+=n*N,c+=n*U,u+=n*C,l+=n*z,h+=n*ee,f+=n*j,m+=n*X,y+=n*ie,E+=n*ue,I+=n*he,S+=n*ke,L+=n*ge,F+=n*me,W+=n*Ke,V+=n*ve,K+=n*Ae,n=e[3],c+=n*N,u+=n*U,l+=n*C,h+=n*z,f+=n*ee,m+=n*j,y+=n*X,E+=n*ie,I+=n*ue,S+=n*he,L+=n*ke,F+=n*ge,W+=n*me,V+=n*Ke,K+=n*ve,H+=n*Ae,n=e[4],u+=n*N,l+=n*U,h+=n*C,f+=n*z,m+=n*ee,y+=n*j,E+=n*X,I+=n*ie,S+=n*ue,L+=n*he,F+=n*ke,W+=n*ge,V+=n*me,K+=n*Ke,H+=n*ve,G+=n*Ae,n=e[5],l+=n*N,h+=n*U,f+=n*C,m+=n*z,y+=n*ee,E+=n*j,I+=n*X,S+=n*ie,L+=n*ue,F+=n*he,W+=n*ke,V+=n*ge,K+=n*me,H+=n*Ke,G+=n*ve,J+=n*Ae,n=e[6],h+=n*N,f+=n*U,m+=n*C,y+=n*z,E+=n*ee,I+=n*j,S+=n*X,L+=n*ie,F+=n*ue,W+=n*he,V+=n*ke,K+=n*ge,H+=n*me,G+=n*Ke,J+=n*ve,q+=n*Ae,n=e[7],f+=n*N,m+=n*U,y+=n*C,E+=n*z,I+=n*ee,S+=n*j,L+=n*X,F+=n*ie,W+=n*ue,V+=n*he,K+=n*ke,H+=n*ge,G+=n*me,J+=n*Ke,q+=n*ve,T+=n*Ae,n=e[8],m+=n*N,y+=n*U,E+=n*C,I+=n*z,S+=n*ee,L+=n*j,F+=n*X,W+=n*ie,V+=n*ue,K+=n*he,H+=n*ke,G+=n*ge,J+=n*me,q+=n*Ke,T+=n*ve,P+=n*Ae,n=e[9],y+=n*N,E+=n*U,I+=n*C,S+=n*z,L+=n*ee,F+=n*j,W+=n*X,V+=n*ie,K+=n*ue,H+=n*he,G+=n*ke,J+=n*ge,q+=n*me,T+=n*Ke,P+=n*ve,A+=n*Ae,n=e[10],E+=n*N,I+=n*U,S+=n*C,L+=n*z,F+=n*ee,W+=n*j,V+=n*X,K+=n*ie,H+=n*ue,G+=n*he,J+=n*ke,q+=n*ge,T+=n*me,P+=n*Ke,A+=n*ve,v+=n*Ae,n=e[11],I+=n*N,S+=n*U,L+=n*C,F+=n*z,W+=n*ee,V+=n*j,K+=n*X,H+=n*ie,G+=n*ue,J+=n*he,q+=n*ke,T+=n*ge,P+=n*me,A+=n*Ke,v+=n*ve,k+=n*Ae,n=e[12],S+=n*N,L+=n*U,F+=n*C,W+=n*z,V+=n*ee,K+=n*j,H+=n*X,G+=n*ie,J+=n*ue,q+=n*he,T+=n*ke,P+=n*ge,A+=n*me,v+=n*Ke,k+=n*ve,O+=n*Ae,n=e[13],L+=n*N,F+=n*U,W+=n*C,V+=n*z,K+=n*ee,H+=n*j,G+=n*X,J+=n*ie,q+=n*ue,T+=n*he,P+=n*ke,A+=n*ge,v+=n*me,k+=n*Ke,O+=n*ve,D+=n*Ae,n=e[14],F+=n*N,W+=n*U,V+=n*C,K+=n*z,H+=n*ee,G+=n*j,J+=n*X,q+=n*ie,T+=n*ue,P+=n*he,A+=n*ke,v+=n*ge,k+=n*me,O+=n*Ke,D+=n*ve,B+=n*Ae,n=e[15],W+=n*N,V+=n*U,K+=n*C,H+=n*z,G+=n*ee,J+=n*j,q+=n*X,T+=n*ie,P+=n*ue,A+=n*he,v+=n*ke,k+=n*ge,O+=n*me,D+=n*Ke,B+=n*ve,_+=n*Ae,i+=38*V,s+=38*K,o+=38*H,c+=38*G,u+=38*J,l+=38*q,h+=38*T,f+=38*P,m+=38*A,y+=38*v,E+=38*k,I+=38*O,S+=38*D,L+=38*B,F+=38*_,a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),a=1,n=i+a+65535,a=Math.floor(n/65536),i=n-a*65536,n=s+a+65535,a=Math.floor(n/65536),s=n-a*65536,n=o+a+65535,a=Math.floor(n/65536),o=n-a*65536,n=c+a+65535,a=Math.floor(n/65536),c=n-a*65536,n=u+a+65535,a=Math.floor(n/65536),u=n-a*65536,n=l+a+65535,a=Math.floor(n/65536),l=n-a*65536,n=h+a+65535,a=Math.floor(n/65536),h=n-a*65536,n=f+a+65535,a=Math.floor(n/65536),f=n-a*65536,n=m+a+65535,a=Math.floor(n/65536),m=n-a*65536,n=y+a+65535,a=Math.floor(n/65536),y=n-a*65536,n=E+a+65535,a=Math.floor(n/65536),E=n-a*65536,n=I+a+65535,a=Math.floor(n/65536),I=n-a*65536,n=S+a+65535,a=Math.floor(n/65536),S=n-a*65536,n=L+a+65535,a=Math.floor(n/65536),L=n-a*65536,n=F+a+65535,a=Math.floor(n/65536),F=n-a*65536,n=W+a+65535,a=Math.floor(n/65536),W=n-a*65536,i+=a-1+37*(a-1),r[0]=i,r[1]=s,r[2]=o,r[3]=c,r[4]=u,r[5]=l,r[6]=h,r[7]=f,r[8]=m,r[9]=y,r[10]=E,r[11]=I,r[12]=S,r[13]=L,r[14]=F,r[15]=W}function bw(r,e){Ka(r,e,e)}function k4t(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=253;n>=0;n--)bw(t,t),n!==2&&n!==4&&Ka(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function gmn(r,e){let t=mt(),n;for(n=0;n<16;n++)t[n]=e[n];for(n=250;n>=0;n--)bw(t,t),n!==1&&Ka(t,t,e);for(n=0;n<16;n++)r[n]=t[n]}function Cfe(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt(),u=mt(),l=mt();vw(t,r[1],r[0]),vw(l,e[1],e[0]),Ka(t,t,l),gw(n,r[0],r[1]),gw(l,e[0],e[1]),Ka(n,n,l),Ka(a,r[3],e[3]),Ka(a,a,fmn),Ka(i,r[2],e[2]),gw(i,i,i),vw(s,n,t),vw(o,i,a),gw(c,i,a),gw(u,n,t),Ka(r[0],s,o),Ka(r[1],u,c),Ka(r[2],c,o),Ka(r[3],s,u)}function x4t(r,e,t){for(let n=0;n<4;n++)E4t(r[n],e[n],t)}function kfe(r,e){let t=mt(),n=mt(),a=mt();k4t(a,e[2]),Ka(t,e[0],a),Ka(n,e[1],a),QS(r,n),r[31]^=I4t(t)<<7}function A4t(r,e,t){Sg(r[0],Efe),Sg(r[1],$6),Sg(r[2],$6),Sg(r[3],Efe);for(let n=255;n>=0;--n){let a=t[n/8|0]>>(n&7)&1;x4t(r,e,a),Cfe(e,r),Cfe(r,r),x4t(r,e,a)}}function Afe(r,e){let t=[mt(),mt(),mt(),mt()];Sg(t[0],v4t),Sg(t[1],w4t),Sg(t[2],$6),Ka(t[3],v4t,w4t),A4t(r,t,e)}function S4t(r){if(r.length!==Na.SEED_LENGTH)throw new Error(`ed25519: seed must be ${Na.SEED_LENGTH} bytes`);let e=(0,JS.hash)(r);e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(32),n=[mt(),mt(),mt(),mt()];Afe(n,e),kfe(t,n);let a=new Uint8Array(64);return a.set(r),a.set(t,32),{publicKey:t,secretKey:a}}Na.generateKeyPairFromSeed=S4t;function bmn(r){let e=(0,dmn.randomBytes)(32,r),t=S4t(e);return(0,T4t.wipe)(e),t}Na.generateKeyPair=bmn;function vmn(r){if(r.length!==Na.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${Na.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(r.subarray(32))}Na.extractPublicKeyFromSecretKey=vmn;var Tfe=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 P4t(r,e){let t,n,a,i;for(n=63;n>=32;--n){for(t=0,a=n-32,i=n-12;a>4)*Tfe[a],t=e[a]>>8,e[a]&=255;for(a=0;a<32;a++)e[a]-=t*Tfe[a];for(n=0;n<32;n++)e[n+1]+=e[n]>>8,r[n]=e[n]&255}function Ife(r){let e=new Float64Array(64);for(let t=0;t<64;t++)e[t]=r[t];for(let t=0;t<64;t++)r[t]=0;P4t(r,e)}function wmn(r,e){let t=new Float64Array(64),n=[mt(),mt(),mt(),mt()],a=(0,JS.hash)(r.subarray(0,32));a[0]&=248,a[31]&=127,a[31]|=64;let i=new Uint8Array(64);i.set(a.subarray(32),32);let s=new JS.SHA512;s.update(i.subarray(32)),s.update(e);let o=s.digest();s.clean(),Ife(o),Afe(n,o),kfe(i,n),s.reset(),s.update(i.subarray(0,32)),s.update(r.subarray(32)),s.update(e);let c=s.digest();Ife(c);for(let u=0;u<32;u++)t[u]=o[u];for(let u=0;u<32;u++)for(let l=0;l<32;l++)t[u+l]+=c[u]*a[l];return P4t(i.subarray(32),t),i}Na.sign=wmn;function R4t(r,e){let t=mt(),n=mt(),a=mt(),i=mt(),s=mt(),o=mt(),c=mt();return Sg(r[2],$6),ymn(r[1],e),bw(a,r[1]),Ka(i,a,hmn),vw(a,a,r[2]),gw(i,r[2],i),bw(s,i),bw(o,s),Ka(c,o,s),Ka(t,c,a),Ka(t,t,i),gmn(t,t),Ka(t,t,a),Ka(t,t,i),Ka(t,t,i),Ka(r[0],t,i),bw(n,r[0]),Ka(n,n,i),_4t(n,a)&&Ka(r[0],r[0],mmn),bw(n,r[0]),Ka(n,n,i),_4t(n,a)?-1:(I4t(r[0])===e[31]>>7&&vw(r[0],Efe,r[0]),Ka(r[3],r[0],r[1]),0)}function _mn(r,e,t){let n=new Uint8Array(32),a=[mt(),mt(),mt(),mt()],i=[mt(),mt(),mt(),mt()];if(t.length!==Na.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${Na.SIGNATURE_LENGTH} bytes`);if(R4t(i,r))return!1;let s=new JS.SHA512;s.update(t.subarray(0,32)),s.update(r),s.update(e);let o=s.digest();return Ife(o),A4t(a,i,o),Afe(i,t.subarray(32)),Cfe(a,i),kfe(n,a),!C4t(t,n)}Na.verify=_mn;function xmn(r){let e=[mt(),mt(),mt(),mt()];if(R4t(e,r))throw new Error("Ed25519: invalid public key");let t=mt(),n=mt(),a=e[1];gw(t,$6,a),vw(n,$6,a),k4t(n,n),Ka(t,t,n);let i=new Uint8Array(32);return QS(i,t),i}Na.convertPublicKeyToX25519=xmn;function Tmn(r){let e=(0,JS.hash)(r.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;let t=new Uint8Array(e.subarray(0,32));return(0,T4t.wipe)(e),t}Na.convertSecretKeyToX25519=Tmn});var Aj,Sj,ww,Y6,Pj,ZS,Rj,Mj,Nj,J6,Bj,Dj,N4t,B4t,Oj=ce(()=>{d();p();Aj="EdDSA",Sj="JWT",ww=".",Y6="base64url",Pj="utf8",ZS="utf8",Rj=":",Mj="did",Nj="key",J6="base58btc",Bj="z",Dj="K36",N4t=32,B4t=32});function XS(r){return ty(tm(xh(r,Y6),Pj))}function eP(r){return tm(xh(Mm(r),Pj),Y6)}function Sfe(r){let e=xh(Dj,J6),t=Bj+tm(O4([e,r]),J6);return[Mj,Nj,t].join(Rj)}function Pfe(r){let[e,t,n]=r.split(Rj);if(e!==Mj||t!==Nj)throw new Error('Issuer must be a DID with method "key"');if(n.slice(0,1)!==Bj)throw new Error("Issuer must be a key in mulicodec format");let i=xh(n.slice(1),J6);if(tm(i.slice(0,2),J6)!==Dj)throw new Error('Issuer must be a public key with type "Ed25519"');let o=i.slice(2);if(o.length!==32)throw new Error("Issuer must be a public key with length 32 bytes");return o}function D4t(r){return tm(r,Y6)}function O4t(r){return xh(r,Y6)}function Rfe(r){return xh([eP(r.header),eP(r.payload)].join(ww),ZS)}function Emn(r){let e=tm(r,ZS).split(ww),t=XS(e[0]),n=XS(e[1]);return{header:t,payload:n}}function Mfe(r){return[eP(r.header),eP(r.payload),D4t(r.signature)].join(ww)}function Nfe(r){let e=r.split(ww),t=XS(e[0]),n=XS(e[1]),a=O4t(e[2]),i=xh(e.slice(0,2).join(ww),ZS);return{header:t,payload:n,signature:a,data:i}}var Bfe=ce(()=>{d();p();bv();b_();gv();v6();Oj()});function Cmn(r=(0,L4t.randomBytes)(32)){return Q6.generateKeyPairFromSeed(r)}async function Imn(r,e,t,n,a=(0,q4t.fromMiliseconds)(Date.now())){let i={alg:Aj,typ:Sj},s=Sfe(n.publicKey),o=a+t,c={iss:s,sub:r,aud:e,iat:a,exp:o},u=Rfe({header:i,payload:c}),l=Q6.sign(n.secretKey,u);return Mfe({header:i,payload:c,signature:l})}async function kmn(r){let{header:e,payload:t,data:n,signature:a}=Nfe(r);if(e.alg!==Aj||e.typ!==Sj)throw new Error("JWT must use EdDSA algorithm");let i=Pfe(t.iss);return Q6.verify(i,n,a)}var Q6,L4t,q4t,F4t=ce(()=>{d();p();Q6=on(M4t()),L4t=on(BS()),q4t=on(fw());Oj();Bfe()});var W4t=ce(()=>{d();p()});var U4t={};cr(U4t,{DATA_ENCODING:()=>ZS,DID_DELIMITER:()=>Rj,DID_METHOD:()=>Nj,DID_PREFIX:()=>Mj,JSON_ENCODING:()=>Pj,JWT_DELIMITER:()=>ww,JWT_ENCODING:()=>Y6,JWT_IRIDIUM_ALG:()=>Aj,JWT_IRIDIUM_TYP:()=>Sj,KEY_PAIR_SEED_LENGTH:()=>B4t,MULTICODEC_ED25519_BASE:()=>Bj,MULTICODEC_ED25519_ENCODING:()=>J6,MULTICODEC_ED25519_HEADER:()=>Dj,MULTICODEC_ED25519_LENGTH:()=>N4t,decodeData:()=>Emn,decodeIss:()=>Pfe,decodeJSON:()=>XS,decodeJWT:()=>Nfe,decodeSig:()=>O4t,encodeData:()=>Rfe,encodeIss:()=>Sfe,encodeJSON:()=>eP,encodeJWT:()=>Mfe,encodeSig:()=>D4t,generateKeyPair:()=>Cmn,signJWT:()=>Imn,verifyJWT:()=>kmn});var H4t=ce(()=>{d();p();F4t();Oj();W4t();Bfe()});var z4t=x((H3a,j4t)=>{"use strict";d();p();j4t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var G4t,K4t,Amn,Smn,Pmn,Lj,V4t,Dfe=ce(()=>{d();p();G4t=on(Bu());v6();X0();K4t=10,Amn=()=>typeof global<"u"&&typeof global.WebSocket<"u"?global.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:z4t(),Smn=()=>typeof window<"u",Pmn=Amn(),Lj=class{constructor(e){if(this.url=e,this.events=new G4t.EventEmitter,this.registering=!1,!WU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);this.url=e}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async open(e=this.url){await this.register(e)}async close(){return new Promise((e,t)=>{if(typeof this.socket>"u"){t(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),e()},this.socket.close()})}async send(e,t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(Mm(e))}catch(n){this.onError(e.id,n)}}register(e=this.url){if(!WU(e))throw new Error(`Provided URL is not compatible with WebSocket connection: ${e}`);if(this.registering){let t=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=t||this.events.listenerCount("open")>=t)&&this.events.setMaxListeners(t+1),new Promise((n,a)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),a(i)}),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=e,this.registering=!0,new Promise((t,n)=>{let a=(0,to.isReactNative)()?void 0:{rejectUnauthorized:!Ale(e)},i=new Pmn(e,[],a);Smn()?i.onerror=s=>{let o=s;n(this.emitError(o.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),t(i)}})}onOpen(e){e.onmessage=t=>this.onPayload(t),e.onclose=t=>this.onClose(t),this.socket=e,this.registering=!1,this.events.emit("open")}onClose(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}onPayload(e){if(typeof e.data>"u")return;let t=typeof e.data=="string"?ty(e.data):e.data;this.events.emit("payload",t)}onError(e,t){let n=this.parseError(t),a=n.message||n.toString(),i=sS(e,a);this.events.emit("payload",i)}parseError(e,t=this.url){return iS(e,t,"WS")}resetMaxListeners(){this.events.getMaxListeners()>K4t&&this.events.setMaxListeners(K4t)}emitError(e){let t=this.parseError(new Error(e?.message||`WebSocket connection failed for URL: ${this.url}`));return this.events.emit("register_error",t),t}},V4t=Lj});var $4t={};cr($4t,{WsConnection:()=>Lj,default:()=>Rmn});var Rmn,Y4t=ce(()=>{d();p();Dfe();Dfe();Rmn=V4t});var P8t=x((tP,X6)=>{d();p();var Mmn=200,Gfe="__lodash_hash_undefined__",Kj=1,o8t=2,c8t=9007199254740991,qj="[object Arguments]",Ffe="[object Array]",Nmn="[object AsyncFunction]",u8t="[object Boolean]",l8t="[object Date]",d8t="[object Error]",p8t="[object Function]",Bmn="[object GeneratorFunction]",Fj="[object Map]",h8t="[object Number]",Dmn="[object Null]",Z6="[object Object]",J4t="[object Promise]",Omn="[object Proxy]",f8t="[object RegExp]",Wj="[object Set]",m8t="[object String]",Lmn="[object Symbol]",qmn="[object Undefined]",Wfe="[object WeakMap]",y8t="[object ArrayBuffer]",Uj="[object DataView]",Fmn="[object Float32Array]",Wmn="[object Float64Array]",Umn="[object Int8Array]",Hmn="[object Int16Array]",jmn="[object Int32Array]",zmn="[object Uint8Array]",Kmn="[object Uint8ClampedArray]",Gmn="[object Uint16Array]",Vmn="[object Uint32Array]",$mn=/[\\^$.*+?()[\]{}|]/g,Ymn=/^\[object .+?Constructor\]$/,Jmn=/^(?:0|[1-9]\d*)$/,mi={};mi[Fmn]=mi[Wmn]=mi[Umn]=mi[Hmn]=mi[jmn]=mi[zmn]=mi[Kmn]=mi[Gmn]=mi[Vmn]=!0;mi[qj]=mi[Ffe]=mi[y8t]=mi[u8t]=mi[Uj]=mi[l8t]=mi[d8t]=mi[p8t]=mi[Fj]=mi[h8t]=mi[Z6]=mi[f8t]=mi[Wj]=mi[m8t]=mi[Wfe]=!1;var g8t=typeof global=="object"&&global&&global.Object===Object&&global,Qmn=typeof self=="object"&&self&&self.Object===Object&&self,ly=g8t||Qmn||Function("return this")(),b8t=typeof tP=="object"&&tP&&!tP.nodeType&&tP,Q4t=b8t&&typeof X6=="object"&&X6&&!X6.nodeType&&X6,v8t=Q4t&&Q4t.exports===b8t,Ofe=v8t&&g8t.process,Z4t=function(){try{return Ofe&&Ofe.binding&&Ofe.binding("util")}catch{}}(),X4t=Z4t&&Z4t.isTypedArray;function Zmn(r,e){for(var t=-1,n=r==null?0:r.length,a=0,i=[];++t-1}function A0n(r,e){var t=this.__data__,n=Vj(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}dy.prototype.clear=E0n;dy.prototype.delete=C0n;dy.prototype.get=I0n;dy.prototype.has=k0n;dy.prototype.set=A0n;function Tw(r){var e=-1,t=r==null?0:r.length;for(this.clear();++eo))return!1;var u=i.get(r);if(u&&i.get(e))return u==e;var l=-1,h=!0,f=t&o8t?new jj:void 0;for(i.set(r,e),i.set(e,r);++l-1&&r%1==0&&r-1&&r%1==0&&r<=c8t}function A8t(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function aP(r){return r!=null&&typeof r=="object"}var S8t=X4t?r0n(X4t):K0n;function iyn(r){return nyn(r)?U0n(r):G0n(r)}function syn(){return[]}function oyn(){return!1}X6.exports=ayn});var RIt=x(wt=>{"use strict";d();p();Object.defineProperty(wt,"__esModule",{value:!0});var Cw=Bu(),cyn=GS(),uyn=a4t(),iz=u4t(),Ni=kj(),Mg=wfe(),R8t=(v6(),nt(lde)),lyn=(H4t(),nt(U4t)),Me=jS(),Co=fw(),dyn=(SS(),nt(AS)),cf=(X0(),nt(to)),pyn=(Y4t(),nt($4t)),hyn=P8t();function cP(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}function fyn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var myn=cP(Cw),$8t=cP(cyn),yyn=cP(uyn),Yj=fyn(lyn),gyn=cP(pyn),byn=cP(hyn);function vyn(r,e){if(r.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),n=0;n>>0,W=new Uint8Array(F);S!==L;){for(var V=y[S],K=0,H=F-1;(V!==0||K>>0,W[H]=V%o>>>0,V=V/o>>>0;if(V!==0)throw new Error("Non-zero carry");I=K,S++}for(var G=F-I;G!==F&&W[G]===0;)G++;for(var J=c.repeat(E);G>>0,F=new Uint8Array(L);y[E];){var W=t[y.charCodeAt(E)];if(W===255)return;for(var V=0,K=L-1;(W!==0||V>>0,F[K]=W%256>>>0,W=W/256>>>0;if(W!==0)throw new Error("Non-zero carry");S=V,E++}if(y[E]!==" "){for(var H=L-S;H!==L&&F[H]===0;)H++;for(var G=new Uint8Array(I+(L-H)),J=I;H!==L;)G[J++]=F[H++];return G}}}function m(y){var E=f(y);if(E)return E;throw new Error(`Non-${e} character`)}return{encode:h,decodeUnsafe:f,decode:m}}var wyn=vyn,_yn=wyn,Y8t=r=>{if(r instanceof Uint8Array&&r.constructor.name==="Uint8Array")return r;if(r instanceof ArrayBuffer)return new Uint8Array(r);if(ArrayBuffer.isView(r))return new Uint8Array(r.buffer,r.byteOffset,r.byteLength);throw new Error("Unknown type, must be binary type")},xyn=r=>new TextEncoder().encode(r),Tyn=r=>new TextDecoder().decode(r),Yfe=class{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}},Jfe=class{constructor(e,t,n){if(this.name=e,this.prefix=t,t.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if(typeof e=="string"){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(e){return J8t(this,e)}},Qfe=class{constructor(e){this.decoders=e}or(e){return J8t(this,e)}decode(e){let t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}},J8t=(r,e)=>new Qfe({...r.decoders||{[r.prefix]:r},...e.decoders||{[e.prefix]:e}}),Zfe=class{constructor(e,t,n,a){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=a,this.encoder=new Yfe(e,t,n),this.decoder=new Jfe(e,t,a)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}},sz=({name:r,prefix:e,encode:t,decode:n})=>new Zfe(r,e,t,n),uP=({prefix:r,name:e,alphabet:t})=>{let{encode:n,decode:a}=_yn(t,e);return sz({prefix:r,name:e,encode:n,decode:i=>Y8t(a(i))})},Eyn=(r,e,t,n)=>{let a={};for(let l=0;l=8&&(o-=8,s[u++]=255&c>>o)}if(o>=t||255&c<<8-o)throw new SyntaxError("Unexpected end of data");return s},Cyn=(r,e,t)=>{let n=e[e.length-1]==="=",a=(1<t;)s-=t,i+=e[a&o>>s];if(s&&(i+=e[a&o<sz({prefix:e,name:r,encode(a){return Cyn(a,n,t)},decode(a){return Eyn(a,n,t,r)}}),Iyn=sz({prefix:"\0",name:"identity",encode:r=>Tyn(r),decode:r=>xyn(r)}),kyn=Object.freeze({__proto__:null,identity:Iyn}),Ayn=Pc({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),Syn=Object.freeze({__proto__:null,base2:Ayn}),Pyn=Pc({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),Ryn=Object.freeze({__proto__:null,base8:Pyn}),Myn=uP({prefix:"9",name:"base10",alphabet:"0123456789"}),Nyn=Object.freeze({__proto__:null,base10:Myn}),Byn=Pc({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Dyn=Pc({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),Oyn=Object.freeze({__proto__:null,base16:Byn,base16upper:Dyn}),Lyn=Pc({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),qyn=Pc({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Fyn=Pc({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Wyn=Pc({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Uyn=Pc({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Hyn=Pc({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),jyn=Pc({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),zyn=Pc({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Kyn=Pc({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Gyn=Object.freeze({__proto__:null,base32:Lyn,base32upper:qyn,base32pad:Fyn,base32padupper:Wyn,base32hex:Uyn,base32hexupper:Hyn,base32hexpad:jyn,base32hexpadupper:zyn,base32z:Kyn}),Vyn=uP({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),$yn=uP({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Yyn=Object.freeze({__proto__:null,base36:Vyn,base36upper:$yn}),Jyn=uP({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Qyn=uP({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Zyn=Object.freeze({__proto__:null,base58btc:Jyn,base58flickr:Qyn}),Xyn=Pc({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),e1n=Pc({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),t1n=Pc({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),r1n=Pc({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),n1n=Object.freeze({__proto__:null,base64:Xyn,base64pad:e1n,base64url:t1n,base64urlpad:r1n}),Q8t=Array.from("\u{1F680}\u{1FA90}\u2604\u{1F6F0}\u{1F30C}\u{1F311}\u{1F312}\u{1F313}\u{1F314}\u{1F315}\u{1F316}\u{1F317}\u{1F318}\u{1F30D}\u{1F30F}\u{1F30E}\u{1F409}\u2600\u{1F4BB}\u{1F5A5}\u{1F4BE}\u{1F4BF}\u{1F602}\u2764\u{1F60D}\u{1F923}\u{1F60A}\u{1F64F}\u{1F495}\u{1F62D}\u{1F618}\u{1F44D}\u{1F605}\u{1F44F}\u{1F601}\u{1F525}\u{1F970}\u{1F494}\u{1F496}\u{1F499}\u{1F622}\u{1F914}\u{1F606}\u{1F644}\u{1F4AA}\u{1F609}\u263A\u{1F44C}\u{1F917}\u{1F49C}\u{1F614}\u{1F60E}\u{1F607}\u{1F339}\u{1F926}\u{1F389}\u{1F49E}\u270C\u2728\u{1F937}\u{1F631}\u{1F60C}\u{1F338}\u{1F64C}\u{1F60B}\u{1F497}\u{1F49A}\u{1F60F}\u{1F49B}\u{1F642}\u{1F493}\u{1F929}\u{1F604}\u{1F600}\u{1F5A4}\u{1F603}\u{1F4AF}\u{1F648}\u{1F447}\u{1F3B6}\u{1F612}\u{1F92D}\u2763\u{1F61C}\u{1F48B}\u{1F440}\u{1F62A}\u{1F611}\u{1F4A5}\u{1F64B}\u{1F61E}\u{1F629}\u{1F621}\u{1F92A}\u{1F44A}\u{1F973}\u{1F625}\u{1F924}\u{1F449}\u{1F483}\u{1F633}\u270B\u{1F61A}\u{1F61D}\u{1F634}\u{1F31F}\u{1F62C}\u{1F643}\u{1F340}\u{1F337}\u{1F63B}\u{1F613}\u2B50\u2705\u{1F97A}\u{1F308}\u{1F608}\u{1F918}\u{1F4A6}\u2714\u{1F623}\u{1F3C3}\u{1F490}\u2639\u{1F38A}\u{1F498}\u{1F620}\u261D\u{1F615}\u{1F33A}\u{1F382}\u{1F33B}\u{1F610}\u{1F595}\u{1F49D}\u{1F64A}\u{1F639}\u{1F5E3}\u{1F4AB}\u{1F480}\u{1F451}\u{1F3B5}\u{1F91E}\u{1F61B}\u{1F534}\u{1F624}\u{1F33C}\u{1F62B}\u26BD\u{1F919}\u2615\u{1F3C6}\u{1F92B}\u{1F448}\u{1F62E}\u{1F646}\u{1F37B}\u{1F343}\u{1F436}\u{1F481}\u{1F632}\u{1F33F}\u{1F9E1}\u{1F381}\u26A1\u{1F31E}\u{1F388}\u274C\u270A\u{1F44B}\u{1F630}\u{1F928}\u{1F636}\u{1F91D}\u{1F6B6}\u{1F4B0}\u{1F353}\u{1F4A2}\u{1F91F}\u{1F641}\u{1F6A8}\u{1F4A8}\u{1F92C}\u2708\u{1F380}\u{1F37A}\u{1F913}\u{1F619}\u{1F49F}\u{1F331}\u{1F616}\u{1F476}\u{1F974}\u25B6\u27A1\u2753\u{1F48E}\u{1F4B8}\u2B07\u{1F628}\u{1F31A}\u{1F98B}\u{1F637}\u{1F57A}\u26A0\u{1F645}\u{1F61F}\u{1F635}\u{1F44E}\u{1F932}\u{1F920}\u{1F927}\u{1F4CC}\u{1F535}\u{1F485}\u{1F9D0}\u{1F43E}\u{1F352}\u{1F617}\u{1F911}\u{1F30A}\u{1F92F}\u{1F437}\u260E\u{1F4A7}\u{1F62F}\u{1F486}\u{1F446}\u{1F3A4}\u{1F647}\u{1F351}\u2744\u{1F334}\u{1F4A3}\u{1F438}\u{1F48C}\u{1F4CD}\u{1F940}\u{1F922}\u{1F445}\u{1F4A1}\u{1F4A9}\u{1F450}\u{1F4F8}\u{1F47B}\u{1F910}\u{1F92E}\u{1F3BC}\u{1F975}\u{1F6A9}\u{1F34E}\u{1F34A}\u{1F47C}\u{1F48D}\u{1F4E3}\u{1F942}"),a1n=Q8t.reduce((r,e,t)=>(r[t]=e,r),[]),i1n=Q8t.reduce((r,e,t)=>(r[e.codePointAt(0)]=t,r),[]);function s1n(r){return r.reduce((e,t)=>(e+=a1n[t],e),"")}function o1n(r){let e=[];for(let t of r){let n=i1n[t.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${t}`);e.push(n)}return new Uint8Array(e)}var c1n=sz({prefix:"\u{1F680}",name:"base256emoji",encode:s1n,decode:o1n}),u1n=Object.freeze({__proto__:null,base256emoji:c1n}),l1n=Z8t,M8t=128,d1n=127,p1n=~d1n,h1n=Math.pow(2,31);function Z8t(r,e,t){e=e||[],t=t||0;for(var n=t;r>=h1n;)e[t++]=r&255|M8t,r/=128;for(;r&p1n;)e[t++]=r&255|M8t,r>>>=7;return e[t]=r|0,Z8t.bytes=t-n+1,e}var f1n=Xfe,m1n=128,N8t=127;function Xfe(r,n){var t=0,n=n||0,a=0,i=n,s,o=r.length;do{if(i>=o)throw Xfe.bytes=0,new RangeError("Could not decode varint");s=r[i++],t+=a<28?(s&N8t)<=m1n);return Xfe.bytes=i-n,t}var y1n=Math.pow(2,7),g1n=Math.pow(2,14),b1n=Math.pow(2,21),v1n=Math.pow(2,28),w1n=Math.pow(2,35),_1n=Math.pow(2,42),x1n=Math.pow(2,49),T1n=Math.pow(2,56),E1n=Math.pow(2,63),C1n=function(r){return r(X8t.encode(r,e,t),e),D8t=r=>X8t.encodingLength(r),eme=(r,e)=>{let t=e.byteLength,n=D8t(r),a=n+D8t(t),i=new Uint8Array(a+t);return B8t(r,i,0),B8t(t,i,n),i.set(e,a),new tme(r,t,e,i)},tme=class{constructor(e,t,n,a){this.code=e,this.size=t,this.digest=n,this.bytes=a}},eIt=({name:r,code:e,encode:t})=>new rme(r,e,t),rme=class{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){let t=this.encode(e);return t instanceof Uint8Array?eme(this.code,t):t.then(n=>eme(this.code,n))}else throw Error("Unknown type, must be binary type")}},tIt=r=>async e=>new Uint8Array(await crypto.subtle.digest(r,e)),k1n=eIt({name:"sha2-256",code:18,encode:tIt("SHA-256")}),A1n=eIt({name:"sha2-512",code:19,encode:tIt("SHA-512")}),S1n=Object.freeze({__proto__:null,sha256:k1n,sha512:A1n}),rIt=0,P1n="identity",nIt=Y8t,R1n=r=>eme(rIt,nIt(r)),M1n={code:rIt,name:P1n,encode:nIt,digest:R1n},N1n=Object.freeze({__proto__:null,identity:M1n});new TextEncoder,new TextDecoder;var O8t={...kyn,...Syn,...Ryn,...Nyn,...Oyn,...Gyn,...Yyn,...Zyn,...n1n,...u1n};({...S1n,...N1n});function B1n(r=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?globalThis.Buffer.allocUnsafe(r):new Uint8Array(r)}function aIt(r,e,t,n){return{name:r,prefix:e,encoder:{name:r,prefix:e,encode:t},decoder:{decode:n}}}var L8t=aIt("utf8","u",r=>"u"+new TextDecoder("utf8").decode(r),r=>new TextEncoder().encode(r.substring(1))),Vfe=aIt("ascii","a",r=>{let e="a";for(let t=0;t{r=r.substring(1);let e=B1n(r.length);for(let t=0;t{if(!this.initialized){let 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();let a=this.keychain.get(n);if(typeof a>"u"){let{message:i}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${n}`);throw new Error(i)}return a},this.del=async n=>{this.isInitialized(),this.keychain.delete(n),await this.persist()},this.core=e,this.logger=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setKeyChain(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getKeyChain(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setKeyChain(this.keychain)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Qj=class{constructor(e,t,n){this.core=e,this.logger=t,this.name=cIt,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();let a=await this.getClientSeed(),i=Yj.generateKeyPair(a);return Yj.encodeIss(i.publicKey)},this.generateKeyPair=()=>{this.isInitialized();let a=Me.generateKeyPair();return this.setPrivateKey(a.publicKey,a.privateKey)},this.signJWT=async a=>{this.isInitialized();let i=await this.getClientSeed(),s=Yj.generateKeyPair(i),o=Me.generateRandomBytes32(),c=uIt;return await Yj.signJWT(o,a,c,s)},this.generateSharedKey=(a,i,s)=>{this.isInitialized();let o=this.getPrivateKey(a),c=Me.deriveSymKey(o,i);return this.setSymKey(c,s)},this.setSymKey=async(a,i)=>{this.isInitialized();let s=i||Me.hashKey(a);return await this.keychain.set(s,a),s},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,i,s)=>{this.isInitialized();let o=Me.validateEncoding(s),c=R8t.safeJsonStringify(i);if(Me.isTypeOneEnvelope(o)){let f=o.senderPublicKey,m=o.receiverPublicKey;a=await this.generateSharedKey(f,m)}let u=this.getSymKey(a),{type:l,senderPublicKey:h}=o;return Me.encrypt({type:l,symKey:u,message:c,senderPublicKey:h})},this.decode=async(a,i,s)=>{this.isInitialized();let o=Me.validateDecoding(i,s);if(Me.isTypeOneEnvelope(o)){let l=o.receiverPublicKey,h=o.senderPublicKey;a=await this.generateSharedKey(l,h)}let c=this.getSymKey(a),u=Me.decrypt({symKey:c,encoded:i});return R8t.safeJsonParse(u)},this.core=e,this.logger=Ni.generateChildLogger(t,this.name),this.keychain=n||new Jj(this.core,this.logger)}get context(){return Ni.getLoggerContext(this.logger)}getPayloadType(e){let t=Me.deserialize(e);return Me.decodeTypeByte(t.type)}async setPrivateKey(e,t){return await this.keychain.set(e,t),e}getPrivateKey(e){return this.keychain.get(e)}async getClientSeed(){let e="";try{e=this.keychain.get(nme)}catch{e=Me.generateRandomBytes32(),await this.keychain.set(nme,e)}return O1n(e,"base16")}getSymKey(e){return this.keychain.get(e)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},Zj=class extends Mg.IMessageTracker{constructor(e,t){super(e,t),this.logger=e,this.core=t,this.messages=new Map,this.name=pIt,this.version=hIt,this.initialized=!1,this.storagePrefix=py,this.init=async()=>{if(!this.initialized){this.logger.trace("Initialized");try{let 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();let i=Me.hashMessage(a),s=this.messages.get(n);return typeof s>"u"&&(s={}),typeof s[i]<"u"||(s[i]=a,this.messages.set(n,s),await this.persist()),i},this.get=n=>{this.isInitialized();let a=this.messages.get(n);return typeof a>"u"&&(a={}),a},this.has=(n,a)=>{this.isInitialized();let i=this.get(n),s=Me.hashMessage(a);return typeof i[s]<"u"},this.del=async n=>{this.isInitialized(),this.messages.delete(n),await this.persist()},this.logger=Ni.generateChildLogger(e,this.name),this.core=t}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+this.name}async setRelayerMessages(e){await this.core.storage.setItem(this.storageKey,Me.mapToObj(e))}async getRelayerMessages(){let e=await this.core.storage.getItem(this.storageKey);return typeof e<"u"?Me.objToMap(e):void 0}async persist(){await this.setRelayerMessages(this.messages)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},ime=class extends Mg.IPublisher{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.events=new Cw.EventEmitter,this.name=mIt,this.queue=new Map,this.publishTimeout=1e4,this.publish=async(n,a,i)=>{this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}});try{let s=i?.ttl||fIt,o=Me.getRelayProtocolName(i),c=i?.prompt||!1,u=i?.tag||0,l={topic:n,message:a,opts:{ttl:s,relay:o,prompt:c,tag:u}},h=Me.hashMessage(a);this.queue.set(h,l);try{await await Me.createExpiringPromise(this.rpcPublish(n,a,s,o,c,u),this.publishTimeout),this.relayer.events.emit(Sc.publish,l)}catch{this.logger.debug("Publishing Payload stalled"),this.relayer.events.emit(Sc.connection_stalled);return}this.onPublish(h,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:n,message:a,opts:i}})}catch(s){throw this.logger.debug("Failed to Publish Payload"),this.logger.error(s),s}},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=e,this.logger=Ni.generateChildLogger(t,this.name),this.registerEventListeners()}get context(){return Ni.getLoggerContext(this.logger)}rpcPublish(e,t,n,a,i,s){var o,c,u,l;let h={method:Me.getRelayProtocolApi(a.protocol).publish,params:{topic:e,message:t,ttl:n,prompt:i,tag:s}};return Me.isUndefined((o=h.params)==null?void 0:o.prompt)&&((c=h.params)==null||delete c.prompt),Me.isUndefined((u=h.params)==null?void 0:u.tag)&&((l=h.params)==null||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:h}),this.relayer.provider.request(h)}onPublish(e,t){this.queue.delete(e)}checkQueue(){this.queue.forEach(async e=>{let{topic:t,message:n,opts:a}=e;await this.publish(t,n,a)})}registerEventListeners(){this.relayer.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,()=>{this.checkQueue()})}},sme=class{constructor(){this.map=new Map,this.set=(e,t)=>{let n=this.get(e);this.exists(e,t)||this.map.set(e,[...n,t])},this.get=e=>this.map.get(e)||[],this.exists=(e,t)=>this.get(e).includes(t),this.delete=(e,t)=>{if(typeof t>"u"){this.map.delete(e);return}if(!this.map.has(e))return;let n=this.get(e);if(!this.exists(e,t))return;let a=n.filter(i=>i!==t);if(!a.length){this.map.delete(e);return}this.map.set(e,a)},this.clear=()=>{this.map.clear()}}get topics(){return Array.from(this.map.keys())}},U1n=Object.defineProperty,H1n=Object.defineProperties,j1n=Object.getOwnPropertyDescriptors,q8t=Object.getOwnPropertySymbols,z1n=Object.prototype.hasOwnProperty,K1n=Object.prototype.propertyIsEnumerable,F8t=(r,e,t)=>e in r?U1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,sP=(r,e)=>{for(var t in e||(e={}))z1n.call(e,t)&&F8t(r,t,e[t]);if(q8t)for(var t of q8t(e))K1n.call(e,t)&&F8t(r,t,e[t]);return r},$fe=(r,e)=>H1n(r,j1n(e)),Xj=class extends Mg.ISubscriber{constructor(e,t){super(e,t),this.relayer=e,this.logger=t,this.subscriptions=new Map,this.topicMap=new sme,this.events=new Cw.EventEmitter,this.name=xIt,this.version=TIt,this.pending=new Map,this.cached=[],this.initialized=!1,this.pendingSubscriptionWatchLabel="pending_sub_watch_label",this.pollingInterval=20,this.storagePrefix=py,this.subscribeTimeout=1e4,this.restartInProgress=!1,this.batchSubscribeTopicsLimit=500,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restart(),this.registerEventListeners(),this.onEnable(),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{let i=Me.getRelayProtocolName(a),s={topic:n,relay:i};this.pending.set(n,s);let o=await this.rpcSubscribe(n,i);return this.onSubscribe(o,s),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:n,opts:a}}),o}catch(i){throw this.logger.debug("Failed to Subscribe Topic"),this.logger.error(i),i}},this.unsubscribe=async(n,a)=>{await this.restartToComplete(),this.isInitialized(),typeof 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,i)=>{let s=new Co.Watch;s.start(this.pendingSubscriptionWatchLabel);let o=setInterval(()=>{!this.pending.has(n)&&this.topics.includes(n)&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),a(!0)),s.elapsed(this.pendingSubscriptionWatchLabel)>=EIt&&(clearInterval(o),s.stop(this.pendingSubscriptionWatchLabel),i(!1))},this.pollingInterval)}),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=e,this.logger=Ni.generateChildLogger(t,this.name),this.clientId=""}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e,t){let n=!1;try{n=this.getSubscription(e).topic===t}catch{}return n}onEnable(){this.cached=[],this.initialized=!0}onDisable(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}async unsubscribeByTopic(e,t){let n=this.topicMap.get(e);await Promise.all(n.map(async a=>await this.unsubscribeById(e,a,t)))}async unsubscribeById(e,t,n){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}});try{let a=Me.getRelayProtocolName(n);await this.rpcUnsubscribe(e,t,a);let i=Me.getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);await this.onUnsubscribe(e,t,i),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:n}})}catch(a){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(a),a}}async rpcSubscribe(e,t){let n={method:Me.getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Sc.connection_stalled)}return Me.hashMessage(e+this.clientId)}async rpcBatchSubscribe(e){if(!e.length)return;let t=e[0].relay,n={method:Me.getRelayProtocolApi(t.protocol).batchSubscribe,params:{topics:e.map(a=>a.topic)}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{return await await Me.createExpiringPromise(this.relayer.provider.request(n),this.subscribeTimeout)}catch{this.logger.debug("Outgoing Relay Payload stalled"),this.relayer.events.emit(Sc.connection_stalled)}}rpcUnsubscribe(e,t,n){let a={method:Me.getRelayProtocolApi(n.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:a}),this.relayer.provider.request(a)}onSubscribe(e,t){this.setSubscription(e,$fe(sP({},t),{id:e})),this.pending.delete(t.topic)}onBatchSubscribe(e){e.length&&e.forEach(t=>{this.setSubscription(t.id,sP({},t)),this.pending.delete(t.topic)})}async onUnsubscribe(e,t,n){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,n),await this.relayer.messages.del(e)}async setRelayerSubscriptions(e){await this.relayer.core.storage.setItem(this.storageKey,e)}async getRelayerSubscriptions(){return await this.relayer.core.storage.getItem(this.storageKey)}setSubscription(e,t){this.subscriptions.has(e)||(this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t))}addSubscription(e,t){this.subscriptions.set(e,sP({},t)),this.topicMap.set(t.topic,e),this.events.emit(of.created,t)}getSubscription(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});let t=this.subscriptions.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}deleteSubscription(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});let n=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(n.topic,e),this.events.emit(of.deleted,$fe(sP({},n),{reason:t}))}async persist(){await this.setRelayerSubscriptions(this.values),this.events.emit(of.sync)}async reset(){if(!this.cached.length)return;let e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit);for(let t=0;t"u"||!e.length)return;if(this.subscriptions.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(e){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(e)}}async batchSubscribe(e){if(!e.length)return;let t=await this.rpcBatchSubscribe(e);this.onBatchSubscribe(t.map((n,a)=>$fe(sP({},e[a]),{id:n})))}async onConnect(){this.restartInProgress||(await this.restart(),this.onEnable())}onDisconnect(){this.onDisable()}async checkPending(){if(this.relayer.transportExplicitlyClosed)return;let e=[];this.pending.forEach(t=>{e.push(t)}),await this.batchSubscribe(e)}registerEventListeners(){this.relayer.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,async()=>{await this.checkPending()}),this.relayer.on(Sc.connect,async()=>{await this.onConnect()}),this.relayer.on(Sc.disconnect,()=>{this.onDisconnect()}),this.events.on(of.created,async e=>{let t=of.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()}),this.events.on(of.deleted,async e=>{let t=of.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),await this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}async restartToComplete(){this.restartInProgress&&await new Promise(e=>{let t=setInterval(()=>{this.restartInProgress||(clearInterval(t),e())},this.pollingInterval)})}},G1n=Object.defineProperty,W8t=Object.getOwnPropertySymbols,V1n=Object.prototype.hasOwnProperty,$1n=Object.prototype.propertyIsEnumerable,U8t=(r,e,t)=>e in r?G1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Y1n=(r,e)=>{for(var t in e||(e={}))V1n.call(e,t)&&U8t(r,t,e[t]);if(W8t)for(var t of W8t(e))$1n.call(e,t)&&U8t(r,t,e[t]);return r},ez=class extends Mg.IRelayer{constructor(e){super(e),this.protocol="wc",this.version=2,this.events=new Cw.EventEmitter,this.name=bIt,this.transportExplicitlyClosed=!1,this.initialized=!1,this.reconnecting=!1,this.core=e.core,this.logger=typeof e.logger<"u"&&typeof e.logger!="string"?Ni.generateChildLogger(e.logger,this.name):$8t.default(Ni.getDefaultLoggerOptions({level:e.logger||gIt})),this.messages=new Zj(this.logger,e.core),this.subscriber=new Xj(this,this.logger),this.publisher=new ime(this,this.logger),this.relayUrl=e?.relayUrl||cme,this.projectId=e.projectId,this.provider={}}async init(){this.logger.trace("Initialized"),this.provider=await this.createProvider(),await Promise.all([this.messages.init(),this.transportOpen(),this.subscriber.init()]),this.registerEventListeners(),this.initialized=!0}get context(){return Ni.getLoggerContext(this.logger)}get connected(){return this.provider.connection.connected}get connecting(){return this.provider.connection.connecting}async publish(e,t,n){this.isInitialized(),await this.publisher.publish(e,t,n),await this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now()})}async subscribe(e,t){this.isInitialized();let n="";return await Promise.all([new Promise(a=>{this.subscriber.once(of.created,i=>{i.topic===e&&a()})}),new Promise(async a=>{n=await this.subscriber.subscribe(e,t),a()})]),n}async unsubscribe(e,t){this.isInitialized(),await this.subscriber.unsubscribe(e,t)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}off(e,t){this.events.off(e,t)}removeListener(e,t){this.events.removeListener(e,t)}async transportClose(){this.transportExplicitlyClosed=!0,this.connected&&(await this.provider.disconnect(),this.events.emit(Sc.transport_closed))}async transportOpen(e){if(!this.reconnecting){this.relayUrl=e||this.relayUrl,this.transportExplicitlyClosed=!1,this.reconnecting=!0;try{await Promise.all([new Promise(t=>{this.initialized||t(),this.subscriber.once(of.resubscribed,()=>{t()})}),await Promise.race([new Promise(async t=>{await this.provider.connect(),this.removeListener(Sc.transport_closed,this.rejectTransportOpen),t()}),new Promise(t=>this.once(Sc.transport_closed,this.rejectTransportOpen))])])}catch(t){let n=t;if(!/socket hang up/i.test(n.message))throw t;this.logger.error(t),this.events.emit(Sc.transport_closed)}finally{this.reconnecting=!1}}}async restartTransport(e){this.transportExplicitlyClosed||(await this.transportClose(),await new Promise(t=>setTimeout(t,ame)),await this.transportOpen(e))}rejectTransportOpen(){throw new Error("closeTransport called before connection was established")}async createProvider(){let e=await this.core.crypto.signJWT(this.relayUrl);return new dyn.JsonRpcProvider(new gyn.default(Me.formatRelayRpcUrl({sdkVersion:wIt,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0})))}async recordMessageEvent(e){let{topic:t,message:n}=e;await this.messages.set(t,n)}async shouldIgnoreMessageEvent(e){let{topic:t,message:n}=e;return await this.subscriber.isSubscribed(t)?this.messages.has(t,n):!0}async onProviderPayload(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),cf.isJsonRpcRequest(e)){if(!e.method.endsWith(vIt))return;let t=e.params,{topic:n,message:a,publishedAt:i}=t.data,s={topic:n,message:a,publishedAt:i};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Y1n({type:"event",event:t.id},s)),this.events.emit(t.id,s),await this.acknowledgePayload(e),await this.onMessageEvent(s)}}async onMessageEvent(e){await this.shouldIgnoreMessageEvent(e)||(this.events.emit(Sc.message,e),await this.recordMessageEvent(e))}async acknowledgePayload(e){let t=cf.formatJsonRpcResult(e.id,!0);await this.provider.connection.send(t)}registerEventListeners(){this.provider.on(oP.payload,e=>this.onProviderPayload(e)),this.provider.on(oP.connect,()=>{this.events.emit(Sc.connect)}),this.provider.on(oP.disconnect,()=>{this.events.emit(Sc.disconnect),this.attemptToReconnect()}),this.provider.on(oP.error,e=>{this.logger.error(e),this.events.emit(Sc.error,e)}),this.events.on(Sc.connection_stalled,async()=>{await this.restartTransport()})}attemptToReconnect(){this.transportExplicitlyClosed||setTimeout(async()=>{await this.transportOpen()},Co.toMiliseconds(ame))}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},J1n=Object.defineProperty,H8t=Object.getOwnPropertySymbols,Q1n=Object.prototype.hasOwnProperty,Z1n=Object.prototype.propertyIsEnumerable,j8t=(r,e,t)=>e in r?J1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,z8t=(r,e)=>{for(var t in e||(e={}))Q1n.call(e,t)&&j8t(r,t,e[t]);if(H8t)for(var t of H8t(e))Z1n.call(e,t)&&j8t(r,t,e[t]);return r},tz=class extends Mg.IStore{constructor(e,t,n,a=py,i=void 0){super(e,t,n,a),this.core=e,this.logger=t,this.name=n,this.map=new Map,this.version=_It,this.cached=[],this.initialized=!1,this.storagePrefix=py,this.init=async()=>{this.initialized||(this.logger.trace("Initialized"),await this.restore(),this.cached.forEach(s=>{Me.isProposalStruct(s)?this.map.set(s.id,s):Me.isSessionStruct(s)?this.map.set(s.topic,s):this.getKey&&s!==null&&!Me.isUndefined(s)&&this.map.set(this.getKey(s),s)}),this.cached=[],this.initialized=!0)},this.set=async(s,o)=>{this.isInitialized(),this.map.has(s)?await this.update(s,o):(this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:s,value:o}),this.map.set(s,o),await this.persist())},this.get=s=>(this.isInitialized(),this.logger.debug("Getting value"),this.logger.trace({type:"method",method:"get",key:s}),this.getData(s)),this.getAll=s=>(this.isInitialized(),s?this.values.filter(o=>Object.keys(s).every(c=>byn.default(o[c],s[c]))):this.values),this.update=async(s,o)=>{this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:s,update:o});let c=z8t(z8t({},this.getData(s)),o);this.map.set(s,c),await this.persist()},this.delete=async(s,o)=>{this.isInitialized(),this.map.has(s)&&(this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:s,reason:o}),this.map.delete(s),await this.persist())},this.logger=Ni.generateChildLogger(t,this.name),this.storagePrefix=a,this.getKey=i}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e){await this.core.storage.setItem(this.storageKey,e)}async getDataStore(){return await this.core.storage.getItem(this.storageKey)}getData(e){let t=this.map.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}async persist(){await this.setDataStore(this.values)}async restore(){try{let e=await this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},rz=class{constructor(e,t){this.core=e,this.logger=t,this.name=CIt,this.version=IIt,this.events=new myn.default,this.initialized=!1,this.storagePrefix=py,this.ignoredPayloadTypes=[Me.TYPE_1],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();let n=Me.generateRandomBytes32(),a=await this.core.crypto.setSymKey(n),i=Me.calcExpiry(Co.FIVE_MINUTES),s={protocol:yIt},o={topic:a,expiry:i,relay:s,active:!1},c=Me.formatUri({protocol:this.core.protocol,version:this.core.version,topic:a,symKey:n,relay:s});return await this.pairings.set(a,o),await this.core.relayer.subscribe(a),this.core.expirer.set(a,i),{topic:a,uri:c}},this.pair=async n=>{this.isInitialized(),this.isValidPair(n);let{topic:a,symKey:i,relay:s}=Me.parseUri(n.uri);if(this.pairings.keys.includes(a))throw new Error(`Pairing already exists: ${a}`);if(this.core.crypto.hasKeys(a))throw new Error(`Keychain already exists: ${a}`);let o=Me.calcExpiry(Co.FIVE_MINUTES),c={topic:a,relay:s,expiry:o,active:!1};return await this.pairings.set(a,c),await this.core.crypto.setSymKey(i,a),await this.core.relayer.subscribe(a,{relay:s}),this.core.expirer.set(a,o),n.activatePairing&&await this.activate({topic:a}),c},this.activate=async({topic:n})=>{this.isInitialized();let a=Me.calcExpiry(Co.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);let{topic:a}=n;if(this.pairings.keys.includes(a)){let i=await this.sendRequest(a,"wc_pairingPing",{}),{done:s,resolve:o,reject:c}=Me.createDelayedPromise();this.events.once(Me.engineEvent("pairing_ping",i),({error:u})=>{u?c(u):o()}),await s()}},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);let{topic:a}=n;this.pairings.keys.includes(a)&&(await this.sendRequest(a,"wc_pairingDelete",Me.getSdkError("USER_DISCONNECTED")),await this.deletePairing(a))},this.sendRequest=async(n,a,i)=>{let s=cf.formatJsonRpcRequest(a,i),o=await this.core.crypto.encode(n,s),c=tE[a].req;return this.core.history.set(n,s),await this.core.relayer.publish(n,o,c),s.id},this.sendResult=async(n,a,i)=>{let s=cf.formatJsonRpcResult(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=tE[c.request.method].res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.sendError=async(n,a,i)=>{let s=cf.formatJsonRpcError(n,i),o=await this.core.crypto.encode(a,s),c=await this.core.history.get(a,n),u=tE[c.request.method]?tE[c.request.method].res:tE.unregistered_method.res;await this.core.relayer.publish(a,o,u),await this.core.history.resolve(s)},this.deletePairing=async(n,a)=>{await this.core.relayer.unsubscribe(n),await Promise.all([this.pairings.delete(n,Me.getSdkError("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(n),a?Promise.resolve():this.core.expirer.del(n)])},this.cleanup=async()=>{let n=this.pairings.getAll().filter(a=>Me.isExpired(a.expiry));await Promise.all(n.map(a=>this.deletePairing(a.topic)))},this.onRelayEventRequest=n=>{let{topic:a,payload:i}=n,s=i.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingRequest(a,i);case"wc_pairingDelete":return this.onPairingDeleteRequest(a,i);default:return this.onUnknownRpcMethodRequest(a,i)}},this.onRelayEventResponse=async n=>{let{topic:a,payload:i}=n,s=(await this.core.history.get(a,i.id)).request.method;if(this.pairings.keys.includes(a))switch(s){case"wc_pairingPing":return this.onPairingPingResponse(a,i);default:return this.onUnknownRpcMethodResponse(s)}},this.onPairingPingRequest=async(n,a)=>{let{id:i}=a;try{this.isValidPing({topic:n}),await this.sendResult(i,n,!0),this.events.emit("pairing_ping",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onPairingPingResponse=(n,a)=>{let{id:i}=a;setTimeout(()=>{cf.isJsonRpcResult(a)?this.events.emit(Me.engineEvent("pairing_ping",i),{}):cf.isJsonRpcError(a)&&this.events.emit(Me.engineEvent("pairing_ping",i),{error:a.error})},500)},this.onPairingDeleteRequest=async(n,a)=>{let{id:i}=a;try{this.isValidDisconnect({topic:n}),await this.deletePairing(n),this.events.emit("pairing_delete",{id:i,topic:n})}catch(s){await this.sendError(i,n,s),this.logger.error(s)}},this.onUnknownRpcMethodRequest=async(n,a)=>{let{id:i,method:s}=a;try{if(this.registeredMethods.includes(s))return;let o=Me.getSdkError("WC_METHOD_UNSUPPORTED",s);await this.sendError(i,n,o),this.logger.error(o)}catch(o){await this.sendError(i,n,o),this.logger.error(o)}},this.onUnknownRpcMethodResponse=n=>{this.registeredMethods.includes(n)||this.logger.error(Me.getSdkError("WC_METHOD_UNSUPPORTED",n))},this.isValidPair=n=>{if(!Me.isValidParams(n)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() params: ${n}`);throw new Error(a)}if(!Me.isValidUrl(n.uri)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pair() uri: ${n.uri}`);throw new Error(a)}},this.isValidPing=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`ping() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidDisconnect=async n=>{if(!Me.isValidParams(n)){let{message:i}=Me.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${n}`);throw new Error(i)}let{topic:a}=n;await this.isValidPairingTopic(a)},this.isValidPairingTopic=async n=>{if(!Me.isValidString(n,!1)){let{message:a}=Me.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${n}`);throw new Error(a)}if(!this.pairings.keys.includes(n)){let{message:a}=Me.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${n}`);throw new Error(a)}if(Me.isExpired(this.pairings.get(n).expiry)){await this.deletePairing(n);let{message:a}=Me.getInternalError("EXPIRED",`pairing topic: ${n}`);throw new Error(a)}},this.core=e,this.logger=Ni.generateChildLogger(t,this.name),this.pairings=new tz(this.core,this.logger,this.name,this.storagePrefix)}get context(){return Ni.getLoggerContext(this.logger)}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.core.relayer.on(Sc.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.core.crypto.getPayloadType(n)))return;let a=await this.core.crypto.decode(t,n);cf.isJsonRpcRequest(a)?(this.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):cf.isJsonRpcResponse(a)&&(await this.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.core.expirer.on(Up.expired,async e=>{let{topic:t}=Me.parseExpirerTarget(e.target);t&&this.pairings.keys.includes(t)&&(await this.deletePairing(t,!0),this.events.emit("pairing_expire",{topic:t}))})}},nz=class extends Mg.IJsonRpcHistory{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.records=new Map,this.events=new Cw.EventEmitter,this.name=kIt,this.version=AIt,this.cached=[],this.initialized=!1,this.storagePrefix=py,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,i)=>{if(this.isInitialized(),this.logger.debug("Setting JSON-RPC request history record"),this.logger.trace({type:"method",method:"set",topic:n,request:a,chainId:i}),this.records.has(a.id))return;let s={id:a.id,topic:n,request:{method:a.method,params:a.params||null},chainId:i};this.records.set(s.id,s),this.events.emit(sf.created,s)},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;let a=await this.getRecord(n.id);typeof a.response>"u"&&(a.response=cf.isJsonRpcError(n)?{error:n.error}:{result:n.result},this.records.set(a.id,a),this.events.emit(sf.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(i=>{if(i.topic===n){if(typeof a<"u"&&i.id!==a)return;this.records.delete(i.id),this.events.emit(sf.deleted,i)}})},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=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(){let e=[];return this.values.forEach(t=>{if(typeof t.response<"u")return;let n={topic:t.topic,request:cf.formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(n)}),e}async setJsonRpcRecords(e){await this.core.storage.setItem(this.storageKey,e)}async getJsonRpcRecords(){return await this.core.storage.getItem(this.storageKey)}getRecord(e){this.isInitialized();let t=this.records.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw new Error(n)}return t}async persist(){await this.setJsonRpcRecords(this.values),this.events.emit(sf.sync)}async restore(){try{let e=await this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}registerEventListeners(){this.events.on(sf.created,e=>{let t=sf.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(sf.updated,e=>{let t=sf.updated;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()}),this.events.on(sf.deleted,e=>{let t=sf.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,record:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},az=class extends Mg.IExpirer{constructor(e,t){super(e,t),this.core=e,this.logger=t,this.expirations=new Map,this.events=new Cw.EventEmitter,this.name=SIt,this.version=PIt,this.cached=[],this.initialized=!1,this.storagePrefix=py,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{let a=this.formatTarget(n);return typeof this.getExpiration(a)<"u"}catch{return!1}},this.set=(n,a)=>{this.isInitialized();let i=this.formatTarget(n),s={target:i,expiry:a};this.expirations.set(i,s),this.checkExpiry(i,s),this.events.emit(Up.created,{target:i,expiration:s})},this.get=n=>{this.isInitialized();let a=this.formatTarget(n);return this.getExpiration(a)},this.del=n=>{if(this.isInitialized(),this.has(n)){let a=this.formatTarget(n),i=this.getExpiration(a);this.expirations.delete(a),this.events.emit(Up.deleted,{target:a,expiration:i})}},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=Ni.generateChildLogger(t,this.name)}get context(){return Ni.getLoggerContext(this.logger)}get storageKey(){return this.storagePrefix+this.version+"//"+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(e){if(typeof e=="string")return Me.formatTopicTarget(e);if(typeof e=="number")return Me.formatIdTarget(e);let{message:t}=Me.getInternalError("UNKNOWN_TYPE",`Target type: ${typeof e}`);throw new Error(t)}async setExpirations(e){await this.core.storage.setItem(this.storageKey,e)}async getExpirations(){return await this.core.storage.getItem(this.storageKey)}async persist(){await this.setExpirations(this.values),this.events.emit(Up.sync)}async restore(){try{let e=await this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){let{message:t}=Me.getInternalError("RESTORE_WILL_OVERRIDE",this.name);throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}getExpiration(e){let t=this.expirations.get(e);if(!t){let{message:n}=Me.getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`);throw this.logger.error(n),new Error(n)}return t}checkExpiry(e,t){let{expiry:n}=t;Co.toMiliseconds(n)-Date.now()<=0&&this.expire(e,t)}expire(e,t){this.expirations.delete(e),this.events.emit(Up.expired,{target:e,expiration:t})}checkExpirations(){this.core.relayer.connected&&this.expirations.forEach((e,t)=>this.checkExpiry(t,e))}registerEventListeners(){this.core.heartbeat.on(iz.HEARTBEAT_EVENTS.pulse,()=>this.checkExpirations()),this.events.on(Up.created,e=>{let t=Up.created;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.expired,e=>{let t=Up.expired;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()}),this.events.on(Up.deleted,e=>{let t=Up.deleted;this.logger.info(`Emitting ${t}`),this.logger.debug({type:"event",event:t,data:e}),this.persist()})}isInitialized(){if(!this.initialized){let{message:e}=Me.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}},X1n=Object.defineProperty,K8t=Object.getOwnPropertySymbols,egn=Object.prototype.hasOwnProperty,tgn=Object.prototype.propertyIsEnumerable,G8t=(r,e,t)=>e in r?X1n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,V8t=(r,e)=>{for(var t in e||(e={}))egn.call(e,t)&&G8t(r,t,e[t]);if(K8t)for(var t of K8t(e))tgn.call(e,t)&&G8t(r,t,e[t]);return r},rE=class extends Mg.ICore{constructor(e){super(e),this.protocol=ome,this.version=iIt,this.name=oz,this.events=new Cw.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=e?.projectId,this.relayUrl=e?.relayUrl||cme;let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:$8t.default(Ni.getDefaultLoggerOptions({level:e?.logger||sIt.logger}));this.logger=Ni.generateChildLogger(t,this.name),this.heartbeat=new iz.HeartBeat,this.crypto=new Qj(this,this.logger,e?.keychain),this.history=new nz(this,this.logger),this.expirer=new az(this,this.logger),this.storage=e!=null&&e.storage?e.storage:new yyn.default(V8t(V8t({},oIt),e?.storageOptions)),this.relayer=new ez({core:this,logger:this.logger,relayUrl:this.relayUrl,projectId:this.projectId}),this.pairing=new rz(this,this.logger)}static async init(e){let t=new rE(e);return await t.initialize(),t}get context(){return Ni.getLoggerContext(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(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}},rgn=rE;wt.CORE_CONTEXT=oz,wt.CORE_DEFAULT=sIt,wt.CORE_PROTOCOL=ome,wt.CORE_STORAGE_OPTIONS=oIt,wt.CORE_STORAGE_PREFIX=py,wt.CORE_VERSION=iIt,wt.CRYPTO_CLIENT_SEED=nme,wt.CRYPTO_CONTEXT=cIt,wt.CRYPTO_JWT_TTL=uIt,wt.Core=rgn,wt.Crypto=Qj,wt.EXPIRER_CONTEXT=SIt,wt.EXPIRER_DEFAULT_TTL=W1n,wt.EXPIRER_EVENTS=Up,wt.EXPIRER_STORAGE_VERSION=PIt,wt.Expirer=az,wt.HISTORY_CONTEXT=kIt,wt.HISTORY_EVENTS=sf,wt.HISTORY_STORAGE_VERSION=AIt,wt.JsonRpcHistory=nz,wt.KEYCHAIN_CONTEXT=lIt,wt.KEYCHAIN_STORAGE_VERSION=dIt,wt.KeyChain=Jj,wt.MESSAGES_CONTEXT=pIt,wt.MESSAGES_STORAGE_VERSION=hIt,wt.MessageTracker=Zj,wt.PAIRING_CONTEXT=CIt,wt.PAIRING_DEFAULT_TTL=F1n,wt.PAIRING_RPC_OPTS=tE,wt.PAIRING_STORAGE_VERSION=IIt,wt.PENDING_SUB_RESOLUTION_TIMEOUT=EIt,wt.PUBLISHER_CONTEXT=mIt,wt.PUBLISHER_DEFAULT_TTL=fIt,wt.Pairing=rz,wt.RELAYER_CONTEXT=bIt,wt.RELAYER_DEFAULT_LOGGER=gIt,wt.RELAYER_DEFAULT_PROTOCOL=yIt,wt.RELAYER_DEFAULT_RELAY_URL=cme,wt.RELAYER_EVENTS=Sc,wt.RELAYER_PROVIDER_EVENTS=oP,wt.RELAYER_RECONNECT_TIMEOUT=ame,wt.RELAYER_SDK_VERSION=wIt,wt.RELAYER_STORAGE_OPTIONS=L1n,wt.RELAYER_SUBSCRIBER_SUFFIX=vIt,wt.Relayer=ez,wt.STORE_STORAGE_VERSION=_It,wt.SUBSCRIBER_CONTEXT=xIt,wt.SUBSCRIBER_DEFAULT_TTL=q1n,wt.SUBSCRIBER_EVENTS=of,wt.SUBSCRIBER_STORAGE_VERSION=TIt,wt.Store=tz,wt.Subscriber=Xj,wt.default=rE});var HIt=x(Xi=>{"use strict";d();p();Object.defineProperty(Xi,"__esModule",{value:!0});var ngn=GS(),Ng=RIt(),ume=kj(),BIt=wfe(),be=jS(),DIt=Bu(),es=fw(),Io=(X0(),nt(to));function OIt(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var agn=OIt(ngn),ign=OIt(DIt),mme="wc",yme=2,gme="client",lz=`${mme}@${yme}:${gme}:`,cz={name:gme,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.com"},sgn={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire"},ogn={database:":memory:"},cgn={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},ugn="history",lgn="0.3",LIt="proposal",dgn=es.THIRTY_DAYS,qIt="Proposal expired",FIt="session",lP=es.SEVEN_DAYS,WIt="engine",nE={wc_sessionPropose:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1101}},wc_sessionSettle:{req:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1104},res:{ttl:es.ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1106},res:{ttl:es.ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:es.FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:es.FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:es.ONE_DAY,prompt:!1,tag:1112},res:{ttl:es.ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1114},res:{ttl:es.THIRTY_SECONDS,prompt:!1,tag:1115}}},uz={min:es.FIVE_MINUTES,max:es.SEVEN_DAYS},UIt="request",pgn=Object.defineProperty,hgn=Object.defineProperties,fgn=Object.getOwnPropertyDescriptors,MIt=Object.getOwnPropertySymbols,mgn=Object.prototype.hasOwnProperty,ygn=Object.prototype.propertyIsEnumerable,NIt=(r,e,t)=>e in r?pgn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Hp=(r,e)=>{for(var t in e||(e={}))mgn.call(e,t)&&NIt(r,t,e[t]);if(MIt)for(var t of MIt(e))ygn.call(e,t)&&NIt(r,t,e[t]);return r},lme=(r,e)=>hgn(r,fgn(e)),dme=class extends BIt.IEngine{constructor(e){super(e),this.name=WIt,this.events=new ign.default,this.initialized=!1,this.ignoredPayloadTypes=[be.TYPE_1],this.init=async()=>{this.initialized||(await this.cleanup(),this.registerRelayerEvents(),this.registerExpirerEvents(),this.client.core.pairing.register({methods:Object.keys(nE)}),this.initialized=!0)},this.connect=async t=>{this.isInitialized();let n=lme(Hp({},t),{requiredNamespaces:t.requiredNamespaces||{},optionalNamespaces:t.optionalNamespaces||{}});await this.isValidConnect(n);let{pairingTopic:a,requiredNamespaces:i,optionalNamespaces:s,sessionProperties:o,relays:c}=n,u=a,l,h=!1;if(u&&(h=this.client.core.pairing.pairings.get(u).active),!u||!h){let{topic:F,uri:W}=await this.client.core.pairing.create();u=F,l=W}let f=await this.client.core.crypto.generateKeyPair(),m=Hp({requiredNamespaces:i,optionalNamespaces:s,relays:c??[{protocol:Ng.RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:f,metadata:this.client.metadata}},o&&{sessionProperties:o}),{reject:y,resolve:E,done:I}=be.createDelayedPromise(es.FIVE_MINUTES,qIt);if(this.events.once(be.engineEvent("session_connect"),async({error:F,session:W})=>{if(F)y(F);else if(W){W.self.publicKey=f;let V=lme(Hp({},W),{requiredNamespaces:W.requiredNamespaces,optionalNamespaces:W.optionalNamespaces});await this.client.session.set(W.topic,V),await this.setExpiry(W.topic,W.expiry),u&&await this.client.core.pairing.updateMetadata({topic:u,metadata:W.peer.metadata}),E(V)}}),!u){let{message:F}=be.getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`);throw new Error(F)}let S=await this.sendRequest(u,"wc_sessionPropose",m),L=be.calcExpiry(es.FIVE_MINUTES);return await this.setProposal(S,Hp({id:S,expiry:L},m)),{uri:l,approval:I}},this.pair=async t=>(this.isInitialized(),await this.client.core.pairing.pair(t)),this.approve=async t=>{this.isInitialized(),await this.isValidApprove(t);let{id:n,relayProtocol:a,namespaces:i,sessionProperties:s}=t,o=this.client.proposal.get(n),{pairingTopic:c,proposer:u,requiredNamespaces:l,optionalNamespaces:h}=o;be.isValidObject(l)||(l=be.getRequiredNamespacesFromNamespaces(i,"approve()"));let f=await this.client.core.crypto.generateKeyPair(),m=u.publicKey,y=await this.client.core.crypto.generateSharedKey(f,m);c&&n&&(await this.client.core.pairing.updateMetadata({topic:c,metadata:u.metadata}),await this.sendResult(n,c,{relay:{protocol:a??"irn"},responderPublicKey:f}),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")),await this.client.core.pairing.activate({topic:c}));let E=Hp({relay:{protocol:a??"irn"},namespaces:i,requiredNamespaces:l,optionalNamespaces:h,controller:{publicKey:f,metadata:this.client.metadata},expiry:be.calcExpiry(lP)},s&&{sessionProperties:s});await this.client.core.relayer.subscribe(y);let I=await this.sendRequest(y,"wc_sessionSettle",E),{done:S,resolve:L,reject:F}=be.createDelayedPromise();this.events.once(be.engineEvent("session_approve",I),({error:V})=>{V?F(V):L(this.client.session.get(y))});let W=lme(Hp({},E),{topic:y,acknowledged:!1,self:E.controller,peer:{publicKey:u.publicKey,metadata:u.metadata},controller:f});return await this.client.session.set(y,W),await this.setExpiry(y,be.calcExpiry(lP)),{topic:y,acknowledged:S}},this.reject=async t=>{this.isInitialized(),await this.isValidReject(t);let{id:n,reason:a}=t,{pairingTopic:i}=this.client.proposal.get(n);i&&(await this.sendError(n,i,a),await this.client.proposal.delete(n,be.getSdkError("USER_DISCONNECTED")))},this.update=async t=>{this.isInitialized(),await this.isValidUpdate(t);let{topic:n,namespaces:a}=t,i=await this.sendRequest(n,"wc_sessionUpdate",{namespaces:a}),{done:s,resolve:o,reject:c}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_update",i),({error:u})=>{u?c(u):o()}),await this.client.session.update(n,{namespaces:a}),{acknowledged:s}},this.extend=async t=>{this.isInitialized(),await this.isValidExtend(t);let{topic:n}=t,a=await this.sendRequest(n,"wc_sessionExtend",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();return this.events.once(be.engineEvent("session_extend",a),({error:c})=>{c?o(c):s()}),await this.setExpiry(n,be.calcExpiry(lP)),{acknowledged:i}},this.request=async t=>{this.isInitialized(),await this.isValidRequest(t);let{chainId:n,request:a,topic:i,expiry:s}=t,o=await this.sendRequest(i,"wc_sessionRequest",{request:a,chainId:n},s),{done:c,resolve:u,reject:l}=be.createDelayedPromise(s);return this.events.once(be.engineEvent("session_request",o),({error:h,result:f})=>{h?l(h):u(f)}),this.client.events.emit("session_request_sent",{topic:i,request:a,chainId:n}),await c()},this.respond=async t=>{this.isInitialized(),await this.isValidRespond(t);let{topic:n,response:a}=t,{id:i}=a;Io.isJsonRpcResult(a)?await this.sendResult(i,n,a.result):Io.isJsonRpcError(a)&&await this.sendError(i,n,a.error),this.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0})},this.ping=async t=>{this.isInitialized(),await this.isValidPing(t);let{topic:n}=t;if(this.client.session.keys.includes(n)){let a=await this.sendRequest(n,"wc_sessionPing",{}),{done:i,resolve:s,reject:o}=be.createDelayedPromise();this.events.once(be.engineEvent("session_ping",a),({error:c})=>{c?o(c):s()}),await i()}else this.client.core.pairing.pairings.keys.includes(n)&&await this.client.core.pairing.ping({topic:n})},this.emit=async t=>{this.isInitialized(),await this.isValidEmit(t);let{topic:n,event:a,chainId:i}=t;await this.sendRequest(n,"wc_sessionEvent",{event:a,chainId:i})},this.disconnect=async t=>{this.isInitialized(),await this.isValidDisconnect(t);let{topic:n}=t;this.client.session.keys.includes(n)?(await this.sendRequest(n,"wc_sessionDelete",be.getSdkError("USER_DISCONNECTED")),await this.deleteSession(n)):await this.client.core.pairing.disconnect({topic:n})},this.find=t=>(this.isInitialized(),this.client.session.getAll().filter(n=>be.isSessionCompatible(n,t))),this.getPendingSessionRequests=()=>(this.isInitialized(),this.client.pendingRequest.getAll()),this.deleteSession=async(t,n)=>{let{self:a}=this.client.session.get(t);await this.client.core.relayer.unsubscribe(t),await Promise.all([this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.client.core.crypto.deleteKeyPair(a.publicKey),this.client.core.crypto.deleteSymKey(t),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deleteProposal=async(t,n)=>{await Promise.all([this.client.proposal.delete(t,be.getSdkError("USER_DISCONNECTED")),n?Promise.resolve():this.client.core.expirer.del(t)])},this.deletePendingSessionRequest=async(t,n,a=!1)=>{await Promise.all([this.client.pendingRequest.delete(t,n),a?Promise.resolve():this.client.core.expirer.del(t)])},this.setExpiry=async(t,n)=>{this.client.session.keys.includes(t)&&await this.client.session.update(t,{expiry:n}),this.client.core.expirer.set(t,n)},this.setProposal=async(t,n)=>{await this.client.proposal.set(t,n),this.client.core.expirer.set(t,n.expiry)},this.setPendingSessionRequest=async t=>{let n=nE.wc_sessionRequest.req.ttl,{id:a,topic:i,params:s}=t;await this.client.pendingRequest.set(a,{id:a,topic:i,params:s}),n&&this.client.core.expirer.set(a,be.calcExpiry(n))},this.sendRequest=async(t,n,a,i)=>{let s=Io.formatJsonRpcRequest(n,a),o=await this.client.core.crypto.encode(t,s),c=nE[n].req;return i&&(c.ttl=i),this.client.core.history.set(t,s),this.client.core.relayer.publish(t,o,c),s.id},this.sendResult=async(t,n,a)=>{let i=Io.formatJsonRpcResult(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=nE[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.sendError=async(t,n,a)=>{let i=Io.formatJsonRpcError(t,a),s=await this.client.core.crypto.encode(n,i),o=await this.client.core.history.get(n,t),c=nE[o.request.method].res;this.client.core.relayer.publish(n,s,c),await this.client.core.history.resolve(i)},this.cleanup=async()=>{let t=[],n=[];this.client.session.getAll().forEach(a=>{be.isExpired(a.expiry)&&t.push(a.topic)}),this.client.proposal.getAll().forEach(a=>{be.isExpired(a.expiry)&&n.push(a.id)}),await Promise.all([...t.map(a=>this.deleteSession(a)),...n.map(a=>this.deleteProposal(a))])},this.onRelayEventRequest=t=>{let{topic:n,payload:a}=t,i=a.method;switch(i){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 ${i}`)}},this.onRelayEventResponse=async t=>{let{topic:n,payload:a}=t,i=(await this.client.core.history.get(n,a.id)).request.method;switch(i){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 ${i}`)}},this.onSessionProposeRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidConnect(Hp({},n.params));let s=be.calcExpiry(es.FIVE_MINUTES),o=Hp({id:i,pairingTopic:t,expiry:s},a);await this.setProposal(i,o),this.client.events.emit("session_proposal",{id:i,params:o})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionProposeResponse=async(t,n)=>{let{id:a}=n;if(Io.isJsonRpcResult(n)){let{result:i}=n;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i});let s=this.client.proposal.get(a);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:s});let o=s.proposer.publicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:o});let c=i.responderPublicKey;this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:c});let u=await this.client.core.crypto.generateSharedKey(o,c);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:u});let l=await this.client.core.relayer.subscribe(u);this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:l}),await this.client.core.pairing.activate({topic:t})}else Io.isJsonRpcError(n)&&(await this.client.proposal.delete(a,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_connect"),{error:n.error}))},this.onSessionSettleRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidSessionSettleRequest(i);let{relay:s,controller:o,expiry:c,namespaces:u,requiredNamespaces:l,optionalNamespaces:h,sessionProperties:f}=n.params,m=Hp({topic:t,relay:s,expiry:c,namespaces:u,acknowledged:!0,requiredNamespaces:l,optionalNamespaces:h,controller:o.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:o.publicKey,metadata:o.metadata}},f&&{sessionProperties:f});await this.sendResult(n.id,t,!0),this.events.emit(be.engineEvent("session_connect"),{session:m})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionSettleResponse=async(t,n)=>{let{id:a}=n;Io.isJsonRpcResult(n)?(await this.client.session.update(t,{acknowledged:!0}),this.events.emit(be.engineEvent("session_approve",a),{})):Io.isJsonRpcError(n)&&(await this.client.session.delete(t,be.getSdkError("USER_DISCONNECTED")),this.events.emit(be.engineEvent("session_approve",a),{error:n.error}))},this.onSessionUpdateRequest=async(t,n)=>{let{params:a,id:i}=n;try{this.isValidUpdate(Hp({topic:t},a)),await this.client.session.update(t,{namespaces:a.namespaces}),await this.sendResult(i,t,!0),this.client.events.emit("session_update",{id:i,topic:t,params:a})}catch(s){await this.sendError(i,t,s),this.client.logger.error(s)}},this.onSessionUpdateResponse=(t,n)=>{let{id:a}=n;Io.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_update",a),{}):Io.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_update",a),{error:n.error})},this.onSessionExtendRequest=async(t,n)=>{let{id:a}=n;try{this.isValidExtend({topic:t}),await this.setExpiry(t,be.calcExpiry(lP)),await this.sendResult(a,t,!0),this.client.events.emit("session_extend",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionExtendResponse=(t,n)=>{let{id:a}=n;Io.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_extend",a),{}):Io.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_extend",a),{error:n.error})},this.onSessionPingRequest=async(t,n)=>{let{id:a}=n;try{this.isValidPing({topic:t}),await this.sendResult(a,t,!0),this.client.events.emit("session_ping",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionPingResponse=(t,n)=>{let{id:a}=n;setTimeout(()=>{Io.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_ping",a),{}):Io.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_ping",a),{error:n.error})},500)},this.onSessionDeleteRequest=async(t,n)=>{let{id:a}=n;try{this.isValidDisconnect({topic:t,reason:n.params}),this.client.core.relayer.once(Ng.RELAYER_EVENTS.publish,async()=>{await this.deleteSession(t)}),await this.sendResult(a,t,!0),this.client.events.emit("session_delete",{id:a,topic:t})}catch(i){await this.sendError(a,t,i),this.client.logger.error(i)}},this.onSessionRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidRequest(Hp({topic:t},i)),await this.setPendingSessionRequest({id:a,topic:t,params:i}),this.client.events.emit("session_request",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.onSessionRequestResponse=(t,n)=>{let{id:a}=n;Io.isJsonRpcResult(n)?this.events.emit(be.engineEvent("session_request",a),{result:n.result}):Io.isJsonRpcError(n)&&this.events.emit(be.engineEvent("session_request",a),{error:n.error})},this.onSessionEventRequest=async(t,n)=>{let{id:a,params:i}=n;try{this.isValidEmit(Hp({topic:t},i)),this.client.events.emit("session_event",{id:a,topic:t,params:i})}catch(s){await this.sendError(a,t,s),this.client.logger.error(s)}},this.isValidConnect=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(t)}`);throw new Error(c)}let{pairingTopic:n,requiredNamespaces:a,optionalNamespaces:i,sessionProperties:s,relays:o}=t;if(be.isUndefined(n)||await this.isValidPairingTopic(n),!be.isValidRelays(o,!0)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`connect() relays: ${o}`);throw new Error(c)}!be.isUndefined(a)&&be.isValidObject(a)!==0&&this.validateNamespaces(a,"requiredNamespaces"),!be.isUndefined(i)&&be.isValidObject(i)!==0&&this.validateNamespaces(i,"optionalNamespaces"),be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.validateNamespaces=(t,n)=>{let a=be.isValidRequiredNamespaces(t,"connect()",n);if(a)throw new Error(a.message)},this.isValidApprove=async t=>{if(!be.isValidParams(t))throw new Error(be.getInternalError("MISSING_OR_INVALID",`approve() params: ${t}`).message);let{id:n,namespaces:a,relayProtocol:i,sessionProperties:s}=t;await this.isValidProposalId(n);let o=this.client.proposal.get(n),c=be.isValidNamespaces(a,"approve()");if(c)throw new Error(c.message);let u=be.isConformingNamespaces(o.requiredNamespaces,a,"approve()");if(u)throw new Error(u.message);if(!be.isValidString(i,!0)){let{message:l}=be.getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${i}`);throw new Error(l)}be.isUndefined(s)||this.validateSessionProps(s,"sessionProperties")},this.isValidReject=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() params: ${t}`);throw new Error(i)}let{id:n,reason:a}=t;if(await this.isValidProposalId(n),!be.isValidErrorReason(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidSessionSettleRequest=t=>{if(!be.isValidParams(t)){let{message:u}=be.getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${t}`);throw new Error(u)}let{relay:n,controller:a,namespaces:i,expiry:s}=t;if(!be.isValidRelay(n)){let{message:u}=be.getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string");throw new Error(u)}let o=be.isValidController(a,"onSessionSettleRequest()");if(o)throw new Error(o.message);let c=be.isValidNamespaces(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(be.isExpired(s)){let{message:u}=be.getInternalError("EXPIRED","onSessionSettleRequest()");throw new Error(u)}},this.isValidUpdate=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`update() params: ${t}`);throw new Error(c)}let{topic:n,namespaces:a}=t;await this.isValidSessionTopic(n);let i=this.client.session.get(n),s=be.isValidNamespaces(a,"update()");if(s)throw new Error(s.message);let o=be.isConformingNamespaces(i.requiredNamespaces,a,"update()");if(o)throw new Error(o.message)},this.isValidExtend=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`extend() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionTopic(n)},this.isValidRequest=async t=>{if(!be.isValidParams(t)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() params: ${t}`);throw new Error(c)}let{topic:n,request:a,chainId:i,expiry:s}=t;await this.isValidSessionTopic(n);let{namespaces:o}=this.client.session.get(n);if(!be.isValidNamespacesChainId(o,i)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() chainId: ${i}`);throw new Error(c)}if(!be.isValidRequest(a)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(a)}`);throw new Error(c)}if(!be.isValidNamespacesRequest(o,i,a.method)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() method: ${a.method}`);throw new Error(c)}if(s&&!be.isValidRequestExpiry(s,uz)){let{message:c}=be.getInternalError("MISSING_OR_INVALID",`request() expiry: ${s}. Expiry must be a number (in seconds) between ${uz.min} and ${uz.max}`);throw new Error(c)}},this.isValidRespond=async t=>{if(!be.isValidParams(t)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() params: ${t}`);throw new Error(i)}let{topic:n,response:a}=t;if(await this.isValidSessionTopic(n),!be.isValidResponse(a)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(a)}`);throw new Error(i)}},this.isValidPing=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`ping() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.isValidEmit=async t=>{if(!be.isValidParams(t)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() params: ${t}`);throw new Error(o)}let{topic:n,event:a,chainId:i}=t;await this.isValidSessionTopic(n);let{namespaces:s}=this.client.session.get(n);if(!be.isValidNamespacesChainId(s,i)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() chainId: ${i}`);throw new Error(o)}if(!be.isValidEvent(a)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}if(!be.isValidNamespacesEvent(s,i,a.name)){let{message:o}=be.getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(a)}`);throw new Error(o)}},this.isValidDisconnect=async t=>{if(!be.isValidParams(t)){let{message:a}=be.getInternalError("MISSING_OR_INVALID",`disconnect() params: ${t}`);throw new Error(a)}let{topic:n}=t;await this.isValidSessionOrPairingTopic(n)},this.validateSessionProps=(t,n)=>{Object.values(t).forEach(a=>{if(!be.isValidString(a,!1)){let{message:i}=be.getInternalError("MISSING_OR_INVALID",`${n} must be in Record format. Received: ${JSON.stringify(a)}`);throw new Error(i)}})}}isInitialized(){if(!this.initialized){let{message:e}=be.getInternalError("NOT_INITIALIZED",this.name);throw new Error(e)}}registerRelayerEvents(){this.client.core.relayer.on(Ng.RELAYER_EVENTS.message,async e=>{let{topic:t,message:n}=e;if(this.ignoredPayloadTypes.includes(this.client.core.crypto.getPayloadType(n)))return;let a=await this.client.core.crypto.decode(t,n);Io.isJsonRpcRequest(a)?(this.client.core.history.set(t,a),this.onRelayEventRequest({topic:t,payload:a})):Io.isJsonRpcResponse(a)&&(await this.client.core.history.resolve(a),this.onRelayEventResponse({topic:t,payload:a}))})}registerExpirerEvents(){this.client.core.expirer.on(Ng.EXPIRER_EVENTS.expired,async e=>{let{topic:t,id:n}=be.parseExpirerTarget(e.target);if(n&&this.client.pendingRequest.keys.includes(n))return await this.deletePendingSessionRequest(n,be.getInternalError("EXPIRED"),!0);t?this.client.session.keys.includes(t)&&(await this.deleteSession(t,!0),this.client.events.emit("session_expire",{topic:t})):n&&(await this.deleteProposal(n,!0),this.client.events.emit("proposal_expire",{id:n}))})}isValidPairingTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`);throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.core.pairing.pairings.get(e).expiry)){let{message:t}=be.getInternalError("EXPIRED",`pairing topic: ${e}`);throw new Error(t)}}async isValidSessionTopic(e){if(!be.isValidString(e,!1)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`);throw new Error(t)}if(!this.client.session.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.session.get(e).expiry)){await this.deleteSession(e);let{message:t}=be.getInternalError("EXPIRED",`session topic: ${e}`);throw new Error(t)}}async isValidSessionOrPairingTopic(e){if(this.client.session.keys.includes(e))await this.isValidSessionTopic(e);else if(this.client.core.pairing.pairings.keys.includes(e))this.isValidPairingTopic(e);else if(be.isValidString(e,!1)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`);throw new Error(t)}else{let{message:t}=be.getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`);throw new Error(t)}}async isValidProposalId(e){if(!be.isValidId(e)){let{message:t}=be.getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`);throw new Error(t)}if(!this.client.proposal.keys.includes(e)){let{message:t}=be.getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`);throw new Error(t)}if(be.isExpired(this.client.proposal.get(e).expiry)){await this.deleteProposal(e);let{message:t}=be.getInternalError("EXPIRED",`proposal id: ${e}`);throw new Error(t)}}},pme=class extends Ng.Store{constructor(e,t){super(e,t,LIt,lz),this.core=e,this.logger=t}},hme=class extends Ng.Store{constructor(e,t){super(e,t,FIt,lz),this.core=e,this.logger=t}},fme=class extends Ng.Store{constructor(e,t){super(e,t,UIt,lz),this.core=e,this.logger=t}},aE=class extends BIt.ISignClient{constructor(e){super(e),this.protocol=mme,this.version=yme,this.name=cz.name,this.events=new DIt.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=e?.name||cz.name,this.metadata=e?.metadata||be.getAppMetadata();let t=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:agn.default(ume.getDefaultLoggerOptions({level:e?.logger||cz.logger}));this.core=e?.core||new Ng.Core(e),this.logger=ume.generateChildLogger(t,this.name),this.session=new hme(this.core,this.logger),this.proposal=new pme(this.core,this.logger),this.pendingRequest=new fme(this.core,this.logger),this.engine=new dme(this)}static async init(e){let t=new aE(e);return await t.initialize(),t}get context(){return ume.getLoggerContext(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.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}},ggn=aE;Xi.ENGINE_CONTEXT=WIt,Xi.ENGINE_RPC_OPTS=nE,Xi.HISTORY_CONTEXT=ugn,Xi.HISTORY_EVENTS=cgn,Xi.HISTORY_STORAGE_VERSION=lgn,Xi.PROPOSAL_CONTEXT=LIt,Xi.PROPOSAL_EXPIRY=dgn,Xi.PROPOSAL_EXPIRY_MESSAGE=qIt,Xi.REQUEST_CONTEXT=UIt,Xi.SESSION_CONTEXT=FIt,Xi.SESSION_EXPIRY=lP,Xi.SESSION_REQUEST_EXPIRY_BOUNDARIES=uz,Xi.SIGN_CLIENT_CONTEXT=gme,Xi.SIGN_CLIENT_DEFAULT=cz,Xi.SIGN_CLIENT_EVENTS=sgn,Xi.SIGN_CLIENT_PROTOCOL=mme,Xi.SIGN_CLIENT_STORAGE_OPTIONS=ogn,Xi.SIGN_CLIENT_STORAGE_PREFIX=lz,Xi.SIGN_CLIENT_VERSION=yme,Xi.SignClient=ggn,Xi.default=aE});var YIt=x(pz=>{"use strict";d();p();Object.defineProperty(pz,"__esModule",{value:!0});var bgn=GS(),VIt=HIt(),bme=jS(),vgn=kj(),hz=(SS(),nt(AS)),$It=(PH(),nt(SH)),wgn=Bu();function fz(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}var _gn=fz(bgn),xgn=fz(VIt),Cme=fz($It),Tgn=fz(wgn),jIt="error",Egn="wss://relay.walletconnect.com",Cgn="wc",Ign="universal_provider",zIt=`${Cgn}@${2}:${Ign}:`,kgn="https://rpc.walletconnect.com/v1",dP={DEFAULT_CHAIN_CHANGED:"default_chain_changed"};function iE(r,e,t){let n,a=wme(r);return e.rpcMap&&(n=e.rpcMap[a]),n||(n=`${kgn}?chainId=eip155:${a}&projectId=${t}`),n}function wme(r){return r.includes("eip155")?Number(r.split(":")[1]):Number(r)}function Agn(r,e){if(!e.includes(r))throw new Error(`Chain '${r}' not approved. Please use one of the following: ${e.toString()}`)}function Sgn(r){return r.map(e=>`${e.split(":")[0]}:${e.split(":")[1]}`)}var mz=(r,e)=>{let t=n=>{n.request!==e.request||n.topic!==e.topic||(r.events.removeListener("session_request_sent",t),Pgn())};r.on("session_request_sent",t)};function Pgn(){if(typeof window<"u")try{let r=window.localStorage.getItem("WALLETCONNECT_DEEPLINK_CHOICE");if(r){let e=JSON.parse(r);window.open(e.href,"_self","noreferrer noopener")}}catch(r){console.error(r)}}var _me=class{constructor(e){this.name="eip155",this.namespace=e.namespace,this.client=e.client,this.events=e.events,this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain())}async request(e){var t;switch(e.request.method){case"eth_requestAccounts":return this.getAccounts();case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return this.handleSwitchChain(e.request.params?(t=e.request.params[0])==null?void 0:t.chainId:"0x0"),null;case"eth_chainId":return parseInt(this.getDefaultChain())}return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),await this.client.request(e)):this.getHttpProvider().request(e.request)}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}setDefaultChain(e,t){let n=wme(e);if(!this.httpProviders[n]){let a=t||iE(`${this.name}:${n}`,this.namespace,this.client.core.projectId);if(!a)throw new Error(`No RPC url provided for chainId: ${n}`);this.setHttpProvider(n,a)}this.chainId=n,this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${n}`)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}createHttpProvider(e,t){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new $It.HttpConnection(n))}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=wme(t);e[n]=this.createHttpProvider(n)}),e}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}getHttpProvider(){let e=this.chainId,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}handleSwitchChain(e){let t=parseInt(e,16),n=`${this.name}:${t}`;Agn(n,this.namespace.chains),this.setDefaultChain(`${t}`)}},xme=class{constructor(e){this.name="solana",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(!this.httpProviders[e]){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.chainId=e,this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||iE(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Tme=class{constructor(e){this.name="cosmos",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||iE(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{e[t]=this.createHttpProvider(t)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||iE(e,this.namespace,this.client.core.projectId);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Eme=class{constructor(e){this.name="cip34",this.namespace=e.namespace,this.events=e.events,this.client=e.client,this.chainId=this.getDefaultChain(),this.httpProviders=this.createHttpProviders()}updateNamespace(e){this.namespace=Object.assign(this.namespace,e)}requestAccounts(){return this.getAccounts()}getDefaultChain(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;let e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}request(e){return this.namespace.methods.includes(e.request.method)?(mz(this.client,e),this.client.request(e)):this.getHttpProvider().request(e.request)}setDefaultChain(e,t){if(this.chainId=e,!this.httpProviders[e]){let n=t||this.getCardanoRPCUrl(e);if(!n)throw new Error(`No RPC url provided for chainId: ${e}`);this.setHttpProvider(e,n)}this.events.emit(dP.DEFAULT_CHAIN_CHANGED,`${this.name}:${this.chainId}`)}getAccounts(){let e=this.namespace.accounts;return e?e.filter(t=>t.split(":")[1]===this.chainId.toString()).map(t=>t.split(":")[2])||[]:[]}createHttpProviders(){let e={};return this.namespace.chains.forEach(t=>{let n=this.getCardanoRPCUrl(t);e[t]=this.createHttpProvider(t,n)}),e}getHttpProvider(){let e=`${this.name}:${this.chainId}`,t=this.httpProviders[e];if(typeof t>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return t}getCardanoRPCUrl(e){let t=this.namespace.rpcMap;if(t)return t[e]}setHttpProvider(e,t){let n=this.createHttpProvider(e,t);n&&(this.httpProviders[e]=n)}createHttpProvider(e,t){let n=t||this.getCardanoRPCUrl(e);return typeof n>"u"?void 0:new hz.JsonRpcProvider(new Cme.default(n))}},Rgn=Object.defineProperty,Mgn=Object.defineProperties,Ngn=Object.getOwnPropertyDescriptors,KIt=Object.getOwnPropertySymbols,Bgn=Object.prototype.hasOwnProperty,Dgn=Object.prototype.propertyIsEnumerable,GIt=(r,e,t)=>e in r?Rgn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,dz=(r,e)=>{for(var t in e||(e={}))Bgn.call(e,t)&&GIt(r,t,e[t]);if(KIt)for(var t of KIt(e))Dgn.call(e,t)&&GIt(r,t,e[t]);return r},vme=(r,e)=>Mgn(r,Ngn(e)),sE=class{constructor(e){this.events=new Tgn.default,this.rpcProviders={},this.shouldAbortPairingAttempt=!1,this.maxPairingAttempts=10,this.providerOpts=e,this.logger=typeof e?.logger<"u"&&typeof e?.logger!="string"?e.logger:_gn.default(vgn.getDefaultLoggerOptions({level:e?.logger||jIt}))}static async init(e){let t=new sE(e);return await t.initialize(),t}async request(e,t){let[n,a]=this.validateChain(t);if(!this.session)throw new Error("Please call connect() before request()");return await this.getProvider(n).request({request:dz({},e),chainId:`${n}:${a}`,topic:this.session.topic})}sendAsync(e,t,n){this.request(e,n).then(a=>t(null,a)).catch(a=>t(a,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 e;if(!this.session)throw new Error("Please call connect() before enable()");await this.client.disconnect({topic:(e=this.session)==null?void 0:e.topic,reason:bme.getSdkError("USER_DISCONNECTED")}),await this.cleanup()}async connect(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),await this.cleanupPendingPairings(),!e.skipPairing)return await this.pair(e.pairingTopic)}on(e,t){this.events.on(e,t)}once(e,t){this.events.once(e,t)}removeListener(e,t){this.events.removeListener(e,t)}off(e,t){this.events.off(e,t)}get isWalletConnect(){return!0}async pair(e){this.shouldAbortPairingAttempt=!1;let t=0;do{if(this.shouldAbortPairingAttempt)throw new Error("Pairing aborted");if(t>=this.maxPairingAttempts)throw new Error("Max auto pairing attempts reached");let{uri:n,approval:a}=await this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties});n&&(this.uri=n,this.events.emit("display_uri",n)),await a().then(i=>{this.session=i}).catch(i=>{if(i.message!==VIt.PROPOSAL_EXPIRY_MESSAGE)throw i;t++})}while(!this.session);return this.onConnect(),this.session}setDefaultChain(e,t){try{let[n,a]=this.validateChain(e);this.getProvider(n).setDefaultChain(a,t)}catch(n){if(!/Please call connect/.test(n.message))throw n}}async cleanupPendingPairings(e={}){this.logger.info("Cleaning up inactive pairings...");let t=this.client.pairing.getAll();if(bme.isValidArray(t)){for(let n of t)e.deletePairings?this.client.core.expirer.set(n.topic,0):await this.client.core.relayer.subscriber.unsubscribe(n.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}}abortPairingAttempt(){this.shouldAbortPairingAttempt=!0}async checkStorage(){if(this.namespaces=await this.getFromStore("namespaces")||{},this.optionalNamespaces=await this.getFromStore("optionalNamespaces")||{},this.client.session.length){let e=this.client.session.keys.length-1;this.session=this.client.session.get(this.client.session.keys[e]),this.createProviders()}}async initialize(){this.logger.trace("Initialized"),await this.createClient(),await this.checkStorage(),this.registerEventListeners()}async createClient(){this.client=this.providerOpts.client||await xgn.default.init({logger:this.providerOpts.logger||jIt,relayUrl:this.providerOpts.relayUrl||Egn,projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,name:this.providerOpts.name}),this.logger.trace("SignClient Initialized")}createProviders(){if(!this.client)throw new Error("Sign Client not initialized");Object.keys(this.namespaces).forEach(e=>{var t,n,a;let i=((t=this.session)==null?void 0:t.namespaces[e].accounts)||[],s=Sgn(i),o=vme(dz({},Object.assign(this.namespaces[e],(a=(n=this.optionalNamespaces)==null?void 0:n[e])!=null?a:{})),{accounts:i,chains:s});switch(e){case"eip155":this.rpcProviders[e]=new _me({client:this.client,namespace:o,events:this.events});break;case"solana":this.rpcProviders[e]=new xme({client:this.client,namespace:o,events:this.events});break;case"cosmos":this.rpcProviders[e]=new Tme({client:this.client,namespace:o,events:this.events});break;case"polkadot":break;case"cip34":this.rpcProviders[e]=new Eme({client:this.client,namespace:o,events:this.events});break}})}registerEventListeners(){if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",e=>{this.events.emit("session_ping",e)}),this.client.on("session_event",e=>{let{params:t}=e,{event:n}=t;n.name==="accountsChanged"?this.events.emit("accountsChanged",n.data):n.name==="chainChanged"?this.onChainChanged(t.chainId):this.events.emit(n.name,n.data),this.events.emit("session_event",e)}),this.client.on("session_update",({topic:e,params:t})=>{var n;let{namespaces:a}=t,i=(n=this.client)==null?void 0:n.session.get(e);this.session=vme(dz({},i),{namespaces:a}),this.onSessionUpdate(),this.events.emit("session_update",{topic:e,params:t})}),this.client.on("session_delete",async e=>{await this.cleanup(),this.events.emit("session_delete",e),this.events.emit("disconnect",vme(dz({},bme.getSdkError("USER_DISCONNECTED")),{data:e.topic}))}),this.on(dP.DEFAULT_CHAIN_CHANGED,e=>{this.onChainChanged(e,!0)})}getProvider(e){if(!this.rpcProviders[e])throw new Error(`Provider not found: ${e}`);return this.rpcProviders[e]}onSessionUpdate(){Object.keys(this.rpcProviders).forEach(e=>{var t;this.getProvider(e).updateNamespace((t=this.session)==null?void 0:t.namespaces[e])})}setNamespaces(e){let{namespaces:t,optionalNamespaces:n,sessionProperties:a}=e;if(!t||!Object.keys(t).length)throw new Error("Namespaces must be not empty");this.namespaces=t,this.optionalNamespaces=n,this.sessionProperties=a,this.persist("namespaces",t),this.persist("optionalNamespaces",n)}validateChain(e){let[t,n]=e?.split(":")||["",""];if(t&&!Object.keys(this.namespaces).includes(t))throw new Error(`Namespace '${t}' is not configured. Please call connect() first with namespace config.`);if(t&&n)return[t,n];let a=Object.keys(this.namespaces)[0],i=this.rpcProviders[a].getDefaultChain();return[a,i]}async requestAccounts(){let[e]=this.validateChain();return await this.getProvider(e).requestAccounts()}onChainChanged(e,t=!1){let[n,a]=this.validateChain(e);t||this.getProvider(n).setDefaultChain(a),this.namespaces[n].defaultChain=a,this.persist("namespaces",this.namespaces),this.events.emit("chainChanged",a)}onConnect(){this.createProviders(),this.events.emit("connect",{session:this.session})}async cleanup(){this.session=void 0,await this.cleanupPendingPairings({deletePairings:!0})}persist(e,t){this.client.core.storage.setItem(`${zIt}/${e}`,t)}async getFromStore(e){return await this.client.core.storage.getItem(`${zIt}/${e}`)}},Ogn=sE;pz.UniversalProvider=Ogn,pz.default=sE});var d_a,Lgn,JIt,Ime,qgn,QIt,kme,ZIt=ce(()=>{d();p();d_a=Symbol(),Lgn=Symbol(),JIt=Object.getPrototypeOf,Ime=new WeakMap,qgn=r=>r&&(Ime.has(r)?Ime.get(r):JIt(r)===Object.prototype||JIt(r)===Array.prototype),QIt=r=>qgn(r)&&r[Lgn]||null,kme=(r,e=!0)=>{Ime.set(r,e)}});function uf(r={}){return Wgn(r)}function Dg(r,e,t){let n=Iw.get(r);(Bg.env&&Bg.env.MODE)!=="production"&&!n&&console.warn("Please use proxy object");let a,i=[],s=n[3],o=!1,u=s(l=>{if(i.push(l),t){e(i.splice(0));return}a||(a=Promise.resolve().then(()=>{a=void 0,o&&e(i.splice(0))}))});return o=!0,()=>{o=!1,u()}}function Ugn(r,e){let t=Iw.get(r);(Bg.env&&Bg.env.MODE)!=="production"&&!t&&console.warn("Please use proxy object");let[n,a,i]=t;return i(n,a(),e)}var Bg,Ame,Iw,yz,Fgn,Wgn,XIt=ce(()=>{d();p();ZIt();Bg={},Ame=r=>typeof r=="object"&&r!==null,Iw=new WeakMap,yz=new WeakSet,Fgn=(r=Object.is,e=(u,l)=>new Proxy(u,l),t=u=>Ame(u)&&!yz.has(u)&&(Array.isArray(u)||!(Symbol.iterator in u))&&!(u instanceof WeakMap)&&!(u instanceof WeakSet)&&!(u instanceof Error)&&!(u instanceof Number)&&!(u instanceof Date)&&!(u instanceof String)&&!(u instanceof RegExp)&&!(u instanceof ArrayBuffer),n=u=>{switch(u.status){case"fulfilled":return u.value;case"rejected":throw u.reason;default:throw u}},a=new WeakMap,i=(u,l,h=n)=>{let f=a.get(u);if(f?.[0]===l)return f[1];let m=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u));return kme(m,!0),a.set(u,[l,m]),Reflect.ownKeys(u).forEach(y=>{let E=Reflect.get(u,y);yz.has(E)?(kme(E,!1),m[y]=E):E instanceof Promise?Object.defineProperty(m,y,{get(){return h(E)}}):Iw.has(E)?m[y]=Ugn(E,h):m[y]=E}),Object.freeze(m)},s=new WeakMap,o=[1,1],c=u=>{if(!Ame(u))throw new Error("object required");let l=s.get(u);if(l)return l;let h=o[0],f=new Set,m=(J,q=++o[0])=>{h!==q&&(h=q,f.forEach(T=>T(J,q)))},y=o[1],E=(J=++o[1])=>(y!==J&&!f.size&&(y=J,S.forEach(([q])=>{let T=q[1](J);T>h&&(h=T)})),h),I=J=>(q,T)=>{let P=[...q];P[1]=[J,...P[1]],m(P,T)},S=new Map,L=(J,q)=>{if((Bg.env&&Bg.env.MODE)!=="production"&&S.has(J))throw new Error("prop listener already exists");if(f.size){let T=q[3](I(J));S.set(J,[q,T])}else S.set(J,[q])},F=J=>{var q;let T=S.get(J);T&&(S.delete(J),(q=T[1])==null||q.call(T))},W=J=>(f.add(J),f.size===1&&S.forEach(([T,P],A)=>{if((Bg.env&&Bg.env.MODE)!=="production"&&P)throw new Error("remove already exists");let v=T[3](I(A));S.set(A,[T,v])}),()=>{f.delete(J),f.size===0&&S.forEach(([T,P],A)=>{P&&(P(),S.set(A,[T]))})}),V=Array.isArray(u)?[]:Object.create(Object.getPrototypeOf(u)),H=e(V,{deleteProperty(J,q){let T=Reflect.get(J,q);F(q);let P=Reflect.deleteProperty(J,q);return P&&m(["delete",[q],T]),P},set(J,q,T,P){var A;let v=Reflect.has(J,q),k=Reflect.get(J,q,P);if(v&&r(k,T))return!0;F(q),Ame(T)&&(T=QIt(T)||T);let O=T;if(!((A=Object.getOwnPropertyDescriptor(J,q))!=null&&A.set))if(T instanceof Promise)T.then(D=>{T.status="fulfilled",T.value=D,m(["resolve",[q],D])}).catch(D=>{T.status="rejected",T.reason=D,m(["reject",[q],D])});else{!Iw.has(T)&&t(T)&&(O=uf(T));let D=!yz.has(O)&&Iw.get(O);D&&L(q,D)}return Reflect.set(J,q,O,P),m(["set",[q],T,k]),!0}});s.set(u,H);let G=[V,E,i,W];return Iw.set(H,G),Reflect.ownKeys(u).forEach(J=>{let q=Object.getOwnPropertyDescriptor(u,J);q.get||q.set?Object.defineProperty(V,J,q):H[J]=u[J]}),H})=>[c,Iw,yz,r,e,t,n,a,i,s,o],[Wgn]=Fgn()});function Hgn(r){let e=Object.fromEntries(Object.entries(r).filter(([t,n])=>typeof n<"u"&&n!==null&&n!=="").map(([t,n])=>[t,n.toString()]));return new URLSearchParams(e).toString()}function vz(){let{projectId:r}=Ls.state;if(!r)throw new Error("projectId is required to work with explorer api");return r}function jgn(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}var tkt,nl,yt,pP,Bi,ys,Ga,gz,Ls,ekt,bz,kw,no,Id,Br,oE,ao,wz,qm,Aw,Rc,Sr,Sme=ce(()=>{d();p();XIt();tkt=on(cc(),1),nl=uf({selectedChain:void 0,chains:void 0,standaloneChains:void 0,standaloneUri:void 0,isStandalone:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1,walletConnectVersion:1}),yt={state:nl,subscribe(r){return Dg(nl,()=>r(nl))},setChains(r){nl.chains=r},setStandaloneChains(r){nl.standaloneChains=r},setStandaloneUri(r){nl.standaloneUri=r},getSelectedChain(){let r=Bi.client().getNetwork().chain;return r&&(nl.selectedChain=r),nl.selectedChain},setSelectedChain(r){nl.selectedChain=r},setIsStandalone(r){nl.isStandalone=r},setIsCustomDesktop(r){nl.isCustomDesktop=r},setIsCustomMobile(r){nl.isCustomMobile=r},setIsDataLoaded(r){nl.isDataLoaded=r},setIsUiLoaded(r){nl.isUiLoaded=r},setWalletConnectVersion(r){nl.walletConnectVersion=r}},pP=uf({initialized:!1,ethereumClient:void 0}),Bi={setEthereumClient(r){!pP.initialized&&r&&(pP.ethereumClient=r,yt.setChains(r.chains),pP.initialized=!0)},client(){if(pP.ethereumClient)return pP.ethereumClient;throw new Error("ClientCtrl has no client set")}},ys=uf({address:void 0,profileName:void 0,profileAvatar:void 0,profileLoading:!1,balanceLoading:!1,balance:void 0,isConnected:!1}),Ga={state:ys,subscribe(r){return Dg(ys,()=>r(ys))},getAccount(){let r=Bi.client().getAccount();ys.address=r.address,ys.isConnected=r.isConnected},async fetchProfile(r,e){try{ys.profileLoading=!0;let t=e??ys.address,{id:n}=Bi.client().getDefaultChain();if(t&&n===1){let[a,i]=await Promise.all([Bi.client().fetchEnsName({address:t,chainId:1}),Bi.client().fetchEnsAvatar({address:t,chainId:1})]);i&&await r(i),ys.profileName=a,ys.profileAvatar=i}}finally{ys.profileLoading=!1}},async fetchBalance(r){try{ys.balanceLoading=!0;let e=r??ys.address;if(e){let t=await Bi.client().fetchBalance({address:e});ys.balance={amount:t.formatted,symbol:t.symbol}}}finally{ys.balanceLoading=!1}},setAddress(r){ys.address=r},setIsConnected(r){ys.isConnected=r},resetBalance(){ys.balance=void 0},resetAccount(){ys.address=void 0,ys.isConnected=!1,ys.profileName=void 0,ys.profileAvatar=void 0,ys.balance=void 0}},gz=uf({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chainImages:void 0,tokenImages:void 0,standaloneChains:void 0,enableStandaloneMode:!1,enableNetworkView:!1,enableAccountView:!0,enableExplorer:!0,defaultChain:void 0,explorerAllowList:void 0,explorerDenyList:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),Ls={state:gz,subscribe(r){return Dg(gz,()=>r(gz))},setConfig(r){var e,t,n,a;if(yt.setStandaloneChains(r.standaloneChains),yt.setIsStandalone(!!((e=r.standaloneChains)!=null&&e.length)||!!r.enableStandaloneMode),yt.setIsCustomMobile(!!((t=r.mobileWallets)!=null&&t.length)),yt.setIsCustomDesktop(!!((n=r.desktopWallets)!=null&&n.length)),yt.setWalletConnectVersion((a=r.walletConnectVersion)!=null?a:1),r.defaultChain)yt.setSelectedChain(r.defaultChain);else if(!yt.state.isStandalone){let i=Bi.client().getDefaultChain();yt.setSelectedChain(i)}Object.assign(gz,r)}},ekt="https://explorer-api.walletconnect.com";bz={async fetchWallets(r,e){let t=Hgn(e),n=`${ekt}/v3/wallets?projectId=${r}&${t}`;return(await fetch(n)).json()},formatImageUrl(r,e){return`${ekt}/v3/logo/lg/${e}?projectId=${r}`}},kw=uf({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},previewWallets:[],recomendedWallets:[]});no={state:kw,async getPreviewWallets(r){let{listings:e}=await bz.fetchWallets(vz(),r);return kw.previewWallets=Object.values(e),kw.previewWallets},async getRecomendedWallets(){let{listings:r}=await bz.fetchWallets(vz(),{page:1,entries:6});kw.recomendedWallets=Object.values(r)},async getPaginatedWallets(r){let{page:e,search:t}=r,{listings:n,total:a}=await bz.fetchWallets(vz(),r),i=Object.values(n),s=t?"search":"wallets";return kw[s]={listings:[...kw[s].listings,...i],total:a,page:e??1},{listings:i,total:a}},getImageUrl(r){return bz.formatImageUrl(vz(),r)},resetSearch(){kw.search={listings:[],total:0,page:1}}},Id=uf({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),Br={state:Id,subscribe(r){return Dg(Id,()=>r(Id))},push(r,e){r!==Id.view&&(Id.view=r,e&&(Id.data=e),Id.history.push(r))},replace(r){Id.view=r,Id.history=[r]},goBack(){if(Id.history.length>1){Id.history.pop();let[r]=Id.history.slice(-1);Id.view=r}}},oE=uf({open:!1}),ao={state:oE,subscribe(r){return Dg(oE,()=>r(oE))},async open(r){return new Promise(e=>{let{isStandalone:t,isUiLoaded:n,isDataLoaded:a}=yt.state,{isConnected:i}=Ga.state,{enableNetworkView:s}=Ls.state;if(t?(yt.setStandaloneUri(r?.uri),yt.setStandaloneChains(r?.standaloneChains),Br.replace("ConnectWallet")):r!=null&&r.route?Br.replace(r.route):i?Br.replace("Account"):s?Br.replace("SelectNetwork"):Br.replace("ConnectWallet"),n&&a)oE.open=!0,e();else{let o=setInterval(()=>{yt.state.isUiLoaded&&yt.state.isDataLoaded&&(clearInterval(o),oE.open=!0,e())},200)}})},close(){oE.open=!1}};wz=uf({themeMode:jgn()?"dark":"light"}),qm={state:wz,subscribe(r){return Dg(wz,()=>r(wz))},setThemeConfig(r){Object.assign(wz,r)}},Aw=uf({open:!1,message:"",variant:"success"}),Rc={state:Aw,subscribe(r){return Dg(Aw,()=>r(Aw))},openToast(r,e){Aw.open=!0,Aw.message=r,Aw.variant=e},closeToast(){Aw.open=!1}},Sr={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",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 Sr.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isEmptyObject(r){return Object.getPrototypeOf(r)===Object.prototype&&Object.getOwnPropertyNames(r).length===0&&Object.getOwnPropertySymbols(r).length===0},isHttpUrl(r){return r.startsWith("http://")||r.startsWith("https://")},formatNativeUrl(r,e,t){if(Sr.isHttpUrl(r))return this.formatUniversalUrl(r,e,t);let n=r;n.includes("://")||(n=r.replaceAll("/","").replaceAll(":",""),n=`${n}://`),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}wc?uri=${a}`},formatUniversalUrl(r,e,t){if(!Sr.isHttpUrl(r))return this.formatNativeUrl(r,e,t);let n=r;r.endsWith("/")&&(n=r.slice(0,-1)),this.setWalletConnectDeepLink(n,t);let a=encodeURIComponent(e);return`${n}/wc?uri=${a}`},async wait(r){return new Promise(e=>{setTimeout(e,r)})},openHref(r,e){window.open(r,e,"noreferrer noopener")},setWalletConnectDeepLink(r,e){localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:r,name:e}))},setWalletConnectAndroidDeepLink(r){let[e]=r.split("?");localStorage.setItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:"Android"}))},removeWalletConnectDeepLink(){localStorage.removeItem(Sr.WALLETCONNECT_DEEPLINK_CHOICE)},isNull(r){return r===null}};typeof window<"u"&&(window.Buffer||(window.Buffer=tkt.Buffer),window.global||(window.global=window),window.process||(window.process={env:{}}))});var _z,xz,Pme,rkt,hP,nkt,pr,Rme,Tz,Mme=ce(()=>{d();p();_z=window,xz=_z.ShadowRoot&&(_z.ShadyCSS===void 0||_z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pme=Symbol(),rkt=new WeakMap,hP=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Pme)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(xz&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=rkt.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&rkt.set(t,e))}return e}toString(){return this.cssText}},nkt=r=>new hP(typeof r=="string"?r:r+"",void 0,Pme),pr=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((n,a,i)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+r[i+1],r[0]);return new hP(t,r,Pme)},Rme=(r,e)=>{xz?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let n=document.createElement("style"),a=_z.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=t.cssText,r.appendChild(n)})},Tz=xz?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let n of e.cssRules)t+=n.cssText;return nkt(t)})(r):r});var Nme,Ez,akt,zgn,ikt,Dme,skt,Bme,hy,Cz=ce(()=>{d();p();Mme();Mme();Ez=window,akt=Ez.trustedTypes,zgn=akt?akt.emptyScript:"",ikt=Ez.reactiveElementPolyfillSupport,Dme={toAttribute(r,e){switch(e){case Boolean:r=r?zgn:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},skt=(r,e)=>e!==r&&(e==e||r==r),Bme={attribute:!0,type:String,converter:Dme,reflect:!1,hasChanged:skt},hy=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var t;this.finalize(),((t=this.h)!==null&&t!==void 0?t:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((t,n)=>{let a=this._$Ep(n,t);a!==void 0&&(this._$Ev.set(a,n),e.push(a))}),e}static createProperty(e,t=Bme){if(t.state&&(t.attribute=!1),this.finalize(),this.elementProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){let n=typeof e=="symbol"?Symbol():"__"+e,a=this.getPropertyDescriptor(e,n,t);a!==void 0&&Object.defineProperty(this.prototype,e,a)}}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(a){let i=this[e];this[t]=a,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Bme}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let 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")){let t=this.properties,n=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(let a of n)this.createProperty(a,t[a])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let a of n)t.unshift(Tz(a))}else e!==void 0&&t.push(Tz(e));return t}static _$Ep(e,t){let n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(t=>t(this))}addController(e){var t,n;((t=this._$ES)!==null&&t!==void 0?t:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var t;(t=this._$ES)===null||t===void 0||t.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,t)=>{this.hasOwnProperty(t)&&(this._$Ei.set(t,this[t]),delete this[t])})}createRenderRoot(){var e;let t=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Rme(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostConnected)===null||n===void 0?void 0:n.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(t=>{var n;return(n=t.hostDisconnected)===null||n===void 0?void 0:n.call(t)})}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$EO(e,t,n=Bme){var a;let i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){let s=(((a=n.converter)===null||a===void 0?void 0:a.toAttribute)!==void 0?n.converter:Dme).toAttribute(t,n.type);this._$El=e,s==null?this.removeAttribute(i):this.setAttribute(i,s),this._$El=null}}_$AK(e,t){var n;let a=this.constructor,i=a._$Ev.get(e);if(i!==void 0&&this._$El!==i){let s=a.getPropertyOptions(i),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((n=s.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?s.converter:Dme;this._$El=i,this[i]=o.fromAttribute(t,s.type),this._$El=null}}requestUpdate(e,t,n){let a=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||skt)(this[e],t)?(this._$AL.has(e)||this._$AL.set(e,t),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):a=!1),!this.isUpdatePending&&a&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}let 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((a,i)=>this[i]=a),this._$Ei=void 0);let t=!1,n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(a=>{var i;return(i=a.hostUpdate)===null||i===void 0?void 0:i.call(a)}),this.update(n)):this._$Ek()}catch(a){throw t=!1,this._$Ek(),a}t&&this._$AE(n)}willUpdate(e){}_$AE(e){var t;(t=this._$ES)===null||t===void 0||t.forEach(n=>{var a;return(a=n.hostUpdated)===null||a===void 0?void 0:a.call(n)}),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((t,n)=>this._$EO(n,this[n],t)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};hy.finalized=!0,hy.elementProperties=new Map,hy.elementStyles=[],hy.shadowRootOptions={mode:"open"},ikt?.({ReactiveElement:hy}),((Nme=Ez.reactiveElementVersions)!==null&&Nme!==void 0?Nme:Ez.reactiveElementVersions=[]).push("1.6.1")});function dE(r,e,t=r,n){var a,i,s,o;if(e===fy)return e;let c=n!==void 0?(a=t._$Co)===null||a===void 0?void 0:a[n]:t._$Cl,u=yP(e)?void 0:e._$litDirective$;return c?.constructor!==u&&((i=c?._$AO)===null||i===void 0||i.call(c,!1),u===void 0?c=void 0:(c=new u(r),c._$AT(r,t,n)),n!==void 0?((s=(o=t)._$Co)!==null&&s!==void 0?s:o._$Co=[])[n]=c:t._$Cl=c),c!==void 0&&(e=dE(r,c._$AS(r,e.values),c,n)),e}var Ome,Iz,uE,okt,Og,fkt,Kgn,lE,mP,yP,mkt,Ggn,fP,ckt,ukt,Sw,lkt,dkt,ykt,gkt,_e,Dr,fy,io,pkt,cE,Vgn,Pw,Lme,Rw,pE,qme,$gn,Fme,Wme,Ume,hkt,bkt,Mw=ce(()=>{d();p();Iz=window,uE=Iz.trustedTypes,okt=uE?uE.createPolicy("lit-html",{createHTML:r=>r}):void 0,Og=`lit$${(Math.random()+"").slice(9)}$`,fkt="?"+Og,Kgn=`<${fkt}>`,lE=document,mP=(r="")=>lE.createComment(r),yP=r=>r===null||typeof r!="object"&&typeof r!="function",mkt=Array.isArray,Ggn=r=>mkt(r)||typeof r?.[Symbol.iterator]=="function",fP=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ckt=/-->/g,ukt=/>/g,Sw=RegExp(`>|[ \f\r](?:([^\\s"'>=/]+)([ \f\r]*=[ \f\r]*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),hIt=/'/g,fIt=/"/g,vIt=/^(?:script|style|textarea|title)$/i,wIt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),xe=wIt(1),Dr=wIt(2),ly=Symbol.for("lit-noChange"),no=Symbol.for("lit-nothing"),mIt=new WeakMap,U6=j6.createTreeWalker(j6,129,null,!1),F1n=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=YS;for(let c=0;c"?(s=a??YS,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?ww:h[3]==='"'?fIt:hIt):s===fIt||s===hIt?s=ww:s===dIt||s===pIt?s=YS:(s=ww,a=void 0);let y=s===ww&&r[c+1].startsWith("/>")?" ":"";i+=s===YS?u+L1n:f>=0?(n.push(l),u.slice(0,f)+"$lit$"+u.slice(f)+kg+y):u+kg+(f===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[lIt!==void 0?lIt.createHTML(o):o,n]},xw=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=F1n(e,t);if(this.el=xw.createElement(u,n),U6.currentNode=this.el.content,t===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(a=U6.nextNode())!==null&&c.length0){a.textContent=H6?H6.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=no}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=z6(this,e,t,0),s=!QS(e)||e!==this._$AH&&e!==ly,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new _w(e.insertBefore(JS(),o),o,void 0,t??{})}return s._$AI(r),s}});var lme,dme,gt,_It,TIt=ce(()=>{d();p();rz();rz();Tw();Tw();gt=class extends uy{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=xIt(t,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 ly}};gt.finalized=!0,gt._$litElement$=!0,(lme=globalThis.litElementHydrateSupport)===null||lme===void 0||lme.call(globalThis,{LitElement:gt});_It=globalThis.litElementPolyfillSupport;_It?.({LitElement:gt});((dme=globalThis.litElementVersions)!==null&&dme!==void 0?dme:globalThis.litElementVersions=[]).push("3.2.2")});var EIt=ce(()=>{d();p();});var CIt=ce(()=>{d();p();rz();Tw();TIt();EIt()});var Qt,IIt=ce(()=>{d();p();Qt=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function ar(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):U1n(r,e)}var U1n,pme=ce(()=>{d();p();U1n=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function wn(r){return ar({...r,state:!0})}var kIt=ce(()=>{d();p();pme();});var Ew=ce(()=>{d();p();});var AIt=ce(()=>{d();p();Ew();});var SIt=ce(()=>{d();p();Ew();});var PIt=ce(()=>{d();p();Ew();});var RIt=ce(()=>{d();p();Ew();});var hme,ixa,fme=ce(()=>{d();p();Ew();ixa=((hme=window.HTMLSlotElement)===null||hme===void 0?void 0:hme.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var MIt=ce(()=>{d();p();Ew();fme();});var NIt=ce(()=>{d();p();IIt();pme();kIt();AIt();SIt();PIt();RIt();fme();MIt()});var BIt,DIt,az,OIt=ce(()=>{d();p();BIt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},DIt=r=>(...e)=>({_$litDirective$:r,values:e}),az=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var el,LIt=ce(()=>{d();p();Tw();OIt();el=DIt(class extends az{constructor(r){var e;if(super(r),r.type!==BIt.ATTRIBUTE||r.name!=="class"||((e=r.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(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return ly}})});var qIt=ce(()=>{d();p();LIt()});function mme(r,e){r.indexOf(e)===-1&&r.push(e)}var FIt=ce(()=>{d();p()});var XS,yme=ce(()=>{d();p();XS=(r,e,t)=>Math.min(Math.max(t,r),e)});var Ac,WIt=ce(()=>{d();p();Ac={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var cf,iz=ce(()=>{d();p();cf=r=>typeof r=="number"});var Nm,gme=ce(()=>{d();p();iz();Nm=r=>Array.isArray(r)&&!cf(r[0])});var UIt,HIt=ce(()=>{d();p();UIt=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function jIt(r,e){return Nm(r)?r[UIt(0,r.length,e)]:r}var zIt=ce(()=>{d();p();gme();HIt()});var sz,bme=ce(()=>{d();p();sz=(r,e,t)=>-t*r+t*e+r});var eP,Co,vme=ce(()=>{d();p();eP=()=>{},Co=r=>r});var Cw,oz=ce(()=>{d();p();Cw=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function wme(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=Cw(0,e,n);r.push(sz(t,1,a))}}function KIt(r){let e=[0];return wme(e,r-1),e}var VIt=ce(()=>{d();p();bme();oz()});function xme(r,e=KIt(r.length),t=Co){let n=r.length,a=n-e.length;return a>0&&wme(e,a),i=>{let s=0;for(;s{d();p();bme();vme();VIt();oz();zIt();yme()});var tP,$It=ce(()=>{d();p();iz();tP=r=>Array.isArray(r)&&cf(r[0])});var V6,YIt=ce(()=>{d();p();V6=r=>typeof r=="object"&&Boolean(r.createAnimation)});var Up,JIt=ce(()=>{d();p();Up=r=>typeof r=="function"});var rP,QIt=ce(()=>{d();p();rP=r=>typeof r=="string"});var Bm,ZIt=ce(()=>{d();p();Bm={ms:r=>r*1e3,s:r=>r/1e3}});function _me(r,e){return e?r*(1e3/e):0}var XIt=ce(()=>{d();p()});var Su=ce(()=>{d();p();FIt();yme();WIt();GIt();$It();YIt();gme();JIt();iz();QIt();vme();oz();ZIt();XIt()});function z1n(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=ekt(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>H1n&&++oz1n(i,0,1,r,t);return i=>i===0||i===1?i:ekt(a(i),e,n)}var ekt,H1n,j1n,tkt=ce(()=>{d();p();Su();ekt=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,H1n=1e-7,j1n=12});var Tme,rkt=ce(()=>{d();p();Su();Tme=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return XS(0,1,a/r)}});var nkt=ce(()=>{d();p();tkt();rkt()});function Eme(r){if(Up(r))return r;if(tP(r))return Iw(...r);if(akt[r])return akt[r];if(r.startsWith("steps")){let e=K1n.exec(r);if(e){let t=e[1].split(",");return Tme(parseFloat(t[0]),t[1].trim())}}return Co}var akt,K1n,ikt=ce(()=>{d();p();nkt();Su();akt={ease:Iw(.25,.1,.25,1),"ease-in":Iw(.42,0,1,1),"ease-in-out":Iw(.42,0,.58,1),"ease-out":Iw(0,0,.58,1)},K1n=/\((.*?)\)/});var kw,skt=ce(()=>{d();p();Su();ikt();kw=class{constructor(e,t=[0,1],{easing:n,duration:a=Ac.duration,delay:i=Ac.delay,endDelay:s=Ac.endDelay,repeat:o=Ac.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Co,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,f)=>{this.resolve=h,this.reject=f}),n=n||Ac.easing,V6(n)){let h=n.createAnimation(t);n=h.easing,t=h.keyframes||t,a=h.duration||a}this.repeat=o,this.easing=Nm(n)?Co:Eme(n),this.updateDuration(a);let l=xme(t,c,Nm(n)?n.map(Eme):Co);this.tick=h=>{var f;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(h-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,E=Math.floor(y),I=y%1;!I&&y>=1&&(I=1),I===1&&E--;let S=E%2;(u==="reverse"||u==="alternate"&&S||u==="alternate-reverse"&&!S)&&(I=1-I);let L=m>=this.totalDuration?1:Math.min(I,1),F=l(this.easing(L));e(F),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,F)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let 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}}});var Cme=ce(()=>{d();p();skt()});var V1n,cz,okt=ce(()=>{d();p();V1n=function(){},cz=function(){};g.env.NODE_ENV!=="production"&&(V1n=function(r,e){!r&&typeof console<"u"&&console.warn(e)},cz=function(r,e){if(!r)throw new Error(e)})});var nP,ckt=ce(()=>{d();p();nP=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var Ime=ce(()=>{d();p();ckt()});function uz(r){return kme.has(r)||kme.set(r,{transforms:[],values:new Map}),kme.get(r)}function ukt(r,e){return r.has(e)||r.set(e,new nP),r.get(e)}var kme,Ame=ce(()=>{d();p();Ime();kme=new WeakMap});var G1n,$1n,aP,lkt,Y1n,Dm,dz,lz,J1n,Q1n,pz,dkt,Z1n,X1n,G6=ce(()=>{d();p();Su();Ame();G1n=["","X","Y","Z"],$1n=["translate","scale","rotate","skew"],aP={x:"translateX",y:"translateY",z:"translateZ"},lkt={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},Y1n={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:lkt,scale:{syntax:"",initialValue:1,toDefaultUnit:Co},skew:lkt},Dm=new Map,dz=r=>`--motion-${r}`,lz=["x","y","z"];$1n.forEach(r=>{G1n.forEach(e=>{lz.push(r+e),Dm.set(dz(r+e),Y1n[r])})});J1n=(r,e)=>lz.indexOf(r)-lz.indexOf(e),Q1n=new Set(lz),pz=r=>Q1n.has(r),dkt=(r,e)=>{aP[e]&&(e=aP[e]);let{transforms:t}=uz(r);mme(t,e),r.style.transform=Z1n(t)},Z1n=r=>r.sort(J1n).reduce(X1n,"").trim(),X1n=(r,e)=>`${r} ${e}(var(${dz(e)}))`});function hkt(r){if(!pkt.has(r)){pkt.add(r);try{let{syntax:e,initialValue:t}=Dm.has(r)?Dm.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var iP,pkt,Sme=ce(()=>{d();p();G6();iP=r=>r.startsWith("--"),pkt=new Set});var Pme,fkt,Rme,Ag,Mme=ce(()=>{d();p();Pme=(r,e)=>document.createElement("div").animate(r,e),fkt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{Pme({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(Pme({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{Pme({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},Rme={},Ag={};for(let r in fkt)Ag[r]=()=>(Rme[r]===void 0&&(Rme[r]=fkt[r]()),Rme[r])});var egn,tgn,Nme,rgn,mkt=ce(()=>{d();p();Su();Mme();egn=.015,tgn=(r,e)=>{let t="",n=Math.round(e/egn);for(let a=0;aUp(r)?Ag.linearEasing()?`linear(${tgn(r,e)})`:Ac.easing:tP(r)?rgn(r):r,rgn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function ykt(r,e){for(let t=0;t{d();p();gkt=r=>Array.isArray(r)?r:[r]});function Aw(r){return aP[r]&&(r=aP[r]),pz(r)?dz(r):r}var hz=ce(()=>{d();p();G6()});var sP,vkt=ce(()=>{d();p();Sme();hz();G6();sP={get:(r,e)=>{e=Aw(e);let t=iP(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=Dm.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=Aw(e),iP(e)?r.style.setProperty(e,t):r.style[e]=t}}});function fz(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var Bme=ce(()=>{d();p()});function mz(r,e){var t;let n=e?.toDefaultUnit||Co,a=r[r.length-1];if(rP(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var Dme=ce(()=>{d();p();Su()});function ngn(){return window.__MOTION_DEV_TOOLS_RECORD}function wkt(r,e,t,n={},a){let i=ngn(),s=n.record!==!1&&i,o,{duration:c=Ac.duration,delay:u=Ac.delay,endDelay:l=Ac.endDelay,repeat:h=Ac.repeat,easing:f=Ac.easing,persist:m=!1,direction:y,offset:E,allowWebkitAcceleration:I=!1}=n,S=uz(r),L=pz(e),F=Ag.waapi();L&&dkt(r,e);let W=Aw(e),G=ukt(S.values,W),K=Dm.get(W);return fz(G.animation,!(V6(f)&&G.generator)&&n.record!==!1),()=>{let H=()=>{var q,T;return(T=(q=sP.get(r,W))!==null&&q!==void 0?q:K?.initialValue)!==null&&T!==void 0?T:0},V=ykt(gkt(t),H),J=mz(V,K);if(V6(f)){let q=f.createAnimation(V,e!=="opacity",H,W,G);f=q.easing,V=q.keyframes||V,c=q.duration||c}if(iP(W)&&(Ag.cssRegisterProperty()?hkt(W):F=!1),L&&!Ag.linearEasing()&&(Up(f)||Nm(f)&&f.some(Up))&&(F=!1),F){K&&(V=V.map(P=>cf(P)?K.toDefaultUnit(P):P)),V.length===1&&(!Ag.partialKeyframes()||s)&&V.unshift(H());let q={delay:Bm.ms(u),duration:Bm.ms(c),endDelay:Bm.ms(l),easing:Nm(f)?void 0:Nme(f,c),direction:y,iterations:h+1,fill:"both"};o=r.animate({[W]:V,offset:E,easing:Nm(f)?f.map(P=>Nme(P,c)):void 0},q),o.finished||(o.finished=new Promise((P,A)=>{o.onfinish=P,o.oncancel=A}));let T=V[V.length-1];o.finished.then(()=>{m||(sP.set(r,W,T),o.cancel())}).catch(eP),I||(o.playbackRate=1.000001)}else if(a&&L)V=V.map(q=>typeof q=="string"?parseFloat(q):q),V.length===1&&V.unshift(parseFloat(H())),o=new a(q=>{sP.set(r,W,J?J(q):q)},V,Object.assign(Object.assign({},n),{duration:c,easing:f}));else{let q=V[V.length-1];sP.set(r,W,K&&cf(q)?K.toDefaultUnit(q):q)}return s&&i(r,e,V,{duration:c,delay:u,easing:f,repeat:h,offset:E},"motion-one"),G.setAnimation(o),o}}var xkt=ce(()=>{d();p();Ame();Sme();Su();G6();mkt();Mme();bkt();vkt();hz();Bme();Dme()});var _kt,Tkt=ce(()=>{d();p();_kt=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function Ekt(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var Ckt=ce(()=>{d();p()});var agn,oP,ign,sgn,ogn,Ome=ce(()=>{d();p();Su();Bme();agn=r=>r(),oP=(r,e,t=Ac.duration)=>new Proxy({animations:r.map(agn).filter(Boolean),duration:t,options:e},sgn),ign=r=>r.animations[0],sgn={get:(r,e)=>{let t=ign(r);switch(e){case"duration":return r.duration;case"currentTime":return Bm.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(ogn)).catch(eP)),r.finished;case"stop":return()=>{r.animations.forEach(n=>fz(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=Bm.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function Ikt(r,e,t){return Up(r)?r(e,t):r}var kkt=ce(()=>{d();p();Su()});function Akt(r){return function(t,n,a={}){t=Ekt(t);let i=t.length;cz(Boolean(i),"No valid element provided."),cz(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{d();p();okt();xkt();Tkt();Ckt();Ome();kkt()});var Lme,Pkt=ce(()=>{d();p();Cme();Skt();Lme=Akt(kw)});function cP(r,e,t){let n=Math.max(e-cgn,0);return _me(t-r(n),e-n)}var cgn,qme=ce(()=>{d();p();Su();cgn=5});var Sg,Fme=ce(()=>{d();p();Sg={stiffness:100,damping:10,mass:1}});var Rkt,Mkt=ce(()=>{d();p();Fme();Rkt=(r=Sg.stiffness,e=Sg.damping,t=Sg.mass)=>e/(2*Math.sqrt(r*t))});function Nkt(r,e,t){return r=e||r>e&&t<=e}var Bkt=ce(()=>{d();p()});var Wme,Dkt=ce(()=>{d();p();Su();Fme();Mkt();Bkt();qme();Wme=({stiffness:r=Sg.stiffness,damping:e=Sg.damping,mass:t=Sg.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?Bm.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,h=Rkt(r,e,t),f;if(h<1){let m=l*Math.sqrt(1-h*h);f=y=>a-Math.exp(-h*l*y)*((-i+h*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else f=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=f(m);let y=m===0?i:cP(f,m,c.current),E=Math.abs(y)<=s,I=Math.abs(a-c.current)<=o;return c.done=E&&I,c.hasReachedTarget=Nkt(n,a,c.current),c}}});function Hme(r,e=Co){let t,n=Ume,a=r(0),i=[e(a.current)];for(;!a.done&&n{d();p();Su();Ume=10,ugn=1e4});var jme=ce(()=>{d();p();Dkt();Okt();qme()});function Lkt(r){return cf(r)&&!isNaN(r)}function zme(r){return rP(r)?parseFloat(r):r}function qkt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,Hme(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let h,f,m,y=0,E=Co,I=s.length;if(o){E=mz(s,u?Dm.get(Aw(u)):void 0);let S=s[I-1];if(m=zme(S),I>1&&s[0]!==null)f=zme(s[0]);else{let L=l?.generator;if(L){let{animation:F,generatorStartTime:W}=l,G=F?.startTime||W||0,K=F?.currentTime||performance.now()-G,H=L(K).current;f=H,y=cP(V=>L(V).current,K,H)}else c&&(f=zme(c()))}}if(Lkt(f)&&Lkt(m)){let S=a(f,m,y,u?.includes("scale"));h=Object.assign(Object.assign({},i(S,E)),{easing:"linear"}),l&&(l.generator=S,l.generatorStartTime=performance.now())}return h||(h={easing:"ease",duration:i(a(0,100)).overshootDuration}),h}}}}var Fkt=ce(()=>{d();p();jme();Su();Dme();G6();hz()});var $6,Wkt=ce(()=>{d();p();jme();Fkt();$6=qkt(Wme)});var Kme=ce(()=>{d();p();Pkt();Wkt();Ome()});function lgn(r,e={}){return oP([()=>{let t=new kw(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function Om(r,e,t){return(Up(r)?lgn:Lme)(r,e,t)}var Ukt=ce(()=>{d();p();Kme();Su();Cme()});var Hkt=ce(()=>{d();p();Kme();Ime();Ukt()});var tl,jkt=ce(()=>{d();p();Tw();tl=r=>r??no});var zkt=ce(()=>{d();p();jkt()});var lAt={};cr(lAt,{W3mAccountButton:()=>Z6,W3mConnectButton:()=>Dw,W3mCoreButton:()=>Rg,W3mModal:()=>_P,W3mNetworkSwitch:()=>Ow});function fgn(){var r;let e=(r=Mm.state.themeMode)!=null?r:"dark",t={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{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function mgn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function ygn(){let{themeVariables:r}=Mm.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function Jme(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+abn}function ibn(r,e){let t=Array.prototype.slice.call(uAt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var uAt,dgn,Kkt,pgn,hgn,Vkt,yz,or,ggn,bgn,vgn,gz,Y6,wgn,xgn,_gn,uP,Sw,Tgn,Egn,Cgn,Vme,lP,yr,Ign,kgn,Agn,Gkt,bz,Sgn,Pgn,Rgn,Mgn,Gme,Ngn,Bgn,Dgn,Ogn,$me,Lgn,qgn,Fgn,dP,Pw,Wgn,X6,Lw,Ugn,Hgn,$kt,jgn,zgn,Ykt,Kgn,Fe,Vgn,Ggn,$gn,Yme,pP,Ygn,Jgn,Qgn,Jkt,vz,Zgn,Xgn,ebn,wz,J6,tbn,rbn,nbn,Qkt,xz,abn,Zkt,dy,sbn,obn,cbn,ubn,hP,Rw,lbn,dbn,pbn,Xkt,_z,hbn,fbn,mbn,ybn,Qme,gbn,bbn,vbn,Zme,fP,wbn,xbn,_bn,eAt,Tz,Tbn,Ebn,Cbn,Pg,Lm,Ibn,kbn,Abn,Xme,mP,Sbn,Pbn,Rbn,tAt,Mbn,Nbn,rAt,e0e,Bbn,Dbn,nAt,t0e,Obn,Lbn,qbn,aAt,Fbn,Wbn,Ubn,r0e,Z6,Hbn,jbn,zbn,n0e,yP,Kbn,Vbn,Gbn,gP,Mw,rl,$bn,Ybn,Jbn,Qbn,a0e,Zbn,Xbn,evn,bP,Nw,tvn,rvn,nvn,i0e,vP,avn,ivn,svn,Ez,Dw,ovn,cvn,Q6,Rg,uvn,lvn,dvn,pvn,s0e,hvn,fvn,mvn,yvn,o0e,gvn,bvn,vvn,wvn,c0e,xvn,_vn,Tvn,iAt,_P,Evn,Cvn,Ivn,Cz,Ow,kvn,Avn,Svn,Pvn,u0e,Rvn,Mvn,Nvn,sAt,Iz,Bvn,Dvn,Ovn,Lvn,l0e,qvn,Fvn,Wvn,d0e,Uvn,Hvn,jvn,zvn,p0e,Kvn,Vvn,Gvn,oAt,kz,$vn,Yvn,Jvn,Qvn,h0e,Zvn,Xvn,e2n,t2n,f0e,r2n,n2n,a2n,m0e,wP,i2n,s2n,o2n,c2n,y0e,u2n,l2n,d2n,g0e,p2n,h2n,f2n,m2n,b0e,y2n,g2n,b2n,cAt,Az,v2n,w2n,x2n,xP,v0e,Bw,dAt=ce(()=>{d();p();CIt();NIt();Qfe();qIt();Tw();Hkt();zkt();uAt=mn(Yde(),1),dgn=Object.defineProperty,Kkt=Object.getOwnPropertySymbols,pgn=Object.prototype.hasOwnProperty,hgn=Object.prototype.propertyIsEnumerable,Vkt=(r,e,t)=>e in r?dgn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,yz=(r,e)=>{for(var t in e||(e={}))pgn.call(e,t)&&Vkt(r,t,e[t]);if(Kkt)for(var t of Kkt(e))hgn.call(e,t)&&Vkt(r,t,e[t]);return r};or={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=Mm.state;if(r){let t=yz(yz(yz(yz({},fgn()),mgn()),e),ygn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:pr`*,::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}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},ggn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,bgn=Object.defineProperty,vgn=Object.getOwnPropertyDescriptor,gz=(r,e,t,n)=>{for(var a=n>1?void 0:n?vgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bgn(e,t,a),a},Y6=class extends gt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return xe``}};Y6.styles=[or.globalCss,ggn],gz([ar()],Y6.prototype,"icon",2),gz([ar()],Y6.prototype,"label",2),gz([ar()],Y6.prototype,"onClick",2),Y6=gz([Qt("w3m-box-button")],Y6);wgn=pr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,xgn=Object.defineProperty,_gn=Object.getOwnPropertyDescriptor,uP=(r,e,t,n)=>{for(var a=n>1?void 0:n?_gn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&xgn(e,t,a),a},Sw=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return xe``}};Sw.styles=[or.globalCss,wgn],uP([ar()],Sw.prototype,"disabled",2),uP([ar()],Sw.prototype,"iconLeft",2),uP([ar()],Sw.prototype,"iconRight",2),uP([ar()],Sw.prototype,"onClick",2),Sw=uP([Qt("w3m-button")],Sw);Tgn=pr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,Egn=Object.defineProperty,Cgn=Object.getOwnPropertyDescriptor,Vme=(r,e,t,n)=>{for(var a=n>1?void 0:n?Cgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Egn(e,t,a),a},lP=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return xe``}};lP.styles=[or.globalCss,Tgn],Vme([ar()],lP.prototype,"disabled",2),Vme([ar()],lP.prototype,"variant",2),lP=Vme([Qt("w3m-button-big")],lP);yr={CROSS_ICON:Dr``,WALLET_CONNECT_LOGO:Dr``,WALLET_CONNECT_ICON:Dr``,WALLET_CONNECT_ICON_COLORED:Dr``,BACK_ICON:Dr``,COPY_ICON:Dr``,RETRY_ICON:Dr``,DESKTOP_ICON:Dr``,MOBILE_ICON:Dr``,ARROW_DOWN_ICON:Dr``,ARROW_UP_RIGHT_ICON:Dr``,ARROW_RIGHT_ICON:Dr``,QRCODE_ICON:Dr``,SCAN_ICON:Dr``,CHECKMARK_ICON:Dr``,HELP_ETH_IMG:Dr``,HELP_PAINTING_IMG:Dr``,HELP_CHART_IMG:Dr``,HELP_KEY_IMG:Dr``,HELP_USER_IMG:Dr``,HELP_LOCK_IMG:Dr``,HELP_COMPAS_IMG:Dr``,HELP_NOUN_IMG:Dr``,HELP_DAO_IMG:Dr``,SEARCH_ICON:Dr``,HELP_ICON:Dr``,WALLET_ICON:Dr``,NETWORK_PLACEHOLDER:Dr``,WALLET_PLACEHOLDER:Dr``,TOKEN_PLACEHOLDER:Dr``,ACCOUNT_COPY:Dr``,ACCOUNT_DISCONNECT:Dr``},Ign=pr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,kgn=Object.defineProperty,Agn=Object.getOwnPropertyDescriptor,Gkt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Agn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&kgn(e,t,a),a},bz=class extends gt{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=Br.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){Br.push("Help")}logoTemplate(){var r;let e=(r=Mm.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?xe``:yr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return xe`
${this.logoTemplate()}
`}};bz.styles=[or.globalCss,Ign],Gkt([wn()],bz.prototype,"isHelp",2),bz=Gkt([Qt("w3m-modal-backcard")],bz);Sgn=pr`main{padding:20px;padding-top:0;width:100%}`,Pgn=Object.defineProperty,Rgn=Object.getOwnPropertyDescriptor,Mgn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Rgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Pgn(e,t,a),a},Gme=class extends gt{render(){return xe`
`}};Gme.styles=[or.globalCss,Sgn],Gme=Mgn([Qt("w3m-modal-content")],Gme);Ngn=pr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,Bgn=Object.defineProperty,Dgn=Object.getOwnPropertyDescriptor,Ogn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Dgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Bgn(e,t,a),a},$me=class extends gt{render(){return xe`
`}};$me.styles=[or.globalCss,Ngn],$me=Ogn([Qt("w3m-modal-footer")],$me);Lgn=pr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,qgn=Object.defineProperty,Fgn=Object.getOwnPropertyDescriptor,dP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Fgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&qgn(e,t,a),a},Pw=class extends gt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return xe``}actionBtnTemplate(){return xe``}render(){let r={"w3m-border":this.border},e=Br.state.history.length>1,t=this.title?xe`${this.title}`:xe``;return xe`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};Pw.styles=[or.globalCss,Lgn],dP([ar()],Pw.prototype,"title",2),dP([ar()],Pw.prototype,"onAction",2),dP([ar()],Pw.prototype,"actionIcon",2),dP([ar()],Pw.prototype,"border",2),Pw=dP([Qt("w3m-modal-header")],Pw);Wgn={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00"},X6=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(X6||{}),Lw={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=Lw.getInjectedId("");return(t=(e=Lw.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},Ugn={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},Hgn=Object.defineProperty,$kt=Object.getOwnPropertySymbols,jgn=Object.prototype.hasOwnProperty,zgn=Object.prototype.propertyIsEnumerable,Ykt=(r,e,t)=>e in r?Hgn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Kgn=(r,e)=>{for(var t in e||(e={}))jgn.call(e,t)&&Ykt(r,t,e[t]);if($kt)for(var t of $kt(e))zgn.call(e,t)&&Ykt(r,t,e[t]);return r},Fe={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=yt.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return Lw.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=Lw.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?to.getImageUrl(n):""},getWalletName(r,e=!1){let t=Lw.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=Wgn[r],{projectId:n,chainImages:a}=Ds.state;return(e=a?.[r])!=null?e:n&&t?to.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=Ugn[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=Ds.state;return(t=i?.[r])!=null?t:a&&n?to.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=Fe.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,Sr.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){Sr.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=yt.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=Sr.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=Sr.formatNativeUrl(n.native,s,a)),Sr.openHref(o,"_self")}e?(Fe.setRecentWallet(r),i(e)):(await Bi.client().connectWalletConnect(s=>{i(s)},t?.id),Fe.setRecentWallet(r),ro.close())},async handleAndroidLinking(){Sr.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=yt.state;r?Sr.openHref(r,"_self"):(await Bi.client().connectWalletConnect(t=>{Sr.setWalletConnectAndroidDeepLink(t),Sr.openHref(t,"_self")},e?.id),ro.close())},async handleUriCopy(){let{standaloneUri:r}=yt.state;if(r)await navigator.clipboard.writeText(r);else{let e=Bi.client().walletConnectUri;await navigator.clipboard.writeText(e)}kc.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=yt.state;await Bi.client().connectConnector(r,t?.id),ro.close()}catch(t){console.error(t),e?e():kc.openToast(Fe.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=Ds.state;return(r=Sr.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=Ds.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return Bi.client().getConnectors().map(({id:r})=>Lw.getInjectedId(r)).map(r=>Fe.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=yt.state;localStorage.setItem(Fe.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(Fe.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=yt.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(Lw.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(Kgn({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){Sr.openHref(Fe.EXPLORER_WALLET_URL,"_blank")}},Vgn=pr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,Ggn=Object.defineProperty,$gn=Object.getOwnPropertyDescriptor,Yme=(r,e,t,n)=>{for(var a=n>1?void 0:n?$gn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ggn(e,t,a),a},pP=class extends gt{constructor(){super(),this.view=Br.state.view,this.prevView=Br.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=Br.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(Om(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),Om(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return Fe.getShadowRootElement(this,".w3m-router")}get contentEl(){return Fe.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return xe``;case"SelectNetwork":return xe``;case"InjectedConnector":return xe``;case"InstallConnector":return xe``;case"GetWallet":return xe``;case"DesktopConnector":return xe``;case"WalletExplorer":return xe``;case"Qrcode":return xe``;case"Help":return xe``;case"Account":return xe``;case"SwitchNetwork":return xe``;case"Connectors":return xe``;default:return xe`
Not Found
`}}async onChangeRoute(){await Om(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=Br.state.view}render(){return xe`
${this.viewTemplate()}
`}};pP.styles=[or.globalCss,Vgn],Yme([wn()],pP.prototype,"view",2),Yme([wn()],pP.prototype,"prevView",2),pP=Yme([Qt("w3m-modal-router")],pP);Ygn=pr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;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(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,Jgn=Object.defineProperty,Qgn=Object.getOwnPropertyDescriptor,Jkt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Qgn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Jgn(e,t,a),a},vz=class extends gt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=kc.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>kc.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),kc.closeToast()}render(){let{message:r,variant:e}=kc.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?xe`
${e==="success"?yr.CHECKMARK_ICON:null} ${e==="error"?yr.CROSS_ICON:null}${r}
`:null}};vz.styles=[or.globalCss,Ygn],Jkt([wn()],vz.prototype,"open",2),vz=Jkt([Qt("w3m-modal-toast")],vz);Zgn=pr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,Xgn=Object.defineProperty,ebn=Object.getOwnPropertyDescriptor,wz=(r,e,t,n)=>{for(var a=n>1?void 0:n?ebn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Xgn(e,t,a),a},J6=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return xe``}};J6.styles=[or.globalCss,Zgn],wz([ar()],J6.prototype,"onClick",2),wz([ar()],J6.prototype,"name",2),wz([ar()],J6.prototype,"chainId",2),J6=wz([Qt("w3m-network-button")],J6);tbn=pr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,rbn=Object.defineProperty,nbn=Object.getOwnPropertyDescriptor,Qkt=(r,e,t,n)=>{for(var a=n>1?void 0:n?nbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&rbn(e,t,a),a},xz=class extends gt{constructor(){super(...arguments),this.chainId=""}render(){let r=Fe.getChainIcon(this.chainId);return r?xe`
`:xe`${yr.NETWORK_PLACEHOLDER}`}};xz.styles=[or.globalCss,tbn],Qkt([ar()],xz.prototype,"chainId",2),xz=Qkt([Qt("w3m-network-image")],xz);abn=.1,Zkt=2.5,dy=7;sbn={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=ibn(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:E,y:I})=>{let S=(o.length-dy)*c*E,L=(o.length-dy)*c*I,F=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),h=o.length/2-l/2,f=o.length/2+l/2-1,m=[];o.forEach((E,I)=>{E.forEach((S,L)=>{if(o[I][L]&&!(Io.length-(dy+1)&&Lo.length-(dy+1))&&!(I>h&&Ih&&L{y[E]?y[E].push(I):y[E]=[I]}),Object.entries(y).map(([E,I])=>{let S=I.filter(L=>I.every(F=>!Jme(L,F,c)));return[Number(E),S]}).forEach(([E,I])=>{I.forEach(S=>{s.push(Dr``)})}),Object.entries(y).filter(([E,I])=>I.length>1).map(([E,I])=>{let S=I.filter(L=>I.some(F=>Jme(L,F,c)));return[Number(E),S]}).map(([E,I])=>{I.sort((L,F)=>LW.some(G=>Jme(L,G,c)));F?F.push(L):S.push([L])}return[E,S.map(L=>[L[0],L[L.length-1]])]}).forEach(([E,I])=>{I.forEach(([S,L])=>{s.push(Dr``)})}),s}},obn=pr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,cbn=Object.defineProperty,ubn=Object.getOwnPropertyDescriptor,hP=(r,e,t,n)=>{for(var a=n>1?void 0:n?ubn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&cbn(e,t,a),a},Rw=class extends gt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=Mm.state.themeMode)!=null?r:"light";return Dr`${sbn.generate(this.uri,this.size,this.size/4,e)}`}render(){return xe`
${this.walletId||this.logoSrc?xe``:yr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};Rw.styles=[or.globalCss,obn],hP([ar()],Rw.prototype,"uri",2),hP([ar({type:Number})],Rw.prototype,"size",2),hP([ar()],Rw.prototype,"logoSrc",2),hP([ar()],Rw.prototype,"walletId",2),Rw=hP([Qt("w3m-qrcode")],Rw);lbn=pr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-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:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,dbn=Object.defineProperty,pbn=Object.getOwnPropertyDescriptor,Xkt=(r,e,t,n)=>{for(var a=n>1?void 0:n?pbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dbn(e,t,a),a},_z=class extends gt{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=Sr.isMobile()?"Search mobile wallets":"Search desktop wallets";return xe`
${yr.SEARCH_ICON}${r}
`}};_z.styles=[or.globalCss,lbn],Xkt([ar()],_z.prototype,"onChange",2),_z=Xkt([Qt("w3m-search-input")],_z);hbn=pr`@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(--w3m-accent-color)}`,fbn=Object.defineProperty,mbn=Object.getOwnPropertyDescriptor,ybn=(r,e,t,n)=>{for(var a=n>1?void 0:n?mbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fbn(e,t,a),a},Qme=class extends gt{render(){return xe``}};Qme.styles=[or.globalCss,hbn],Qme=ybn([Qt("w3m-spinner")],Qme);gbn=pr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,bbn=Object.defineProperty,vbn=Object.getOwnPropertyDescriptor,Zme=(r,e,t,n)=>{for(var a=n>1?void 0:n?vbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bbn(e,t,a),a},fP=class extends gt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return xe``}};fP.styles=[or.globalCss,gbn],Zme([ar()],fP.prototype,"variant",2),Zme([ar()],fP.prototype,"color",2),fP=Zme([Qt("w3m-text")],fP);wbn=pr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,xbn=Object.defineProperty,_bn=Object.getOwnPropertyDescriptor,eAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?_bn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&xbn(e,t,a),a},Tz=class extends gt{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=Fe.getTokenIcon((r=this.symbol)!=null?r:"");return e?xe`
${this.id}
`:yr.TOKEN_PLACEHOLDER}};Tz.styles=[or.globalCss,wbn],eAt([ar()],Tz.prototype,"symbol",2),Tz=eAt([Qt("w3m-token-image")],Tz);Tbn=pr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,Ebn=Object.defineProperty,Cbn=Object.getOwnPropertyDescriptor,Pg=(r,e,t,n)=>{for(var a=n>1?void 0:n?Cbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ebn(e,t,a),a},Lm=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?xe`RECENT`:this.installed?xe`INSTALLED`:null}render(){var r;return xe``}};Lm.styles=[or.globalCss,Tbn],Pg([ar()],Lm.prototype,"onClick",2),Pg([ar()],Lm.prototype,"name",2),Pg([ar()],Lm.prototype,"walletId",2),Pg([ar()],Lm.prototype,"label",2),Pg([ar()],Lm.prototype,"src",2),Pg([ar()],Lm.prototype,"installed",2),Pg([ar()],Lm.prototype,"recent",2),Lm=Pg([Qt("w3m-wallet-button")],Lm);Ibn=pr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,kbn=Object.defineProperty,Abn=Object.getOwnPropertyDescriptor,Xme=(r,e,t,n)=>{for(var a=n>1?void 0:n?Abn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&kbn(e,t,a),a},mP=class extends gt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=Fe.getWalletId((r=this.walletId)!=null?r:""),t=Fe.getWalletId(e),n=this.src?this.src:Fe.getWalletIcon(t);return xe`${n.length?xe`
${this.id}
`:yr.WALLET_PLACEHOLDER}`}};mP.styles=[or.globalCss,Ibn],Xme([ar()],mP.prototype,"walletId",2),Xme([ar()],mP.prototype,"src",2),mP=Xme([Qt("w3m-wallet-image")],mP);Sbn=Object.defineProperty,Pbn=Object.getOwnPropertyDescriptor,Rbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Pbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Sbn(e,t,a),a},tAt=class extends gt{constructor(){super(),this.unwatchAccount=void 0,Va.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=Bi.client().watchAccount(r=>{let{address:e}=Va.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),Va.setAddress(r.address),Va.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=yt.state.chains)==null?void 0:e.find(n=>n.id===1);if(Ds.state.enableAccountView&&t)try{await Va.fetchProfile(Fe.preloadImage,r)}catch(n){console.error(n),kc.openToast(Fe.getErrorMessage(n),"error")}}async fetchBalance(r){if(Ds.state.enableAccountView)try{await Va.fetchBalance(r)}catch(e){console.error(e),kc.openToast(Fe.getErrorMessage(e),"error")}}};tAt=Rbn([Qt("w3m-account-context")],tAt);Mbn=Object.defineProperty,Nbn=Object.getOwnPropertyDescriptor,rAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Nbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Mbn(e,t,a),a},e0e=class extends gt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>Fe.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(Ds.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=yt.state,a=e?.join(",");await Promise.all([to.getPreviewWallets({page:1,entries:10,chains:a,device:Sr.isMobile()?"mobile":"desktop",version:n}),to.getRecomendedWallets()]),yt.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=to.state,o=(r=t?.map(u=>Fe.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else yt.setIsDataLoaded(!0)}async preloadCustomImages(){let r=Fe.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!yt.state.isStandalone){let r=Fe.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),kc.openToast("Failed preloading","error")}}};rAt([wn()],e0e.prototype,"preload",2),e0e=rAt([Qt("w3m-explorer-context")],e0e);Bbn=Object.defineProperty,Dbn=Object.getOwnPropertyDescriptor,nAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Dbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Bbn(e,t,a),a},t0e=class extends gt{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=yt.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=Bi.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(yt.setSelectedChain(t),this.activeChainId=t.id,Va.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(Ds.state.enableAccountView)try{await Va.fetchBalance()}catch(r){console.error(r),kc.openToast(Fe.getErrorMessage(r),"error")}}};nAt([wn()],t0e.prototype,"activeChainId",2),t0e=nAt([Qt("w3m-network-context")],t0e);Obn=Object.defineProperty,Lbn=Object.getOwnPropertyDescriptor,qbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Lbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Obn(e,t,a),a},aAt=class extends gt{constructor(){super(),this.unsubscribeTheme=void 0,or.setTheme(),this.unsubscribeTheme=Mm.subscribe(or.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};aAt=qbn([Qt("w3m-theme-context")],aAt);Fbn=pr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,Wbn=Object.defineProperty,Ubn=Object.getOwnPropertyDescriptor,r0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Ubn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Wbn(e,t,a),a},Z6=class extends gt{constructor(){super(),this.balance="hide",this.avatar="show",Fe.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=yt.state;r||ro.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return xe`${r?xe``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?xe`
`:xe`${this.accountTemplate()}`}};Z6.styles=[or.globalCss,Fbn],r0e([ar()],Z6.prototype,"balance",2),r0e([ar()],Z6.prototype,"avatar",2),Z6=r0e([Qt("w3m-account-button")],Z6);Hbn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,jbn=Object.defineProperty,zbn=Object.getOwnPropertyDescriptor,n0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?zbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&jbn(e,t,a),a},yP=class extends gt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=yt.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){Br.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=yt.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return xe``}};yP.styles=[or.globalCss,Hbn],n0e([wn()],yP.prototype,"chainId",2),n0e([wn()],yP.prototype,"label",2),yP=n0e([Qt("w3m-account-network-button")],yP);Kbn=pr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,Vbn=Object.defineProperty,Gbn=Object.getOwnPropertyDescriptor,gP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Gbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Vbn(e,t,a),a},Mw=class extends gt{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=Va.state.address,this.name=Va.state.profileName,this.loading=!!Va.state.profileLoading,this.unsubscribeAccount=Va.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return xe`${this.name?this.name:Fe.truncate((r=this.address)!=null?r:"")}`}};Mw.styles=[or.globalCss,Kbn],gP([wn()],Mw.prototype,"address",2),gP([wn()],Mw.prototype,"name",2),gP([wn()],Mw.prototype,"loading",2),gP([ar()],Mw.prototype,"variant",2),Mw=gP([Qt("w3m-address-text")],Mw);rl={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=Ds.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=Fe.getWalletName("");e=e.filter(({name:n})=>!Fe.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=yt.state;if(r)return[];let e=Bi.client().getConnectors();return!window.ethereum&&Sr.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==X6.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=Fe.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=yt.state;if(e)return r;let t=Bi.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},$bn=pr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,Ybn=Object.defineProperty,Jbn=Object.getOwnPropertyDescriptor,Qbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Jbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ybn(e,t,a),a},a0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}onGoToConnectors(){Br.push("Connectors")}onGoToGetWallet(){Br.push("GetWallet")}getConnectors(){let r=rl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==X6.metaMask)),r}render(){let{previewWallets:r}=to.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return xe`${e?xe`
${t.map(({image_url:a})=>xe``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?xe`Other`:null}
I don’t have a wallet
`}};a0e.styles=[or.globalCss,$bn],a0e=Qbn([Qt("w3m-android-wallet-selection")],a0e);Zbn=pr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,Xbn=Object.defineProperty,evn=Object.getOwnPropertyDescriptor,bP=(r,e,t,n)=>{for(var a=n>1?void 0:n?evn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Xbn(e,t,a),a},Nw=class extends gt{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=Va.state.address,this.avatar=Va.state.profileAvatar,this.loading=!!Va.state.profileLoading,this.unsubscribeAccount=Va.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?xe``:this.address?(Fe.generateAvatarColors(this.address),xe`
${this.loading?xe`
`:null}
`):null}};Nw.styles=[or.globalCss,Zbn],bP([wn()],Nw.prototype,"address",2),bP([wn()],Nw.prototype,"avatar",2),bP([wn()],Nw.prototype,"loading",2),bP([ar()],Nw.prototype,"size",2),Nw=bP([Qt("w3m-avatar")],Nw);tvn=pr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,rvn=Object.defineProperty,nvn=Object.getOwnPropertyDescriptor,i0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?nvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&rvn(e,t,a),a},vP=class extends gt{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=Va.state.balance)==null?void 0:r.symbol,this.amount=(e=Va.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=Va.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),xe`
${r} ${this.symbol}
`}};vP.styles=[or.globalCss,tvn],i0e([wn()],vP.prototype,"symbol",2),i0e([wn()],vP.prototype,"amount",2),vP=i0e([Qt("w3m-balance")],vP);avn=pr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,ivn=Object.defineProperty,svn=Object.getOwnPropertyDescriptor,Ez=(r,e,t,n)=>{for(var a=n>1?void 0:n?svn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ivn(e,t,a),a},Dw=class extends gt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,Fe.rejectStandaloneButtonComponent(),this.modalUnsub=ro.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?yr.WALLET_CONNECT_ICON:null}onClick(){Va.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=Ds.state,{chains:e,selectedChain:t}=yt.state,n=e?.length&&e.length>1;r||n&&!t?ro.open({route:"SelectNetwork"}):ro.open({route:"ConnectWallet"})}onDisconnect(){Bi.client().disconnect(),Va.resetAccount()}render(){return xe`${this.loading?xe`Connecting...`:xe`${this.iconTemplate()}${this.label}`}`}};Dw.styles=[or.globalCss,avn],Ez([wn()],Dw.prototype,"loading",2),Ez([ar()],Dw.prototype,"label",2),Ez([ar()],Dw.prototype,"icon",2),Dw=Ez([Qt("w3m-connect-button")],Dw);ovn=Object.defineProperty,cvn=Object.getOwnPropertyDescriptor,Q6=(r,e,t,n)=>{for(var a=n>1?void 0:n?cvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ovn(e,t,a),a},Rg=class extends gt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,Fe.rejectStandaloneButtonComponent(),this.isConnected=Va.state.isConnected,this.unsubscribeAccount=Va.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=Ds.state,e=tl(this.balance),t=tl(this.label),n=tl(this.icon),a=tl(this.avatar);return this.isConnected&&r?xe``:xe``}};Q6([wn()],Rg.prototype,"isConnected",2),Q6([ar()],Rg.prototype,"label",2),Q6([ar()],Rg.prototype,"icon",2),Q6([ar()],Rg.prototype,"avatar",2),Q6([ar()],Rg.prototype,"balance",2),Rg=Q6([Qt("w3m-core-button")],Rg);uvn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,lvn=Object.defineProperty,dvn=Object.getOwnPropertyDescriptor,pvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?dvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&lvn(e,t,a),a},s0e=class extends gt{onDesktopWallet(r){Br.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){Br.push("InjectedConnector")}onInstallConnector(){Br.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===X6.metaMask?this.onInjectedWallet():await Fe.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=Ds.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>xe``)}previewWalletsTemplate(){let r=rl.allowedExplorerListings(to.state.previewWallets);return r=rl.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>xe``)}connectorWalletsTemplate(){return rl.connectorWallets().map(({id:r,name:e,ready:t})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=rl.walletTemplatesWithRecent(s,a),c=rl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,h=[];l?h=u.slice(0,3):h=u;let f=!!h.length;return xe`
${yr.MOBILE_ICON}Mobile
${yr.SCAN_ICON}Scan with your wallet
${f?xe`
${yr.DESKTOP_ICON}Desktop
${h} ${l?xe``:null}
`:null}`}};s0e.styles=[or.globalCss,uvn],s0e=pvn([Qt("w3m-desktop-wallet-selection")],s0e);hvn=pr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,fvn=Object.defineProperty,mvn=Object.getOwnPropertyDescriptor,yvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?mvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fvn(e,t,a),a},o0e=class extends gt{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=Ds.state;return r??e?xe`
By connecting your wallet to this app, you agree to the app's
${r?xe`Terms of Service`:null} ${r&&e?"and":null} ${e?xe`Privacy Policy`:null}
`:null}};o0e.styles=[or.globalCss,hvn],o0e=yvn([Qt("w3m-legal-notice")],o0e);gvn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,bvn=Object.defineProperty,vvn=Object.getOwnPropertyDescriptor,wvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?vvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&bvn(e,t,a),a},c0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=Ds.state,e=rl.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>xe``)}previewWalletsTemplate(){let{previewWallets:r}=to.state,e=rl.walletsWithInjected(r);return e=rl.allowedExplorerListings(e),e=rl.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>xe``)}connectorWalletsTemplate(){let r=rl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==X6.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return xe``}render(){let{standaloneUri:r}=yt.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=rl.walletTemplatesWithRecent(s,a),c=rl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,h=[];l?h=u.slice(0,7):h=u;let f=h.slice(0,4),m=h.slice(4,8),y=!!h.length;return xe`${y?xe`
${f} ${m.length?xe`${m} ${l?xe``:null}`:null}
`:null}`}};c0e.styles=[or.globalCss,gvn],c0e=wvn([Qt("w3m-mobile-wallet-selection")],c0e);xvn=pr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-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(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,_vn=Object.defineProperty,Tvn=Object.getOwnPropertyDescriptor,iAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Tvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_vn(e,t,a),a},_P=class extends gt{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ro.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return Fe.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&ro.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await Om(this.containerEl,{y:0},{duration:0}).finished,Om(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),Om(this.containerEl,Fe.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:$6({velocity:.4})},y:{easing:$6({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([Om(this.containerEl,Fe.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:$6({velocity:0})},y:{easing:$6({mass:.5})}}).finished,Om(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?ro.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=yt.state;return r?null:xe``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return xe`${this.managedModalContextTemplate()}
${this.open?xe`
`:null}
`}};_P.styles=[or.globalCss,xvn],iAt([wn()],_P.prototype,"open",2),_P=iAt([Qt("w3m-modal")],_P);Evn=pr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,Cvn=Object.defineProperty,Ivn=Object.getOwnPropertyDescriptor,Cz=(r,e,t,n)=>{for(var a=n>1?void 0:n?Ivn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Cvn(e,t,a),a},Ow=class extends gt{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,Fe.rejectStandaloneButtonComponent();let{selectedChain:r}=yt.state;this.onSetChainData(r),this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=yt.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){ro.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=yt.state,t=e&&e.length>1;return xe`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};Ow.styles=[or.globalCss,Evn],Cz([wn()],Ow.prototype,"chainId",2),Cz([wn()],Ow.prototype,"label",2),Cz([wn()],Ow.prototype,"wrongNetwork",2),Ow=Cz([Qt("w3m-network-switch")],Ow);kvn=pr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,Avn=Object.defineProperty,Svn=Object.getOwnPropertyDescriptor,Pvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Svn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Avn(e,t,a),a},u0e=class extends gt{onClick(){Br.push("WalletExplorer")}render(){let{previewWallets:r}=to.state,e=Fe.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return xe``}};u0e.styles=[or.globalCss,kvn],u0e=Pvn([Qt("w3m-view-all-wallets-button")],u0e);Rvn=pr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,Mvn=Object.defineProperty,Nvn=Object.getOwnPropertyDescriptor,sAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Nvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Mvn(e,t,a),a},Iz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();try{let{standaloneUri:t}=yt.state;t?setTimeout(()=>this.uri=t,0):(await Bi.client().connectWalletConnect(n=>this.uri=n,(e=yt.state.selectedChain)==null?void 0:e.id),ro.close())}catch(t){console.error(t),kc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return xe`
${this.uri?xe``:xe``}
`}};Iz.styles=[or.globalCss,Rvn],sAt([wn()],Iz.prototype,"uri",2),Iz=sAt([Qt("w3m-walletconnect-qr")],Iz);Bvn=pr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,Dvn=Object.defineProperty,Ovn=Object.getOwnPropertyDescriptor,Lvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Ovn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Dvn(e,t,a),a},l0e=class extends gt{onDisconnect(){ro.close(),Bi.client().disconnect(),Va.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=Va.state.address)!=null?r:""),kc.openToast("Address copied","success")}render(){return xe`
Connected
`}};l0e.styles=[or.globalCss,Bvn],l0e=Lvn([Qt("w3m-account-view")],l0e);qvn=Object.defineProperty,Fvn=Object.getOwnPropertyDescriptor,Wvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Fvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&qvn(e,t,a),a},d0e=class extends gt{viewTemplate(){return Sr.isAndroid()?xe``:Sr.isMobile()?xe``:xe``}render(){return xe`${this.viewTemplate()}`}};d0e.styles=[or.globalCss],d0e=Wvn([Qt("w3m-connect-wallet-view")],d0e);Uvn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,Hvn=Object.defineProperty,jvn=Object.getOwnPropertyDescriptor,zvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?jvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Hvn(e,t,a),a},p0e=class extends gt{async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=rl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==X6.metaMask)),r.map(({name:e,id:t,ready:n})=>xe``)}render(){let r=this.connectorWalletsTemplate();return xe`
${r}
`}};p0e.styles=[or.globalCss,Uvn],p0e=zvn([Qt("w3m-connectors-view")],p0e);Kvn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,Vvn=Object.defineProperty,Gvn=Object.getOwnPropertyDescriptor,oAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Gvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Vvn(e,t,a),a},kz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=Sr.formatNativeUrl(e,r,n);Sr.openHref(a,"_self")}else if(t){let a=Sr.formatUniversalUrl(t,r,n);Sr.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();let{standaloneUri:t}=yt.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)Fe.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await Bi.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=yt.state.selectedChain)==null?void 0:e.id),Fe.setRecentWallet(c),ro.close()}catch{kc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){Br.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=Sr.formatUniversalUrl(r,this.uri,e);Sr.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=Fe.getWalletName(r);return xe`
${e?xe``:xe``}
${`Continue in ${a}...`}
Retry${t?xe`Go to Wallet`:xe`Connect with Mobile`}
`}};kz.styles=[or.globalCss,Kvn],oAt([wn()],kz.prototype,"uri",2),kz=oAt([Qt("w3m-desktop-connector-view")],kz);$vn=pr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,Yvn=Object.defineProperty,Jvn=Object.getOwnPropertyDescriptor,Qvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Jvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Yvn(e,t,a),a},h0e=class extends gt{onGet(r){Sr.openHref(r,"_blank")}render(){let{recomendedWallets:r}=to.state,e=Fe.getCustomWallets().slice(0,6),t=r.length,n=e.length;return xe`${t?r.map(({name:a,image_url:i,homepage:s})=>xe`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>xe`
${a}Get
`):null}
`}};h0e.styles=[or.globalCss,$vn],h0e=Qvn([Qt("w3m-get-wallet-view")],h0e);Zvn=pr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,Xvn=Object.defineProperty,e2n=Object.getOwnPropertyDescriptor,t2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?e2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Xvn(e,t,a),a},f0e=class extends gt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){Ds.state.enableExplorer?Br.push("GetWallet"):Fe.openWalletExplorerUrl()}onLearnMore(){Sr.openHref(this.learnUrl,"_blank")}render(){return xe`
${yr.HELP_CHART_IMG} ${yr.HELP_PAINTING_IMG} ${yr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${yr.HELP_KEY_IMG} ${yr.HELP_USER_IMG} ${yr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${yr.HELP_COMPAS_IMG} ${yr.HELP_NOUN_IMG} ${yr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};f0e.styles=[or.globalCss,Zvn],f0e=t2n([Qt("w3m-help-view")],f0e);r2n=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,n2n=Object.defineProperty,a2n=Object.getOwnPropertyDescriptor,m0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?a2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n2n(e,t,a),a},wP=class extends gt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=Bi.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await Fe.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=Fe.getWalletName(this.connector.name),e=Fe.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return xe`
${this.connecting?xe``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};wP.styles=[or.globalCss,r2n],m0e([wn()],wP.prototype,"connecting",2),m0e([wn()],wP.prototype,"error",2),wP=m0e([Qt("w3m-injected-connector-view")],wP);i2n=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,s2n=Object.defineProperty,o2n=Object.getOwnPropertyDescriptor,c2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?o2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&s2n(e,t,a),a},y0e=class extends gt{getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();Sr.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();Br.push("ConnectWallet"),kc.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return xe`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?xe`${r} Mobile`:null}
`}};y0e.styles=[or.globalCss,i2n],y0e=c2n([Qt("w3m-install-connector-view")],y0e);u2n=Object.defineProperty,l2n=Object.getOwnPropertyDescriptor,d2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?l2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&u2n(e,t,a),a},g0e=class extends gt{render(){return xe``}};g0e.styles=[or.globalCss],g0e=d2n([Qt("w3m-qrcode-view")],g0e);p2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,h2n=Object.defineProperty,f2n=Object.getOwnPropertyDescriptor,m2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?f2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&h2n(e,t,a),a},b0e=class extends gt{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=yt.state,{isConnected:n}=Va.state;n?e?.id===r.id?Br.replace("Account"):t===2?(await Bi.client().switchNetwork({chainId:r.id}),Br.replace("Account")):Br.push("SwitchNetwork",{SwitchNetwork:r}):(Br.push("ConnectWallet"),yt.setSelectedChain(r))}catch(e){console.error(e),kc.openToast(Fe.getErrorMessage(e),"error")}}render(){let{chains:r}=yt.state;return xe`
${r?.map(e=>xe`${e.name}`)}
`}};b0e.styles=[or.globalCss,p2n],b0e=m2n([Qt("w3m-select-network-view")],b0e);y2n=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,g2n=Object.defineProperty,b2n=Object.getOwnPropertyDescriptor,cAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?b2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&g2n(e,t,a),a},Az=class extends gt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await Bi.client().switchNetwork({chainId:r.id}),yt.setSelectedChain(r),Br.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return xe`
${this.error?null:xe``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};Az.styles=[or.globalCss,y2n],cAt([wn()],Az.prototype,"error",2),Az=cAt([Qt("w3m-switch-network-view")],Az);v2n=pr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,w2n=Object.defineProperty,x2n=Object.getOwnPropertyDescriptor,xP=(r,e,t,n)=>{for(var a=n>1?void 0:n?x2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&w2n(e,t,a),a},v0e=40,Bw=class extends gt{constructor(){super(...arguments),this.loading=!to.state.wallets.listings.length,this.firstFetch=!to.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Fe.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,to.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),to.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return Fe.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=to.state,{listings:t,total:n}=this.search?e:r;return n<=v0e||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=to.state,n=Fe.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>v0e&&a.lengthh.lg),l=n.map(({id:h})=>Fe.getWalletIcon(h));await Promise.all([...u.map(async h=>Fe.preloadImage(h)),...l.map(async h=>Fe.preloadImage(h)),Sr.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),kc.openToast(Fe.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){Sr.isMobile()?Fe.handleMobileLinking({links:t,name:r,id:e}):Br.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(Sr.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;Fe.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else Br.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){Fe.getWalletId("")===r.id?Br.push("InjectedConnector"):Br.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=to.state,{isStandalone:t}=yt.state,{listings:n}=this.search?e:r;n=rl.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!Sr.isMobile()?Fe.getExtensionWallets():[],o=Fe.getCustomWallets();i&&(s=s.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)),o=o.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return xe`
${a?null:[...Array(u)].map((h,f)=>xe`${o[f]?xe``:null} ${s[f]?xe``:null} ${n[f]?xe``:null}`)}
${c?xe`No results found`:null} ${!c&&this.loading?xe``:null}
`}};Bw.styles=[or.globalCss,v2n],xP([wn()],Bw.prototype,"loading",2),xP([wn()],Bw.prototype,"firstFetch",2),xP([wn()],Bw.prototype,"search",2),xP([wn()],Bw.prototype,"endReached",2),Bw=xP([Qt("w3m-wallet-explorer-view")],Bw)});var fAt={};cr(fAt,{Web3Modal:()=>w0e});var _2n,pAt,T2n,E2n,hAt,C2n,w0e,mAt=ce(()=>{d();p();Qfe();_2n=Object.defineProperty,pAt=Object.getOwnPropertySymbols,T2n=Object.prototype.hasOwnProperty,E2n=Object.prototype.propertyIsEnumerable,hAt=(r,e,t)=>e in r?_2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,C2n=(r,e)=>{for(var t in e||(e={}))T2n.call(e,t)&&hAt(r,t,e[t]);if(pAt)for(var t of pAt(e))E2n.call(e,t)&&hAt(r,t,e[t]);return r},w0e=class{constructor(e){this.openModal=ro.open,this.closeModal=ro.close,this.subscribeModal=ro.subscribe,this.setTheme=Mm.setThemeConfig,Mm.setThemeConfig(e),Ds.setConfig(C2n({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(dAt(),lAt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),yt.setIsUiLoaded(!0)}}}});var T0e=_(Mg=>{"use strict";d();p();Object.defineProperty(Mg,"__esModule",{value:!0});var I2n=Mu(),TP=ES(),k2n=Z8t();function A2n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var S2n="wc",P2n="ethereum_provider",R2n=`${S2n}@${2}:${P2n}:`,M2n="https://rpc.walletconnect.com/v1/",Sz=["eth_sendTransaction","personal_sign"],N2n=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Pz=["chainChanged","accountsChanged"],B2n=["message","disconnect","connect"],D2n=Object.defineProperty,O2n=Object.defineProperties,L2n=Object.getOwnPropertyDescriptors,yAt=Object.getOwnPropertySymbols,q2n=Object.prototype.hasOwnProperty,F2n=Object.prototype.propertyIsEnumerable,gAt=(r,e,t)=>e in r?D2n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,bAt=(r,e)=>{for(var t in e||(e={}))q2n.call(e,t)&&gAt(r,t,e[t]);if(yAt)for(var t of yAt(e))F2n.call(e,t)&&gAt(r,t,e[t]);return r},vAt=(r,e)=>O2n(r,L2n(e));function _0e(r){return Number(r[0].split(":")[1])}function x0e(r){return`0x${r.toString(16)}`}function W2n(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!TP.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||Sz,l=i||Pz,h={[_0e(c)]:o[_0e(c)]},f={chains:c,methods:u,events:l,rpcMap:h},m=i?.filter(S=>!Pz.includes(S)),y=n?.filter(S=>!Sz.includes(S));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:f};let E=m?.length&&y?.length||!t,I={chains:[...new Set(E?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:f,optional:I}}var eE=class{constructor(){this.events=new I2n.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=R2n,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new eE;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,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(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=W2n(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(vAt(bAt({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=TP.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:x0e(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",e=>{let{params:t}=e,{event:n}=t;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",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",x0e(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",vAt(bAt({},TP.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",x0e(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||Sz,events:e?.events||Pz,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=_0e(this.rpc.chains),this.signer=await k2n.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return A2n((mAt(),rt(fAt)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&TP.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&TP.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${M2n}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},U2n=eE;Mg.EthereumProvider=U2n,Mg.OPTIONAL_EVENTS=B2n,Mg.OPTIONAL_METHODS=N2n,Mg.REQUIRED_EVENTS=Pz,Mg.REQUIRED_METHODS=Sz,Mg.default=eE});var PAt=_(N0e=>{"use strict";d();p();Object.defineProperty(N0e,"__esModule",{value:!0});var yi=U0(),Qr=D1(),Ng=yu(),wAt=Ge(),EP=Hr(),CP=O_();pd();Pt();it();function H2n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var EAt="eip155",CAt="wagmi.requestedChains",A0e="wallet_addEthereumChain",E0e="last-used-chain-id",Di=new WeakMap,Mz=new WeakMap,qw=new WeakMap,C0e=new WeakSet,IAt=new WeakSet,I0e=new WeakSet,k0e=new WeakSet,IP=new WeakSet,S0e=new WeakSet,P0e=new WeakSet,R0e=new WeakSet,M0e=class extends CP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),yi._classPrivateMethodInitSpec(this,R0e),yi._classPrivateMethodInitSpec(this,P0e),yi._classPrivateMethodInitSpec(this,S0e),yi._classPrivateMethodInitSpec(this,IP),yi._classPrivateMethodInitSpec(this,k0e),yi._classPrivateMethodInitSpec(this,I0e),yi._classPrivateMethodInitSpec(this,IAt),yi._classPrivateMethodInitSpec(this,C0e),Ng._defineProperty(this,"id","walletConnect"),Ng._defineProperty(this,"name","WalletConnect"),Ng._defineProperty(this,"ready",!0),Qr._classPrivateFieldInitSpec(this,Di,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,Mz,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,qw,{writable:!0,value:void 0}),Ng._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:EP.getAddress(t[0])})}),Ng._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Qr._classPrivateFieldGet(this,qw).setItem(E0e,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),Ng._defineProperty(this,"onDisconnect",()=>{yi._classPrivateMethodGet(this,IP,Rz).call(this,[]),Qr._classPrivateFieldGet(this,qw).removeItem(E0e),this.emit("disconnect")}),Ng._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),Ng._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Qr._classPrivateFieldGet(this,Di)})}),Qr._classPrivateFieldSet(this,qw,e.options.storage),yi._classPrivateMethodGet(this,C0e,xAt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Qr._classPrivateFieldGet(this,qw).getItem(E0e),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await yi._classPrivateMethodGet(this,I0e,_At).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),yi._classPrivateMethodGet(this,IP,Rz).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=EP.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new wAt.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new CP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{yi._classPrivateMethodGet(this,k0e,TAt).call(this),yi._classPrivateMethodGet(this,IP,Rz).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return EP.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr._classPrivateFieldGet(this,Di)||await yi._classPrivateMethodGet(this,C0e,xAt).call(this),e&&await this.switchChain(e),!Qr._classPrivateFieldGet(this,Di))throw new Error("No provider found.");return Qr._classPrivateFieldGet(this,Di)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new wAt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await yi._classPrivateMethodGet(this,I0e,_At).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){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new CP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=yi._classPrivateMethodGet(this,P0e,AAt).call(this),i=yi._classPrivateMethodGet(this,R0e,SAt).call(this);if(!a.includes(e)&&i.includes(A0e)){await n.request({method:A0e,params:[{chainId:EP.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await yi._classPrivateMethodGet(this,S0e,kAt).call(this);o.push(e),yi._classPrivateMethodGet(this,IP,Rz).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:EP.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new CP.UserRejectedRequestError(n):new CP.SwitchChainError(n)}}async setupListeners(){!Qr._classPrivateFieldGet(this,Di)||(yi._classPrivateMethodGet(this,k0e,TAt).call(this),Qr._classPrivateFieldGet(this,Di).on("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Di).on("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Di).on("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Di).on("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Di).on("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Di).on("connect",this.onConnect))}};async function xAt(){return!Qr._classPrivateFieldGet(this,Mz)&&typeof window<"u"&&Qr._classPrivateFieldSet(this,Mz,yi._classPrivateMethodGet(this,IAt,j2n).call(this)),Qr._classPrivateFieldGet(this,Mz)}async function j2n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return H2n(T0e())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Qr._classPrivateFieldSet(this,Di,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function _At(){if(yi._classPrivateMethodGet(this,R0e,SAt).call(this).includes(A0e)||!this.options.isNewChainsStale)return!1;let e=await yi._classPrivateMethodGet(this,S0e,kAt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=yi._classPrivateMethodGet(this,P0e,AAt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function TAt(){!Qr._classPrivateFieldGet(this,Di)||(Qr._classPrivateFieldGet(this,Di).removeListener("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Di).removeListener("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Di).removeListener("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Di).removeListener("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Di).removeListener("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Di).removeListener("connect",this.onConnect))}function Rz(r){Qr._classPrivateFieldGet(this,qw).setItem(CAt,JSON.stringify(r))}async function kAt(){let r=await Qr._classPrivateFieldGet(this,qw).getItem(CAt);return r?JSON.parse(r):[]}function AAt(){return Qr._classPrivateFieldGet(this,Di)?Qr._classPrivateFieldGet(this,Di).session?.namespaces[EAt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function SAt(){return Qr._classPrivateFieldGet(this,Di)?Qr._classPrivateFieldGet(this,Di).session?.namespaces[EAt]?.methods??[]:[]}N0e.WalletConnectConnector=M0e});var NAt=_(U0e=>{"use strict";d();p();Object.defineProperty(U0e,"__esModule",{value:!0});var kP=U0(),D0e=yu(),jr=D1(),z2n=fI(),K2n=mI();pd();it();Pt();l2();Ge();var Ul=new WeakMap,tE=new WeakMap,V2n=new WeakMap,O0e=new WeakMap,L0e=new WeakMap,q0e=new WeakMap,F0e=new WeakMap,W0e=new WeakMap,RAt=new WeakSet,B0e=new WeakSet,Fw=class extends K2n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Fw.id,e),kP._classPrivateMethodInitSpec(this,B0e),kP._classPrivateMethodInitSpec(this,RAt),jr._classPrivateFieldInitSpec(this,Ul,{writable:!0,value:void 0}),jr._classPrivateFieldInitSpec(this,tE,{writable:!0,value:void 0}),D0e._defineProperty(this,"connector",void 0),jr._classPrivateFieldInitSpec(this,V2n,{writable:!0,value:t=>{if(t)throw t}}),jr._classPrivateFieldInitSpec(this,O0e,{writable:!0,value:t=>{if(jr._classPrivateFieldSet(this,tE,t.provider),!jr._classPrivateFieldGet(this,tE))throw new Error("WalletConnect provider not found after connecting.")}}),jr._classPrivateFieldInitSpec(this,L0e,{writable:!0,value:()=>{kP._classPrivateMethodGet(this,B0e,MAt).call(this)}}),jr._classPrivateFieldInitSpec(this,q0e,{writable:!0,value:async t=>{t.chain||t.account}}),jr._classPrivateFieldInitSpec(this,F0e,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),jr._classPrivateFieldInitSpec(this,W0e,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return PAt()});jr._classPrivateFieldSet(this,Ul,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new z2n.WagmiAdapter(jr._classPrivateFieldGet(this,Ul)),jr._classPrivateFieldSet(this,tE,await jr._classPrivateFieldGet(this,Ul).getProvider()),kP._classPrivateMethodGet(this,RAt,G2n).call(this)}return this.connector}};function G2n(){!jr._classPrivateFieldGet(this,Ul)||(kP._classPrivateMethodGet(this,B0e,MAt).call(this),jr._classPrivateFieldGet(this,Ul).on("connect",jr._classPrivateFieldGet(this,O0e)),jr._classPrivateFieldGet(this,Ul).on("disconnect",jr._classPrivateFieldGet(this,L0e)),jr._classPrivateFieldGet(this,Ul).on("change",jr._classPrivateFieldGet(this,q0e)),jr._classPrivateFieldGet(this,Ul).on("message",jr._classPrivateFieldGet(this,F0e)),jr._classPrivateFieldGet(this,tE)?.signer.client.on("session_request_sent",jr._classPrivateFieldGet(this,W0e)))}function MAt(){!jr._classPrivateFieldGet(this,Ul)||(jr._classPrivateFieldGet(this,Ul).removeListener("connect",jr._classPrivateFieldGet(this,O0e)),jr._classPrivateFieldGet(this,Ul).removeListener("disconnect",jr._classPrivateFieldGet(this,L0e)),jr._classPrivateFieldGet(this,Ul).removeListener("change",jr._classPrivateFieldGet(this,q0e)),jr._classPrivateFieldGet(this,Ul).removeListener("message",jr._classPrivateFieldGet(this,F0e)),jr._classPrivateFieldGet(this,tE)?.signer.client.removeListener("session_request_sent",jr._classPrivateFieldGet(this,W0e)))}D0e._defineProperty(Fw,"id","walletConnect");D0e._defineProperty(Fw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});U0e.WalletConnect=Fw});var zAt=_(Q0e=>{"use strict";d();p();Object.defineProperty(Q0e,"__esModule",{value:!0});var gi=G0(),Zr=X1(),Bg=Cu(),BAt=Ge(),AP=Hr(),SP=UT();bd();Pt();it();function $2n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var qAt="eip155",FAt="wagmi.requestedChains",V0e="wallet_addEthereumChain",H0e="last-used-chain-id",Oi=new WeakMap,Bz=new WeakMap,Ww=new WeakMap,j0e=new WeakSet,WAt=new WeakSet,z0e=new WeakSet,K0e=new WeakSet,PP=new WeakSet,G0e=new WeakSet,$0e=new WeakSet,Y0e=new WeakSet,J0e=class extends SP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),gi._classPrivateMethodInitSpec(this,Y0e),gi._classPrivateMethodInitSpec(this,$0e),gi._classPrivateMethodInitSpec(this,G0e),gi._classPrivateMethodInitSpec(this,PP),gi._classPrivateMethodInitSpec(this,K0e),gi._classPrivateMethodInitSpec(this,z0e),gi._classPrivateMethodInitSpec(this,WAt),gi._classPrivateMethodInitSpec(this,j0e),Bg._defineProperty(this,"id","walletConnect"),Bg._defineProperty(this,"name","WalletConnect"),Bg._defineProperty(this,"ready",!0),Zr._classPrivateFieldInitSpec(this,Oi,{writable:!0,value:void 0}),Zr._classPrivateFieldInitSpec(this,Bz,{writable:!0,value:void 0}),Zr._classPrivateFieldInitSpec(this,Ww,{writable:!0,value:void 0}),Bg._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:AP.getAddress(t[0])})}),Bg._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Zr._classPrivateFieldGet(this,Ww).setItem(H0e,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),Bg._defineProperty(this,"onDisconnect",()=>{gi._classPrivateMethodGet(this,PP,Nz).call(this,[]),Zr._classPrivateFieldGet(this,Ww).removeItem(H0e),this.emit("disconnect")}),Bg._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),Bg._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Zr._classPrivateFieldGet(this,Oi)})}),Zr._classPrivateFieldSet(this,Ww,e.options.storage),gi._classPrivateMethodGet(this,j0e,DAt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Zr._classPrivateFieldGet(this,Ww).getItem(H0e),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await gi._classPrivateMethodGet(this,z0e,OAt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),gi._classPrivateMethodGet(this,PP,Nz).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=AP.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new BAt.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new SP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{gi._classPrivateMethodGet(this,K0e,LAt).call(this),gi._classPrivateMethodGet(this,PP,Nz).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return AP.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Zr._classPrivateFieldGet(this,Oi)||await gi._classPrivateMethodGet(this,j0e,DAt).call(this),e&&await this.switchChain(e),!Zr._classPrivateFieldGet(this,Oi))throw new Error("No provider found.");return Zr._classPrivateFieldGet(this,Oi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new BAt.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await gi._classPrivateMethodGet(this,z0e,OAt).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){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new SP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=gi._classPrivateMethodGet(this,$0e,HAt).call(this),i=gi._classPrivateMethodGet(this,Y0e,jAt).call(this);if(!a.includes(e)&&i.includes(V0e)){await n.request({method:V0e,params:[{chainId:AP.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await gi._classPrivateMethodGet(this,G0e,UAt).call(this);o.push(e),gi._classPrivateMethodGet(this,PP,Nz).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:AP.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new SP.UserRejectedRequestError(n):new SP.SwitchChainError(n)}}async setupListeners(){!Zr._classPrivateFieldGet(this,Oi)||(gi._classPrivateMethodGet(this,K0e,LAt).call(this),Zr._classPrivateFieldGet(this,Oi).on("accountsChanged",this.onAccountsChanged),Zr._classPrivateFieldGet(this,Oi).on("chainChanged",this.onChainChanged),Zr._classPrivateFieldGet(this,Oi).on("disconnect",this.onDisconnect),Zr._classPrivateFieldGet(this,Oi).on("session_delete",this.onDisconnect),Zr._classPrivateFieldGet(this,Oi).on("display_uri",this.onDisplayUri),Zr._classPrivateFieldGet(this,Oi).on("connect",this.onConnect))}};async function DAt(){return!Zr._classPrivateFieldGet(this,Bz)&&typeof window<"u"&&Zr._classPrivateFieldSet(this,Bz,gi._classPrivateMethodGet(this,WAt,Y2n).call(this)),Zr._classPrivateFieldGet(this,Bz)}async function Y2n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return $2n(T0e())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Zr._classPrivateFieldSet(this,Oi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function OAt(){if(gi._classPrivateMethodGet(this,Y0e,jAt).call(this).includes(V0e)||!this.options.isNewChainsStale)return!1;let e=await gi._classPrivateMethodGet(this,G0e,UAt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=gi._classPrivateMethodGet(this,$0e,HAt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function LAt(){!Zr._classPrivateFieldGet(this,Oi)||(Zr._classPrivateFieldGet(this,Oi).removeListener("accountsChanged",this.onAccountsChanged),Zr._classPrivateFieldGet(this,Oi).removeListener("chainChanged",this.onChainChanged),Zr._classPrivateFieldGet(this,Oi).removeListener("disconnect",this.onDisconnect),Zr._classPrivateFieldGet(this,Oi).removeListener("session_delete",this.onDisconnect),Zr._classPrivateFieldGet(this,Oi).removeListener("display_uri",this.onDisplayUri),Zr._classPrivateFieldGet(this,Oi).removeListener("connect",this.onConnect))}function Nz(r){Zr._classPrivateFieldGet(this,Ww).setItem(FAt,JSON.stringify(r))}async function UAt(){let r=await Zr._classPrivateFieldGet(this,Ww).getItem(FAt);return r?JSON.parse(r):[]}function HAt(){return Zr._classPrivateFieldGet(this,Oi)?Zr._classPrivateFieldGet(this,Oi).session?.namespaces[qAt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function jAt(){return Zr._classPrivateFieldGet(this,Oi)?Zr._classPrivateFieldGet(this,Oi).session?.namespaces[qAt]?.methods??[]:[]}Q0e.WalletConnectConnector=J0e});var GAt=_(iye=>{"use strict";d();p();Object.defineProperty(iye,"__esModule",{value:!0});var RP=G0(),X0e=Cu(),zr=X1(),J2n=PA(),Q2n=RA();bd();it();Pt();U2();Ge();var Hl=new WeakMap,rE=new WeakMap,Z2n=new WeakMap,eye=new WeakMap,tye=new WeakMap,rye=new WeakMap,nye=new WeakMap,aye=new WeakMap,KAt=new WeakSet,Z0e=new WeakSet,Uw=class extends Q2n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Uw.id,e),RP._classPrivateMethodInitSpec(this,Z0e),RP._classPrivateMethodInitSpec(this,KAt),zr._classPrivateFieldInitSpec(this,Hl,{writable:!0,value:void 0}),zr._classPrivateFieldInitSpec(this,rE,{writable:!0,value:void 0}),X0e._defineProperty(this,"connector",void 0),zr._classPrivateFieldInitSpec(this,Z2n,{writable:!0,value:t=>{if(t)throw t}}),zr._classPrivateFieldInitSpec(this,eye,{writable:!0,value:t=>{if(zr._classPrivateFieldSet(this,rE,t.provider),!zr._classPrivateFieldGet(this,rE))throw new Error("WalletConnect provider not found after connecting.")}}),zr._classPrivateFieldInitSpec(this,tye,{writable:!0,value:()=>{RP._classPrivateMethodGet(this,Z0e,VAt).call(this)}}),zr._classPrivateFieldInitSpec(this,rye,{writable:!0,value:async t=>{t.chain||t.account}}),zr._classPrivateFieldInitSpec(this,nye,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),zr._classPrivateFieldInitSpec(this,aye,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return zAt()});zr._classPrivateFieldSet(this,Hl,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new J2n.WagmiAdapter(zr._classPrivateFieldGet(this,Hl)),zr._classPrivateFieldSet(this,rE,await zr._classPrivateFieldGet(this,Hl).getProvider()),RP._classPrivateMethodGet(this,KAt,X2n).call(this)}return this.connector}};function X2n(){!zr._classPrivateFieldGet(this,Hl)||(RP._classPrivateMethodGet(this,Z0e,VAt).call(this),zr._classPrivateFieldGet(this,Hl).on("connect",zr._classPrivateFieldGet(this,eye)),zr._classPrivateFieldGet(this,Hl).on("disconnect",zr._classPrivateFieldGet(this,tye)),zr._classPrivateFieldGet(this,Hl).on("change",zr._classPrivateFieldGet(this,rye)),zr._classPrivateFieldGet(this,Hl).on("message",zr._classPrivateFieldGet(this,nye)),zr._classPrivateFieldGet(this,rE)?.signer.client.on("session_request_sent",zr._classPrivateFieldGet(this,aye)))}function VAt(){!zr._classPrivateFieldGet(this,Hl)||(zr._classPrivateFieldGet(this,Hl).removeListener("connect",zr._classPrivateFieldGet(this,eye)),zr._classPrivateFieldGet(this,Hl).removeListener("disconnect",zr._classPrivateFieldGet(this,tye)),zr._classPrivateFieldGet(this,Hl).removeListener("change",zr._classPrivateFieldGet(this,rye)),zr._classPrivateFieldGet(this,Hl).removeListener("message",zr._classPrivateFieldGet(this,nye)),zr._classPrivateFieldGet(this,rE)?.signer.client.removeListener("session_request_sent",zr._classPrivateFieldGet(this,aye)))}X0e._defineProperty(Uw,"id","walletConnect");X0e._defineProperty(Uw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});iye.WalletConnect=Uw});var $At=_((f8a,sye)=>{"use strict";d();p();g.env.NODE_ENV==="production"?sye.exports=NAt():sye.exports=GAt()});d();p();var QAt=mn(J4e()),ZAt=mn(v8e()),XAt=mn(Ypt()),cye=mn(gn()),pye=mn(awt()),uye=mn(owt()),hye=mn(pwt()),fye=mn(KTt()),mye=mn($At()),lye=mn(Ge()),ewn="339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3",twn="145769e410f16970a79ff77b2d89a1e0",YAt="/",JAt="#",Dg=(r,e)=>lye.BigNumber.isBigNumber(e)||typeof e=="object"&&e!==null&&e.type==="BigNumber"&&"hex"in e?lye.BigNumber.from(e).toString():e,rwn=[fye.MetaMask,hye.InjectedWallet,mye.WalletConnect,pye.CoinbaseWallet],oye="__TW__",py=class{constructor(e){this.name=e}getItem(e){return new Promise(t=>{t(window.localStorage.getItem(`${oye}/${this.name}/${e}`))})}setItem(e,t){return new Promise((n,a)=>{try{window.localStorage.setItem(`${oye}/${this.name}/${e}`,t),n()}catch(i){a(i)}})}removeItem(e){return new Promise(t=>{window.localStorage.removeItem(`${oye}/${this.name}/${e}`),t()})}},nwn=window,Dz=new py("coordinator"),dye=class{constructor(){this.walletMap=new Map}updateSDKSigner(e){this.activeSDK&&(e?this.activeSDK.updateSignerOrProvider(e):this.initializedChain&&this.activeSDK.updateSignerOrProvider(this.initializedChain)),e&&(this.auth?this.auth.updateWallet(new uye.EthersWallet(e)):this.auth=new QAt.ThirdwebAuth(new uye.EthersWallet(e),"example.com"))}initialize(e,t){this.initializedChain=e,console.debug("thirdwebSDK initialization:",e,t);let n=JSON.parse(t),a=n?.storage&&n?.storage?.ipfsGatewayUrl?new cye.ThirdwebStorage({gatewayUrls:{"ipfs://":[n.storage.ipfsGatewayUrl]}}):new cye.ThirdwebStorage;n.thirdwebApiKey=n.thirdwebApiKey||ewn,this.activeSDK=new XAt.ThirdwebSDK(e,n,a);for(let i of rwn){let s;switch(i.id){case"injected":s=new hye.InjectedWallet({dappMetadata:{name:n.wallet?.appName||"thirdweb powered dApp",url:n.wallet?.appUrl||""},walletStorage:new py(i.id),coordinatorStorage:Dz,connectorStorage:new py(i.id+"_connector")});break;case"metamask":s=new fye.MetaMask({dappMetadata:{name:n.wallet?.appName||"thirdweb powered dApp",url:n.wallet?.appUrl||""},walletStorage:new py(i.id),coordinatorStorage:Dz,connectorStorage:new py(i.id+"_connector")});break;case"walletConnect":s=new mye.WalletConnect({dappMetadata:{name:n.wallet?.appName||"thirdweb powered dApp",url:n.wallet?.appUrl||""},walletStorage:new py(i.id),coordinatorStorage:Dz,projectId:twn});break;case"coinbaseWallet":s=new pye.CoinbaseWallet({dappMetadata:{name:n.wallet?.appName||"thirdweb powered dApp",url:n.wallet?.appUrl||""},walletStorage:new py(i.id),coordinatorStorage:Dz});break}s&&(s.on("connect",async()=>this.updateSDKSigner(await s.getSigner())),s.on("change",async()=>this.updateSDKSigner(await s.getSigner())),s.on("disconnect",()=>this.updateSDKSigner()),this.walletMap.set(i.id,s))}}async connect(e="injected",t){if(!this.activeSDK)throw new Error("SDK not initialized");t===0&&(t=void 0);let n=this.walletMap.get(e);if(n)return console.log("connecting wallet",e,t),console.log("wallet info",n),await n.connect({chainId:t}),this.activeWallet=n,this.updateSDKSigner(await n.getSigner()),await this.activeSDK.wallet.getAddress();throw new Error("Invalid Wallet")}async disconnect(){this.activeWallet&&(await this.activeWallet.disconnect(),this.activeWallet=void 0,this.updateSDKSigner())}async switchNetwork(e){if(e&&this.activeWallet&&"switchChain"in this.activeWallet)await this.activeWallet.switchChain(e),this.updateSDKSigner(await this.activeWallet.getSigner());else throw new Error("Error Switching Network")}async invoke(e,t){if(!this.activeSDK)throw new Error("SDK not initialized");let n=e.split(YAt),a=n[0].split(JAt),i=a[0],o=JSON.parse(t).arguments.map(c=>{try{return typeof c=="string"&&(c.startsWith("{")||c.startsWith("["))?JSON.parse(c):c}catch{return c}});if(console.debug("thirdwebSDK call:",e,o),i.startsWith("sdk")){let c;if(a.length>1&&(c=a[1]),c&&n.length===2){let u=await this.activeSDK[c][n[1]](...o);return JSON.stringify({result:u},Dg)}else if(n.length===2){let u=await this.activeSDK[n[1]](...o);return JSON.stringify({result:u},Dg)}else throw new Error("Invalid Route")}if(i.startsWith("auth")){if(!this.auth)throw new Error("You need to connect a wallet to use auth!");let c=await this.auth.login({domain:o[0]});return JSON.stringify({result:c})}if(i.startsWith("0x")){let c;if(a.length>1)try{c=JSON.parse(a[1])}catch{c=a[1]}let u=c?await this.activeSDK.getContract(i,c):await this.activeSDK.getContract(i);if(n.length===2){let l=await u[n[1]](...o);return JSON.stringify({result:l},Dg)}else if(n.length===3){let l=await u[n[1]][n[2]](...o);return JSON.stringify({result:l},Dg)}else if(n.length===4){let l=await u[n[1]][n[2]][n[3]](...o);return JSON.stringify({result:l},Dg)}else throw new Error("Invalid Route")}}async invokeListener(e,t,n,a,i){if(!this.activeSDK)throw new Error("SDK not initialized");let s=t.split(YAt),o=s[0].split(JAt),c=o[0],l=JSON.parse(n).arguments.map(h=>{try{return typeof h=="string"&&(h.startsWith("{")||h.startsWith("["))?JSON.parse(h):h}catch{return h}});if(console.debug("thirdwebSDK invoke listener:",e,t,l,a),c.startsWith("0x")){let h;if(o.length>1)try{h=JSON.parse(o[1])}catch{h=o[1]}let f=h?await this.activeSDK.getContract(c,h):await this.activeSDK.getContract(c);if(s.length===2)await f[s[1]](...l,m=>i(a,e,JSON.stringify(m,Dg)));else if(s.length===3)await f[s[1]][s[2]](...l,m=>i(a,e,JSON.stringify(m,Dg)));else if(s.length===4)await f[s[1]][s[2]][s[3]](...l,m=>i(a,e,JSON.stringify(m,Dg)));else throw new Error("Invalid Route")}}async fundWallet(e){if(!this.activeSDK)throw new Error("SDK not initialized");let{appId:t,...n}=JSON.parse(e);return await new ZAt.CoinbasePayIntegration({appId:t}).fundWallet(n)}};nwn.bridge=new dye;})(); +\f\r"'\`<>=]|("|')|))|$)`,"g"),lkt=/'/g,dkt=/"/g,ykt=/^(?:script|style|textarea|title)$/i,gkt=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),_e=gkt(1),Dr=gkt(2),fy=Symbol.for("lit-noChange"),io=Symbol.for("lit-nothing"),pkt=new WeakMap,cE=lE.createTreeWalker(lE,129,null,!1),Vgn=(r,e)=>{let t=r.length-1,n=[],a,i=e===2?"":"",s=fP;for(let c=0;c"?(s=a??fP,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,l=h[1],s=h[3]===void 0?Sw:h[3]==='"'?dkt:lkt):s===dkt||s===lkt?s=Sw:s===ckt||s===ukt?s=fP:(s=Sw,a=void 0);let y=s===Sw&&r[c+1].startsWith("/>")?" ":"";i+=s===fP?u+Kgn:f>=0?(n.push(l),u.slice(0,f)+"$lit$"+u.slice(f)+Og+y):u+Og+(f===-2?(n.push(void 0),c):y)}let o=i+(r[t]||"")+(e===2?"":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[okt!==void 0?okt.createHTML(o):o,n]},Pw=class{constructor({strings:e,_$litType$:t},n){let a;this.parts=[];let i=0,s=0,o=e.length-1,c=this.parts,[u,l]=Vgn(e,t);if(this.el=Pw.createElement(u,n),cE.currentNode=this.el.content,t===2){let h=this.el.content,f=h.firstChild;f.remove(),h.append(...f.childNodes)}for(;(a=cE.nextNode())!==null&&c.length0){a.textContent=uE?uE.emptyScript:"";for(let m=0;m2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=io}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,n,a){let i=this.strings,s=!1;if(i===void 0)e=dE(this,e,t,0),s=!yP(e)||e!==this._$AH&&e!==fy,s&&(this._$AH=e);else{let o=e,c,u;for(e=i[0],c=0;c{var n,a;let i=(n=t?.renderBefore)!==null&&n!==void 0?n:e,s=i._$litPart$;if(s===void 0){let o=(a=t?.renderBefore)!==null&&a!==void 0?a:null;i._$litPart$=s=new Rw(e.insertBefore(mP(),o),o,void 0,t??{})}return s._$AI(r),s}});var Hme,jme,gt,vkt,wkt=ce(()=>{d();p();Cz();Cz();Mw();Mw();gt=class extends hy{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;let n=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=n.firstChild),n}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=bkt(t,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 fy}};gt.finalized=!0,gt._$litElement$=!0,(Hme=globalThis.litElementHydrateSupport)===null||Hme===void 0||Hme.call(globalThis,{LitElement:gt});vkt=globalThis.litElementPolyfillSupport;vkt?.({LitElement:gt});((jme=globalThis.litElementVersions)!==null&&jme!==void 0?jme:globalThis.litElementVersions=[]).push("3.2.2")});var _kt=ce(()=>{d();p();});var xkt=ce(()=>{d();p();Cz();Mw();wkt();_kt()});var Qt,Tkt=ce(()=>{d();p();Qt=r=>e=>typeof e=="function"?((t,n)=>(customElements.define(t,n),n))(r,e):((t,n)=>{let{kind:a,elements:i}=n;return{kind:a,elements:i,finisher(s){customElements.define(t,s)}}})(r,e)});function ar(r){return(e,t)=>t!==void 0?((n,a,i)=>{a.constructor.createProperty(i,n)})(r,e,t):Ygn(r,e)}var Ygn,zme=ce(()=>{d();p();Ygn=(r,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(t){t.createProperty(e.key,r)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(t){t.createProperty(e.key,r)}}});function wn(r){return ar({...r,state:!0})}var Ekt=ce(()=>{d();p();zme();});var Nw=ce(()=>{d();p();});var Ckt=ce(()=>{d();p();Nw();});var Ikt=ce(()=>{d();p();Nw();});var kkt=ce(()=>{d();p();Nw();});var Akt=ce(()=>{d();p();Nw();});var Kme,kxa,Gme=ce(()=>{d();p();Nw();kxa=((Kme=window.HTMLSlotElement)===null||Kme===void 0?void 0:Kme.prototype.assignedElements)!=null?(r,e)=>r.assignedElements(e):(r,e)=>r.assignedNodes(e).filter(t=>t.nodeType===Node.ELEMENT_NODE)});var Skt=ce(()=>{d();p();Nw();Gme();});var Pkt=ce(()=>{d();p();Tkt();zme();Ekt();Ckt();Ikt();kkt();Akt();Gme();Skt()});var Rkt,Mkt,kz,Nkt=ce(()=>{d();p();Rkt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Mkt=r=>(...e)=>({_$litDirective$:r,values:e}),kz=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}});var al,Bkt=ce(()=>{d();p();Mw();Nkt();al=Mkt(class extends kz{constructor(r){var e;if(super(r),r.type!==Rkt.ATTRIBUTE||r.name!=="class"||((e=r.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(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){var t,n;if(this.nt===void 0){this.nt=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(i=>i!=="")));for(let i in e)e[i]&&!(!((t=this.st)===null||t===void 0)&&t.has(i))&&this.nt.add(i);return this.render(e)}let a=r.element.classList;this.nt.forEach(i=>{i in e||(a.remove(i),this.nt.delete(i))});for(let i in e){let s=!!e[i];s===this.nt.has(i)||((n=this.st)===null||n===void 0?void 0:n.has(i))||(s?(a.add(i),this.nt.add(i)):(a.remove(i),this.nt.delete(i)))}return fy}})});var Dkt=ce(()=>{d();p();Bkt()});function Vme(r,e){r.indexOf(e)===-1&&r.push(e)}var Okt=ce(()=>{d();p()});var bP,$me=ce(()=>{d();p();bP=(r,e,t)=>Math.min(Math.max(t,r),e)});var Mc,Lkt=ce(()=>{d();p();Mc={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}});var lf,Az=ce(()=>{d();p();lf=r=>typeof r=="number"});var Fm,Yme=ce(()=>{d();p();Az();Fm=r=>Array.isArray(r)&&!lf(r[0])});var qkt,Fkt=ce(()=>{d();p();qkt=(r,e,t)=>{let n=e-r;return((t-r)%n+n)%n+r}});function Wkt(r,e){return Fm(r)?r[qkt(0,r.length,e)]:r}var Ukt=ce(()=>{d();p();Yme();Fkt()});var Sz,Jme=ce(()=>{d();p();Sz=(r,e,t)=>-t*r+t*e+r});var vP,ko,Qme=ce(()=>{d();p();vP=()=>{},ko=r=>r});var Bw,Pz=ce(()=>{d();p();Bw=(r,e,t)=>e-r===0?1:(t-r)/(e-r)});function Zme(r,e){let t=r[r.length-1];for(let n=1;n<=e;n++){let a=Bw(0,e,n);r.push(Sz(t,1,a))}}function Hkt(r){let e=[0];return Zme(e,r-1),e}var jkt=ce(()=>{d();p();Jme();Pz()});function Xme(r,e=Hkt(r.length),t=ko){let n=r.length,a=n-e.length;return a>0&&Zme(e,a),i=>{let s=0;for(;s{d();p();Jme();Qme();jkt();Pz();Ukt();$me()});var wP,Kkt=ce(()=>{d();p();Az();wP=r=>Array.isArray(r)&&lf(r[0])});var hE,Gkt=ce(()=>{d();p();hE=r=>typeof r=="object"&&Boolean(r.createAnimation)});var jp,Vkt=ce(()=>{d();p();jp=r=>typeof r=="function"});var _P,$kt=ce(()=>{d();p();_P=r=>typeof r=="string"});var Wm,Ykt=ce(()=>{d();p();Wm={ms:r=>r*1e3,s:r=>r/1e3}});function e0e(r,e){return e?r*(1e3/e):0}var Jkt=ce(()=>{d();p()});var Ru=ce(()=>{d();p();Okt();$me();Lkt();zkt();Kkt();Gkt();Yme();Vkt();Az();$kt();Qme();Pz();Ykt();Jkt()});function Zgn(r,e,t,n,a){let i,s,o=0;do s=e+(t-e)/2,i=Qkt(s,n,a)-r,i>0?t=s:e=s;while(Math.abs(i)>Jgn&&++oZgn(i,0,1,r,t);return i=>i===0||i===1?i:Qkt(a(i),e,n)}var Qkt,Jgn,Qgn,Zkt=ce(()=>{d();p();Ru();Qkt=(r,e,t)=>(((1-3*t+3*e)*r+(3*t-6*e))*r+3*e)*r,Jgn=1e-7,Qgn=12});var t0e,Xkt=ce(()=>{d();p();Ru();t0e=(r,e="end")=>t=>{t=e==="end"?Math.min(t,.999):Math.max(t,.001);let n=t*r,a=e==="end"?Math.floor(n):Math.ceil(n);return bP(0,1,a/r)}});var eAt=ce(()=>{d();p();Zkt();Xkt()});function r0e(r){if(jp(r))return r;if(wP(r))return Dw(...r);if(tAt[r])return tAt[r];if(r.startsWith("steps")){let e=Xgn.exec(r);if(e){let t=e[1].split(",");return t0e(parseFloat(t[0]),t[1].trim())}}return ko}var tAt,Xgn,rAt=ce(()=>{d();p();eAt();Ru();tAt={ease:Dw(.25,.1,.25,1),"ease-in":Dw(.42,0,1,1),"ease-in-out":Dw(.42,0,.58,1),"ease-out":Dw(0,0,.58,1)},Xgn=/\((.*?)\)/});var Ow,nAt=ce(()=>{d();p();Ru();rAt();Ow=class{constructor(e,t=[0,1],{easing:n,duration:a=Mc.duration,delay:i=Mc.delay,endDelay:s=Mc.endDelay,repeat:o=Mc.repeat,offset:c,direction:u="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ko,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((h,f)=>{this.resolve=h,this.reject=f}),n=n||Mc.easing,hE(n)){let h=n.createAnimation(t);n=h.easing,t=h.keyframes||t,a=h.duration||a}this.repeat=o,this.easing=Fm(n)?ko:r0e(n),this.updateDuration(a);let l=Xme(t,c,Fm(n)?n.map(r0e):ko);this.tick=h=>{var f;i=i;let m=0;this.pauseTime!==void 0?m=this.pauseTime:m=(h-this.startTime)*this.rate,this.t=m,m/=1e3,m=Math.max(m-i,0),this.playState==="finished"&&this.pauseTime===void 0&&(m=this.totalDuration);let y=m/this.duration,E=Math.floor(y),I=y%1;!I&&y>=1&&(I=1),I===1&&E--;let S=E%2;(u==="reverse"||u==="alternate"&&S||u==="alternate-reverse"&&!S)&&(I=1-I);let L=m>=this.totalDuration?1:Math.min(I,1),F=l(this.easing(L));e(F),this.pauseTime===void 0&&(this.playState==="finished"||m>=this.totalDuration+s)?(this.playState="finished",(f=this.resolve)===null||f===void 0||f.call(this,F)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){let 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}}});var n0e=ce(()=>{d();p();nAt()});var ebn,Rz,aAt=ce(()=>{d();p();ebn=function(){},Rz=function(){};g.env.NODE_ENV!=="production"&&(ebn=function(r,e){!r&&typeof console<"u"&&console.warn(e)},Rz=function(r,e){if(!r)throw new Error(e)})});var xP,iAt=ce(()=>{d();p();xP=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}}});var a0e=ce(()=>{d();p();iAt()});function Mz(r){return i0e.has(r)||i0e.set(r,{transforms:[],values:new Map}),i0e.get(r)}function sAt(r,e){return r.has(e)||r.set(e,new xP),r.get(e)}var i0e,s0e=ce(()=>{d();p();a0e();i0e=new WeakMap});var tbn,rbn,TP,oAt,nbn,Um,Bz,Nz,abn,ibn,Dz,cAt,sbn,obn,fE=ce(()=>{d();p();Ru();s0e();tbn=["","X","Y","Z"],rbn=["translate","scale","rotate","skew"],TP={x:"translateX",y:"translateY",z:"translateZ"},oAt={syntax:"",initialValue:"0deg",toDefaultUnit:r=>r+"deg"},nbn={translate:{syntax:"",initialValue:"0px",toDefaultUnit:r=>r+"px"},rotate:oAt,scale:{syntax:"",initialValue:1,toDefaultUnit:ko},skew:oAt},Um=new Map,Bz=r=>`--motion-${r}`,Nz=["x","y","z"];rbn.forEach(r=>{tbn.forEach(e=>{Nz.push(r+e),Um.set(Bz(r+e),nbn[r])})});abn=(r,e)=>Nz.indexOf(r)-Nz.indexOf(e),ibn=new Set(Nz),Dz=r=>ibn.has(r),cAt=(r,e)=>{TP[e]&&(e=TP[e]);let{transforms:t}=Mz(r);Vme(t,e),r.style.transform=sbn(t)},sbn=r=>r.sort(abn).reduce(obn,"").trim(),obn=(r,e)=>`${r} ${e}(var(${Bz(e)}))`});function lAt(r){if(!uAt.has(r)){uAt.add(r);try{let{syntax:e,initialValue:t}=Um.has(r)?Um.get(r):{};CSS.registerProperty({name:r,inherits:!1,syntax:e,initialValue:t})}catch{}}}var EP,uAt,o0e=ce(()=>{d();p();fE();EP=r=>r.startsWith("--"),uAt=new Set});var c0e,dAt,u0e,Lg,l0e=ce(()=>{d();p();c0e=(r,e)=>document.createElement("div").animate(r,e),dAt={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{c0e({opacity:[1]})}catch{return!1}return!0},finished:()=>Boolean(c0e({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{c0e({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},u0e={},Lg={};for(let r in dAt)Lg[r]=()=>(u0e[r]===void 0&&(u0e[r]=dAt[r]()),u0e[r])});var cbn,ubn,d0e,lbn,pAt=ce(()=>{d();p();Ru();l0e();cbn=.015,ubn=(r,e)=>{let t="",n=Math.round(e/cbn);for(let a=0;ajp(r)?Lg.linearEasing()?`linear(${ubn(r,e)})`:Mc.easing:wP(r)?lbn(r):r,lbn=([r,e,t,n])=>`cubic-bezier(${r}, ${e}, ${t}, ${n})`});function hAt(r,e){for(let t=0;t{d();p();fAt=r=>Array.isArray(r)?r:[r]});function Lw(r){return TP[r]&&(r=TP[r]),Dz(r)?Bz(r):r}var Oz=ce(()=>{d();p();fE()});var CP,yAt=ce(()=>{d();p();o0e();Oz();fE();CP={get:(r,e)=>{e=Lw(e);let t=EP(e)?r.style.getPropertyValue(e):getComputedStyle(r)[e];if(!t&&t!==0){let n=Um.get(e);n&&(t=n.initialValue)}return t},set:(r,e,t)=>{e=Lw(e),EP(e)?r.style.setProperty(e,t):r.style[e]=t}}});function Lz(r,e=!0){if(!(!r||r.playState==="finished"))try{r.stop?r.stop():(e&&r.commitStyles(),r.cancel())}catch{}}var p0e=ce(()=>{d();p()});function qz(r,e){var t;let n=e?.toDefaultUnit||ko,a=r[r.length-1];if(_P(a)){let i=((t=a.match(/(-?[\d.]+)([a-z%]*)/))===null||t===void 0?void 0:t[2])||"";i&&(n=s=>s+i)}return n}var h0e=ce(()=>{d();p();Ru()});function dbn(){return window.__MOTION_DEV_TOOLS_RECORD}function gAt(r,e,t,n={},a){let i=dbn(),s=n.record!==!1&&i,o,{duration:c=Mc.duration,delay:u=Mc.delay,endDelay:l=Mc.endDelay,repeat:h=Mc.repeat,easing:f=Mc.easing,persist:m=!1,direction:y,offset:E,allowWebkitAcceleration:I=!1}=n,S=Mz(r),L=Dz(e),F=Lg.waapi();L&&cAt(r,e);let W=Lw(e),V=sAt(S.values,W),K=Um.get(W);return Lz(V.animation,!(hE(f)&&V.generator)&&n.record!==!1),()=>{let H=()=>{var q,T;return(T=(q=CP.get(r,W))!==null&&q!==void 0?q:K?.initialValue)!==null&&T!==void 0?T:0},G=hAt(fAt(t),H),J=qz(G,K);if(hE(f)){let q=f.createAnimation(G,e!=="opacity",H,W,V);f=q.easing,G=q.keyframes||G,c=q.duration||c}if(EP(W)&&(Lg.cssRegisterProperty()?lAt(W):F=!1),L&&!Lg.linearEasing()&&(jp(f)||Fm(f)&&f.some(jp))&&(F=!1),F){K&&(G=G.map(P=>lf(P)?K.toDefaultUnit(P):P)),G.length===1&&(!Lg.partialKeyframes()||s)&&G.unshift(H());let q={delay:Wm.ms(u),duration:Wm.ms(c),endDelay:Wm.ms(l),easing:Fm(f)?void 0:d0e(f,c),direction:y,iterations:h+1,fill:"both"};o=r.animate({[W]:G,offset:E,easing:Fm(f)?f.map(P=>d0e(P,c)):void 0},q),o.finished||(o.finished=new Promise((P,A)=>{o.onfinish=P,o.oncancel=A}));let T=G[G.length-1];o.finished.then(()=>{m||(CP.set(r,W,T),o.cancel())}).catch(vP),I||(o.playbackRate=1.000001)}else if(a&&L)G=G.map(q=>typeof q=="string"?parseFloat(q):q),G.length===1&&G.unshift(parseFloat(H())),o=new a(q=>{CP.set(r,W,J?J(q):q)},G,Object.assign(Object.assign({},n),{duration:c,easing:f}));else{let q=G[G.length-1];CP.set(r,W,K&&lf(q)?K.toDefaultUnit(q):q)}return s&&i(r,e,G,{duration:c,delay:u,easing:f,repeat:h,offset:E},"motion-one"),V.setAnimation(o),o}}var bAt=ce(()=>{d();p();s0e();o0e();Ru();fE();pAt();l0e();mAt();yAt();Oz();p0e();h0e()});var vAt,wAt=ce(()=>{d();p();vAt=(r,e)=>r[e]?Object.assign(Object.assign({},r),r[e]):Object.assign({},r)});function _At(r,e){var t;return typeof r=="string"?e?((t=e[r])!==null&&t!==void 0||(e[r]=document.querySelectorAll(r)),r=e[r]):r=document.querySelectorAll(r):r instanceof Element&&(r=[r]),Array.from(r||[])}var xAt=ce(()=>{d();p()});var pbn,IP,hbn,fbn,mbn,f0e=ce(()=>{d();p();Ru();p0e();pbn=r=>r(),IP=(r,e,t=Mc.duration)=>new Proxy({animations:r.map(pbn).filter(Boolean),duration:t,options:e},fbn),hbn=r=>r.animations[0],fbn={get:(r,e)=>{let t=hbn(r);switch(e){case"duration":return r.duration;case"currentTime":return Wm.s(t?.[e]||0);case"playbackRate":case"playState":return t?.[e];case"finished":return r.finished||(r.finished=Promise.all(r.animations.map(mbn)).catch(vP)),r.finished;case"stop":return()=>{r.animations.forEach(n=>Lz(n))};case"forEachNative":return n=>{r.animations.forEach(a=>n(a,r))};default:return typeof t?.[e]>"u"?void 0:()=>r.animations.forEach(n=>n[e]())}},set:(r,e,t)=>{switch(e){case"currentTime":t=Wm.ms(t);case"currentTime":case"playbackRate":for(let n=0;nr.finished});function TAt(r,e,t){return jp(r)?r(e,t):r}var EAt=ce(()=>{d();p();Ru()});function CAt(r){return function(t,n,a={}){t=_At(t);let i=t.length;Rz(Boolean(i),"No valid element provided."),Rz(Boolean(n),"No keyframes defined.");let s=[];for(let o=0;o{d();p();aAt();bAt();wAt();xAt();f0e();EAt()});var m0e,kAt=ce(()=>{d();p();n0e();IAt();m0e=CAt(Ow)});function kP(r,e,t){let n=Math.max(e-ybn,0);return e0e(t-r(n),e-n)}var ybn,y0e=ce(()=>{d();p();Ru();ybn=5});var qg,g0e=ce(()=>{d();p();qg={stiffness:100,damping:10,mass:1}});var AAt,SAt=ce(()=>{d();p();g0e();AAt=(r=qg.stiffness,e=qg.damping,t=qg.mass)=>e/(2*Math.sqrt(r*t))});function PAt(r,e,t){return r=e||r>e&&t<=e}var RAt=ce(()=>{d();p()});var b0e,MAt=ce(()=>{d();p();Ru();g0e();SAt();RAt();y0e();b0e=({stiffness:r=qg.stiffness,damping:e=qg.damping,mass:t=qg.mass,from:n=0,to:a=1,velocity:i=0,restSpeed:s=2,restDistance:o=.5}={})=>{i=i?Wm.s(i):0;let c={done:!1,hasReachedTarget:!1,current:n,target:a},u=a-n,l=Math.sqrt(r/t)/1e3,h=AAt(r,e,t),f;if(h<1){let m=l*Math.sqrt(1-h*h);f=y=>a-Math.exp(-h*l*y)*((-i+h*l*u)/m*Math.sin(m*y)+u*Math.cos(m*y))}else f=m=>a-Math.exp(-l*m)*(u+(-i+l*u)*m);return m=>{c.current=f(m);let y=m===0?i:kP(f,m,c.current),E=Math.abs(y)<=s,I=Math.abs(a-c.current)<=o;return c.done=E&&I,c.hasReachedTarget=PAt(n,a,c.current),c}}});function w0e(r,e=ko){let t,n=v0e,a=r(0),i=[e(a.current)];for(;!a.done&&n{d();p();Ru();v0e=10,gbn=1e4});var _0e=ce(()=>{d();p();MAt();NAt();y0e()});function BAt(r){return lf(r)&&!isNaN(r)}function x0e(r){return _P(r)?parseFloat(r):r}function DAt(r){let e=new WeakMap;return(t={})=>{let n=new Map,a=(s=0,o=100,c=0,u=!1)=>{let l=`${s}-${o}-${c}-${u}`;return n.has(l)||n.set(l,r(Object.assign({from:s,to:o,velocity:c,restSpeed:u?.05:2,restDistance:u?.01:.5},t))),n.get(l)},i=(s,o)=>(e.has(s)||e.set(s,w0e(s,o)),e.get(s));return{createAnimation:(s,o=!0,c,u,l)=>{let h,f,m,y=0,E=ko,I=s.length;if(o){E=qz(s,u?Um.get(Lw(u)):void 0);let S=s[I-1];if(m=x0e(S),I>1&&s[0]!==null)f=x0e(s[0]);else{let L=l?.generator;if(L){let{animation:F,generatorStartTime:W}=l,V=F?.startTime||W||0,K=F?.currentTime||performance.now()-V,H=L(K).current;f=H,y=kP(G=>L(G).current,K,H)}else c&&(f=x0e(c()))}}if(BAt(f)&&BAt(m)){let S=a(f,m,y,u?.includes("scale"));h=Object.assign(Object.assign({},i(S,E)),{easing:"linear"}),l&&(l.generator=S,l.generatorStartTime=performance.now())}return h||(h={easing:"ease",duration:i(a(0,100)).overshootDuration}),h}}}}var OAt=ce(()=>{d();p();_0e();Ru();h0e();fE();Oz()});var mE,LAt=ce(()=>{d();p();_0e();OAt();mE=DAt(b0e)});var T0e=ce(()=>{d();p();kAt();LAt();f0e()});function bbn(r,e={}){return IP([()=>{let t=new Ow(r,[0,1],e);return t.finished.catch(()=>{}),t}],e,e.duration)}function Hm(r,e,t){return(jp(r)?bbn:m0e)(r,e,t)}var qAt=ce(()=>{d();p();T0e();Ru();n0e()});var FAt=ce(()=>{d();p();T0e();a0e();qAt()});var il,WAt=ce(()=>{d();p();Mw();il=r=>r??io});var UAt=ce(()=>{d();p();WAt()});var oSt={};cr(oSt,{W3mAccountButton:()=>vE,W3mConnectButton:()=>zw,W3mCoreButton:()=>Wg,W3mModal:()=>UP,W3mNetworkSwitch:()=>Kw});function xbn(){var r;let e=(r=qm.state.themeMode)!=null?r:"dark",t={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{"--w3m-color-fg-1":t.foreground[1],"--w3m-color-fg-2":t.foreground[2],"--w3m-color-fg-3":t.foreground[3],"--w3m-color-bg-1":t.background[1],"--w3m-color-bg-2":t.background[2],"--w3m-color-bg-3":t.background[3],"--w3m-color-overlay":t.overlay}}function Tbn(){return{"--w3m-accent-color":"#3396FF","--w3m-accent-fill-color":"#FFFFFF","--w3m-z-index":"89","--w3m-background-color":"#3396FF","--w3m-background-border-radius":"8px","--w3m-container-border-radius":"30px","--w3m-wallet-icon-border-radius":"15px","--w3m-input-border-radius":"28px","--w3m-button-border-radius":"10px","--w3m-notification-border-radius":"36px","--w3m-secondary-button-border-radius":"28px","--w3m-icon-button-border-radius":"50%","--w3m-button-hover-highlight-border-radius":"10px","--w3m-text-big-bold-size":"20px","--w3m-text-big-bold-weight":"600","--w3m-text-big-bold-line-height":"24px","--w3m-text-big-bold-letter-spacing":"-0.03em","--w3m-text-big-bold-text-transform":"none","--w3m-text-xsmall-bold-size":"10px","--w3m-text-xsmall-bold-weight":"700","--w3m-text-xsmall-bold-line-height":"12px","--w3m-text-xsmall-bold-letter-spacing":"0.02em","--w3m-text-xsmall-bold-text-transform":"uppercase","--w3m-text-xsmall-regular-size":"12px","--w3m-text-xsmall-regular-weight":"600","--w3m-text-xsmall-regular-line-height":"14px","--w3m-text-xsmall-regular-letter-spacing":"-0.03em","--w3m-text-xsmall-regular-text-transform":"none","--w3m-text-small-thin-size":"14px","--w3m-text-small-thin-weight":"500","--w3m-text-small-thin-line-height":"16px","--w3m-text-small-thin-letter-spacing":"-0.03em","--w3m-text-small-thin-text-transform":"none","--w3m-text-small-regular-size":"14px","--w3m-text-small-regular-weight":"600","--w3m-text-small-regular-line-height":"16px","--w3m-text-small-regular-letter-spacing":"-0.03em","--w3m-text-small-regular-text-transform":"none","--w3m-text-medium-regular-size":"16px","--w3m-text-medium-regular-weight":"600","--w3m-text-medium-regular-line-height":"20px","--w3m-text-medium-regular-letter-spacing":"-0.03em","--w3m-text-medium-regular-text-transform":"none","--w3m-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--w3m-success-color":"rgb(38,181,98)","--w3m-error-color":"rgb(242, 90, 103)"}}function Ebn(){let{themeVariables:r}=qm.state;return{"--w3m-background-image-url":r!=null&&r["--w3m-background-image-url"]?`url(${r["--w3m-background-image-url"]})`:"none"}}function A0e(r,e,t){return r===e?!1:(r-e<0?e-r:r-e)<=t+pvn}function hvn(r,e){let t=Array.prototype.slice.call(sSt.default.create(r,{errorCorrectionLevel:e}).modules.data,0),n=Math.sqrt(t.length);return t.reduce((a,i,s)=>(s%n===0?a.push([i]):a[a.length-1].push(i))&&a,[])}var sSt,vbn,HAt,wbn,_bn,jAt,Fz,or,Cbn,Ibn,kbn,Wz,yE,Abn,Sbn,Pbn,AP,qw,Rbn,Mbn,Nbn,E0e,SP,yr,Bbn,Dbn,Obn,zAt,Uz,Lbn,qbn,Fbn,Wbn,C0e,Ubn,Hbn,jbn,zbn,I0e,Kbn,Gbn,Vbn,PP,Fw,$bn,wE,Gw,Ybn,Jbn,KAt,Qbn,Zbn,GAt,Xbn,Fe,evn,tvn,rvn,k0e,RP,nvn,avn,ivn,VAt,Hz,svn,ovn,cvn,jz,gE,uvn,lvn,dvn,$At,zz,pvn,YAt,my,fvn,mvn,yvn,gvn,MP,Ww,bvn,vvn,wvn,JAt,Kz,_vn,xvn,Tvn,Evn,S0e,Cvn,Ivn,kvn,P0e,NP,Avn,Svn,Pvn,QAt,Gz,Rvn,Mvn,Nvn,Fg,jm,Bvn,Dvn,Ovn,R0e,BP,Lvn,qvn,Fvn,ZAt,Wvn,Uvn,XAt,M0e,Hvn,jvn,eSt,N0e,zvn,Kvn,Gvn,tSt,Vvn,$vn,Yvn,B0e,vE,Jvn,Qvn,Zvn,D0e,DP,Xvn,e2n,t2n,OP,Uw,sl,r2n,n2n,a2n,i2n,O0e,s2n,o2n,c2n,LP,Hw,u2n,l2n,d2n,L0e,qP,p2n,h2n,f2n,Vz,zw,m2n,y2n,bE,Wg,g2n,b2n,v2n,w2n,q0e,_2n,x2n,T2n,E2n,F0e,C2n,I2n,k2n,A2n,W0e,S2n,P2n,R2n,rSt,UP,M2n,N2n,B2n,$z,Kw,D2n,O2n,L2n,q2n,U0e,F2n,W2n,U2n,nSt,Yz,H2n,j2n,z2n,K2n,H0e,G2n,V2n,$2n,j0e,Y2n,J2n,Q2n,Z2n,z0e,X2n,ewn,twn,aSt,Jz,rwn,nwn,awn,iwn,K0e,swn,own,cwn,uwn,G0e,lwn,dwn,pwn,V0e,FP,hwn,fwn,mwn,ywn,$0e,gwn,bwn,vwn,Y0e,wwn,_wn,xwn,Twn,J0e,Ewn,Cwn,Iwn,iSt,Qz,kwn,Awn,Swn,WP,Q0e,jw,cSt=ce(()=>{d();p();xkt();Pkt();Sme();Dkt();Mw();FAt();UAt();sSt=on(kpe(),1),vbn=Object.defineProperty,HAt=Object.getOwnPropertySymbols,wbn=Object.prototype.hasOwnProperty,_bn=Object.prototype.propertyIsEnumerable,jAt=(r,e,t)=>e in r?vbn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Fz=(r,e)=>{for(var t in e||(e={}))wbn.call(e,t)&&jAt(r,t,e[t]);if(HAt)for(var t of HAt(e))_bn.call(e,t)&&jAt(r,t,e[t]);return r};or={setTheme(){let r=document.querySelector(":root"),{themeVariables:e}=qm.state;if(r){let t=Fz(Fz(Fz(Fz({},xbn()),Tbn()),e),Ebn());Object.entries(t).forEach(([n,a])=>r.style.setProperty(n,a))}},globalCss:pr`*,::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}button::after{content:'';position:absolute;inset:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button w3m-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--w3m-accent-fill-color);background:var(--w3m-accent-color)}`},Cbn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button>div{display:flex;justify-content:center;align-items:center;width:32px;height:32px;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);background-color:var(--w3m-accent-color);border-radius:var(--w3m-icon-button-border-radius);margin-bottom:4px}button path{fill:var(--w3m-accent-fill-color)}`,Ibn=Object.defineProperty,kbn=Object.getOwnPropertyDescriptor,Wz=(r,e,t,n)=>{for(var a=n>1?void 0:n?kbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ibn(e,t,a),a},yE=class extends gt{constructor(){super(...arguments),this.icon=void 0,this.label="",this.onClick=()=>null}render(){return _e``}};yE.styles=[or.globalCss,Cbn],Wz([ar()],yE.prototype,"icon",2),Wz([ar()],yE.prototype,"label",2),Wz([ar()],yE.prototype,"onClick",2),yE=Wz([Qt("w3m-box-button")],yE);Abn=pr`button{border-radius:var(--w3m-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--w3m-accent-color)}button path{fill:var(--w3m-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--w3m-color-overlay)}button:disabled::after{background-color:transparent}.w3m-icon-left svg{margin-right:5px}.w3m-icon-right svg{margin-left:5px}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{background-color:var(--w3m-color-bg-3)}`,Sbn=Object.defineProperty,Pbn=Object.getOwnPropertyDescriptor,AP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Pbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Sbn(e,t,a),a},qw=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null}render(){let r={"w3m-icon-left":this.iconLeft!==void 0,"w3m-icon-right":this.iconRight!==void 0};return _e``}};qw.styles=[or.globalCss,Abn],AP([ar()],qw.prototype,"disabled",2),AP([ar()],qw.prototype,"iconLeft",2),AP([ar()],qw.prototype,"iconRight",2),AP([ar()],qw.prototype,"onClick",2),qw=AP([Qt("w3m-button")],qw);Rbn=pr`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--w3m-button-border-radius);color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--w3m-color-bg-3);color:var(--w3m-color-fg-3)}.w3m-secondary{color:var(--w3m-accent-color);background-color:transparent}.w3m-secondary::after{display:none}`,Mbn=Object.defineProperty,Nbn=Object.getOwnPropertyDescriptor,E0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Nbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Mbn(e,t,a),a},SP=class extends gt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){let r={"w3m-secondary":this.variant==="secondary"};return _e``}};SP.styles=[or.globalCss,Rbn],E0e([ar()],SP.prototype,"disabled",2),E0e([ar()],SP.prototype,"variant",2),SP=E0e([Qt("w3m-button-big")],SP);yr={CROSS_ICON:Dr``,WALLET_CONNECT_LOGO:Dr``,WALLET_CONNECT_ICON:Dr``,WALLET_CONNECT_ICON_COLORED:Dr``,BACK_ICON:Dr``,COPY_ICON:Dr``,RETRY_ICON:Dr``,DESKTOP_ICON:Dr``,MOBILE_ICON:Dr``,ARROW_DOWN_ICON:Dr``,ARROW_UP_RIGHT_ICON:Dr``,ARROW_RIGHT_ICON:Dr``,QRCODE_ICON:Dr``,SCAN_ICON:Dr``,CHECKMARK_ICON:Dr``,HELP_ETH_IMG:Dr``,HELP_PAINTING_IMG:Dr``,HELP_CHART_IMG:Dr``,HELP_KEY_IMG:Dr``,HELP_USER_IMG:Dr``,HELP_LOCK_IMG:Dr``,HELP_COMPAS_IMG:Dr``,HELP_NOUN_IMG:Dr``,HELP_DAO_IMG:Dr``,SEARCH_ICON:Dr``,HELP_ICON:Dr``,WALLET_ICON:Dr``,NETWORK_PLACEHOLDER:Dr``,WALLET_PLACEHOLDER:Dr``,TOKEN_PLACEHOLDER:Dr``,ACCOUNT_COPY:Dr``,ACCOUNT_DISCONNECT:Dr``},Bbn=pr`.w3m-custom-placeholder{inset:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--w3m-background-border-radius) * .9)}.w3m-custom-placeholder{background-color:var(--w3m-background-color);background-image:var(--w3m-background-image-url);background-position:center;background-size:cover}.w3m-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.w3m-toolbar img,.w3m-toolbar svg{height:28px;object-position:left center;object-fit:contain}#w3m-wc-logo path{fill:var(--w3m-accent-fill-color)}.w3m-action-btn{width:28px;height:28px;border-radius:var(--w3m-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color,.2s ease;background-color:var(--w3m-color-bg-1);box-shadow:0 0 0 1px var(--w3m-color-overlay)}.w3m-action-btn:hover{background-color:var(--w3m-color-bg-2)}.w3m-action-btn svg{display:block;object-position:center}.w3m-action-btn path{fill:var(--w3m-color-fg-1)}.w3m-actions{display:flex}.w3m-actions button:first-child{margin-right:16px}.w3m-help-active button:first-child{background-color:var(--w3m-color-fg-1)}.w3m-help-active button:first-child path{fill:var(--w3m-color-bg-1)}`,Dbn=Object.defineProperty,Obn=Object.getOwnPropertyDescriptor,zAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Obn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Dbn(e,t,a),a},Uz=class extends gt{constructor(){super(),this.isHelp=!1,this.unsubscribeRouter=void 0,this.unsubscribeRouter=Br.subscribe(r=>{this.isHelp=r.view==="Help"})}disconnectedCallback(){var r;(r=this.unsubscribeRouter)==null||r.call(this)}onHelp(){Br.push("Help")}logoTemplate(){var r;let e=(r=qm.state.themeVariables)==null?void 0:r["--w3m-logo-image-url"];return e?_e``:yr.WALLET_CONNECT_LOGO}render(){let r={"w3m-actions":!0,"w3m-help-active":this.isHelp};return _e`
${this.logoTemplate()}
`}};Uz.styles=[or.globalCss,Bbn],zAt([wn()],Uz.prototype,"isHelp",2),Uz=zAt([Qt("w3m-modal-backcard")],Uz);Lbn=pr`main{padding:20px;padding-top:0;width:100%}`,qbn=Object.defineProperty,Fbn=Object.getOwnPropertyDescriptor,Wbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Fbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&qbn(e,t,a),a},C0e=class extends gt{render(){return _e`
`}};C0e.styles=[or.globalCss,Lbn],C0e=Wbn([Qt("w3m-modal-content")],C0e);Ubn=pr`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--w3m-color-bg-2)}`,Hbn=Object.defineProperty,jbn=Object.getOwnPropertyDescriptor,zbn=(r,e,t,n)=>{for(var a=n>1?void 0:n?jbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Hbn(e,t,a),a},I0e=class extends gt{render(){return _e`
`}};I0e.styles=[or.globalCss,Ubn],I0e=zbn([Qt("w3m-modal-footer")],I0e);Kbn=pr`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.w3m-border{border-bottom:1px solid var(--w3m-color-bg-2);margin-bottom:20px}header button{padding:15px 20px;transition:opacity .2s ease}@media(hover:hover){header button:hover{opacity:.5}}.w3m-back-btn{position:absolute;left:0}.w3m-action-btn{position:absolute;right:0}path{fill:var(--w3m-accent-color)}`,Gbn=Object.defineProperty,Vbn=Object.getOwnPropertyDescriptor,PP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Vbn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Gbn(e,t,a),a},Fw=class extends gt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return _e``}actionBtnTemplate(){return _e``}render(){let r={"w3m-border":this.border},e=Br.state.history.length>1,t=this.title?_e`${this.title}`:_e``;return _e`
${e?this.backBtnTemplate():null} ${t} ${this.onAction?this.actionBtnTemplate():null}
`}};Fw.styles=[or.globalCss,Kbn],PP([ar()],Fw.prototype,"title",2),PP([ar()],Fw.prototype,"onAction",2),PP([ar()],Fw.prototype,"actionIcon",2),PP([ar()],Fw.prototype,"border",2),Fw=PP([Qt("w3m-modal-header")],Fw);$bn={1:"692ed6ba-e569-459a-556a-776476829e00",42161:"600a9a04-c1b9-42ca-6785-9b4b6ff85200",43114:"30c46e53-e989-45fb-4549-be3bd4eb3b00",56:"93564157-2e8e-4ce7-81df-b264dbee9b00",250:"06b26297-fe0c-4733-5d6b-ffa5498aac00",10:"ab9c186a-c52f-464b-2906-ca59d760a400",137:"41d04d42-da3b-4453-8506-668cc0727900",100:"02b53f6a-e3d4-479e-1cb4-21178987d100",9001:"f926ff41-260d-4028-635e-91913fc28e00",324:"b310f07f-4ef7-49f3-7073-2a0a39685800",314:"5a73b3dd-af74-424e-cae0-0de859ee9400",4689:"34e68754-e536-40da-c153-6ef2e7188a00",1088:"3897a66d-40b9-4833-162f-a2c90531c900",1284:"161038da-44ae-4ec7-1208-0ea569454b00",1285:"f1d73bb6-5450-4e18-38f7-fb6484264a00"},wE=(r=>(r.metaMask="metaMask",r.trust="trust",r.phantom="phantom",r.brave="brave",r.spotEthWallet="spotEthWallet",r.exodus="exodus",r.tokenPocket="tokenPocket",r.frame="frame",r.tally="tally",r.coinbaseWallet="coinbaseWallet",r.core="core",r.bitkeep="bitkeep",r.mathWallet="mathWallet",r.opera="opera",r.tokenary="tokenary",r["1inch"]="1inch",r.kuCoinWallet="kuCoinWallet",r.ledger="ledger",r))(wE||{}),Gw={injectedPreset:{metaMask:{name:"MetaMask",icon:"619537c0-2ff3-4c78-9ed8-a05e7567f300",url:"https://metamask.io",isMobile:!0,isInjected:!0},trust:{name:"Trust",icon:"0528ee7e-16d1-4089-21e3-bbfb41933100",url:"https://trustwallet.com",isMobile:!0,isInjected:!0},spotEthWallet:{name:"Spot",icon:"1bf33a89-b049-4a1c-d1f6-4dd7419ee400",url:"https://www.spot-wallet.com",isMobile:!0,isInjected:!0},phantom:{name:"Phantom",icon:"62471a22-33cb-4e65-5b54-c3d9ea24b900",url:"https://phantom.app",isInjected:!0},core:{name:"Core",icon:"35f9c46e-cc57-4aa7-315d-e6ccb2a1d600",url:"https://core.app",isMobile:!0,isInjected:!0},bitkeep:{name:"BitKeep",icon:"3f7075d0-4ab7-4db5-404d-3e4c05e6fe00",url:"https://bitkeep.com",isMobile:!0,isInjected:!0},tokenPocket:{name:"TokenPocket",icon:"f3119826-4ef5-4d31-4789-d4ae5c18e400",url:"https://www.tokenpocket.pro",isMobile:!0,isInjected:!0},mathWallet:{name:"MathWallet",icon:"26a8f588-3231-4411-60ce-5bb6b805a700",url:"https://mathwallet.org",isMobile:!0,isInjected:!0},exodus:{name:"Exodus",icon:"4c16cad4-cac9-4643-6726-c696efaf5200",url:"https://www.exodus.com",isMobile:!0,isDesktop:!0,isInjected:!0},kuCoinWallet:{name:"KuCoin Wallet",icon:"1e47340b-8fd7-4ad6-17e7-b2bd651fae00",url:"https://kuwallet.com",isMobile:!0,isInjected:!0},ledger:{name:"Ledger",icon:"a7f416de-aa03-4c5e-3280-ab49269aef00",url:"https://www.ledger.com",isDesktop:!0},brave:{name:"Brave",icon:"125e828e-9936-4451-a8f2-949c119b7400",url:"https://brave.com/wallet",isInjected:!0},frame:{name:"Frame",icon:"cd492418-ea85-4ef1-aeed-1c9e20b58900",url:"https://frame.sh",isInjected:!0},tally:{name:"Tally",icon:"98d2620c-9fc8-4a1c-31bc-78d59d00a300",url:"https://tallyho.org",isInjected:!0},coinbaseWallet:{name:"Coinbase",icon:"f8068a7f-83d7-4190-1f94-78154a12c600",url:"https://www.coinbase.com/wallet",isInjected:!0},opera:{name:"Opera",icon:"877fa1a4-304d-4d45-ca8e-f76d1a556f00",url:"https://www.opera.com/crypto",isInjected:!0},tokenary:{name:"Tokenary",icon:"5e481041-dc3c-4a81-373a-76bbde91b800",url:"https://tokenary.io",isDesktop:!0,isInjected:!0},["1inch"]:{name:"1inch Wallet",icon:"dce1ee99-403f-44a9-9f94-20de30616500",url:"https://1inch.io/wallet",isMobile:!0}},getInjectedId(r){if(r.toUpperCase()!=="INJECTED"&&r.length)return r;let{ethereum:e,spotEthWallet:t,coinbaseWalletExtension:n}=window;return e?e.isTrust||e.isTrustWallet?"trust":e.isPhantom?"phantom":e.isBraveWallet?"brave":t?"spotEthWallet":e.isExodus?"exodus":e.isTokenPocket?"tokenPocket":e.isFrame?"frame":e.isTally?"tally":n?"coinbaseWallet":e.isAvalanche?"core":e.isBitKeep?"bitkeep":e.isMathWallet?"mathWallet":e.isOpera?"opera":e.isTokenary?"tokenary":e.isOneInchIOSWallet||e.isOneInchAndroidWallet?"1inch":e.isKuCoinWallet?"kuCoinWallet":e.isMetaMask?"metaMask":"injected":"metaMask"},getInjectedName(r){var e,t;if(r.length&&r.toUpperCase()!=="INJECTED")return r;let n=Gw.getInjectedId("");return(t=(e=Gw.injectedPreset[n])==null?void 0:e.name)!=null?t:"Injected"}},Ybn={ETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},WETH:{icon:"692ed6ba-e569-459a-556a-776476829e00"},AVAX:{icon:"30c46e53-e989-45fb-4549-be3bd4eb3b00"},FTM:{icon:"06b26297-fe0c-4733-5d6b-ffa5498aac00"},BNB:{icon:"93564157-2e8e-4ce7-81df-b264dbee9b00"},MATIC:{icon:"41d04d42-da3b-4453-8506-668cc0727900"},OP:{icon:"ab9c186a-c52f-464b-2906-ca59d760a400"},xDAI:{icon:"02b53f6a-e3d4-479e-1cb4-21178987d100"},EVMOS:{icon:"f926ff41-260d-4028-635e-91913fc28e00"},METIS:{icon:"3897a66d-40b9-4833-162f-a2c90531c900"},IOTX:{icon:"34e68754-e536-40da-c153-6ef2e7188a00"}},Jbn=Object.defineProperty,KAt=Object.getOwnPropertySymbols,Qbn=Object.prototype.hasOwnProperty,Zbn=Object.prototype.propertyIsEnumerable,GAt=(r,e,t)=>e in r?Jbn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Xbn=(r,e)=>{for(var t in e||(e={}))Qbn.call(e,t)&&GAt(r,t,e[t]);if(KAt)for(var t of KAt(e))Zbn.call(e,t)&&GAt(r,t,e[t]);return r},Fe={MOBILE_BREAKPOINT:600,W3M_RECENT_WALLET:"W3M_RECENT_WALLET",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",rejectStandaloneButtonComponent(){let{isStandalone:r}=yt.state;if(r)throw new Error("Web3Modal button components are not available in standalone mode.")},getShadowRootElement(r,e){let t=r.renderRoot.querySelector(e);if(!t)throw new Error(`${e} not found`);return t},getWalletId(r){return Gw.getInjectedId(r)},getWalletIcon(r){var e,t;let n=(e=Gw.injectedPreset[r])==null?void 0:e.icon,{projectId:a,walletImages:i}=Ls.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},getWalletName(r,e=!1){let t=Gw.getInjectedName(r);return e?t.split(" ")[0]:t},getChainIcon(r){var e;let t=$bn[r],{projectId:n,chainImages:a}=Ls.state;return(e=a?.[r])!=null?e:n&&t?no.getImageUrl(t):""},getTokenIcon(r){var e,t;let n=(e=Ybn[r])==null?void 0:e.icon,{projectId:a,tokenImages:i}=Ls.state;return(t=i?.[r])!=null?t:a&&n?no.getImageUrl(n):""},isMobileAnimation(){return window.innerWidth<=Fe.MOBILE_BREAKPOINT},async preloadImage(r){let e=new Promise((t,n)=>{let a=new Image;a.onload=t,a.onerror=n,a.src=r});return Promise.race([e,Sr.wait(3e3)])},getErrorMessage(r){return r instanceof Error?r.message:"Unknown Error"},debounce(r,e=500){let t;return(...n)=>{function a(){r(...n)}t&&clearTimeout(t),t=setTimeout(a,e)}},async handleMobileLinking(r){Sr.removeWalletConnectDeepLink();let{standaloneUri:e,selectedChain:t}=yt.state,{links:n,name:a}=r;function i(s){let o="";n!=null&&n.universal?o=Sr.formatUniversalUrl(n.universal,s,a):n!=null&&n.native&&(o=Sr.formatNativeUrl(n.native,s,a)),Sr.openHref(o,"_self")}e?(Fe.setRecentWallet(r),i(e)):(await Bi.client().connectWalletConnect(s=>{i(s)},t?.id),Fe.setRecentWallet(r),ao.close())},async handleAndroidLinking(){Sr.removeWalletConnectDeepLink();let{standaloneUri:r,selectedChain:e}=yt.state;r?Sr.openHref(r,"_self"):(await Bi.client().connectWalletConnect(t=>{Sr.setWalletConnectAndroidDeepLink(t),Sr.openHref(t,"_self")},e?.id),ao.close())},async handleUriCopy(){let{standaloneUri:r}=yt.state;if(r)await navigator.clipboard.writeText(r);else{let e=Bi.client().walletConnectUri;await navigator.clipboard.writeText(e)}Rc.openToast("Link copied","success")},async handleConnectorConnection(r,e){try{let{selectedChain:t}=yt.state;await Bi.client().connectConnector(r,t?.id),ao.close()}catch(t){console.error(t),e?e():Rc.openToast(Fe.getErrorMessage(t),"error")}},getCustomWallets(){var r;let{desktopWallets:e,mobileWallets:t}=Ls.state;return(r=Sr.isMobile()?t:e)!=null?r:[]},getCustomImageUrls(){let{chainImages:r,walletImages:e}=Ls.state,t=Object.values(r??{}),n=Object.values(e??{});return Object.values([...t,...n])},getConnectorImageUrls(){return Bi.client().getConnectors().map(({id:r})=>Gw.getInjectedId(r)).map(r=>Fe.getWalletIcon(r))},truncate(r,e=8){return r.length<=e?r:`${r.substring(0,4)}...${r.substring(r.length-4)}`},generateAvatarColors(r){var e;let t=(e=r.match(/.{1,7}/g))==null?void 0:e.splice(0,5),n=[];t?.forEach(i=>{let s=0;for(let c=0;c>c*8&255;o[c]=u}n.push(`rgb(${o[0]}, ${o[1]}, ${o[2]})`)});let a=document.querySelector(":root");if(a){let i={"--w3m-color-av-1":n[0],"--w3m-color-av-2":n[1],"--w3m-color-av-3":n[2],"--w3m-color-av-4":n[3],"--w3m-color-av-5":n[4]};Object.entries(i).forEach(([s,o])=>a.style.setProperty(s,o))}},setRecentWallet(r){let{walletConnectVersion:e}=yt.state;localStorage.setItem(Fe.W3M_RECENT_WALLET,JSON.stringify({[e]:r}))},getRecentWallet(){let r=localStorage.getItem(Fe.W3M_RECENT_WALLET);if(r){let{walletConnectVersion:e}=yt.state,t=JSON.parse(r);if(t[e])return t[e]}},getExtensionWallets(){let r=[];for(let[e,t]of Object.entries(Gw.injectedPreset))t!=null&&t.isInjected&&!t.isDesktop&&r.push(Xbn({id:e},t));return r},caseSafeIncludes(r,e){return r.toUpperCase().includes(e.toUpperCase())},openWalletExplorerUrl(){Sr.openHref(Fe.EXPLORER_WALLET_URL,"_blank")}},evn=pr`.w3m-router{overflow:hidden;will-change:transform}.w3m-content{display:flex;flex-direction:column}`,tvn=Object.defineProperty,rvn=Object.getOwnPropertyDescriptor,k0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?rvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&tvn(e,t,a),a},RP=class extends gt{constructor(){super(),this.view=Br.state.view,this.prevView=Br.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=Br.subscribe(r=>{this.view!==r.view&&this.onChangeRoute()})}firstUpdated(){this.resizeObserver=new ResizeObserver(([r])=>{let e=`${r.contentRect.height}px`;this.oldHeight!=="0px"&&(Hm(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),Hm(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.03})),this.oldHeight=e}),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var r,e;(r=this.unsubscribe)==null||r.call(this),(e=this.resizeObserver)==null||e.disconnect()}get routerEl(){return Fe.getShadowRootElement(this,".w3m-router")}get contentEl(){return Fe.getShadowRootElement(this,".w3m-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return _e``;case"SelectNetwork":return _e``;case"InjectedConnector":return _e``;case"InstallConnector":return _e``;case"GetWallet":return _e``;case"DesktopConnector":return _e``;case"WalletExplorer":return _e``;case"Qrcode":return _e``;case"Help":return _e``;case"Account":return _e``;case"SwitchNetwork":return _e``;case"Connectors":return _e``;default:return _e`
Not Found
`}}async onChangeRoute(){await Hm(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15}).finished,this.view=Br.state.view}render(){return _e`
${this.viewTemplate()}
`}};RP.styles=[or.globalCss,evn],k0e([wn()],RP.prototype,"view",2),k0e([wn()],RP.prototype,"prevView",2),RP=k0e([Qt("w3m-modal-router")],RP);nvn=pr`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:10px 15px;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(--w3m-notification-border-radius);border:1px solid var(--w3m-color-overlay);background-color:var(--w3m-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--w3m-color-bg-3)}}.w3m-success path{fill:var(--w3m-accent-color)}.w3m-error path{fill:var(--w3m-error-color)}`,avn=Object.defineProperty,ivn=Object.getOwnPropertyDescriptor,VAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?ivn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&avn(e,t,a),a},Hz=class extends gt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=Rc.subscribe(r=>{r.open?(this.open=!0,this.timeout=setTimeout(()=>Rc.closeToast(),2200)):(this.open=!1,clearTimeout(this.timeout))})}disconnectedCallback(){var r;(r=this.unsubscribe)==null||r.call(this),clearTimeout(this.timeout),Rc.closeToast()}render(){let{message:r,variant:e}=Rc.state,t={"w3m-success":e==="success","w3m-error":e==="error"};return this.open?_e`
${e==="success"?yr.CHECKMARK_ICON:null} ${e==="error"?yr.CROSS_ICON:null}${r}
`:null}};Hz.styles=[or.globalCss,nvn],VAt([wn()],Hz.prototype,"open",2),Hz=VAt([Qt("w3m-modal-toast")],Hz);svn=pr`button{padding:5px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:all .2s ease;display:flex;flex-direction:column;align-items:center;justify-content:center;width:80px;height:90px}w3m-network-image{width:54px;height:59px}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;margin-top:5px}button:hover{background-color:var(--w3m-color-overlay)}`,ovn=Object.defineProperty,cvn=Object.getOwnPropertyDescriptor,jz=(r,e,t,n)=>{for(var a=n>1?void 0:n?cvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ovn(e,t,a),a},gE=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.chainId=""}render(){return _e``}};gE.styles=[or.globalCss,svn],jz([ar()],gE.prototype,"onClick",2),jz([ar()],gE.prototype,"name",2),jz([ar()],gE.prototype,"chainId",2),gE=jz([Qt("w3m-network-button")],gE);uvn=pr`div{width:inherit;height:inherit}.polygon-stroke{stroke:var(--w3m-color-overlay)}svg{width:100%;height:100%;margin:0}#network-placeholder-fill{fill:var(--w3m-color-bg-3)}#network-placeholder-dash{stroke:var(--w3m-color-overlay)}`,lvn=Object.defineProperty,dvn=Object.getOwnPropertyDescriptor,$At=(r,e,t,n)=>{for(var a=n>1?void 0:n?dvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&lvn(e,t,a),a},zz=class extends gt{constructor(){super(...arguments),this.chainId=""}render(){let r=Fe.getChainIcon(this.chainId);return r?_e`
`:_e`${yr.NETWORK_PLACEHOLDER}`}};zz.styles=[or.globalCss,uvn],$At([ar()],zz.prototype,"chainId",2),zz=$At([Qt("w3m-network-image")],zz);pvn=.1,YAt=2.5,my=7;fvn={generate(r,e,t,n){let a=n==="light"?"#141414":"#fff",i=n==="light"?"#fff":"#141414",s=[],o=hvn(r,"Q"),c=e/o.length,u=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];u.forEach(({x:E,y:I})=>{let S=(o.length-my)*c*E,L=(o.length-my)*c*I,F=.32;for(let W=0;W`)}});let l=Math.floor((t+25)/c),h=o.length/2-l/2,f=o.length/2+l/2-1,m=[];o.forEach((E,I)=>{E.forEach((S,L)=>{if(o[I][L]&&!(Io.length-(my+1)&&Lo.length-(my+1))&&!(I>h&&Ih&&L{y[E]?y[E].push(I):y[E]=[I]}),Object.entries(y).map(([E,I])=>{let S=I.filter(L=>I.every(F=>!A0e(L,F,c)));return[Number(E),S]}).forEach(([E,I])=>{I.forEach(S=>{s.push(Dr``)})}),Object.entries(y).filter(([E,I])=>I.length>1).map(([E,I])=>{let S=I.filter(L=>I.some(F=>A0e(L,F,c)));return[Number(E),S]}).map(([E,I])=>{I.sort((L,F)=>LW.some(V=>A0e(L,V,c)));F?F.push(L):S.push([L])}return[E,S.map(L=>[L[0],L[L.length-1]])]}).forEach(([E,I])=>{I.forEach(([S,L])=>{s.push(Dr``)})}),s}},mvn=pr`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;width:100%;aspect-ratio:1/1;animation:fadeIn ease .2s}svg:first-child,w3m-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{transform:translateY(-50%) translateX(-50%)}w3m-wallet-image{width:25%;height:25%;border-radius:15px}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--w3m-accent-color)}svg:first-child path:last-child{stroke:var(--w3m-color-overlay)}`,yvn=Object.defineProperty,gvn=Object.getOwnPropertyDescriptor,MP=(r,e,t,n)=>{for(var a=n>1?void 0:n?gvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&yvn(e,t,a),a},Ww=class extends gt{constructor(){super(...arguments),this.uri="",this.size=0,this.logoSrc="",this.walletId=""}svgTemplate(){var r;let e=(r=qm.state.themeMode)!=null?r:"light";return Dr`${fvn.generate(this.uri,this.size,this.size/4,e)}`}render(){return _e`
${this.walletId||this.logoSrc?_e``:yr.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};Ww.styles=[or.globalCss,mvn],MP([ar()],Ww.prototype,"uri",2),MP([ar({type:Number})],Ww.prototype,"size",2),MP([ar()],Ww.prototype,"logoSrc",2),MP([ar()],Ww.prototype,"walletId",2),Ww=MP([Qt("w3m-qrcode")],Ww);bvn=pr`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--w3m-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:transparent;position:absolute;background-color:var(--w3m-color-bg-3);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}input::placeholder{color:transparent}svg{margin-right:4px}.w3m-placeholder{top:0;left:50%;transform:translateX(-50%);transition:.2s all ease;pointer-events:none;display:flex;align-items:center;justify-content:center;height:100%;width:fit-content;position:relative}input:focus-within+.w3m-placeholder,input:not(:placeholder-shown)+.w3m-placeholder{transform:translateX(10px);left:0}w3m-text{opacity:1;transition:.2s opacity ease}input:focus-within+.w3m-placeholder w3m-text,input:not(:placeholder-shown)+.w3m-placeholder w3m-text{opacity:0}input:focus-within,input:not(:placeholder-shown){color:var(--w3m-color-fg-1)}input:focus-within{box-shadow:inset 0 0 0 1px var(--w3m-accent-color)}path{fill:var(--w3m-color-fg-2)}`,vvn=Object.defineProperty,wvn=Object.getOwnPropertyDescriptor,JAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?wvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&vvn(e,t,a),a},Kz=class extends gt{constructor(){super(...arguments),this.onChange=()=>null}render(){let r=Sr.isMobile()?"Search mobile wallets":"Search desktop wallets";return _e`
${yr.SEARCH_ICON}${r}
`}};Kz.styles=[or.globalCss,bvn],JAt([ar()],Kz.prototype,"onChange",2),Kz=JAt([Qt("w3m-search-input")],Kz);_vn=pr`@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(--w3m-accent-color)}`,xvn=Object.defineProperty,Tvn=Object.getOwnPropertyDescriptor,Evn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Tvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&xvn(e,t,a),a},S0e=class extends gt{render(){return _e``}};S0e.styles=[or.globalCss,_vn],S0e=Evn([Qt("w3m-spinner")],S0e);Cvn=pr`span{font-style:normal;font-family:var(--w3m-font-family);font-feature-settings:'tnum' on,'lnum' on,'case' on}.w3m-xsmall-bold{font-family:var(--w3m-text-xsmall-bold-font-family);font-weight:var(--w3m-text-xsmall-bold-weight);font-size:var(--w3m-text-xsmall-bold-size);line-height:var(--w3m-text-xsmall-bold-line-height);letter-spacing:var(--w3m-text-xsmall-bold-letter-spacing);text-transform:var(--w3m-text-xsmall-bold-text-transform)}.w3m-xsmall-regular{font-family:var(--w3m-text-xsmall-regular-font-family);font-weight:var(--w3m-text-xsmall-regular-weight);font-size:var(--w3m-text-xsmall-regular-size);line-height:var(--w3m-text-xsmall-regular-line-height);letter-spacing:var(--w3m-text-xsmall-regular-letter-spacing);text-transform:var(--w3m-text-xsmall-regular-text-transform)}.w3m-small-thin{font-family:var(--w3m-text-small-thin-font-family);font-weight:var(--w3m-text-small-thin-weight);font-size:var(--w3m-text-small-thin-size);line-height:var(--w3m-text-small-thin-line-height);letter-spacing:var(--w3m-text-small-thin-letter-spacing);text-transform:var(--w3m-text-small-thin-text-transform)}.w3m-small-regular{font-family:var(--w3m-text-small-regular-font-family);font-weight:var(--w3m-text-small-regular-weight);font-size:var(--w3m-text-small-regular-size);line-height:var(--w3m-text-small-regular-line-height);letter-spacing:var(--w3m-text-small-regular-letter-spacing);text-transform:var(--w3m-text-small-regular-text-transform)}.w3m-medium-regular{font-family:var(--w3m-text-medium-regular-font-family);font-weight:var(--w3m-text-medium-regular-weight);font-size:var(--w3m-text-medium-regular-size);line-height:var(--w3m-text-medium-regular-line-height);letter-spacing:var(--w3m-text-medium-regular-letter-spacing);text-transform:var(--w3m-text-medium-regular-text-transform)}.w3m-big-bold{font-family:var(--w3m-text-big-bold-font-family);font-weight:var(--w3m-text-big-bold-weight);font-size:var(--w3m-text-big-bold-size);line-height:var(--w3m-text-big-bold-line-height);letter-spacing:var(--w3m-text-big-bold-letter-spacing);text-transform:var(--w3m-text-big-bold-text-transform)}:host(*){color:var(--w3m-color-fg-1)}.w3m-color-primary{color:var(--w3m-color-fg-1)}.w3m-color-secondary{color:var(--w3m-color-fg-2)}.w3m-color-tertiary{color:var(--w3m-color-fg-3)}.w3m-color-inverse{color:var(--w3m-accent-fill-color)}.w3m-color-accnt{color:var(--w3m-accent-color)}.w3m-color-error{color:var(--w3m-error-color)}`,Ivn=Object.defineProperty,kvn=Object.getOwnPropertyDescriptor,P0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?kvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Ivn(e,t,a),a},NP=class extends gt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){let r={"w3m-big-bold":this.variant==="big-bold","w3m-medium-regular":this.variant==="medium-regular","w3m-small-regular":this.variant==="small-regular","w3m-small-thin":this.variant==="small-thin","w3m-xsmall-regular":this.variant==="xsmall-regular","w3m-xsmall-bold":this.variant==="xsmall-bold","w3m-color-primary":this.color==="primary","w3m-color-secondary":this.color==="secondary","w3m-color-tertiary":this.color==="tertiary","w3m-color-inverse":this.color==="inverse","w3m-color-accnt":this.color==="accent","w3m-color-error":this.color==="error"};return _e``}};NP.styles=[or.globalCss,Cvn],P0e([ar()],NP.prototype,"variant",2),P0e([ar()],NP.prototype,"color",2),NP=P0e([Qt("w3m-text")],NP);Avn=pr`div{overflow:hidden;position:relative;border-radius:50%}div::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}svg{width:100%;height:100%}#token-placeholder-fill{fill:var(--w3m-color-bg-3)}#token-placeholder-dash{stroke:var(--w3m-color-overlay)}`,Svn=Object.defineProperty,Pvn=Object.getOwnPropertyDescriptor,QAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Pvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Svn(e,t,a),a},Gz=class extends gt{constructor(){super(...arguments),this.symbol=void 0}render(){var r;let e=Fe.getTokenIcon((r=this.symbol)!=null?r:"");return e?_e`
${this.id}
`:yr.TOKEN_PLACEHOLDER}};Gz.styles=[or.globalCss,Avn],QAt([ar()],Gz.prototype,"symbol",2),Gz=QAt([Qt("w3m-token-image")],Gz);Rvn=pr`button{transition:all .2s ease;width:100%;height:100%;border-radius:var(--w3m-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:hover{background-color:var(--w3m-color-overlay)}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}w3m-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}w3m-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--w3m-wallet-icon-border-radius);margin-bottom:5px}.w3m-sublabel{margin-top:2px}`,Mvn=Object.defineProperty,Nvn=Object.getOwnPropertyDescriptor,Fg=(r,e,t,n)=>{for(var a=n>1?void 0:n?Nvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Mvn(e,t,a),a},jm=class extends gt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.src=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?_e`RECENT`:this.installed?_e`INSTALLED`:null}render(){var r;return _e``}};jm.styles=[or.globalCss,Rvn],Fg([ar()],jm.prototype,"onClick",2),Fg([ar()],jm.prototype,"name",2),Fg([ar()],jm.prototype,"walletId",2),Fg([ar()],jm.prototype,"label",2),Fg([ar()],jm.prototype,"src",2),Fg([ar()],jm.prototype,"installed",2),Fg([ar()],jm.prototype,"recent",2),jm=Fg([Qt("w3m-wallet-button")],jm);Bvn=pr`div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;inset:0;border-radius:inherit;border:1px solid var(--w3m-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,Dvn=Object.defineProperty,Ovn=Object.getOwnPropertyDescriptor,R0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Ovn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Dvn(e,t,a),a},BP=class extends gt{constructor(){super(...arguments),this.walletId=void 0,this.src=void 0}render(){var r;let e=Fe.getWalletId((r=this.walletId)!=null?r:""),t=Fe.getWalletId(e),n=this.src?this.src:Fe.getWalletIcon(t);return _e`${n.length?_e`
${this.id}
`:yr.WALLET_PLACEHOLDER}`}};BP.styles=[or.globalCss,Bvn],R0e([ar()],BP.prototype,"walletId",2),R0e([ar()],BP.prototype,"src",2),BP=R0e([Qt("w3m-wallet-image")],BP);Lvn=Object.defineProperty,qvn=Object.getOwnPropertyDescriptor,Fvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?qvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Lvn(e,t,a),a},ZAt=class extends gt{constructor(){super(),this.unwatchAccount=void 0,Ga.getAccount(),this.fetchProfile(),this.fetchBalance(),this.unwatchAccount=Bi.client().watchAccount(r=>{let{address:e}=Ga.state;r.address!==e&&(this.fetchProfile(r.address),this.fetchBalance(r.address)),Ga.setAddress(r.address),Ga.setIsConnected(r.isConnected)})}disconnectedCallback(){var r;(r=this.unwatchAccount)==null||r.call(this)}async fetchProfile(r){var e;let t=(e=yt.state.chains)==null?void 0:e.find(n=>n.id===1);if(Ls.state.enableAccountView&&t)try{await Ga.fetchProfile(Fe.preloadImage,r)}catch(n){console.error(n),Rc.openToast(Fe.getErrorMessage(n),"error")}}async fetchBalance(r){if(Ls.state.enableAccountView)try{await Ga.fetchBalance(r)}catch(e){console.error(e),Rc.openToast(Fe.getErrorMessage(e),"error")}}};ZAt=Fvn([Qt("w3m-account-context")],ZAt);Wvn=Object.defineProperty,Uvn=Object.getOwnPropertyDescriptor,XAt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Uvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Wvn(e,t,a),a},M0e=class extends gt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(r){try{r!=null&&r.length&&await Promise.all(r.map(async e=>Fe.preloadImage(e)))}catch{console.info("Unsuccessful attempt at preloading some images")}}async preloadListings(){var r;if(Ls.state.enableExplorer){let{standaloneChains:e,chains:t,walletConnectVersion:n}=yt.state,a=e?.join(",");await Promise.all([no.getPreviewWallets({page:1,entries:10,chains:a,device:Sr.isMobile()?"mobile":"desktop",version:n}),no.getRecomendedWallets()]),yt.setIsDataLoaded(!0);let{previewWallets:i,recomendedWallets:s}=no.state,o=(r=t?.map(u=>Fe.getChainIcon(u.id)))!=null?r:[],c=[...i,...s].map(u=>u.image_url.lg);await this.loadImages([...o,...c])}else yt.setIsDataLoaded(!0)}async preloadCustomImages(){let r=Fe.getCustomImageUrls();await this.loadImages(r)}async preloadConnectorImages(){if(!yt.state.isStandalone){let r=Fe.getConnectorImageUrls();await this.loadImages(r)}}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages(),this.preloadConnectorImages()]))}catch(r){console.error(r),Rc.openToast("Failed preloading","error")}}};XAt([wn()],M0e.prototype,"preload",2),M0e=XAt([Qt("w3m-explorer-context")],M0e);Hvn=Object.defineProperty,jvn=Object.getOwnPropertyDescriptor,eSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?jvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Hvn(e,t,a),a},N0e=class extends gt{constructor(){super(),this.activeChainId=void 0,this.unwatchNetwork=void 0;let r=yt.getSelectedChain();this.activeChainId=r?.id,this.unwatchNetwork=Bi.client().watchNetwork(e=>{let t=e.chain;t&&this.activeChainId!==t.id&&(yt.setSelectedChain(t),this.activeChainId=t.id,Ga.resetBalance(),this.fetchBalance())})}disconnectedCallback(){var r;(r=this.unwatchNetwork)==null||r.call(this)}async fetchBalance(){if(Ls.state.enableAccountView)try{await Ga.fetchBalance()}catch(r){console.error(r),Rc.openToast(Fe.getErrorMessage(r),"error")}}};eSt([wn()],N0e.prototype,"activeChainId",2),N0e=eSt([Qt("w3m-network-context")],N0e);zvn=Object.defineProperty,Kvn=Object.getOwnPropertyDescriptor,Gvn=(r,e,t,n)=>{for(var a=n>1?void 0:n?Kvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&zvn(e,t,a),a},tSt=class extends gt{constructor(){super(),this.unsubscribeTheme=void 0,or.setTheme(),this.unsubscribeTheme=qm.subscribe(or.setTheme)}disconnectedCallback(){var r;(r=this.unsubscribeTheme)==null||r.call(this)}};tSt=Gvn([Qt("w3m-theme-context")],tSt);Vvn=pr`:host{all:initial}div{display:flex;align-items:center;background-color:var(--w3m-color-overlay);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);border-radius:var(--w3m-button-border-radius);padding:4px 4px 4px 8px}div button{border-radius:var(--w3m-secondary-button-border-radius);padding:4px 8px;padding-left:4px;height:auto;margin-left:10px;color:var(--w3m-accent-fill-color);background-color:var(--w3m-accent-color)}.w3m-no-avatar{padding-left:8px}button::after{content:'';inset:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--w3m-color-overlay)}button:hover::after{background-color:var(--w3m-color-overlay)}w3m-avatar{margin-right:6px}w3m-button-big w3m-avatar{margin-left:-5px}`,$vn=Object.defineProperty,Yvn=Object.getOwnPropertyDescriptor,B0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Yvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&$vn(e,t,a),a},vE=class extends gt{constructor(){super(),this.balance="hide",this.avatar="show",Fe.rejectStandaloneButtonComponent()}onOpen(){let{isStandalone:r}=yt.state;r||ao.open({route:"Account"})}accountTemplate(){let r=this.avatar==="show";return _e`${r?_e``:null}`}render(){let r=this.balance==="show",e={"w3m-no-avatar":this.avatar==="hide"};return r?_e`
`:_e`${this.accountTemplate()}`}};vE.styles=[or.globalCss,Vvn],B0e([ar()],vE.prototype,"balance",2),B0e([ar()],vE.prototype,"avatar",2),vE=B0e([Qt("w3m-account-button")],vE);Jvn=pr`button{display:flex;border-radius:var(--w3m-button-hover-highlight-border-radius);flex-direction:column;transition:background-color .2s ease;justify-content:center;padding:5px;width:100px}button:hover{background-color:var(--w3m-color-overlay)}button:disabled{pointer-events:none}w3m-network-image{width:32px;height:32px}w3m-text{margin-top:4px}`,Qvn=Object.defineProperty,Zvn=Object.getOwnPropertyDescriptor,D0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?Zvn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Qvn(e,t,a),a},DP=class extends gt{constructor(){super(),this.chainId="",this.label="",this.unsubscribeNetwork=void 0;let{selectedChain:r}=yt.state;this.chainId=r?.id.toString(),this.label=r?.name,this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.chainId=e?.id.toString(),this.label=e?.name})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onClick(){Br.push("SelectNetwork")}render(){let{chains:r,selectedChain:e}=yt.state,t=r?.map(i=>i.id),n=e&&t?.includes(e.id),a=r&&r.length<=1&&n;return _e``}};DP.styles=[or.globalCss,Jvn],D0e([wn()],DP.prototype,"chainId",2),D0e([wn()],DP.prototype,"label",2),DP=D0e([Qt("w3m-account-network-button")],DP);Xvn=pr`@keyframes slide{0%{background-position:0 0}100%{background-position:200px 0}}w3m-text{padding:1px 0}.w3m-loading{background:linear-gradient(270deg,var(--w3m-color-fg-1) 36.33%,var(--w3m-color-fg-3) 42.07%,var(--w3m-color-fg-1) 83.3%);background-size:200px 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation-name:slide;animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear}`,e2n=Object.defineProperty,t2n=Object.getOwnPropertyDescriptor,OP=(r,e,t,n)=>{for(var a=n>1?void 0:n?t2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&e2n(e,t,a),a},Uw=class extends gt{constructor(){super(),this.address=void 0,this.name=void 0,this.loading=!0,this.variant="button",this.unsubscribeAccount=void 0,this.address=Ga.state.address,this.name=Ga.state.profileName,this.loading=!!Ga.state.profileLoading,this.unsubscribeAccount=Ga.subscribe(({address:r,profileName:e,profileLoading:t})=>{this.address=r,this.name=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){var r;let e=this.variant==="button",t={"w3m-loading":this.loading};return _e`${this.name?this.name:Fe.truncate((r=this.address)!=null?r:"")}`}};Uw.styles=[or.globalCss,Xvn],OP([wn()],Uw.prototype,"address",2),OP([wn()],Uw.prototype,"name",2),OP([wn()],Uw.prototype,"loading",2),OP([ar()],Uw.prototype,"variant",2),Uw=OP([Qt("w3m-address-text")],Uw);sl={allowedExplorerListings(r){let{explorerAllowList:e,explorerDenyList:t}=Ls.state,n=[...r];return e&&(n=n.filter(a=>e.includes(a.id))),t&&(n=n.filter(a=>!t.includes(a.id))),n},walletsWithInjected(r){let e=[...r??[]];if(window.ethereum){let t=Fe.getWalletName("");e=e.filter(({name:n})=>!Fe.caseSafeIncludes(n,t))}return e},connectorWallets(){let{isStandalone:r}=yt.state;if(r)return[];let e=Bi.client().getConnectors();return!window.ethereum&&Sr.isMobile()&&(e=e.filter(({id:t})=>t!=="injected"&&t!==wE.metaMask)),e},walletTemplatesWithRecent(r,e){let t=[...r];if(e){let n=Fe.getRecentWallet();t=t.filter(a=>!a.values.includes(n?.name)),t.splice(1,0,e)}return t},deduplicateExplorerListingsFromConnectors(r){let{isStandalone:e}=yt.state;if(e)return r;let t=Bi.client().getConnectors().map(({name:n})=>n.toUpperCase());return r.filter(({name:n})=>!t.includes(n.toUpperCase()))}},r2n=pr`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 10),0,0)}}.w3m-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px}.w3m-slider::after,.w3m-slider::before{content:'';height:100%;width:50px;z-index:2;position:absolute;background:linear-gradient(to right,var(--w3m-color-bg-1) 0,transparent 100%);top:0}.w3m-slider::before{left:0}.w3m-slider::after{right:0;transform:rotateZ(180deg)}.w3m-track{display:flex;width:calc(70px * 20);animation:scroll 20s linear infinite}.w3m-action{padding:30px 0 10px 0;display:flex;justify-content:center;align-items:center;flex-direction:column}.w3m-action w3m-button-big:last-child{margin-top:10px}w3m-wallet-image{width:60px;height:60px;margin:0 5px;box-shadow:0 2px 4px -2px rgba(0,0,0,.12),0 4px 4px -2px rgba(0,0,0,.08);border-radius:15px}w3m-button-big{margin:0 5px}`,n2n=Object.defineProperty,a2n=Object.getOwnPropertyDescriptor,i2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?a2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&n2n(e,t,a),a},O0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}onGoToConnectors(){Br.push("Connectors")}onGoToGetWallet(){Br.push("GetWallet")}getConnectors(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r}render(){let{previewWallets:r}=no.state,e=r.length,t=[...r,...r],n=this.getConnectors().length>0;return _e`${e?_e`
${t.map(({image_url:a})=>_e``)}
`:null}
${n?"WalletConnect":"Select Wallet"}${n?_e`Other`:null}
I don’t have a wallet
`}};O0e.styles=[or.globalCss,r2n],O0e=i2n([Qt("w3m-android-wallet-selection")],O0e);s2n=pr`@keyframes slide{0%{transform:translateX(-50px)}100%{transform:translateX(200px)}}.w3m-placeholder,img{border-radius:50%;box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);display:block;position:relative;overflow:hidden!important;background-color:var(--w3m-color-av-1);background-image:radial-gradient(at 66% 77%,var(--w3m-color-av-2) 0,transparent 50%),radial-gradient(at 29% 97%,var(--w3m-color-av-3) 0,transparent 50%),radial-gradient(at 99% 86%,var(--w3m-color-av-4) 0,transparent 50%),radial-gradient(at 29% 88%,var(--w3m-color-av-5) 0,transparent 50%);transform:translateZ(0)}.w3m-loader{width:50px;height:100%;background:linear-gradient(270deg,transparent 0,rgba(255,255,255,.4) 30%,transparent 100%);animation-name:slide;animation-duration:1.5s;transform:translateX(-50px);animation-iteration-count:infinite;animation-timing-function:linear;animation-delay:.55s}.w3m-small{width:24px;height:24px}.w3m-medium{width:60px;height:60px}`,o2n=Object.defineProperty,c2n=Object.getOwnPropertyDescriptor,LP=(r,e,t,n)=>{for(var a=n>1?void 0:n?c2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&o2n(e,t,a),a},Hw=class extends gt{constructor(){super(),this.address=void 0,this.avatar=void 0,this.loading=!0,this.size="small",this.unsubscribeAccount=void 0,this.address=Ga.state.address,this.avatar=Ga.state.profileAvatar,this.loading=!!Ga.state.profileLoading,this.unsubscribeAccount=Ga.subscribe(({address:r,profileAvatar:e,profileLoading:t})=>{this.address=r,this.avatar=e,this.loading=!!t})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r={"w3m-placeholder":!0,"w3m-small":this.size==="small","w3m-medium":this.size==="medium"};return this.avatar?_e``:this.address?(Fe.generateAvatarColors(this.address),_e`
${this.loading?_e`
`:null}
`):null}};Hw.styles=[or.globalCss,s2n],LP([wn()],Hw.prototype,"address",2),LP([wn()],Hw.prototype,"avatar",2),LP([wn()],Hw.prototype,"loading",2),LP([ar()],Hw.prototype,"size",2),Hw=LP([Qt("w3m-avatar")],Hw);u2n=pr`div{display:flex;align-items:center}w3m-token-image{width:28px;height:28px;margin-right:6px}`,l2n=Object.defineProperty,d2n=Object.getOwnPropertyDescriptor,L0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?d2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&l2n(e,t,a),a},qP=class extends gt{constructor(){var r,e;super(),this.symbol=void 0,this.amount=void 0,this.unsubscribeAccount=void 0,this.symbol=(r=Ga.state.balance)==null?void 0:r.symbol,this.amount=(e=Ga.state.balance)==null?void 0:e.amount,this.unsubscribeAccount=Ga.subscribe(({balance:t})=>{this.symbol=t?.symbol,this.amount=t?.amount})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let r="_._";return this.amount==="0.0"&&(r=0),this.amount&&this.amount.length>6&&(r=parseFloat(this.amount).toFixed(3)),_e`
${r} ${this.symbol}
`}};qP.styles=[or.globalCss,u2n],L0e([wn()],qP.prototype,"symbol",2),L0e([wn()],qP.prototype,"amount",2),qP=L0e([Qt("w3m-balance")],qP);p2n=pr`:host{all:initial}svg{width:28px;height:20px;margin:-1px 3px 0 -5px}svg path{fill:var(--w3m-accent-fill-color)}button:disabled svg path{fill:var(--w3m-color-fg-3)}w3m-spinner{margin:0 10px 0 0}`,h2n=Object.defineProperty,f2n=Object.getOwnPropertyDescriptor,Vz=(r,e,t,n)=>{for(var a=n>1?void 0:n?f2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&h2n(e,t,a),a},zw=class extends gt{constructor(){super(),this.loading=!1,this.label="Connect Wallet",this.icon="show",this.modalUnsub=void 0,Fe.rejectStandaloneButtonComponent(),this.modalUnsub=ao.subscribe(r=>{r.open&&(this.loading=!0),r.open||(this.loading=!1)})}disconnectedCallback(){var r;(r=this.modalUnsub)==null||r.call(this)}iconTemplate(){return this.icon==="show"?yr.WALLET_CONNECT_ICON:null}onClick(){Ga.state.isConnected?this.onDisconnect():this.onConnect()}onConnect(){this.loading=!0;let{enableNetworkView:r}=Ls.state,{chains:e,selectedChain:t}=yt.state,n=e?.length&&e.length>1;r||n&&!t?ao.open({route:"SelectNetwork"}):ao.open({route:"ConnectWallet"})}onDisconnect(){Bi.client().disconnect(),Ga.resetAccount()}render(){return _e`${this.loading?_e`Connecting...`:_e`${this.iconTemplate()}${this.label}`}`}};zw.styles=[or.globalCss,p2n],Vz([wn()],zw.prototype,"loading",2),Vz([ar()],zw.prototype,"label",2),Vz([ar()],zw.prototype,"icon",2),zw=Vz([Qt("w3m-connect-button")],zw);m2n=Object.defineProperty,y2n=Object.getOwnPropertyDescriptor,bE=(r,e,t,n)=>{for(var a=n>1?void 0:n?y2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&m2n(e,t,a),a},Wg=class extends gt{constructor(){super(),this.isConnected=!1,this.label="Connect Wallet",this.icon="show",this.avatar="show",this.balance="hide",this.unsubscribeAccount=void 0,Fe.rejectStandaloneButtonComponent(),this.isConnected=Ga.state.isConnected,this.unsubscribeAccount=Ga.subscribe(({isConnected:r})=>{this.isConnected=r})}disconnectedCallback(){var r;(r=this.unsubscribeAccount)==null||r.call(this)}render(){let{enableAccountView:r}=Ls.state,e=il(this.balance),t=il(this.label),n=il(this.icon),a=il(this.avatar);return this.isConnected&&r?_e``:_e``}};bE([wn()],Wg.prototype,"isConnected",2),bE([ar()],Wg.prototype,"label",2),bE([ar()],Wg.prototype,"icon",2),bE([ar()],Wg.prototype,"avatar",2),bE([ar()],Wg.prototype,"balance",2),Wg=bE([Qt("w3m-core-button")],Wg);g2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.w3m-desktop-title,.w3m-mobile-title{display:flex;align-items:center}.w3m-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.w3m-desktop-title{margin-bottom:10px;padding:0 10px}.w3m-subtitle{display:flex;align-items:center}.w3m-subtitle:last-child path{fill:var(--w3m-color-fg-3)}.w3m-desktop-title svg,.w3m-mobile-title svg{margin-right:6px}.w3m-desktop-title path,.w3m-mobile-title path{fill:var(--w3m-accent-color)}`,b2n=Object.defineProperty,v2n=Object.getOwnPropertyDescriptor,w2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?v2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&b2n(e,t,a),a},q0e=class extends gt{onDesktopWallet(r){Br.push("DesktopConnector",{DesktopConnector:r})}onInjectedWallet(){Br.push("InjectedConnector")}onInstallConnector(){Br.push("InstallConnector",{InstallConnector:{id:"metaMask",name:"MetaMask",isMobile:!0,url:"https://metamask.io"}})}async onConnectorWallet(r){window.ethereum?r==="injected"||r===wE.metaMask?this.onInjectedWallet():await Fe.handleConnectorConnection(r):this.onInstallConnector()}desktopWalletsTemplate(){let{desktopWallets:r}=Ls.state;return r?.map(({id:e,name:t,links:{universal:n,native:a}})=>_e``)}previewWalletsTemplate(){let r=sl.allowedExplorerListings(no.state.previewWallets);return r=sl.deduplicateExplorerListingsFromConnectors(r),r.map(({name:e,desktop:{universal:t,native:n},homepage:a,image_url:i,id:s})=>_e``)}connectorWalletsTemplate(){return sl.connectorWallets().map(({id:r,name:e,ready:t})=>_e``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return _e``}render(){let{standaloneUri:r}=yt.state,e=this.desktopWalletsTemplate(),t=this.previewWalletsTemplate(),n=this.connectorWalletsTemplate(),a=this.recentWalletTemplate(),i=[...e??[],...t],s=[...n,...i],o=sl.walletTemplatesWithRecent(s,a),c=sl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>4,h=[];l?h=u.slice(0,3):h=u;let f=!!h.length;return _e`
${yr.MOBILE_ICON}Mobile
${yr.SCAN_ICON}Scan with your wallet
${f?_e`
${yr.DESKTOP_ICON}Desktop
${h} ${l?_e``:null}
`:null}`}};q0e.styles=[or.globalCss,g2n],q0e=w2n([Qt("w3m-desktop-wallet-selection")],q0e);_2n=pr`div{background-color:var(--w3m-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--w3m-color-bg-3);text-align:center}a{color:var(--w3m-accent-color);text-decoration:none;transition:opacity .2s ease-in-out}a:hover{opacity:.8}`,x2n=Object.defineProperty,T2n=Object.getOwnPropertyDescriptor,E2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?T2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&x2n(e,t,a),a},F0e=class extends gt{render(){let{termsOfServiceUrl:r,privacyPolicyUrl:e}=Ls.state;return r??e?_e`
By connecting your wallet to this app, you agree to the app's
${r?_e`Terms of Service`:null} ${r&&e?"and":null} ${e?_e`Privacy Policy`:null}
`:null}};F0e.styles=[or.globalCss,_2n],F0e=E2n([Qt("w3m-legal-notice")],F0e);C2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`,I2n=Object.defineProperty,k2n=Object.getOwnPropertyDescriptor,A2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?k2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&I2n(e,t,a),a},W0e=class extends gt{onGoToQrcode(){Br.push("Qrcode")}async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}mobileWalletsTemplate(){let{mobileWallets:r}=Ls.state,e=sl.walletsWithInjected(r);if(e.length)return e.map(({id:t,name:n,links:{universal:a,native:i}})=>_e``)}previewWalletsTemplate(){let{previewWallets:r}=no.state,e=sl.walletsWithInjected(r);return e=sl.allowedExplorerListings(e),e=sl.deduplicateExplorerListingsFromConnectors(e),e.map(({image_url:t,name:n,mobile:{native:a,universal:i},id:s})=>_e``)}connectorWalletsTemplate(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r.map(({name:e,id:t,ready:n})=>_e``)}recentWalletTemplate(){let r=Fe.getRecentWallet();if(!r)return;let{id:e,name:t,links:n,image:a}=r;return _e``}render(){let{standaloneUri:r}=yt.state,e=this.connectorWalletsTemplate(),t=this.mobileWalletsTemplate(),n=this.previewWalletsTemplate(),a=this.recentWalletTemplate(),i=t??n,s=[...e,...i],o=sl.walletTemplatesWithRecent(s,a),c=sl.walletTemplatesWithRecent(i,a),u=r?c:o,l=u.length>8,h=[];l?h=u.slice(0,7):h=u;let f=h.slice(0,4),m=h.slice(4,8),y=!!h.length;return _e`${y?_e`
${f} ${m.length?_e`${m} ${l?_e``:null}`:null}
`:null}`}};W0e.styles=[or.globalCss,C2n],W0e=A2n([Qt("w3m-mobile-wallet-selection")],W0e);S2n=pr`:host{all:initial}.w3m-overlay{inset:0;position:fixed;z-index:var(--w3m-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;background-color:rgba(0,0,0,.3);opacity:0;pointer-events:none}@media(max-height:720px) and (orientation:landscape){.w3m-overlay{overflow:scroll;align-items:flex-start}}.w3m-open{pointer-events:auto}.w3m-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) var(--w3m-container-border-radius) var(--w3m-container-border-radius);border:1px solid var(--w3m-color-overlay);overflow:hidden}.w3m-card{width:100%;position:relative;border-radius:var(--w3m-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(--w3m-color-overlay);background-color:var(--w3m-color-bg-1);color:var(--w3m-color-fg-1)}@media(max-width:600px){.w3m-container{max-width:440px;border-radius:var(--w3m-background-border-radius) var(--w3m-background-border-radius) 0 0}.w3m-card{border-radius:var(--w3m-container-border-radius) var(--w3m-container-border-radius) 0 0}.w3m-overlay{align-items:flex-end}}@media(max-width:440px){.w3m-container{border:0}}`,P2n=Object.defineProperty,R2n=Object.getOwnPropertyDescriptor,rSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?R2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&P2n(e,t,a),a},UP=class extends gt{constructor(){super(),this.open=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=ao.subscribe(r=>{r.open?this.onOpenModalEvent():this.onCloseModalEvent()})}disconnectedCallback(){var r;(r=this.unsubscribeModal)==null||r.call(this)}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-overlay")}get containerEl(){return Fe.getShadowRootElement(this,".w3m-container")}toggleBodyScroll(r){document.querySelector("body")&&(r?document.getElementById("w3m-styles")?.remove():document.head.insertAdjacentHTML("beforeend",''))}onCloseModal(r){r.target===r.currentTarget&&ao.close()}async onOpenModalEvent(){this.toggleBodyScroll(!1);let r=.2;await Hm(this.containerEl,{y:0},{duration:0}).finished,Hm(this.overlayEl,{opacity:[0,1]},{duration:.2,delay:r}),Hm(this.containerEl,Fe.isMobileAnimation()?{y:["50vh",0]}:{scale:[.98,1]},{scale:{easing:mE({velocity:.4})},y:{easing:mE({mass:.5})},delay:r}),this.addKeyboardEvents(),this.open=!0}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents(),await Promise.all([Hm(this.containerEl,Fe.isMobileAnimation()?{y:[0,"50vh"]}:{scale:[1,.98]},{scale:{easing:mE({velocity:0})},y:{easing:mE({mass:.5})}}).finished,Hm(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished]),this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",r=>{var e;r.key==="Escape"?ao.close():r.key==="Tab"&&((e=r.target)!=null&&e.tagName.includes("W3M-")||this.containerEl.focus())},this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var r;(r=this.abortController)==null||r.abort(),this.abortController=void 0}managedModalContextTemplate(){let{isStandalone:r}=yt.state;return r?null:_e``}render(){let r={"w3m-overlay":!0,"w3m-open":this.open};return _e`${this.managedModalContextTemplate()}
${this.open?_e`
`:null}
`}};UP.styles=[or.globalCss,S2n],rSt([wn()],UP.prototype,"open",2),UP=rSt([Qt("w3m-modal")],UP);M2n=pr`:host{all:initial}w3m-network-image{margin-left:-6px;margin-right:6px;width:28px;height:28px}`,N2n=Object.defineProperty,B2n=Object.getOwnPropertyDescriptor,$z=(r,e,t,n)=>{for(var a=n>1?void 0:n?B2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&N2n(e,t,a),a},Kw=class extends gt{constructor(){super(),this.chainId="",this.label="",this.wrongNetwork=!1,this.unsubscribeNetwork=void 0,Fe.rejectStandaloneButtonComponent();let{selectedChain:r}=yt.state;this.onSetChainData(r),this.unsubscribeNetwork=yt.subscribe(({selectedChain:e})=>{this.onSetChainData(e)})}disconnectedCallback(){var r;(r=this.unsubscribeNetwork)==null||r.call(this)}onSetChainData(r){if(r){let{chains:e}=yt.state,t=e?.map(n=>n.id);this.chainId=r.id.toString(),this.wrongNetwork=!(t!=null&&t.includes(r.id)),this.label=this.wrongNetwork?"Wrong Network":r.name}}onClick(){ao.open({route:"SelectNetwork"})}render(){var r;let{chains:e}=yt.state,t=e&&e.length>1;return _e`${(r=this.label)!=null&&r.length?this.label:"Select Network"}`}};Kw.styles=[or.globalCss,M2n],$z([wn()],Kw.prototype,"chainId",2),$z([wn()],Kw.prototype,"label",2),$z([wn()],Kw.prototype,"wrongNetwork",2),Kw=$z([Qt("w3m-network-switch")],Kw);D2n=pr`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--w3m-button-hover-highlight-border-radius);transition:background-color .2s ease;height:100%;justify-content:flex-start}.w3m-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--w3m-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay)}button:hover{background-color:var(--w3m-color-overlay)}.w3m-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--w3m-wallet-icon-border-radius)/ 2);border:1px solid var(--w3m-color-overlay)}.w3m-icons svg{width:21px;height:21px}.w3m-icons img:nth-child(1),.w3m-icons img:nth-child(2),.w3m-icons svg:nth-child(1),.w3m-icons svg:nth-child(2){margin-bottom:4px}w3m-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--w3m-color-bg-3)}#wallet-placeholder-dash{stroke:var(--w3m-color-overlay)}`,O2n=Object.defineProperty,L2n=Object.getOwnPropertyDescriptor,q2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?L2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&O2n(e,t,a),a},U0e=class extends gt{onClick(){Br.push("WalletExplorer")}render(){let{previewWallets:r}=no.state,e=Fe.getCustomWallets(),t=[...r,...e].reverse().slice(0,4);return _e``}};U0e.styles=[or.globalCss,D2n],U0e=q2n([Qt("w3m-view-all-wallets-button")],U0e);F2n=pr`.w3m-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`,W2n=Object.defineProperty,U2n=Object.getOwnPropertyDescriptor,nSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?U2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&W2n(e,t,a),a},Yz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}get overlayEl(){return Fe.getShadowRootElement(this,".w3m-qr-container")}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();try{let{standaloneUri:t}=yt.state;t?setTimeout(()=>this.uri=t,0):(await Bi.client().connectWalletConnect(n=>this.uri=n,(e=yt.state.selectedChain)==null?void 0:e.id),ao.close())}catch(t){console.error(t),Rc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}render(){return _e`
${this.uri?_e``:_e``}
`}};Yz.styles=[or.globalCss,F2n],nSt([wn()],Yz.prototype,"uri",2),Yz=nSt([Qt("w3m-walletconnect-qr")],Yz);H2n=pr`.w3m-profile{display:flex;justify-content:space-between;align-items:flex-start;padding-top:20px}.w3m-connection-badge{background-color:var(--w3m-color-bg-2);box-shadow:inset 0 0 0 1px var(--w3m-color-overlay);padding:6px 10px 6px 26px;position:relative;border-radius:28px}.w3m-connection-badge::before{content:'';position:absolute;width:10px;height:10px;left:10px;background-color:var(--w3m-success-color);border-radius:50%;top:50%;margin-top:-5px;box-shadow:0 1px 4px 1px var(--w3m-success-color),inset 0 0 0 1px var(--w3m-color-overlay)}.w3m-footer{display:flex;justify-content:space-between}w3m-address-text{margin-top:10px;display:block}.w3m-balance{border-top:1px solid var(--w3m-color-bg-2);padding:11px 20px}`,j2n=Object.defineProperty,z2n=Object.getOwnPropertyDescriptor,K2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?z2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&j2n(e,t,a),a},H0e=class extends gt{onDisconnect(){ao.close(),Bi.client().disconnect(),Ga.resetAccount()}async onCopyAddress(){var r;await navigator.clipboard.writeText((r=Ga.state.address)!=null?r:""),Rc.openToast("Address copied","success")}render(){return _e`
Connected
`}};H0e.styles=[or.globalCss,H2n],H0e=K2n([Qt("w3m-account-view")],H0e);G2n=Object.defineProperty,V2n=Object.getOwnPropertyDescriptor,$2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?V2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&G2n(e,t,a),a},j0e=class extends gt{viewTemplate(){return Sr.isAndroid()?_e``:Sr.isMobile()?_e``:_e``}render(){return _e`${this.viewTemplate()}`}};j0e.styles=[or.globalCss],j0e=$2n([Qt("w3m-connect-wallet-view")],j0e);Y2n=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}`,J2n=Object.defineProperty,Q2n=Object.getOwnPropertyDescriptor,Z2n=(r,e,t,n)=>{for(var a=n>1?void 0:n?Q2n(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&J2n(e,t,a),a},z0e=class extends gt{async onConnectorWallet(r){await Fe.handleConnectorConnection(r)}connectorWalletsTemplate(){let r=sl.connectorWallets();return window.ethereum||(r=r.filter(({id:e})=>e!=="injected"&&e!==wE.metaMask)),r.map(({name:e,id:t,ready:n})=>_e``)}render(){let r=this.connectorWalletsTemplate();return _e`
${r}
`}};z0e.styles=[or.globalCss,Y2n],z0e=Z2n([Qt("w3m-connectors-view")],z0e);X2n=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}.w3m-install-actions{display:flex}.w3m-install-actions w3m-button{margin:0 5px;opacity:1}`,ewn=Object.defineProperty,twn=Object.getOwnPropertyDescriptor,aSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?twn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&ewn(e,t,a),a},Jz=class extends gt{constructor(){super(),this.uri="",this.createConnectionAndWait()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.DesktopConnector;if(!e)throw new Error("Missing router data");return e}onFormatAndRedirect(r){let{native:e,universal:t,name:n}=this.getRouterData();if(e){let a=Sr.formatNativeUrl(e,r,n);Sr.openHref(a,"_self")}else if(t){let a=Sr.formatUniversalUrl(t,r,n);Sr.openHref(a,"_blank")}}async createConnectionAndWait(r=0){var e;Sr.removeWalletConnectDeepLink();let{standaloneUri:t}=yt.state,{name:n,walletId:a,native:i,universal:s,icon:o}=this.getRouterData(),c={name:n,id:a,links:{native:i,universal:s},image:o};if(t)Fe.setRecentWallet(c),this.onFormatAndRedirect(t);else try{await Bi.client().connectWalletConnect(u=>{this.uri=u,this.onFormatAndRedirect(u)},(e=yt.state.selectedChain)==null?void 0:e.id),Fe.setRecentWallet(c),ao.close()}catch{Rc.openToast("Connection request declined","error"),r<2&&this.createConnectionAndWait(r+1)}}onConnectWithMobile(){Br.push("Qrcode")}onGoToWallet(){let{universal:r,name:e}=this.getRouterData();if(r){let t=Sr.formatUniversalUrl(r,this.uri,e);Sr.openHref(t,"_blank")}}render(){let{name:r,icon:e,universal:t,walletId:n}=this.getRouterData(),a=Fe.getWalletName(r);return _e`
${e?_e``:_e``}
${`Continue in ${a}...`}
Retry${t?_e`Go to Wallet`:_e`Connect with Mobile`}
`}};Jz.styles=[or.globalCss,X2n],aSt([wn()],Jz.prototype,"uri",2),Jz=aSt([Qt("w3m-desktop-connector-view")],Jz);rwn=pr`.w3m-info-text{margin:5px 0 15px;max-width:320px;text-align:center}.w3m-wallet-item{margin:0 -20px 0 0;padding-right:20px;display:flex;align-items:center;border-bottom:1px solid var(--w3m-color-bg-2)}.w3m-wallet-item:last-child{margin-bottom:-20px;border-bottom:0}.w3m-wallet-content{margin-left:20px;height:60px;display:flex;flex:1;align-items:center;justify-content:space-between}.w3m-footer-actions{display:flex;flex-direction:column;align-items:center;padding:20px 0;border-top:1px solid var(--w3m-color-bg-2)}w3m-wallet-image{display:block;width:40px;height:40px;border-radius:10px}`,nwn=Object.defineProperty,awn=Object.getOwnPropertyDescriptor,iwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?awn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&nwn(e,t,a),a},K0e=class extends gt{onGet(r){Sr.openHref(r,"_blank")}render(){let{recomendedWallets:r}=no.state,e=Fe.getCustomWallets().slice(0,6),t=r.length,n=e.length;return _e`${t?r.map(({name:a,image_url:i,homepage:s})=>_e`
${a}Get
`):null} ${n?e.map(({name:a,id:i,links:s})=>_e`
${a}Get
`):null}
`}};K0e.styles=[or.globalCss,rwn],K0e=iwn([Qt("w3m-get-wallet-view")],K0e);swn=pr`.w3m-footer-actions{display:flex;justify-content:center}.w3m-footer-actions w3m-button{margin:0 5px}.w3m-info-container{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:20px}.w3m-info-container:last-child{margin-bottom:0}.w3m-info-text{margin-top:5px;text-align:center}.w3m-images svg{margin:0 2px 5px;width:55px;height:55px}.help-img-highlight{stroke:var(--w3m-color-overlay)}`,own=Object.defineProperty,cwn=Object.getOwnPropertyDescriptor,uwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?cwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&own(e,t,a),a},G0e=class extends gt{constructor(){super(...arguments),this.learnUrl="https://ethereum.org/en/wallets/"}onGet(){Ls.state.enableExplorer?Br.push("GetWallet"):Fe.openWalletExplorerUrl()}onLearnMore(){Sr.openHref(this.learnUrl,"_blank")}render(){return _e`
${yr.HELP_CHART_IMG} ${yr.HELP_PAINTING_IMG} ${yr.HELP_ETH_IMG}
A home for your digital assetsA wallet lets you store, send and receive digital assets like cryptocurrencies and NFTs.
${yr.HELP_KEY_IMG} ${yr.HELP_USER_IMG} ${yr.HELP_LOCK_IMG}
One login for all of web3Log in to any app by connecting your wallet. Say goodbye to countless passwords!
${yr.HELP_COMPAS_IMG} ${yr.HELP_NOUN_IMG} ${yr.HELP_DAO_IMG}
Your gateway to a new webWith your wallet, you can explore and interact with DeFi, NFTs, DAOs, and much more.
`}};G0e.styles=[or.globalCss,swn],G0e=uwn([Qt("w3m-help-view")],G0e);lwn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:20px}w3m-spinner{margin-right:10px}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-injected-error w3m-button{opacity:1}`,dwn=Object.defineProperty,pwn=Object.getOwnPropertyDescriptor,V0e=(r,e,t,n)=>{for(var a=n>1?void 0:n?pwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&dwn(e,t,a),a},FP=class extends gt{constructor(){super(),this.connecting=!0,this.error=!1,this.connector=Bi.client().getConnectorById("injected"),this.onConnect()}async onConnect(){let{ready:r}=this.connector;r&&(this.error=!1,this.connecting=!0,await Fe.handleConnectorConnection("injected",()=>{this.error=!0,this.connecting=!1}))}render(){let r=Fe.getWalletName(this.connector.name),e=Fe.getWalletId(this.connector.id),t={"w3m-injected-wrapper":!0,"w3m-injected-error":this.error};return _e`
${this.connecting?_e``:null}${this.error?"Connection declined":`Continue in ${r}...`}
Try Again
`}};FP.styles=[or.globalCss,lwn],V0e([wn()],FP.prototype,"connecting",2),V0e([wn()],FP.prototype,"error",2),FP=V0e([Qt("w3m-injected-connector-view")],FP);hwn=pr`.w3m-injected-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}.w3m-install-title{display:flex;align-items:center;justify-content:center;flex-direction:column}.w3m-install-title w3m-text:last-child{margin-top:10px;max-width:240px}.w3m-install-actions{display:flex;margin-top:15px;align-items:center;flex-direction:column}@media(max-width:355px){.w3m-install-actions{flex-direction:column;align-items:center}}w3m-wallet-image{border-radius:15px;width:25%;aspect-ratio:1/1;margin-bottom:20px}w3m-button{opacity:0}.w3m-install-actions w3m-button{margin:5px;opacity:1}.w3m-info-text{text-align:center}`,fwn=Object.defineProperty,mwn=Object.getOwnPropertyDescriptor,ywn=(r,e,t,n)=>{for(var a=n>1?void 0:n?mwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&fwn(e,t,a),a},$0e=class extends gt{getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.InstallConnector;if(!e)throw new Error("Missing router data");return e}onInstall(){let{url:r}=this.getRouterData();Sr.openHref(r,"_blank")}onMobile(){let{name:r}=this.getRouterData();Br.push("ConnectWallet"),Rc.openToast(`Scan the code with ${r}`,"success")}render(){let{name:r,id:e,isMobile:t}=this.getRouterData();return _e`
Install ${r}To connect ${r}, install the browser extension.
Install Extension${t?_e`${r} Mobile`:null}
`}};$0e.styles=[or.globalCss,hwn],$0e=ywn([Qt("w3m-install-connector-view")],$0e);gwn=Object.defineProperty,bwn=Object.getOwnPropertyDescriptor,vwn=(r,e,t,n)=>{for(var a=n>1?void 0:n?bwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&gwn(e,t,a),a},Y0e=class extends gt{render(){return _e``}};Y0e.styles=[or.globalCss],Y0e=vwn([Qt("w3m-qrcode-view")],Y0e);wwn=pr`.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);margin:-5px -10px;justify-content:space-between}`,_wn=Object.defineProperty,xwn=Object.getOwnPropertyDescriptor,Twn=(r,e,t,n)=>{for(var a=n>1?void 0:n?xwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&_wn(e,t,a),a},J0e=class extends gt{async onSelectChain(r){try{let{selectedChain:e,walletConnectVersion:t}=yt.state,{isConnected:n}=Ga.state;n?e?.id===r.id?Br.replace("Account"):t===2?(await Bi.client().switchNetwork({chainId:r.id}),Br.replace("Account")):Br.push("SwitchNetwork",{SwitchNetwork:r}):(Br.push("ConnectWallet"),yt.setSelectedChain(r))}catch(e){console.error(e),Rc.openToast(Fe.getErrorMessage(e),"error")}}render(){let{chains:r}=yt.state;return _e`
${r?.map(e=>_e`${e.name}`)}
`}};J0e.styles=[or.globalCss,wwn],J0e=Twn([Qt("w3m-select-network-view")],J0e);Ewn=pr`.w3m-wrapper{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;flex-direction:column}.w3m-connecting-title{display:flex;align-items:center;justify-content:center;margin-bottom:16px}w3m-spinner{margin-right:10px}w3m-network-image{width:96px;height:96px;margin-bottom:20px}w3m-button{opacity:0}.w3m-error w3m-button{opacity:1}`,Cwn=Object.defineProperty,Iwn=Object.getOwnPropertyDescriptor,iSt=(r,e,t,n)=>{for(var a=n>1?void 0:n?Iwn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Cwn(e,t,a),a},Qz=class extends gt{constructor(){super(),this.error=!1,this.onSwitchNetwork()}getRouterData(){var r;let e=(r=Br.state.data)==null?void 0:r.SwitchNetwork;if(!e)throw new Error("Missing router data");return e}async onSwitchNetwork(){try{this.error=!1;let r=this.getRouterData();await Bi.client().switchNetwork({chainId:r.id}),yt.setSelectedChain(r),Br.replace("Account")}catch{this.error=!0}}render(){let{id:r,name:e}=this.getRouterData(),t={"w3m-wrapper":!0,"w3m-error":this.error};return _e`
${this.error?null:_e``}${this.error?"Connection declined":"Approve in your wallet"}
Try Again
`}};Qz.styles=[or.globalCss,Ewn],iSt([wn()],Qz.prototype,"error",2),Qz=iSt([Qt("w3m-switch-network-view")],Qz);kwn=pr`w3m-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.w3m-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}w3m-modal-content::after,w3m-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}w3m-modal-content::before{box-shadow:0 -1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(var(--w3m-color-bg-1),rgba(255,255,255,0))}w3m-modal-content::after{box-shadow:0 1px 0 0 var(--w3m-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--w3m-color-bg-1));top:calc(100% - 20px)}w3m-modal-content::-webkit-scrollbar{display:none}.w3m-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.w3m-empty,.w3m-loading{display:flex}.w3m-loading .w3m-placeholder-block{height:100%}.w3m-end-reached .w3m-placeholder-block{height:0;opacity:0}.w3m-empty .w3m-placeholder-block{opacity:1;height:100%}w3m-wallet-button{margin:calc((100% - 60px)/ 3) 0}`,Awn=Object.defineProperty,Swn=Object.getOwnPropertyDescriptor,WP=(r,e,t,n)=>{for(var a=n>1?void 0:n?Swn(e,t):e,i=r.length-1,s;i>=0;i--)(s=r[i])&&(a=(n?s(e,t,a):s(a))||a);return n&&a&&Awn(e,t,a),a},Q0e=40,jw=class extends gt{constructor(){super(...arguments),this.loading=!no.state.wallets.listings.length,this.firstFetch=!no.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Fe.debounce(r=>{r.length>=3?(this.firstFetch=!0,this.endReached=!1,this.search=r,no.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),no.resetSearch())})}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var r;(r=this.intersectionObserver)==null||r.disconnect()}get placeholderEl(){return Fe.getShadowRootElement(this,".w3m-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver(([r])=>{r.isIntersecting&&!(this.search&&this.firstFetch)&&this.fetchWallets()}),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){let{wallets:r,search:e}=no.state,{listings:t,total:n}=this.search?e:r;return n<=Q0e||t.length>=n}async fetchWallets(){var r;let{wallets:e,search:t}=no.state,n=Fe.getExtensionWallets(),{listings:a,total:i,page:s}=this.search?t:e;if(!this.endReached&&(this.firstFetch||i>Q0e&&a.lengthh.lg),l=n.map(({id:h})=>Fe.getWalletIcon(h));await Promise.all([...u.map(async h=>Fe.preloadImage(h)),...l.map(async h=>Fe.preloadImage(h)),Sr.wait(300)]),this.endReached=this.isLastPage()}catch(o){console.error(o),Rc.openToast(Fe.getErrorMessage(o),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnectCustom({name:r,id:e,links:t}){Sr.isMobile()?Fe.handleMobileLinking({links:t,name:r,id:e}):Br.push("DesktopConnector",{DesktopConnector:{name:r,walletId:e,universal:t.universal,native:t.native}})}onConnectListing(r){if(Sr.isMobile()){let{id:e,image_url:t}=r,{native:n,universal:a}=r.mobile;Fe.handleMobileLinking({links:{native:n,universal:a},name:r.name,id:e,image:t.lg})}else Br.push("DesktopConnector",{DesktopConnector:{name:r.name,icon:r.image_url.lg,universal:r.desktop.universal||r.homepage,native:r.desktop.native}})}onConnectExtension(r){Fe.getWalletId("")===r.id?Br.push("InjectedConnector"):Br.push("InstallConnector",{InstallConnector:r})}onSearchChange(r){let{value:e}=r.target;this.searchDebounce(e)}render(){let{wallets:r,search:e}=no.state,{isStandalone:t}=yt.state,{listings:n}=this.search?e:r;n=sl.allowedExplorerListings(n);let a=this.loading&&!n.length,i=this.search.length>=3,s=!t&&!Sr.isMobile()?Fe.getExtensionWallets():[],o=Fe.getCustomWallets();i&&(s=s.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)),o=o.filter(({name:h})=>Fe.caseSafeIncludes(h,this.search)));let c=!this.loading&&!n.length&&!s.length,u=Math.max(s.length,n.length),l={"w3m-loading":a,"w3m-end-reached":this.endReached||!this.loading,"w3m-empty":c};return _e`
${a?null:[...Array(u)].map((h,f)=>_e`${o[f]?_e``:null} ${s[f]?_e``:null} ${n[f]?_e``:null}`)}
${c?_e`No results found`:null} ${!c&&this.loading?_e``:null}
`}};jw.styles=[or.globalCss,kwn],WP([wn()],jw.prototype,"loading",2),WP([wn()],jw.prototype,"firstFetch",2),WP([wn()],jw.prototype,"search",2),WP([wn()],jw.prototype,"endReached",2),jw=WP([Qt("w3m-wallet-explorer-view")],jw)});var dSt={};cr(dSt,{Web3Modal:()=>Z0e});var Pwn,uSt,Rwn,Mwn,lSt,Nwn,Z0e,pSt=ce(()=>{d();p();Sme();Pwn=Object.defineProperty,uSt=Object.getOwnPropertySymbols,Rwn=Object.prototype.hasOwnProperty,Mwn=Object.prototype.propertyIsEnumerable,lSt=(r,e,t)=>e in r?Pwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,Nwn=(r,e)=>{for(var t in e||(e={}))Rwn.call(e,t)&&lSt(r,t,e[t]);if(uSt)for(var t of uSt(e))Mwn.call(e,t)&&lSt(r,t,e[t]);return r},Z0e=class{constructor(e){this.openModal=ao.open,this.closeModal=ao.close,this.subscribeModal=ao.subscribe,this.setTheme=qm.setThemeConfig,qm.setThemeConfig(e),Ls.setConfig(Nwn({enableStandaloneMode:!0},e)),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.resolve().then(()=>(cSt(),oSt));let e=document.createElement("w3m-modal");document.body.insertAdjacentElement("beforeend",e),yt.setIsUiLoaded(!0)}}}});var tye=x(Ug=>{"use strict";d();p();Object.defineProperty(Ug,"__esModule",{value:!0});var Bwn=Bu(),HP=jS(),Dwn=YIt();function Own(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var Lwn="wc",qwn="ethereum_provider",Fwn=`${Lwn}@${2}:${qwn}:`,Wwn="https://rpc.walletconnect.com/v1/",Zz=["eth_sendTransaction","personal_sign"],Uwn=["eth_accounts","eth_requestAccounts","eth_call","eth_getBalance","eth_sendRawTransaction","eth_sign","eth_signTransaction","eth_signTypedData","eth_signTypedData_v3","eth_signTypedData_v4","wallet_switchEthereumChain","wallet_addEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"],Xz=["chainChanged","accountsChanged"],Hwn=["message","disconnect","connect"],jwn=Object.defineProperty,zwn=Object.defineProperties,Kwn=Object.getOwnPropertyDescriptors,hSt=Object.getOwnPropertySymbols,Gwn=Object.prototype.hasOwnProperty,Vwn=Object.prototype.propertyIsEnumerable,fSt=(r,e,t)=>e in r?jwn(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,mSt=(r,e)=>{for(var t in e||(e={}))Gwn.call(e,t)&&fSt(r,t,e[t]);if(hSt)for(var t of hSt(e))Vwn.call(e,t)&&fSt(r,t,e[t]);return r},ySt=(r,e)=>zwn(r,Kwn(e));function eye(r){return Number(r[0].split(":")[1])}function X0e(r){return`0x${r.toString(16)}`}function $wn(r){let{chains:e,optionalChains:t,methods:n,optionalMethods:a,events:i,optionalEvents:s,rpcMap:o}=r;if(!HP.isValidArray(e))throw new Error("Invalid chains");let c=e,u=n||Zz,l=i||Xz,h={[eye(c)]:o[eye(c)]},f={chains:c,methods:u,events:l,rpcMap:h},m=i?.filter(S=>!Xz.includes(S)),y=n?.filter(S=>!Zz.includes(S));if(!t&&!s&&!a&&!(m!=null&&m.length)&&!(y!=null&&y.length))return{required:f};let E=m?.length&&y?.length||!t,I={chains:[...new Set(E?c.concat(t||[]):t)],methods:[...new Set(u.concat(a||[]))],events:[...new Set(l.concat(s||[]))],rpcMap:o};return{required:f,optional:I}}var _E=class{constructor(){this.events=new Bwn.EventEmitter,this.namespace="eip155",this.accounts=[],this.chainId=1,this.STORAGE_KEY=Fwn,this.on=(e,t)=>(this.events.on(e,t),this),this.once=(e,t)=>(this.events.once(e,t),this),this.removeListener=(e,t)=>(this.events.removeListener(e,t),this),this.off=(e,t)=>(this.events.off(e,t),this),this.parseAccount=e=>this.isCompatibleChainId(e)?this.parseAccountId(e).address:e,this.signer={},this.rpc={}}static async init(e){let t=new _E;return await t.initialize(e),t}async request(e){return await this.signer.request(e,this.formatChainId(this.chainId))}sendAsync(e,t){this.signer.sendAsync(e,t,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(e){if(!this.signer.client)throw new Error("Provider not initialized. Call init() first");this.loadConnectOpts(e);let{required:t,optional:n}=$wn(this.rpc);try{let a=await new Promise(async(s,o)=>{var c;this.rpc.showQrModal&&((c=this.modal)==null||c.subscribeModal(u=>{!u.open&&!this.signer.session&&(this.signer.abortPairingAttempt(),o(new Error("Connection request reset. Please try again.")))})),await this.signer.connect(ySt(mSt({namespaces:{[this.namespace]:t}},n&&{optionalNamespaces:{[this.namespace]:n}}),{pairingTopic:e?.pairingTopic})).then(u=>{s(u)}).catch(u=>{o(new Error(u.message))})});if(!a)return;this.setChainIds(this.rpc.chains);let i=HP.getAccountsFromNamespaces(a.namespaces,[this.namespace]);this.setAccounts(i),this.events.emit("connect",{chainId:X0e(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",e=>{let{params:t}=e,{event:n}=t;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",e)}),this.signer.on("chainChanged",e=>{let t=parseInt(e);this.chainId=t,this.events.emit("chainChanged",X0e(this.chainId)),this.persist()}),this.signer.on("session_update",e=>{this.events.emit("session_update",e)}),this.signer.on("session_delete",e=>{this.reset(),this.events.emit("session_delete",e),this.events.emit("disconnect",ySt(mSt({},HP.getSdkError("USER_DISCONNECTED")),{data:e.topic,name:"USER_DISCONNECTED"}))}),this.signer.on("display_uri",e=>{var t,n;this.rpc.showQrModal&&((t=this.modal)==null||t.closeModal(),(n=this.modal)==null||n.openModal({uri:e})),this.events.emit("display_uri",e)})}setHttpProvider(e){this.request({method:"wallet_switchEthereumChain",params:[{chainId:e.toString(16)}]})}isCompatibleChainId(e){return typeof e=="string"?e.startsWith(`${this.namespace}:`):!1}formatChainId(e){return`${this.namespace}:${e}`}parseChainId(e){return Number(e.split(":")[1])}setChainIds(e){let t=e.filter(n=>this.isCompatibleChainId(n)).map(n=>this.parseChainId(n));t.length&&(this.chainId=t[0],this.events.emit("chainChanged",X0e(this.chainId)),this.persist())}setChainId(e){if(this.isCompatibleChainId(e)){let t=this.parseChainId(e);this.chainId=t,this.setHttpProvider(t)}}parseAccountId(e){let[t,n,a]=e.split(":");return{chainId:`${t}:${n}`,address:a}}setAccounts(e){this.accounts=e.filter(t=>this.parseChainId(this.parseAccountId(t).chainId)===this.chainId).map(t=>this.parseAccountId(t).address),this.events.emit("accountsChanged",this.accounts)}getRpcConfig(e){var t,n;return{chains:((t=e.chains)==null?void 0:t.map(a=>this.formatChainId(a)))||[`${this.namespace}:1`],optionalChains:e.optionalChains?e.optionalChains.map(a=>this.formatChainId(a)):void 0,methods:e?.methods||Zz,events:e?.events||Xz,optionalMethods:e?.optionalMethods||[],optionalEvents:e?.optionalEvents||[],rpcMap:e?.rpcMap||this.buildRpcMap(e.chains.concat(e.optionalChains||[]),e.projectId),showQrModal:(n=e?.showQrModal)!=null?n:!0,projectId:e.projectId,metadata:e.metadata}}buildRpcMap(e,t){let n={};return e.forEach(a=>{n[a]=this.getRpcUrl(a,t)}),n}async initialize(e){if(this.rpc=this.getRpcConfig(e),this.chainId=eye(this.rpc.chains),this.signer=await Dwn.UniversalProvider.init({projectId:this.rpc.projectId,metadata:this.rpc.metadata}),this.registerEventListeners(),await this.loadPersistedSession(),this.rpc.showQrModal){let{Web3Modal:t}=await Promise.resolve().then(function(){return Own((pSt(),nt(dSt)))});this.modal=new t({walletConnectVersion:2,projectId:this.rpc.projectId,standaloneChains:this.rpc.chains})}}loadConnectOpts(e){if(!e)return;let{chains:t,optionalChains:n,rpcMap:a}=e;t&&HP.isValidArray(t)&&(this.rpc.chains=t.map(i=>this.formatChainId(i)),t.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)})),n&&HP.isValidArray(n)&&(this.rpc.optionalChains=[],this.rpc.optionalChains=n?.map(i=>this.formatChainId(i)),n.forEach(i=>{this.rpc.rpcMap[i]=a?.[i]||this.getRpcUrl(i)}))}getRpcUrl(e,t){var n;return((n=this.rpc.rpcMap)==null?void 0:n[e])||`${Wwn}?chainId=eip155:${e}&projectId=${t||this.rpc.projectId}`}async loadPersistedSession(){if(!this.session)return;let e=await this.signer.client.core.storage.getItem(`${this.STORAGE_KEY}/chainId`);this.setChainIds(e?[this.formatChainId(e)]:this.session.namespaces[this.namespace].accounts),this.setAccounts(this.session.namespaces[this.namespace].accounts)}reset(){this.chainId=1,this.accounts=[]}persist(){this.session&&this.signer.client.core.storage.setItem(`${this.STORAGE_KEY}/chainId`,this.chainId)}parseAccounts(e){return typeof e=="string"||e instanceof String?[this.parseAccount(e)]:e.map(t=>this.parseAccount(t))}},Ywn=_E;Ug.EthereumProvider=Ywn,Ug.OPTIONAL_EVENTS=Hwn,Ug.OPTIONAL_METHODS=Uwn,Ug.REQUIRED_EVENTS=Xz,Ug.REQUIRED_METHODS=Zz,Ug.default=_E});var ISt=x(dye=>{"use strict";d();p();Object.defineProperty(dye,"__esModule",{value:!0});var yi=bm(),Jr=vm(),Hg=Zo(),Vw=je(),jP=eT();Yu();vt();Qe();function Jwn(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var wSt="eip155",_St="wagmi.requestedChains",sye="wallet_addEthereumChain",rye="last-used-chain-id",Di=new WeakMap,tK=new WeakMap,$w=new WeakMap,nye=new WeakSet,xSt=new WeakSet,aye=new WeakSet,iye=new WeakSet,zP=new WeakSet,oye=new WeakSet,cye=new WeakSet,uye=new WeakSet,lye=class extends jP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),yi._classPrivateMethodInitSpec(this,uye),yi._classPrivateMethodInitSpec(this,cye),yi._classPrivateMethodInitSpec(this,oye),yi._classPrivateMethodInitSpec(this,zP),yi._classPrivateMethodInitSpec(this,iye),yi._classPrivateMethodInitSpec(this,aye),yi._classPrivateMethodInitSpec(this,xSt),yi._classPrivateMethodInitSpec(this,nye),Hg._defineProperty(this,"id","walletConnect"),Hg._defineProperty(this,"name","WalletConnect"),Hg._defineProperty(this,"ready",!0),Jr._classPrivateFieldInitSpec(this,Di,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,tK,{writable:!0,value:void 0}),Jr._classPrivateFieldInitSpec(this,$w,{writable:!0,value:void 0}),Hg._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Vw.utils.getAddress(t[0])})}),Hg._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Jr._classPrivateFieldGet(this,$w).setItem(rye,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),Hg._defineProperty(this,"onDisconnect",()=>{yi._classPrivateMethodGet(this,zP,eK).call(this,[]),Jr._classPrivateFieldGet(this,$w).removeItem(rye),this.emit("disconnect")}),Hg._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),Hg._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Jr._classPrivateFieldGet(this,Di)})}),Jr._classPrivateFieldSet(this,$w,e.options.storage),yi._classPrivateMethodGet(this,nye,gSt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Jr._classPrivateFieldGet(this,$w).getItem(rye),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await yi._classPrivateMethodGet(this,aye,bSt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),yi._classPrivateMethodGet(this,zP,eK).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=Vw.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new Vw.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new jP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{yi._classPrivateMethodGet(this,iye,vSt).call(this),yi._classPrivateMethodGet(this,zP,eK).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return Vw.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Jr._classPrivateFieldGet(this,Di)||await yi._classPrivateMethodGet(this,nye,gSt).call(this),e&&await this.switchChain(e),!Jr._classPrivateFieldGet(this,Di))throw new Error("No provider found.");return Jr._classPrivateFieldGet(this,Di)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Vw.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await yi._classPrivateMethodGet(this,aye,bSt).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){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new jP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=yi._classPrivateMethodGet(this,cye,ESt).call(this),i=yi._classPrivateMethodGet(this,uye,CSt).call(this);if(!a.includes(e)&&i.includes(sye)){await n.request({method:sye,params:[{chainId:Vw.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await yi._classPrivateMethodGet(this,oye,TSt).call(this);o.push(e),yi._classPrivateMethodGet(this,zP,eK).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:Vw.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new jP.UserRejectedRequestError(n):new jP.SwitchChainError(n)}}async setupListeners(){!Jr._classPrivateFieldGet(this,Di)||(yi._classPrivateMethodGet(this,iye,vSt).call(this),Jr._classPrivateFieldGet(this,Di).on("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Di).on("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Di).on("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Di).on("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Di).on("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Di).on("connect",this.onConnect))}};async function gSt(){return!Jr._classPrivateFieldGet(this,tK)&&typeof window<"u"&&Jr._classPrivateFieldSet(this,tK,yi._classPrivateMethodGet(this,xSt,Qwn).call(this)),Jr._classPrivateFieldGet(this,tK)}async function Qwn(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return Jwn(tye())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Jr._classPrivateFieldSet(this,Di,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function bSt(){if(yi._classPrivateMethodGet(this,uye,CSt).call(this).includes(sye)||!this.options.isNewChainsStale)return!1;let e=await yi._classPrivateMethodGet(this,oye,TSt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=yi._classPrivateMethodGet(this,cye,ESt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function vSt(){!Jr._classPrivateFieldGet(this,Di)||(Jr._classPrivateFieldGet(this,Di).removeListener("accountsChanged",this.onAccountsChanged),Jr._classPrivateFieldGet(this,Di).removeListener("chainChanged",this.onChainChanged),Jr._classPrivateFieldGet(this,Di).removeListener("disconnect",this.onDisconnect),Jr._classPrivateFieldGet(this,Di).removeListener("session_delete",this.onDisconnect),Jr._classPrivateFieldGet(this,Di).removeListener("display_uri",this.onDisplayUri),Jr._classPrivateFieldGet(this,Di).removeListener("connect",this.onConnect))}function eK(r){Jr._classPrivateFieldGet(this,$w).setItem(_St,JSON.stringify(r))}async function TSt(){let r=await Jr._classPrivateFieldGet(this,$w).getItem(_St);return r?JSON.parse(r):[]}function ESt(){return Jr._classPrivateFieldGet(this,Di)?Jr._classPrivateFieldGet(this,Di).session?.namespaces[wSt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function CSt(){return Jr._classPrivateFieldGet(this,Di)?Jr._classPrivateFieldGet(this,Di).session?.namespaces[wSt]?.methods??[]:[]}dye.WalletConnectConnector=lye});var SSt=x(vye=>{"use strict";d();p();Object.defineProperty(vye,"__esModule",{value:!0});var KP=bm(),hye=Zo(),Hr=vm(),Zwn=Qx(),Xwn=Xx();Yu();Qe();vt();z1();je();var jl=new WeakMap,xE=new WeakMap,e5n=new WeakMap,fye=new WeakMap,mye=new WeakMap,yye=new WeakMap,gye=new WeakMap,bye=new WeakMap,kSt=new WeakSet,pye=new WeakSet,Yw=class extends Xwn.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Yw.id,e),KP._classPrivateMethodInitSpec(this,pye),KP._classPrivateMethodInitSpec(this,kSt),Hr._classPrivateFieldInitSpec(this,jl,{writable:!0,value:void 0}),Hr._classPrivateFieldInitSpec(this,xE,{writable:!0,value:void 0}),hye._defineProperty(this,"connector",void 0),Hr._classPrivateFieldInitSpec(this,e5n,{writable:!0,value:t=>{if(t)throw t}}),Hr._classPrivateFieldInitSpec(this,fye,{writable:!0,value:t=>{if(Hr._classPrivateFieldSet(this,xE,t.provider),!Hr._classPrivateFieldGet(this,xE))throw new Error("WalletConnect provider not found after connecting.")}}),Hr._classPrivateFieldInitSpec(this,mye,{writable:!0,value:()=>{KP._classPrivateMethodGet(this,pye,ASt).call(this)}}),Hr._classPrivateFieldInitSpec(this,yye,{writable:!0,value:async t=>{t.chain||t.account}}),Hr._classPrivateFieldInitSpec(this,gye,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),Hr._classPrivateFieldInitSpec(this,bye,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return ISt()});Hr._classPrivateFieldSet(this,jl,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new Zwn.WagmiAdapter(Hr._classPrivateFieldGet(this,jl)),Hr._classPrivateFieldSet(this,xE,await Hr._classPrivateFieldGet(this,jl).getProvider()),KP._classPrivateMethodGet(this,kSt,t5n).call(this)}return this.connector}};function t5n(){!Hr._classPrivateFieldGet(this,jl)||(KP._classPrivateMethodGet(this,pye,ASt).call(this),Hr._classPrivateFieldGet(this,jl).on("connect",Hr._classPrivateFieldGet(this,fye)),Hr._classPrivateFieldGet(this,jl).on("disconnect",Hr._classPrivateFieldGet(this,mye)),Hr._classPrivateFieldGet(this,jl).on("change",Hr._classPrivateFieldGet(this,yye)),Hr._classPrivateFieldGet(this,jl).on("message",Hr._classPrivateFieldGet(this,gye)),Hr._classPrivateFieldGet(this,xE)?.signer.client.on("session_request_sent",Hr._classPrivateFieldGet(this,bye)))}function ASt(){!Hr._classPrivateFieldGet(this,jl)||(Hr._classPrivateFieldGet(this,jl).removeListener("connect",Hr._classPrivateFieldGet(this,fye)),Hr._classPrivateFieldGet(this,jl).removeListener("disconnect",Hr._classPrivateFieldGet(this,mye)),Hr._classPrivateFieldGet(this,jl).removeListener("change",Hr._classPrivateFieldGet(this,yye)),Hr._classPrivateFieldGet(this,jl).removeListener("message",Hr._classPrivateFieldGet(this,gye)),Hr._classPrivateFieldGet(this,xE)?.signer.client.removeListener("session_request_sent",Hr._classPrivateFieldGet(this,bye)))}hye._defineProperty(Yw,"id","walletConnect");hye._defineProperty(Yw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});vye.WalletConnect=Yw});var FSt=x(Sye=>{"use strict";d();p();Object.defineProperty(Sye,"__esModule",{value:!0});var gi=Am(),Qr=Sm(),jg=rc(),Jw=je(),GP=o6();el();vt();Qe();function r5n(r){if(r&&r.__esModule)return r;var e=Object.create(null);return r&&Object.keys(r).forEach(function(t){if(t!=="default"){var n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:function(){return r[t]}})}}),e.default=r,Object.freeze(e)}var NSt="eip155",BSt="wagmi.requestedChains",Eye="wallet_addEthereumChain",wye="last-used-chain-id",Oi=new WeakMap,nK=new WeakMap,Qw=new WeakMap,_ye=new WeakSet,DSt=new WeakSet,xye=new WeakSet,Tye=new WeakSet,VP=new WeakSet,Cye=new WeakSet,Iye=new WeakSet,kye=new WeakSet,Aye=class extends GP.Connector{constructor(e){super({...e,options:{isNewChainsStale:!0,...e.options}}),gi._classPrivateMethodInitSpec(this,kye),gi._classPrivateMethodInitSpec(this,Iye),gi._classPrivateMethodInitSpec(this,Cye),gi._classPrivateMethodInitSpec(this,VP),gi._classPrivateMethodInitSpec(this,Tye),gi._classPrivateMethodInitSpec(this,xye),gi._classPrivateMethodInitSpec(this,DSt),gi._classPrivateMethodInitSpec(this,_ye),jg._defineProperty(this,"id","walletConnect"),jg._defineProperty(this,"name","WalletConnect"),jg._defineProperty(this,"ready",!0),Qr._classPrivateFieldInitSpec(this,Oi,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,nK,{writable:!0,value:void 0}),Qr._classPrivateFieldInitSpec(this,Qw,{writable:!0,value:void 0}),jg._defineProperty(this,"onAccountsChanged",t=>{t.length===0?this.emit("disconnect"):this.emit("change",{account:Jw.utils.getAddress(t[0])})}),jg._defineProperty(this,"onChainChanged",t=>{let n=Number(t),a=this.isChainUnsupported(n);Qr._classPrivateFieldGet(this,Qw).setItem(wye,String(t)),this.emit("change",{chain:{id:n,unsupported:a}})}),jg._defineProperty(this,"onDisconnect",()=>{gi._classPrivateMethodGet(this,VP,rK).call(this,[]),Qr._classPrivateFieldGet(this,Qw).removeItem(wye),this.emit("disconnect")}),jg._defineProperty(this,"onDisplayUri",t=>{this.emit("message",{type:"display_uri",data:t})}),jg._defineProperty(this,"onConnect",()=>{this.emit("connect",{provider:Qr._classPrivateFieldGet(this,Oi)})}),Qr._classPrivateFieldSet(this,Qw,e.options.storage),gi._classPrivateMethodGet(this,_ye,PSt).call(this)}async connect(){let{chainId:e,pairingTopic:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};try{let n=e;if(!n){let l=await Qr._classPrivateFieldGet(this,Qw).getItem(wye),h=l?parseInt(l):void 0;h&&!this.isChainUnsupported(h)?n=h:n=this.chains[0]?.chainId}if(!n)throw new Error("No chains found on connector.");let a=await this.getProvider();this.setupListeners();let i=await gi._classPrivateMethodGet(this,xye,RSt).call(this);if(a.session&&i&&await a.disconnect(),!a.session||i){let l=this.chains.filter(h=>h.chainId!==n).map(h=>h.chainId);this.emit("message",{type:"connecting"}),await a.connect({pairingTopic:t,chains:[n],optionalChains:l}),gi._classPrivateMethodGet(this,VP,rK).call(this,this.chains.map(h=>{let{chainId:f}=h;return f}))}let s=await a.enable();if(s.length===0)throw new Error("No accounts found on provider.");let o=Jw.utils.getAddress(s[0]),c=await this.getChainId(),u=this.isChainUnsupported(c);return{account:o,chain:{id:c,unsupported:u},provider:new Jw.providers.Web3Provider(a)}}catch(n){throw/user rejected/i.test(n?.message)?new GP.UserRejectedRequestError(n):n}}async disconnect(){let e=await this.getProvider();try{await e.disconnect()}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{gi._classPrivateMethodGet(this,Tye,MSt).call(this),gi._classPrivateMethodGet(this,VP,rK).call(this,[])}}async getAccount(){let{accounts:e}=await this.getProvider();if(e.length===0)throw new Error("No accounts found on provider.");return Jw.utils.getAddress(e[0])}async getChainId(){let{chainId:e}=await this.getProvider();return e}async getProvider(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Qr._classPrivateFieldGet(this,Oi)||await gi._classPrivateMethodGet(this,_ye,PSt).call(this),e&&await this.switchChain(e),!Qr._classPrivateFieldGet(this,Oi))throw new Error("No provider found.");return Qr._classPrivateFieldGet(this,Oi)}async getSigner(){let{chainId:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},[t,n]=await Promise.all([this.getProvider({chainId:e}),this.getAccount()]);return new Jw.providers.Web3Provider(t,e).getSigner(n)}async isAuthorized(){try{let[e,t]=await Promise.all([this.getAccount(),this.getProvider()]),n=await gi._classPrivateMethodGet(this,xye,RSt).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){let t=this.chains.find(n=>n.chainId===e);if(!t)throw new GP.SwitchChainError(new Error("chain not found on connector."));try{let n=await this.getProvider(),a=gi._classPrivateMethodGet(this,Iye,LSt).call(this),i=gi._classPrivateMethodGet(this,kye,qSt).call(this);if(!a.includes(e)&&i.includes(Eye)){await n.request({method:Eye,params:[{chainId:Jw.utils.hexValue(t.chainId),blockExplorerUrls:[t.explorers?.length?t.explorers[0]:void 0],chainName:t.name,nativeCurrency:t.nativeCurrency,rpcUrls:[...t.rpc]}]});let o=await gi._classPrivateMethodGet(this,Cye,OSt).call(this);o.push(e),gi._classPrivateMethodGet(this,VP,rK).call(this,o)}return await n.request({method:"wallet_switchEthereumChain",params:[{chainId:Jw.utils.hexValue(e)}]}),t}catch(n){let a=typeof n=="string"?n:n?.message;throw/user rejected request/i.test(a)?new GP.UserRejectedRequestError(n):new GP.SwitchChainError(n)}}async setupListeners(){!Qr._classPrivateFieldGet(this,Oi)||(gi._classPrivateMethodGet(this,Tye,MSt).call(this),Qr._classPrivateFieldGet(this,Oi).on("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Oi).on("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Oi).on("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Oi).on("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Oi).on("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Oi).on("connect",this.onConnect))}};async function PSt(){return!Qr._classPrivateFieldGet(this,nK)&&typeof window<"u"&&Qr._classPrivateFieldSet(this,nK,gi._classPrivateMethodGet(this,DSt,n5n).call(this)),Qr._classPrivateFieldGet(this,nK)}async function n5n(){let{default:r,OPTIONAL_EVENTS:e,OPTIONAL_METHODS:t}=await Promise.resolve().then(function(){return r5n(tye())}),[n,...a]=this.chains.map(i=>{let{chainId:s}=i;return s});n&&Qr._classPrivateFieldSet(this,Oi,await r.init({showQrModal:this.options.qrcode!==!1,projectId:this.options.projectId,optionalMethods:t,optionalEvents:e,chains:[n],optionalChains:a,metadata:{name:this.options.dappMetadata.name,description:this.options.dappMetadata.description||"",url:this.options.dappMetadata.url,icons:[this.options.dappMetadata.logoUrl||""]},rpcMap:Object.fromEntries(this.chains.map(i=>[i.chainId,i.rpc[0]]))}))}async function RSt(){if(gi._classPrivateMethodGet(this,kye,qSt).call(this).includes(Eye)||!this.options.isNewChainsStale)return!1;let e=await gi._classPrivateMethodGet(this,Cye,OSt).call(this),t=this.chains.map(a=>{let{chainId:i}=a;return i}),n=gi._classPrivateMethodGet(this,Iye,LSt).call(this);return n.length&&!n.some(a=>t.includes(a))?!1:!t.every(a=>e.includes(a))}function MSt(){!Qr._classPrivateFieldGet(this,Oi)||(Qr._classPrivateFieldGet(this,Oi).removeListener("accountsChanged",this.onAccountsChanged),Qr._classPrivateFieldGet(this,Oi).removeListener("chainChanged",this.onChainChanged),Qr._classPrivateFieldGet(this,Oi).removeListener("disconnect",this.onDisconnect),Qr._classPrivateFieldGet(this,Oi).removeListener("session_delete",this.onDisconnect),Qr._classPrivateFieldGet(this,Oi).removeListener("display_uri",this.onDisplayUri),Qr._classPrivateFieldGet(this,Oi).removeListener("connect",this.onConnect))}function rK(r){Qr._classPrivateFieldGet(this,Qw).setItem(BSt,JSON.stringify(r))}async function OSt(){let r=await Qr._classPrivateFieldGet(this,Qw).getItem(BSt);return r?JSON.parse(r):[]}function LSt(){return Qr._classPrivateFieldGet(this,Oi)?Qr._classPrivateFieldGet(this,Oi).session?.namespaces[NSt]?.chains?.map(e=>parseInt(e.split(":")[1]||""))??[]:[]}function qSt(){return Qr._classPrivateFieldGet(this,Oi)?Qr._classPrivateFieldGet(this,Oi).session?.namespaces[NSt]?.methods??[]:[]}Sye.WalletConnectConnector=Aye});var HSt=x(Lye=>{"use strict";d();p();Object.defineProperty(Lye,"__esModule",{value:!0});var $P=Am(),Rye=rc(),jr=Sm(),a5n=a6(),i5n=s6();el();Qe();vt();cg();je();var zl=new WeakMap,TE=new WeakMap,s5n=new WeakMap,Mye=new WeakMap,Nye=new WeakMap,Bye=new WeakMap,Dye=new WeakMap,Oye=new WeakMap,WSt=new WeakSet,Pye=new WeakSet,Zw=class extends i5n.AbstractBrowserWallet{get walletName(){return"WalletConnect"}constructor(e){super(e.walletId||Zw.id,e),$P._classPrivateMethodInitSpec(this,Pye),$P._classPrivateMethodInitSpec(this,WSt),jr._classPrivateFieldInitSpec(this,zl,{writable:!0,value:void 0}),jr._classPrivateFieldInitSpec(this,TE,{writable:!0,value:void 0}),Rye._defineProperty(this,"connector",void 0),jr._classPrivateFieldInitSpec(this,s5n,{writable:!0,value:t=>{if(t)throw t}}),jr._classPrivateFieldInitSpec(this,Mye,{writable:!0,value:t=>{if(jr._classPrivateFieldSet(this,TE,t.provider),!jr._classPrivateFieldGet(this,TE))throw new Error("WalletConnect provider not found after connecting.")}}),jr._classPrivateFieldInitSpec(this,Nye,{writable:!0,value:()=>{$P._classPrivateMethodGet(this,Pye,USt).call(this)}}),jr._classPrivateFieldInitSpec(this,Bye,{writable:!0,value:async t=>{t.chain||t.account}}),jr._classPrivateFieldInitSpec(this,Dye,{writable:!0,value:t=>{switch(t.type){case"display_uri":this.emit("open_wallet",t.data);break}}}),jr._classPrivateFieldInitSpec(this,Oye,{writable:!0,value:()=>{this.emit("open_wallet")}})}async getConnector(){if(!this.connector){let{WalletConnectConnector:e}=await Promise.resolve().then(function(){return FSt()});jr._classPrivateFieldSet(this,zl,new e({chains:this.chains,options:{qrcode:this.options.qrcode,projectId:this.options.projectId,dappMetadata:this.options.dappMetadata,storage:this.walletStorage}})),this.connector=new a5n.WagmiAdapter(jr._classPrivateFieldGet(this,zl)),jr._classPrivateFieldSet(this,TE,await jr._classPrivateFieldGet(this,zl).getProvider()),$P._classPrivateMethodGet(this,WSt,o5n).call(this)}return this.connector}};function o5n(){!jr._classPrivateFieldGet(this,zl)||($P._classPrivateMethodGet(this,Pye,USt).call(this),jr._classPrivateFieldGet(this,zl).on("connect",jr._classPrivateFieldGet(this,Mye)),jr._classPrivateFieldGet(this,zl).on("disconnect",jr._classPrivateFieldGet(this,Nye)),jr._classPrivateFieldGet(this,zl).on("change",jr._classPrivateFieldGet(this,Bye)),jr._classPrivateFieldGet(this,zl).on("message",jr._classPrivateFieldGet(this,Dye)),jr._classPrivateFieldGet(this,TE)?.signer.client.on("session_request_sent",jr._classPrivateFieldGet(this,Oye)))}function USt(){!jr._classPrivateFieldGet(this,zl)||(jr._classPrivateFieldGet(this,zl).removeListener("connect",jr._classPrivateFieldGet(this,Mye)),jr._classPrivateFieldGet(this,zl).removeListener("disconnect",jr._classPrivateFieldGet(this,Nye)),jr._classPrivateFieldGet(this,zl).removeListener("change",jr._classPrivateFieldGet(this,Bye)),jr._classPrivateFieldGet(this,zl).removeListener("message",jr._classPrivateFieldGet(this,Dye)),jr._classPrivateFieldGet(this,TE)?.signer.client.removeListener("session_request_sent",jr._classPrivateFieldGet(this,Oye)))}Rye._defineProperty(Zw,"id","walletConnect");Rye._defineProperty(Zw,"meta",{name:"Wallet Connect",iconURL:"ipfs://QmX58KPRaTC9JYZ7KriuBzeoEaV2P9eZcA3qbFnTHZazKw/wallet-connect.svg"});Lye.WalletConnect=Zw});var jSt=x((OIa,qye)=>{"use strict";d();p();g.env.NODE_ENV==="production"?qye.exports=SSt():qye.exports=HSt()});var KSt=x(Wye=>{"use strict";d();p();Object.defineProperty(Wye,"__esModule",{value:!0});var gs=vm(),YP=Zo(),c5n=Qx(),zSt=je(),u5n=tT();Yu();Qe();var yy=new WeakMap,Xw=new WeakMap,EE=new WeakMap,Fye=class extends c5n.TWConnector{constructor(e){super(),YP._defineProperty(this,"id","device_wallet"),YP._defineProperty(this,"name","Device Wallet"),YP._defineProperty(this,"options",void 0),gs._classPrivateFieldInitSpec(this,yy,{writable:!0,value:void 0}),gs._classPrivateFieldInitSpec(this,Xw,{writable:!0,value:void 0}),gs._classPrivateFieldInitSpec(this,EE,{writable:!0,value:void 0}),YP._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),YP._defineProperty(this,"onChainChanged",t=>{let n=u5n.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,gs._classPrivateFieldSet(this,yy,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await gs._classPrivateFieldGet(this,yy).getSavedWalletAddress()?await gs._classPrivateFieldGet(this,yy).loadSavedWallet(e):(await gs._classPrivateFieldGet(this,yy).generateNewWallet(),await gs._classPrivateFieldGet(this,yy).save(e))}async disconnect(){gs._classPrivateFieldSet(this,Xw,void 0),gs._classPrivateFieldSet(this,EE,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return gs._classPrivateFieldGet(this,Xw)||gs._classPrivateFieldSet(this,Xw,new zSt.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),gs._classPrivateFieldGet(this,Xw)}async getSigner(){if(!gs._classPrivateFieldGet(this,yy))throw new Error("No wallet found");if(!gs._classPrivateFieldGet(this,EE)){let e=await this.getProvider();gs._classPrivateFieldSet(this,EE,await gs._classPrivateFieldGet(this,yy).getSigner(e))}return gs._classPrivateFieldGet(this,EE)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");gs._classPrivateFieldSet(this,Xw,new zSt.providers.JsonRpcBatchProvider(t.rpc[0])),gs._classPrivateFieldSet(this,EE,await gs._classPrivateFieldGet(this,yy).getSigner(gs._classPrivateFieldGet(this,Xw))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};Wye.DeviceWalletConnector=Fye});var VSt=x(sK=>{"use strict";d();p();Object.defineProperty(sK,"__esModule",{value:!0});var gy=vm(),e5=Zo(),aK=Xx(),l5n=z1(),d5n=vt(),GSt=je();Yu();bm();Qe();var Uye="data",Hye="address",iK=new WeakMap,t5=class extends aK.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(t5.id,{...e,shouldAutoConnect:!1}),e5._defineProperty(this,"connector",void 0),gy._classPrivateFieldInitSpec(this,iK,{writable:!0,value:void 0}),e5._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return KSt()}),t;switch(this.options.storageType){case"asyncStore":t=await by.fromAsyncStorage(this.options.storage||aK.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await by.fromCredentialStore();break;default:t=await by.fromAsyncStorage(this.options.storage||aK.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||d5n.Ethereum,wallet:t,chains:this.options.chains||aK.thirdwebChains}),gy._classPrivateFieldSet(this,iK,t)}return this.connector}getWalletData(){if(!gy._classPrivateFieldGet(this,iK))throw new Error("Wallet not initialized");return gy._classPrivateFieldGet(this,iK).getWalletData()}static getAddressStorageKey(){return Hye}static getDataStorageKey(){return Uye}connect(e){return super.connect({...e,saveParams:!1})}};e5._defineProperty(t5,"id","deviceWallet");e5._defineProperty(t5,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var JP=new WeakMap,by=class extends l5n.AbstractWallet{static async fromAsyncStorage(e){return new by({storage:new jye(e)})}static async fromCredentialStore(){return new by({storage:new zye(navigator.credentials)})}constructor(e){super(),e5._defineProperty(this,"options",void 0),gy._classPrivateFieldInitSpec(this,JP,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!gy._classPrivateFieldGet(this,JP))throw new Error("Wallet not initialized");let t=gy._classPrivateFieldGet(this,JP);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=GSt.ethers.Wallet.createRandom();return gy._classPrivateFieldSet(this,JP,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await GSt.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return gy._classPrivateFieldSet(this,JP,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},jye=class{constructor(e){e5._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem(Hye),this.storage.getItem(Uye)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem(Hye,e.address),this.storage.setItem(Uye,e.encryptedData)])}},zye=class{constructor(e){e5._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};sK.DeviceBrowserWallet=t5;sK.DeviceWalletImpl=by});var YSt=x(Gye=>{"use strict";d();p();Object.defineProperty(Gye,"__esModule",{value:!0});var bs=Sm(),QP=rc(),p5n=a6(),$St=je(),h5n=c6();el();Qe();var vy=new WeakMap,r5=new WeakMap,CE=new WeakMap,Kye=class extends p5n.TWConnector{constructor(e){super(),QP._defineProperty(this,"id","device_wallet"),QP._defineProperty(this,"name","Device Wallet"),QP._defineProperty(this,"options",void 0),bs._classPrivateFieldInitSpec(this,vy,{writable:!0,value:void 0}),bs._classPrivateFieldInitSpec(this,r5,{writable:!0,value:void 0}),bs._classPrivateFieldInitSpec(this,CE,{writable:!0,value:void 0}),QP._defineProperty(this,"shimDisconnectKey","deviceWallet.shimDisconnect"),QP._defineProperty(this,"onChainChanged",t=>{let n=h5n.normalizeChainId(t),a=!this.options.chains.find(i=>i.chainId===n);this.emit("change",{chain:{id:n,unsupported:a}})}),this.options=e,bs._classPrivateFieldSet(this,vy,e.wallet)}async connect(e){return await this.initializeDeviceWallet(e.password),e.chainId&&this.switchChain(e.chainId),await(await this.getSigner()).getAddress()}async initializeDeviceWallet(e){await bs._classPrivateFieldGet(this,vy).getSavedWalletAddress()?await bs._classPrivateFieldGet(this,vy).loadSavedWallet(e):(await bs._classPrivateFieldGet(this,vy).generateNewWallet(),await bs._classPrivateFieldGet(this,vy).save(e))}async disconnect(){bs._classPrivateFieldSet(this,r5,void 0),bs._classPrivateFieldSet(this,CE,void 0)}async getAddress(){let e=await this.getSigner();if(!e)throw new Error("No signer found");return await e.getAddress()}async isConnected(){try{return!!await this.getAddress()}catch{return!1}}async getProvider(){return bs._classPrivateFieldGet(this,r5)||bs._classPrivateFieldSet(this,r5,new $St.providers.JsonRpcBatchProvider(this.options.chain.rpc[0])),bs._classPrivateFieldGet(this,r5)}async getSigner(){if(!bs._classPrivateFieldGet(this,vy))throw new Error("No wallet found");if(!bs._classPrivateFieldGet(this,CE)){let e=await this.getProvider();bs._classPrivateFieldSet(this,CE,await bs._classPrivateFieldGet(this,vy).getSigner(e))}return bs._classPrivateFieldGet(this,CE)}async switchChain(e){let t=this.options.chains.find(n=>n.chainId===e);if(!t)throw new Error("Chain not found");bs._classPrivateFieldSet(this,r5,new $St.providers.JsonRpcBatchProvider(t.rpc[0])),bs._classPrivateFieldSet(this,CE,await bs._classPrivateFieldGet(this,vy).getSigner(bs._classPrivateFieldGet(this,r5))),this.onChainChanged(e)}async setupListeners(){}updateChains(e){this.options.chains=e}};Gye.DeviceWalletConnector=Kye});var QSt=x(uK=>{"use strict";d();p();Object.defineProperty(uK,"__esModule",{value:!0});var wy=Sm(),n5=rc(),oK=s6(),f5n=cg(),m5n=vt(),JSt=je();el();Am();Qe();var Vye="data",$ye="address",cK=new WeakMap,a5=class extends oK.AbstractBrowserWallet{get walletName(){return"Device Wallet"}constructor(e){super(a5.id,{...e,shouldAutoConnect:!1}),n5._defineProperty(this,"connector",void 0),wy._classPrivateFieldInitSpec(this,cK,{writable:!0,value:void 0}),n5._defineProperty(this,"options",void 0),this.options=e}async getConnector(){if(!this.connector){let{DeviceWalletConnector:e}=await Promise.resolve().then(function(){return YSt()}),t;switch(this.options.storageType){case"asyncStore":t=await _y.fromAsyncStorage(this.options.storage||oK.createAsyncLocalStorage("deviceWallet"));break;case"credentialStore":t=await _y.fromCredentialStore();break;default:t=await _y.fromAsyncStorage(this.options.storage||oK.createAsyncLocalStorage("deviceWallet"))}this.connector=new e({chain:this.options.chain||m5n.Ethereum,wallet:t,chains:this.options.chains||oK.thirdwebChains}),wy._classPrivateFieldSet(this,cK,t)}return this.connector}getWalletData(){if(!wy._classPrivateFieldGet(this,cK))throw new Error("Wallet not initialized");return wy._classPrivateFieldGet(this,cK).getWalletData()}static getAddressStorageKey(){return $ye}static getDataStorageKey(){return Vye}connect(e){return super.connect({...e,saveParams:!1})}};n5._defineProperty(a5,"id","deviceWallet");n5._defineProperty(a5,"meta",{name:"Device Wallet",iconURL:"ipfs://QmcNddbYBuQKiBFnPcxYegjrX6S6z9K1vBNzbBBUJMn2ox/device-wallet.svg"});var ZP=new WeakMap,_y=class extends f5n.AbstractWallet{static async fromAsyncStorage(e){return new _y({storage:new Yye(e)})}static async fromCredentialStore(){return new _y({storage:new Jye(navigator.credentials)})}constructor(e){super(),n5._defineProperty(this,"options",void 0),wy._classPrivateFieldInitSpec(this,ZP,{writable:!0,value:void 0}),this.options=e}async getSigner(e){if(!wy._classPrivateFieldGet(this,ZP))throw new Error("Wallet not initialized");let t=wy._classPrivateFieldGet(this,ZP);return e&&(t=t.connect(e)),t}async getSavedWalletAddress(){let e=await this.options.storage.getWalletData();return e?e.address:null}async generateNewWallet(){let e=JSt.ethers.Wallet.createRandom();return wy._classPrivateFieldSet(this,ZP,e),e.address}async loadSavedWallet(e){let t=await this.options.storage.getWalletData();if(!t)throw new Error("No saved wallet");let n=await JSt.ethers.Wallet.fromEncryptedJson(t.encryptedData,e);return wy._classPrivateFieldSet(this,ZP,n),n.address}async save(e){let t=await this.getSigner(),n={scrypt:{N:1<<32}},a=await t.encrypt(e,n);await this.options.storage.storeWalletData({address:t.address,encryptedData:a})}async export(e){return(await this.getSigner()).encrypt(e)}getWalletData(){return this.options.storage.getWalletData()}},Yye=class{constructor(e){n5._defineProperty(this,"storage",void 0),this.storage=e}async getWalletData(){let[e,t]=await Promise.all([this.storage.getItem($ye),this.storage.getItem(Vye)]);return!e||!t?null:{address:e,encryptedData:t}}async storeWalletData(e){await Promise.all([this.storage.setItem($ye,e.address),this.storage.setItem(Vye,e.encryptedData)])}},Jye=class{constructor(e){n5._defineProperty(this,"container",void 0),this.container=e}async getWalletData(){let e=await this.container.get({password:!0,unmediated:!0});return e&&"password"in e?{address:e.id,encryptedData:e.password}:null}async storeWalletData(e){if("PasswordCredential"in window){let t={id:e.address,password:e.encryptedData},n=await this.container.create({password:t});if(!n)throw new Error("Credential not created");await this.container.store(n)}else throw new Error("PasswordCredential not supported")}};uK.DeviceBrowserWallet=a5;uK.DeviceWalletImpl=_y});var ZSt=x((QIa,Qye)=>{"use strict";d();p();g.env.NODE_ENV==="production"?Qye.exports=VSt():Qye.exports=QSt()});d();p();var tPt=on(U8e()),rPt=on(lIe()),nPt=on(Hht()),Zye=on(gn()),r1e=on(Ywt()),Xye=on(Zwt()),n1e=on(o5t()),a1e=on(H6t()),i1e=on(jSt()),s1e=on(ZSt()),e1e=on(je()),y5n="339d65590ba0fa79e4c8be0af33d64eda709e13652acb02c6be63f5a1fbef9c3",g5n="145769e410f16970a79ff77b2d89a1e0",XSt="/",ePt="#",zg=(r,e)=>e1e.BigNumber.isBigNumber(e)||typeof e=="object"&&e!==null&&e.type==="BigNumber"&&"hex"in e?e1e.BigNumber.from(e).toString():e,b5n=[a1e.MetaMask,n1e.InjectedWallet,i1e.WalletConnect,r1e.CoinbaseWallet,s1e.DeviceBrowserWallet],v5n=window,t1e=class{constructor(){this.walletMap=new Map}updateSDKSigner(e){this.activeSDK&&(e?this.activeSDK.updateSignerOrProvider(e):this.initializedChain&&this.activeSDK.updateSignerOrProvider(this.initializedChain)),e&&(this.auth?this.auth.updateWallet(new Xye.EthersWallet(e)):this.auth=new tPt.ThirdwebAuth(new Xye.EthersWallet(e),"example.com"))}initialize(e,t){this.initializedChain=e,console.debug("thirdwebSDK initialization:",e,t);let n=JSON.parse(t),a=n?.storage&&n?.storage?.ipfsGatewayUrl?new Zye.ThirdwebStorage({gatewayUrls:{"ipfs://":[n.storage.ipfsGatewayUrl]}}):new Zye.ThirdwebStorage;n.thirdwebApiKey=n.thirdwebApiKey||y5n,this.activeSDK=new nPt.ThirdwebSDK(e,n,a);for(let i of b5n){let s,o={name:n.wallet?.appName||"thirdweb powered game",url:n.wallet?.appUrl||"https://thirdweb.com",description:n.wallet?.appDescription||"",logoUrl:n.wallet?.appIcons?.[0]||"",...n.wallet?.extras};switch(i.id){case"injected":s=new n1e.InjectedWallet({dappMetadata:o});break;case"metamask":s=new a1e.MetaMask({dappMetadata:o});break;case"walletConnect":s=new i1e.WalletConnect({dappMetadata:o,projectId:g5n});break;case"coinbaseWallet":s=new r1e.CoinbaseWallet({dappMetadata:o});break;case"deviceWallet":s=new s1e.DeviceBrowserWallet({dappMetadata:o})}s&&(s.on("connect",async()=>this.updateSDKSigner(await s.getSigner())),s.on("change",async()=>this.updateSDKSigner(await s.getSigner())),s.on("disconnect",()=>this.updateSDKSigner()),this.walletMap.set(i.id,s))}}async connect(e="injected",t,n){if(!this.activeSDK)throw new Error("SDK not initialized");t===0&&(t=void 0);let a=this.walletMap.get(e);if(a)return a.walletId==="deviceWallet"&&n?await a.connect({chainId:t,password:n}):await a.connect({chainId:t}),this.activeWallet=a,this.updateSDKSigner(await a.getSigner()),await this.activeSDK.wallet.getAddress();throw new Error("Invalid Wallet")}async disconnect(){this.activeWallet&&(await this.activeWallet.disconnect(),this.activeWallet=void 0,this.updateSDKSigner())}async switchNetwork(e){if(e&&this.activeWallet&&"switchChain"in this.activeWallet)await this.activeWallet.switchChain(e),this.updateSDKSigner(await this.activeWallet.getSigner());else throw new Error("Error Switching Network")}async invoke(e,t){if(!this.activeSDK)throw new Error("SDK not initialized");let n=e.split(XSt),a=n[0].split(ePt),i=a[0],o=JSON.parse(t).arguments.map(c=>{try{return typeof c=="string"&&(c.startsWith("{")||c.startsWith("["))?JSON.parse(c):c}catch{return c}});if(console.debug("thirdwebSDK call:",e,o),i.startsWith("sdk")){let c;if(a.length>1&&(c=a[1]),c&&n.length===2){let u=await this.activeSDK[c][n[1]](...o);return JSON.stringify({result:u},zg)}else if(n.length===2){let u=await this.activeSDK[n[1]](...o);return JSON.stringify({result:u},zg)}else throw new Error("Invalid Route")}if(i.startsWith("auth")){if(!this.auth)throw new Error("You need to connect a wallet to use auth!");let c;if(a.length>1&&(c=a[1]),c==="login"&&n.length===1){let u=await this.auth.login({domain:o[0]});return JSON.stringify({result:u})}else if(c==="verify"&&n.length===1){let u=await this.auth.verify(o[0]);return JSON.stringify({result:u})}}if(i.startsWith("0x")){let c;if(a.length>1)try{c=JSON.parse(a[1])}catch{c=a[1]}let u=c?await this.activeSDK.getContract(i,c):await this.activeSDK.getContract(i);if(n.length===2){let l=await u[n[1]](...o);return JSON.stringify({result:l},zg)}else if(n.length===3){let l=await u[n[1]][n[2]](...o);return JSON.stringify({result:l},zg)}else if(n.length===4){let l=await u[n[1]][n[2]][n[3]](...o);return JSON.stringify({result:l},zg)}else throw new Error("Invalid Route")}}async invokeListener(e,t,n,a,i){if(!this.activeSDK)throw new Error("SDK not initialized");let s=t.split(XSt),o=s[0].split(ePt),c=o[0],l=JSON.parse(n).arguments.map(h=>{try{return typeof h=="string"&&(h.startsWith("{")||h.startsWith("["))?JSON.parse(h):h}catch{return h}});if(console.debug("thirdwebSDK invoke listener:",e,t,l,a),c.startsWith("0x")){let h;if(o.length>1)try{h=JSON.parse(o[1])}catch{h=o[1]}let f=h?await this.activeSDK.getContract(c,h):await this.activeSDK.getContract(c);if(s.length===2)await f[s[1]](...l,m=>i(a,e,JSON.stringify(m,zg)));else if(s.length===3)await f[s[1]][s[2]](...l,m=>i(a,e,JSON.stringify(m,zg)));else if(s.length===4)await f[s[1]][s[2]][s[3]](...l,m=>i(a,e,JSON.stringify(m,zg)));else throw new Error("Invalid Route")}}async fundWallet(e){if(!this.activeSDK)throw new Error("SDK not initialized");let{appId:t,...n}=JSON.parse(e);return await new rPt.CoinbasePayIntegration({appId:t}).fundWallet(n)}};v5n.bridge=new t1e;})(); /*! * The buffer module from node.js, for the browser. *